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 882558b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 5 deletions.
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
46 changes: 41 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,28 @@
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 = 'HC.i'
cli_args = "Outputs/file_base=neutronics_only_out Transfers/active='' MultiApps/active=''"
csvdiff = neutronics_only_out.csv
min_parallel = 8
executable_pattern = 'griffin*'
prereq = 'syntax_griffin'
[]
[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 882558b

Please sign in to comment.