From a3d6046cc22c2822c732527ab31fed56fb9b29df Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Fri, 18 Feb 2022 10:36:08 -0700 Subject: [PATCH] Add regression testing for PBMR inputs, refs #53 --- ...cd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv | 3 + .../gold/oecd_pbmr400_ss1_phtn_flow_path.csv | 7 ++ .../oecd_pbmr400_ss2_mhtr_pebble_triso.csv | 4 ++ ...oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv | 3 + ...oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv | 7 ++ ...ecd_pbmr400_tr2_lf40_mhtr_pebble_triso.csv | 4 ++ htgr/pbmr400/steady/tests | 64 ++++++++++++++----- 7 files changed, 77 insertions(+), 15 deletions(-) create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_ss1_phtn_flow_path.csv create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_ss2_mhtr_pebble_triso.csv create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv create mode 100644 htgr/pbmr400/steady/gold/oecd_pbmr400_tr2_lf40_mhtr_pebble_triso.csv diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv new file mode 100644 index 000000000..85d90ed4e --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv @@ -0,0 +1,3 @@ +time,Decay_heat_tot,FRR_avg,Fiss_power_tot,NI_avg,NXe_avg,T_fuel_avg,T_mod_avg,T_ref_avg,Tt_pow,Tt_pow_check,eigenvalue,flux0_avg,flux1_avg,iodine_yield_avg,power_density_max,power_scaling,scaled_fast_flux_max,scaled_thermal_flux_max,xenon_yield_avg +0,25704000,1.5245216104979e+17,374296000,0,0,900,700,700,400000000,400000000,1,9.0972125609476e+17,9.0972125609476e+17,0,0,2.9898536896588e+18,0,0,0 +1,25704000,1.5244890404514e+17,374296000,0.33228066245312,0.069961311140756,900,700,700,400000000,400000000,0.97812617654251,9.4869507187592e+17,9.1709749412722e+17,0.063862452014911,6307002.4191342,3.0283398832533e+18,1.2239880893765e+18,1.6641083271698e+18,0.0043609085076789 diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_ss1_phtn_flow_path.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss1_phtn_flow_path.csv new file mode 100644 index 000000000..bb910554e --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss1_phtn_flow_path.csv @@ -0,0 +1,7 @@ +time,T_fluid_avg,T_fuel_avg,T_mod_avg,T_solid_avg,Tt_mfr_core_out,Tt_mfr_in,Tt_mfr_out,Tt_normalized_pow,Tt_pow,time_step_pp +0,773.15,900,700,773.15,252.33485276416,-192.69977534233,123.11785397528,0,0,0 +0.01,773.15,900,700,773.15,86.611982323528,-173.4297978081,56.869583415037,0,0,0.01 +0.05,773.15,900,700,773.15,154.92155962714,-173.4297978081,99.771257151472,0,0,0.04 +0.21,773.15,900,700,773.15,187.21563454771,-173.4297978081,120.0497586682,0,0,0.16 +0.85,773.14999999554,900,700,773.1499999949,192.52245741576,-173.4297978081,123.38201449603,0,0,0.64 +3.41,773.1498033553,900,700,773.14978393211,192.76392310825,-173.4297978081,123.53362948339,0,0,2.56 diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_ss2_mhtr_pebble_triso.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss2_mhtr_pebble_triso.csv new file mode 100644 index 000000000..23e2b2b4c --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_ss2_mhtr_pebble_triso.csv @@ -0,0 +1,4 @@ +time,fuel_average_temp,moderator_average_temp,pebble_core_average_temp,pebble_surface_temp +0,0,0,0,0 +1e+15,0,0,0,0 +2e+15,0,0,0,0 diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv new file mode 100644 index 000000000..d3aa2ab7d --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv @@ -0,0 +1,3 @@ +time,Decay_heat_tot,FRR_avg,Fiss_power_tot,NI_avg,NXe_avg,T_fuel_avg,T_fuel_max,T_fuel_max_kernel,T_mod_avg,Transient_decay_heat_tot,Tt_pow,decay_heat_scaling_factor,flux0_avg,flux1_avg,power_scaling,reactor_total_power_check,time_step_pp +0,25704000,1.5226817225987e+17,374296000,0.33174283191916,0.078414685186854,1070.2345080393,1252.3069950345,0,1058.1738699979,25704000,400000000,1,9.6350136477002e+17,9.7379576073868e+17,3.2558804624351e+19,400000000,0 +180000,25704000,6195682259.3209,15.23355687097,0.05286222745581,0.074568457905985,1070.2345080393,1252.3069950345,0,1058.1738699979,1658411.7984,16.279689733227,0.0645196,47025903730.319,39013471849.589,3.2558804624351e+19,1658427.0319569,180000 diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv new file mode 100644 index 000000000..c2ba1a59e --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv @@ -0,0 +1,7 @@ +time,T_fluid_avg,T_fuel_avg,T_mod_avg,T_solid_avg,Tt_pow,courant_condition,he_mass_tt,he_temp_avg,he_vol_tt,min_courant_num,pressure_avg,switch,time_step_pp,timestep_pp,trip_valve +0,773.1498033553,900,700,773.14978393211,0,0,836.50797263881,773.14984879563,149.30377617162,0,9123075.3591948,0,2.56,0,0 +0.01,773.1498027685,900,700,773.14978393061,0,8.3529046522884,836.41363257775,773.14984830227,149.30377617162,0.0011971883334332,9122032.367246,598.23363415754,0.01,0.99930769230769,0 +0.03,773.14980201063,900,700,773.14978392579,0,16.711510204839,836.11986334573,773.14984757067,149.30377617162,0.0011967799292136,9118784.2577271,598.23363415754,0.02,0.99792307692308,0 +0.07,773.14980125397,900,700,773.14978391241,0,33.399471261319,835.36053328338,773.14984668849,149.30377617162,0.0011976237494013,9110388.341142,598.23363415754,0.04,0.99515384615385,0 +0.15,773.14980066824,900,700,773.14978387987,0,66.581056176158,833.6547602585,773.1498458941,149.30377617162,0.0012015429702457,9091528.0226786,598.23363415754,0.08,0.98961538461538,0 +0.31,773.14980021172,900,700,773.14978380665,0,132.12384592471,830.12409596089,773.14984534562,149.30377617162,0.0012109850336265,9052493.5251907,598.23363415754,0.16,0.97853846153846,0 diff --git a/htgr/pbmr400/steady/gold/oecd_pbmr400_tr2_lf40_mhtr_pebble_triso.csv b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr2_lf40_mhtr_pebble_triso.csv new file mode 100644 index 000000000..2a1219d94 --- /dev/null +++ b/htgr/pbmr400/steady/gold/oecd_pbmr400_tr2_lf40_mhtr_pebble_triso.csv @@ -0,0 +1,4 @@ +time,fuel_average_temp,moderator_average_temp,pebble_core_average_temp,pebble_core_center_temp,pebble_surface_temp +0,0,0,0,0,0 +1e+15,0,0,0,0,0 +2e+15,0,0,0,0,0 diff --git a/htgr/pbmr400/steady/tests b/htgr/pbmr400/steady/tests index 461dbefa3..fbb147bf0 100644 --- a/htgr/pbmr400/steady/tests +++ b/htgr/pbmr400/steady/tests @@ -31,7 +31,8 @@ check_input = True executable_pattern = 'griffin*|blue_crab*|dire_wolf*|fenix*' cli_args = "MultiApps/active='' Transfers/active=''" - prereq = 'multiphysics' + prereq = 'steady_multiphysics' + min_parallel = 4 method = 'opt' # see Griffin #230 [] [transient_fluid_flow_syntax_only] @@ -51,6 +52,31 @@ cli_args = 'Executioner/num_steps=1' [] + # Steady regression tests + # Run these before so they dont overwrite the good checkpoint file for transients + [neutronics_only] + type = CSVDiff + input = 'oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.i' + csvdiff = 'oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.csv' + executable_pattern = 'griffin*|blue_crab*|dire_wolf*|fenix*' + cli_args = "MultiApps/active='' Transfers/active='' Executioner/nl_abs_tol=0.1" + method = 'opt' # see Griffin #230 + [] + [fluid_flow_only] + type = CSVDiff + input = 'oecd_pbmr400_ss1_phtn_flow_path.i' + csvdiff = 'oecd_pbmr400_ss1_phtn_flow_path.csv' + executable_pattern = 'pronghorn*|blue_crab*|fenix*' + cli_args = "MultiApps/active='' Transfers/active='' Executioner/num_steps=5" + [] + [fuel_performance_only] + type = CSVDiff + input = 'oecd_pbmr400_ss2_mhtr_pebble_triso.i' + csvdiff = 'oecd_pbmr400_ss2_mhtr_pebble_triso.csv' + executable_pattern = 'pronghorn*|blue_crab*|fenix*' + cli_args = 'Executioner/num_steps=2 Outputs/csv=true' + [] + # Run simulation, no results checking [steady_multiphysics] type = RunApp @@ -70,31 +96,39 @@ input = 'oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.i' executable_pattern = 'blue_crab*|fenix*' cli_args = 'Executioner/num_steps=1' - prereq = 'multiphysics' method = 'opt' # see Griffin #230 + # Checkpoint file must have been generated with same number of ranks + prereq = 'steady_multiphysics' + min_parallel = 4 [] - # Regression tests - [neutronics_syntax_only] + # Transient regression tests + [transient_neutronics_only] type = CSVDiff - input = 'oecd_pbmr400_ss0_rsnk_eigen_value_ix_dep.i' - check_input = True + working_directory = '../transient' + input = 'oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.i' + csvdiff = 'oecd_pbmr400_tr0_pplofc_rsnk_keff_calc.csv' executable_pattern = 'griffin*|blue_crab*|dire_wolf*|fenix*' - cli_args = "MultiApps/active='' Transfers/active=''" + cli_args = "MultiApps/active='' Transfers/active='' Executioner/num_steps=2" method = 'opt' # see Griffin #230 + # Checkpoint file must have been generated with same number of ranks + prereq = 'steady_multiphysics' + min_parallel = 4 [] - [fluid_flow_syntax_only] + [transient_fluid_flow_only] type = CSVDiff - input = 'oecd_pbmr400_ss1_phtn_flow_path.i' - check_input = True + working_directory = '../transient' + input = 'oecd_pbmr400_tr1_pplofc_phtn_flow_path.i' + csvdiff = 'oecd_pbmr400_tr1_pplofc_phtn_flow_path.csv' executable_pattern = 'pronghorn*|blue_crab*|fenix*' - cli_args = "MultiApps/active='' Transfers/active=''" + cli_args = "MultiApps/active='' Transfers/active='' Executioner/num_steps=5" [] - [fuel_performance_syntax_only] + [transient_fuel_performance_only] type = CSVDiff - input = 'oecd_pbmr400_ss2_mhtr_pebble_triso.i' - check_input = True + working_directory = '../transient' + input = 'oecd_pbmr400_tr2_pplofc_mhtr_pebble_triso.i' + csvdiff = 'oecd_pbmr400_tr2_pplofc_mhtr_pebble_triso.csv' executable_pattern = 'pronghorn*|blue_crab*|fenix*' - cli_args = 'Executioner/num_steps=1' + cli_args = 'Executioner/num_steps=2 Outputs/csv=true' [] []