Skip to content

Commit

Permalink
Add neutronics-only test for 7 pin model
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Sep 25, 2024
1 parent 160faeb commit 6d85ed0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lfr/7pin_cardinal_demo/gold/NT_out.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
time,clad_temp_max,clad_temp_min,eigenvalue,fluid_density,gap_temp_max,gap_temp_min,innerfuel_temp_max,innerfuel_temp_min,integrated_power,nek_bulk_temp_max,nek_bulk_temp_min,nek_bulk_temp_pp,outerfuel1_temp_max,outerfuel1_temp_min,outerfuel2_temp_max,outerfuel2_temp_min,outerfuel3_temp_max,outerfuel3_temp_min,outerfuel4_temp_max,outerfuel4_temp_min,outerfuel5_temp_max,outerfuel5_temp_min,outerfuel6_temp_max,outerfuel6_temp_min,power_density_clad,power_density_cool,power_density_duct,power_density_gap,power_density_ifl,power_density_ofl1,power_density_ofl2,power_density_ofl3,power_density_ofl4,power_density_ofl5,power_density_ofl6,power_density_pp,power_scaling
1,693.15,693.15,0.98108702950677,10556.07463,693.15,693.15,693.15,693.15,29133.858267717,693.15,693.15,0,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,137.01216131699,29.218298088817,320.39904120446,0,4088.217720393,4082.956096283,4085.9836367417,4087.2995157681,4086.5559302064,4083.7497818206,4081.4466474115,29104.639969628,21787015874650
2,699.43239022868,693.65964725077,1.0020383939639,10555.97606459,818.10939157758,711.50836036459,815.25806472045,697.26249095979,29133.858267717,693.81528646687,693.14865891703,289200.5880958,815.09209016962,697.25818568359,815.2272594806,697.2605796033,815.22792036639,697.26228171919,815.19802760277,697.26177157254,815.09874802453,697.25937830612,815.02771639178,697.25763098736,137.98469352931,29.251049099656,322.92290217741,0,4092.2757583755,4083.2834026309,4082.7278371676,4084.0857149153,4084.8418342539,4082.3922136214,4082.3586751429,29104.607218617,21409671850189
1,693.15,693.15,0.99140511207043,10556.07463,693.15,693.15,693.15,693.15,29133.858267717,693.15,693.15,0,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,0,0,0,0,4166.1627316453,4162.2505156699,4161.3053072271,4160.3101641636,4160.4850164391,4161.3193387334,4162.0251938381,29133.858267717,22731915021288
2 changes: 2 additions & 0 deletions lfr/7pin_cardinal_demo/gold/neutronics_only_out.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
time,clad_temp_max,clad_temp_min,eigenvalue,fluid_density,gap_temp_max,gap_temp_min,innerfuel_temp_max,innerfuel_temp_min,integrated_power,nek_bulk_temp_max,nek_bulk_temp_min,nek_bulk_temp_pp,outerfuel1_temp_max,outerfuel1_temp_min,outerfuel2_temp_max,outerfuel2_temp_min,outerfuel3_temp_max,outerfuel3_temp_min,outerfuel4_temp_max,outerfuel4_temp_min,outerfuel5_temp_max,outerfuel5_temp_min,outerfuel6_temp_max,outerfuel6_temp_min,power_density_clad,power_density_cool,power_density_duct,power_density_gap,power_density_ifl,power_density_ofl1,power_density_ofl2,power_density_ofl3,power_density_ofl4,power_density_ofl5,power_density_ofl6,power_density_pp,power_scaling
1,693.15,693.15,0.99140214643572,10556.07463,693.15,693.15,693.15,693.15,29133.858267717,693.15,693.15,0,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,693.15,0,0,0,0,4166.1605735388,4162.2517290861,4161.3102361283,4160.3052308478,4160.4791836447,4161.3150682867,4162.0362461842,29133.858267717,22731954862232
50 changes: 45 additions & 5 deletions lfr/7pin_cardinal_demo/tests
Original file line number Diff line number Diff line change
@@ -1,16 +1,39 @@
[Tests]
[generate_mesh_neutronics]
type = RunApp
executable_pattern = 'cardinal*|griffin*'
executable_pattern = 'griffin*|cardinal*'
input = 'NTmesh.i'
cli_args = '--mesh-only'
[]
[generate_mesh_pre_cfd]
type = RunApp
executable_pattern = 'cardinal*'
input = 'NTmesh.i'
cli_args = '--mesh-only'
# this additional test is only to make the dependency for unzip_cfd
prereq = 'generate_mesh_neutronics'
[]
[generate_mesh_heat]
type = RunApp
executable_pattern = 'cardinal*|griffin*'
input = 'HCmesh.i'
cli_args = '--mesh-only'
[]
[unzip_xs]
type = RunCommand
command = 'tar -xvf LFR9g_P5.xml.tgz'
prereq = 'generate_mesh_neutronics'
[]
[unzip_cfd1]
type = RunCommand
command = 'tar -xvf 7pin_ic.fld.tgz'
prereq = 'generate_mesh_pre_cfd'
[]
[unzip_cfd]
type = RunCommand
command = 'tar -xvf 7pin.re2.tgz'
prereq = 'unzip_cfd1'
[]

# Syntax tests
[syntax_griffin]
Expand All @@ -19,7 +42,7 @@
check_input = true
executable_pattern = 'griffin*'
cli_args = "MultiApps/active='' Transfers/active=''"
prereq = generate_mesh_neutronics
prereq = 'unzip_xs'
max_time = 400
[]
[syntax_conduction]
Expand All @@ -35,6 +58,9 @@
input = 'nek.i'
check_input = true
executable_pattern = 'cardinal*'
prereq = 'unzip_cfd'
# need more memory
min_parallel = 32
[]


Expand All @@ -45,18 +71,32 @@
csvdiff = NT_out.csv
cli_args = "Executioner/richardson_max_its=1 Executioner/fixed_point_max_its=2"
executable_pattern = 'cardinal*'
prereq = 'syntax_griffin'
prereq = 'unzip_xs syntax_nekrs'
min_parallel = 144
max_time = 2000
mesh_mode = DISTRIBUTED
[]
[run_neutronics]
type = CSVDiff
input = 'NT.i'
cli_args = "Outputs/file_base=neutronics_only_out Executioner/force_fixed_point_solve=false Transfers/active='' MultiApps/active=''"
csvdiff = neutronics_only_out.csv
min_parallel = 8
# for devel testing
max_time = 500
executable_pattern = 'griffin*'
prereq = 'syntax_griffin'
abs_zero = 1e-4
rel_err = 1e-4
[]
[run_conduction]
type = CSVDiff
input = 'HC.i'
csvdiff = HC_out.csv
cli_args = "Executioner/dt=0.01 Executioner/end_time=0.1 Outputs/time_step_interval=1"
executable_pattern = 'cardinal*'
cli_args = "Executioner/dt=0.01 Executioner/end_time=0.1 Outputs/time_step_interval=1 Transfers/active='' MultiApps/active=''"
executable_pattern = 'cardinal*|moose*'
prereq = 'syntax_conduction'
min_parallel = 8
[]
[run_nekrs]
type = RunApp
Expand Down

0 comments on commit 6d85ed0

Please sign in to comment.