Commit 69006e71 authored by Derek Gaston's avatar Derek Gaston
Browse files

Openmc coupling working with individual temperatures

parent 86efcdd4
......@@ -8,6 +8,23 @@
[]
[]
[AuxVariables]
[average_temp]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[average_temp]
# This is here just so we can see that the transfer worked
variable = average_temp
type = SpatialUserObjectAux
user_object = average_temp
execute_on = 'initial timestep_begin'
[]
[]
[Problem]
type = OpenMCProblem
power = 1000
......@@ -159,7 +176,7 @@
1.527366279699248208e+00 8.193179978345865422e+00 2.094158479398496198e+00
'
# volumes = '14.137166941154067 14.137166941154067'
volumes = '9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247 9.4247'
volumes = '14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067 14.137166941154067'
[]
[Executioner]
......
......@@ -14,6 +14,10 @@
family = MONOMIAL
order = CONSTANT
[]
[average_temp]
family = MONOMIAL
order = CONSTANT
[]
[]
[Kernels]
......@@ -37,6 +41,15 @@
[]
[]
[AuxKernels]
[average_temp]
variable = average_temp
type = SpatialUserObjectAux
user_object = average_temp
execute_on = 'initial timestep_end'
[]
[]
[Materials]
[hc]
type = GenericConstantMaterial
......@@ -58,11 +71,158 @@
exodus = true
[]
[Postprocessors]
[UserObjects]
[./average_temp]
type = ElementAverageValue
type = NearestPointAverage
variable = temp
execute_on = 'initial timestep_begin'
execute_on = 'initial timestep_end' # Evaluate on timestep end so OpenMC can get updated values next timestep
points = '-8.065973074285714972e+00 2.236820423458646623e+00 1.168503152842105308e+01
-4.108761094736841812e+00 7.264663405714286704e+00 1.148013507969924873e+01
-8.190250614135338836e+00 -1.669100062556391206e+00 1.174674951699248204e+01
-5.017578366315789573e+00 -1.780129851428571497e+00 1.156140664421052655e+01
-1.650374663458646696e+00 -2.329395403308271106e+00 1.133625867067669191e+01
1.862428958796992662e+00 -5.195108160000000197e+00 1.142676995368421267e+01
-7.276481359398497162e+00 -4.216759513984962737e+00 1.377250198736842002e+01
-4.790481751578948177e+00 3.816866262857142811e+00 1.144549058165413591e+01
5.913748114285715118e-01 3.496824963609022952e+00 1.388699268812030319e+01
-3.332674473383458569e+00 1.220943688421052720e+00 1.254164748270676633e+01
-7.045073824962406306e+00 4.551014843909774399e+00 1.362872080962406152e+01
-1.954108067368421242e+00 8.099263701654134451e+00 1.366037387909774559e+01
-2.442635086917293030e+00 4.036775877293233172e+00 1.366037387909774559e+01
2.321954078796992782e+00 1.976863398496240709e+00 1.164948058105263229e+01
-4.371031218045112743e-01 4.113911711278195882e-01 1.339431273022556290e+01
-1.204804273082706878e+00 -5.375906580451127681e+00 1.187844322285714327e+01
4.231273053834586406e+00 -3.853785942857142821e+00 1.302805986045112796e+01
8.301819749774434598e+00 8.375287145864661609e-01 1.129925227669173005e+01
4.091046063157895429e-01 6.378547528421051993e+00 1.254724462556390918e+01
5.358109061052631183e+00 1.117410268872180312e+00 1.296784732150375774e+01
3.055512902255638874e+00 -9.682555813533835209e-01 1.250220342135338392e+01
7.199345503759398968e-01 -2.545482878796992754e+00 1.379743548270676712e+01
6.032339935037595247e+00 -1.611136421052631551e+00 1.146893719578947390e+01
-4.249328275488721829e+00 -4.628992590676691776e+00 1.272955814977443723e+01
-3.262119295037594124e+00 -7.700073123609022296e+00 1.283088735518797030e+01
5.441487702857143560e+00 -6.363833229473684128e+00 1.159813470676691871e+01
2.950657645714285682e+00 -7.807019704060151000e+00 1.289387935037593991e+01
3.491400732631579462e+00 5.551142201503759921e+00 1.259826765112781821e+01
-1.172474959398496219e-01 -8.344772167218046377e+00 1.240390993443608991e+01
8.304959289022555424e+00 -1.079901827368421108e+00 1.386601664481203144e+01
7.944992012030075657e+00 2.622618723609023039e+00 1.390710577804511416e+01
7.358425717894736984e+00 -3.938736599097745206e+00 1.318160614375939765e+01
6.598890900451128694e+00 5.125867997593984704e+00 1.262288587308270493e+01
-7.400317786466166226e-01 2.223469043007519019e+00 1.081451595067669302e+01
-1.867423167518796889e+00 5.140196423458647246e+00 1.076329776000000038e+01
2.490511687218044834e+00 7.952550756090225548e+00 1.081269631759398564e+01
-1.236599148270676629e+00 8.243005725112782400e+00 1.059267114586466185e+01
-7.095468454736843178e+00 -4.424456730225564627e+00 1.066665043488721842e+01
7.285327651127818660e-01 -5.268291645112781474e-01 1.036214385563909701e+01
5.007038508270676758e+00 3.281589217443609208e+00 1.065039062616541443e+01
-4.947073963308270983e+00 -6.729047436992482645e+00 1.036497467909774350e+01
-2.120261720300752106e+00 -8.076281918796993864e+00 9.935519418947370340e+00
-5.437722341052632302e+00 1.051229074285714438e+00 1.014711555248120334e+01
5.213936975639097859e+00 6.519832363308271539e+00 1.015162676571428690e+01
3.572533782857143070e+00 -2.921783722105263159e+00 1.003864377744360858e+01
1.663920003609022702e+00 4.730619876090225162e+00 1.017882627969924947e+01
1.886021503759398810e+00 -8.124411212030075546e+00 9.951542905263158545e+00
-3.685640293533835266e+00 -3.895882231578946975e+00 9.628868726616541807e+00
-2.518158279699248325e+00 6.397115909774436782e-02 9.479703222857144951e+00
4.235105059849623821e+00 3.675343181954887073e-01 9.772589633684209076e+00
7.126418591278195436e+00 -4.342682537142856347e+00 9.833584720601503903e+00
-8.342011524812029677e+00 2.082813040601503851e-01 9.238140093834585898e+00
-5.950863500751879975e+00 5.895005377443609085e+00 9.271530611729323468e+00
8.244475456240602185e+00 -1.464858229172932402e+00 9.232617148872179769e+00
-9.625496120300752745e-01 -5.275269571127820356e+00 8.877295283007518023e+00
-3.595474080000000239e+00 3.147738449323308707e+00 8.583448175639096789e+00
1.872605850225563806e+00 2.007630012631579142e+00 8.558087169924812443e+00
-7.644703882105264192e+00 3.351640771127819551e+00 8.679441538646617715e+00
4.575647801503759382e+00 -7.002747009924812360e+00 8.691659729323308881e+00
6.963510416842105144e+00 1.350765495338345890e+00 8.533391108571429129e+00
7.026851678796992573e+00 4.515084498045112582e+00 8.579821126015037436e+00
-5.016530122105263167e+00 -1.364844530526315713e+00 8.172900259849624760e+00
-3.428667215639097599e+00 7.615850039097744606e+00 8.389084013233082615e+00
5.636473335338346713e-01 7.064799056842105074e+00 8.261703197593984527e+00
-4.619242538345864624e-01 -2.261659521203007728e+00 8.086045299248119989e+00
-6.303907885714286063e-01 4.000298851127819688e+00 8.107978776541353128e+00
-7.875339071278195213e+00 -2.677839374436090214e+00 8.138632348872180344e+00
3.903554706766917182e+00 4.387745824962405727e+00 7.919806863157894838e+00
-6.361813844210526092e+00 -5.387853924812030293e+00 7.697013444812030869e+00
2.363079291428571427e+00 -9.440533425563910619e-01 7.643747007518798320e+00
-3.883201670977443509e+00 -7.365062807819549029e+00 7.426113978947369354e+00
3.638316588270676721e+00 7.523824092631579141e+00 7.585276716992481738e+00
-1.139308294736842142e-01 -8.334286282105262345e+00 7.496931204812030458e+00
5.013157227067670085e+00 -4.084452660451128203e+00 7.483439559699249344e+00
-6.864981978947368724e-01 1.013736996090225606e+00 7.084287132631579276e+00
-5.702905526616541820e+00 1.492095955488721870e+00 7.021743092932331010e+00
4.386988107067669063e+00 1.498693692631579033e+00 6.738174893233082940e+00
-3.016651734135338270e+00 -4.446158143759398662e+00 6.575180690526314820e+00
-2.485831109774435888e+00 5.300686985864662581e+00 5.871265172932331744e+00
-1.351379411729323410e+00 8.243042284511279405e+00 6.041501713082707781e+00
-2.710211747368421076e+00 -1.254646033082706946e+00 6.028808672481202890e+00
7.967707308270678690e-02 -5.596224898646616097e+00 5.891945514586465649e+00
-5.494808239398496497e+00 6.314841773233083266e+00 6.243261859849624784e+00
1.462926738045112973e+00 5.133970282105263294e+00 5.970177845413534357e+00
-8.327453644511278341e+00 -2.370449359398496270e-01 6.189384173233082542e+00
2.733243587368421323e+00 -7.880205192180451235e+00 6.247232221353383963e+00
5.841352994887217598e+00 5.968163151879699591e+00 5.963019572932330092e+00
8.348759162706766546e+00 -1.103825684210526237e-01 6.115168236992482242e+00
7.711771669172933663e+00 -3.205175808721804742e+00 6.133808925112782084e+00
7.793783693233084620e+00 2.954375321503759366e+00 5.941218875187970205e+00
-7.359727145864662035e+00 3.838532975639098233e+00 5.469066492631579735e+00
2.555186926917293544e+00 -3.340980721804511333e+00 5.621313419548872758e+00
5.128508058947368831e+00 -1.399891116992481255e+00 5.748621661353383594e+00
5.389944678496241259e+00 -6.387402236390977706e+00 5.385420086616541369e+00
1.676907064060150443e+00 8.168932886616541822e+00 5.188006231578947691e+00
-2.025178809022556425e+00 -8.084641847819549199e+00 4.983947112180451278e+00
7.423747163909775182e-01 -8.656667873684211756e-01 4.950941381052632373e+00
-7.436966739248120462e+00 -3.811048179248120338e+00 5.104909804511278182e+00
-5.448650739248121155e+00 -6.300931607819549640e+00 4.892984113082706088e+00
4.001048881804511126e+00 3.815975148270676964e+00 4.608533846616541751e+00
1.113800087819549089e+00 2.264923023157894733e+00 4.730310059548871848e+00
-2.048581609624060107e+00 2.481741921203008072e+00 4.617133273984962649e+00
-5.531780282706766805e+00 -6.945629485714286400e-01 4.782469995789473849e+00
-5.130775553684210344e+00 2.348205325714285863e+00 4.049563687218044272e+00
-3.566946640601504015e+00 7.500605258345864890e+00 3.980638401203008048e+00
-4.349532083007519034e+00 -3.494828448721804648e+00 3.903227274586466677e+00
8.789550315789474988e-01 -8.282310167819549207e+00 3.745045494135338604e+00
2.783515622255638977e+00 -5.795547139849624330e+00 3.697458644210525947e+00
-4.118811717293233143e-01 6.296173757593984455e+00 3.714335451428571577e+00
3.561181580751879849e+00 5.340659548872180862e-01 3.824344143157894838e+00
-8.189685625263159352e+00 1.608845994586466155e+00 3.539648066165413720e+00
4.241364166015038073e+00 7.168659374436090026e+00 3.589011360000000206e+00
-8.183563907368421653e+00 -1.517429922406015264e+00 3.211424358496240750e+00
6.998185375037595080e+00 -4.537632660451127897e+00 3.333644232180451361e+00
-1.847782264060150670e+00 -5.325928121503760160e+00 3.431325520601503865e+00
-6.148818716390977990e+00 5.603232194887217688e+00 3.260722361503759714e+00
8.179898324210526539e+00 -1.604828437894737059e+00 3.336550390375940367e+00
8.178593749172932803e+00 1.552982158195488793e+00 3.150945646917292731e+00
-1.818246680300751983e+00 -3.036155440601503996e-01 3.137262045112782172e+00
6.955264439097744500e+00 4.638992365714286414e+00 3.342759699248120331e+00
6.860023651127818978e-01 -3.426345336541353870e+00 3.105425388270676823e+00
4.337285792481202940e+00 -2.859118866766916955e+00 3.104987942255639677e+00
-3.181971482706767329e+00 4.610864246616541706e+00 2.692303030375939876e+00
2.178972241804511434e+00 5.110024735037594468e+00 2.362699658345864595e+00
-6.763637453233083185e+00 -4.900708648421052693e+00 2.359236332030075545e+00
-4.210563969924812078e+00 -7.188684956390978265e+00 2.119734929323308315e+00
1.332892554586466050e+00 -4.000238905263157618e-01 1.876511133834586786e+00
4.983688637593984616e+00 2.674637485714285834e+00 1.837798892030074960e+00
-3.882441527819548988e-01 2.252196014436090188e+00 1.901691046015037800e+00
5.786137378646617258e+00 -3.756968517293232668e-01 1.829254686315789691e+00
-1.291032458345864775e+00 -8.230331927819548810e+00 1.407082051127819478e+00
-1.559318645413533932e+00 8.177299755789475100e+00 1.486889987368421151e+00
-2.029652134736842140e+00 -2.881886078796992212e+00 1.469854209924812194e+00
-3.469649734736842461e+00 1.721376613533834643e+00 1.301245378646616491e+00
3.227581136842105902e-01 -5.648267007518796845e+00 8.480393936842104408e-01
2.474478878796992465e+00 -7.961366833082708538e+00 1.063221697443609060e+00
-7.477229658947369018e+00 3.604132280300751834e+00 1.245090886015037590e+00
-4.437924079398496424e+00 7.046885507368421564e+00 8.480393936842104408e-01
4.841371723308270703e+00 6.643437863458646397e+00 4.834029618045113663e-01
-6.724127386466166589e-01 5.244819367218044981e+00 7.177464252631579056e-01
-8.257228435488721985e+00 6.186197196992481162e-01 6.891657780451128090e-01
6.132404181654135478e+00 -3.846200867368421150e+00 4.651844030075187875e-01
2.083285898345864862e+00 -5.036898178646616486e+00 8.289085436390976724e+00
5.188124881804511368e+00 -6.529300016842105592e+00 1.814257270375940090e+00
-5.577345621654135499e+00 -5.983219488721804868e-01 1.714640037293233332e+00
1.527366279699248208e+00 8.193179978345865422e+00 2.094158479398496198e+00
'
[]
[]
......@@ -84,10 +244,10 @@
variable = heat_source
[]
[./average_temp_to_openmc]
type = MultiAppPostprocessorTransfer
type = NearestPointReceiverTransfer
direction = to_multiapp
multi_app = openmc
from_postprocessor = average_temp
to_postprocessor = average_temp
from_uo = average_temp
to_uo = average_temp
[]
[]
volume = '9.4247'
volume = '14.137166941154067'
volume_string = ''
for i in xrange(0, 146):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment