Skip to content

Commit

Permalink
Add unit tests for region_id_as_block_name
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar413 committed May 17, 2024
1 parent 04456c9 commit 9fc117c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@
exodiff = assembly_ductIDs_conflict.e
recover = false
[]
[hex_rid_as_block_name]
requirement = 'The system shall generate a 3D square assembly mesh from 2 pin types, with separate block names for each region ID in the mesh'
type = 'Exodiff'
input = 'assembly_hex.i'
cli_args = "Mesh/rmp/region_id_as_block_name=true
Outputs/file_base=assembly_rid_as_block_name"
exodiff = 'assembly_rid_as_block_name.e'
recover = false
[]
[hex_rid_as_block_name_err]
requirement = 'The system shall throw an error when generating an assembly mesh with manually defined block names and setting option to automatically define block names based on region IDs'
type = 'RunException'
input = 'assembly_hex.i'
cli_args = "Mesh/rmp/region_id_as_block_name=true
Mesh/amg/background_block_name='1 2'"
expect_err = 'background_block_name should not be specified in AssemblyMeshGenerator'
[]
[hex_ductIDs]
requirement = 'The system shall generate a 3D hexagonal assembly mesh with duct regions with assigned IDs'
type = 'Exodiff'
Expand Down
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions modules/reactor/test/tests/meshgenerators/pin_mesh_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,31 @@
exodiff = 'pin_only_in.e'
recover = false
[]
[square_rid_as_block_name]
requirement = 'The system shall generate a 2D square pin mesh with fuel, gap, clad, background regions, with separate block names for each region ID in the mesh'
type = 'Exodiff'
input = 'pin_square.i'
cli_args = "Mesh/rmp/region_id_as_block_name=true
Mesh/pin1/ring_radii='0.3385 0.3705 0.4665'
Mesh/pin1/mesh_intervals='1 1 1 1'
Mesh/pin1/region_ids='1 2 3 4'
Mesh/pin1/num_sectors='4'
Outputs/file_base=pin_rid_as_block_name"
exodiff = 'pin_rid_as_block_name.e'
recover = false
[]
[square_rid_as_block_name_err]
requirement = 'The system shall throw an error when generating a pin mesh with manually defined block names and setting option to automatically define block names based on region IDs'
type = 'RunException'
input = 'pin_square.i'
cli_args = "Mesh/rmp/region_id_as_block_name=true
Mesh/pin1/ring_radii='0.3385 0.3705 0.4665'
Mesh/pin1/mesh_intervals='1 1 1 1'
Mesh/pin1/region_ids='1 2 3 4'
Mesh/pin1/num_sectors='4'
Mesh/pin1/block_names='1 2 3 4'"
expect_err = 'block_names should not be specified in PinMeshGenerator'
[]
[2d_square_w_3d_info]
requirement = 'The system shall throw an error if 3d info is provided to a 2d mesh'
type = 'RunException'
Expand Down

0 comments on commit 9fc117c

Please sign in to comment.