Skip to content

Commit

Permalink
Add missing mesh modifier tests to mesh generators tests specs
Browse files Browse the repository at this point in the history
closes #13814
  • Loading branch information
GiudGiud committed Oct 11, 2022
1 parent deb5ffa commit 24a1f30
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
top_right = '4 4 1'
[]
[interior_nodeset]
type = GenerateBoundingBoxNodeSet
type = BoundingBoxNodeSetGenerator
input = SubdomainBoundingBox1
new_boundary = interior_ns
bottom_left = '2 2 0'
Expand Down
76 changes: 76 additions & 0 deletions test/tests/meshgenerators/block_deletion_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,80 @@
detail = 'blocks and erroring if a block does not exist.'
[]
[]

[delete]
requirement = "The system shall support removing elements including"
design = 'meshgenerators/BlockDeletionGenerator.md'
issues = '#11640 #17052'
[block_deletion_test2]
type = 'Exodiff'
input = 'block_deletion_test2.i'
exodiff = 'block_deletion_test2_out.e'

detail = "a 3D concave subdomain;"
[]
[block_deletion_test3]
type = 'Exodiff'
input = 'block_deletion_test3.i'
exodiff = 'block_deletion_test3_out.e'

detail = "a 2D interior subdomain;"
[]
[block_deletion_test4]
type = 'Exodiff'
input = 'block_deletion_test4.i'
exodiff = 'block_deletion_test4_out.e'

detail = "a 3D interior subdomain;"
[]
[block_deletion_test5]
type = 'Exodiff'
input = 'block_deletion_test5.i'
exodiff = 'block_deletion_test5_out.e'

detail = "a 2D non-concave subdomain;"
[]
[block_deletion_test6]
type = 'Exodiff'
input = 'block_deletion_test6.i'
exodiff = 'block_deletion_test6_out.e'

detail = "a 3D non-concave subdomain;"
[]
[block_deletion_test7]
type = 'Exodiff'
input = 'block_deletion_test7.i'
exodiff = 'block_deletion_test7_out.e'

detail = "a 2D removal of a union of disjoint pieces;"
[]
[block_deletion_test8]
type = 'Exodiff'
input = 'block_deletion_test8.i'
exodiff = 'block_deletion_test8_out.e'

detail = "a 2D removal of a subdomain containing a nodeset;"
[]
[block_deletion_test9]
type = 'Exodiff'
input = 'block_deletion_test9.i'
exodiff = 'block_deletion_test9_out.e'

detail = "a 2D removal of a subdomain that eliminates sideset;"
[]
[block_deletion_test10]
type = 'Exodiff'
input = 'block_deletion_test10.i'
exodiff = 'block_deletion_test10_out.e'

detail = "a 2D removal of a subdomain containing a sideset;"
[]
[block_deletion_test12]
type = 'Exodiff'
input = 'block_deletion_test12.i'
exodiff = 'block_deletion_test12_out.e'

detail = "a 2D concave subdomain with a cut across elements."
[]
[]
[]
30 changes: 28 additions & 2 deletions test/tests/meshgenerators/image_mesh_generator/tests
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Tests]
[./image_mesh_generator_test]
[image_mesh_generator_test]
type = 'Exodiff'
input = 'image_mesh_generator.i'
cli_args = '--mesh-only'
Expand All @@ -9,5 +9,31 @@
issues = '#11640'
mesh_mode = 'REPLICATED'
recover = false
[../]
[]

[image]
requirement = "The system shall support creating subdomains from"
issues = '#13814'
design = Mesh/index.md

[2d]
# Test ability to read in a single 20x20 image and assign subdomain ids based on image
type = Exodiff
input = image_2d.i
exodiff = image_2d_out.e
vtk = true
method = '!DBG' # This test is slow in debug b/c of calls to libMesh::MeshTools::libmesh_assert_valid_dof_ids

detail = "2D and"
[]
[3d]
# Test ability to read in a single 20x20x20 stack of images and assign subdomain ids based on image
type = Exodiff
input = image_3d.i
exodiff = image_3d_out.e
vtk = true

detail = "3D images."
[]
[]
[]
38 changes: 32 additions & 6 deletions test/tests/meshgenerators/lower_d_block_generator/tests
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
[Tests]
design = 'meshgenerators/LowerDBlockFromSidesetGenerator.md'
issues = '#11640'
[./mesh]
[mesh]
requirement = 'The system shall be able to create different subdomains'
[./ids]
[ids]
type = 'Exodiff'
input = 'ids.i'
exodiff = 'ids_out.e'
mesh_mode = 'REPLICATED'
recover = false
detail = 'using boundary ids.'
[../]
[./names]
[]
[names]
type = 'Exodiff'
input = 'names.i'
exodiff = 'names_out.e'
detail = 'using boundary names.'
mesh_mode = 'REPLICATED'
recover = false
[../]
[../]
[]
[]

[lower]
requirement = "The system shall support the creation of lower dimensional elements on an "
"existing sideset for"
issues = '#13814'
design = Mesh/index.md

[first_order]
type = Exodiff
exodiff = 'lower_d_out.e'
input = 'lower_d.i'
mesh_mode = REPLICATED

detail = "first-order and"
[]
[second_order]
type = Exodiff
exodiff = 'lower_d_second_order_out.e'
input = 'lower_d.i'
mesh_mode = REPLICATED
cli_args = 'Mesh/second_order=true Outputs/file_base=lower_d_second_order_out '
'GlobalParams/order=SECOND Mesh/gen/nx=5 Mesh/gen/ny=5'

detail = "second-order elements."
[]
[]
[]
8 changes: 8 additions & 0 deletions test/tests/meshgenerators/mesh_extruder_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
detail = 'from 2D quads to 3D hexes,'
[]

[tri_test]
type = 'Exodiff'
input = 'extruder_tri.i'
exodiff = 'out_tri.e'

detail = "2D triangular elements;"
[]

[new_subdomains]
type = 'Exodiff'
input = 'extrude_remap_layer1.i'
Expand Down
2 changes: 1 addition & 1 deletion test/tests/meshgenerators/subdomain_id_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

requirement = 'The system shall have the ability to change or overwrite the subdomain IDs of all elements in a mesh.'
design = 'meshgenerators/SubdomainIDGenerator.md'
issues = '#11640'
issues = '#11640 #13814'
[../]
[]
2 changes: 1 addition & 1 deletion test/tests/preconditioners/fsp/kitten.png

0 comments on commit 24a1f30

Please sign in to comment.