Skip to content

Commit

Permalink
Add tests for neutron leakage postprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
smpark7 committed Nov 14, 2023
1 parent ceb63e5 commit 6504d5c
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 8 deletions.
3 changes: 3 additions & 0 deletions tests/postprocessors/gold/neutron_leakage_out.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
time,group1_leakage,group2_leakage,total_leakage
0,0,0,0
1,1,10,11
103 changes: 103 additions & 0 deletions tests/postprocessors/neutron_leakage.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
[GlobalParams]
group_fluxes = 'group1 group2'
num_groups = 2
num_precursor_groups = 0
use_exp_form = false
temperature = 900
sss2_input = true
[]

[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
nx = 2
ny = 2
xmax = 1
ymax = 1
[]
[]

[Variables]
[group1]
[]
[group2]
[]
[]

[Kernels]
[group1_diffusion]
type = GroupDiffusion
variable = group1
group_number = 1
[]
[group2_diffusion]
type = GroupDiffusion
variable = group2
group_number = 2
[]
[]

[BCs]
[group1_left]
type = DirichletBC
variable = group1
boundary = left
value = 3
[]
[group1_right]
type = DirichletBC
variable = group1
boundary = right
value = 2
[]
[group2_left]
type = DirichletBC
variable = group2
boundary = left
value = 30
[]
[group2_right]
type = DirichletBC
variable = group2
boundary = right
value = 20
[]
[]

[Materials]
[mat]
type = MoltresJsonMaterial
base_file = mat.json
material_key = 'mat1'
interp_type = 'none'
group_constants = 'DIFFCOEF'
[]
[]

[Executioner]
type = Steady
[]

[Postprocessors]
[group1_leakage]
type = NeutronLeakage
variable = group1
boundary = 'right'
group_number = 1
[]
[group2_leakage]
type = NeutronLeakage
variable = group2
boundary = 'right'
group_number = 2
[]
[total_leakage]
type = TotalNeutronLeakage
boundary = 'right'
[]
[]

[Outputs]
csv = true
[]
20 changes: 12 additions & 8 deletions tests/postprocessors/tests
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
[Tests]
[./side_weighted_integral]
type = 'Exodiff'
[side_weighted_integral]
type = Exodiff
input = 'side_weighted_integral.i'
exodiff = 'side_weighted_integral_out.e'

requirement = 'The system shall compute the weighted integral sum of a variable over a side.'
[../]
[./side_weighted_integral_RZ]
type = 'Exodiff'
[]
[side_weighted_integral_RZ]
type = Exodiff
input = 'side_weighted_integral_RZ.i'
exodiff = 'side_weighted_integral_RZ_out.e'

requirement = 'The system shall compute the weighted integral sum of a variable over a side in RZ coordinates.'
[../]
[]
[neutron_leakage]
type = CSVDiff
input = 'neutron_leakage.i'
csvdiff = 'neutron_leakage_out.csv'
requirement = 'The system shall compute group-wise and total neutron leakage'
[]
[]

0 comments on commit 6504d5c

Please sign in to comment.