Skip to content

Commit

Permalink
Add requirement to updated mesh modifier tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aeslaughter committed Oct 20, 2020
1 parent d89a8eb commit eb17477
Show file tree
Hide file tree
Showing 30 changed files with 809 additions and 632 deletions.
44 changes: 27 additions & 17 deletions test/tests/mesh_modifiers/add_all_side_sets/tests
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
[Tests]
deprecated = True
[./simple]
type = 'Exodiff'
input = 'simple.i'
exodiff = 'simple_in.e'
cli_args = '--mesh-only'
recover = false
no_error_deprecated = true
[../]
issues = '#13814'
design = Mesh/index.md

[./less_simple]
type = 'Exodiff'
input = 'less_simple.i'
exodiff = 'less_simple_in.e'
cli_args = '--mesh-only'
recover = false
no_error_deprecated = true
[../]
[normal]
requirement = "The system shall support assigning boundary identifiers base on normal vectors of "
"an element face for"
[simple]
type = 'Exodiff'
input = 'simple.i'
exodiff = 'simple_in.e'
cli_args = '--mesh-only'
recover = false
mesh_mode = REPLICATED

detail = "a rectangular cuboid and"
[]

[less_simple]
type = 'Exodiff'
input = 'less_simple.i'
exodiff = 'less_simple_in.e'
cli_args = '--mesh-only'
recover = false
mesh_mode = REPLICATED

detail = "non regular geometry."
[]
[]
[]
50 changes: 29 additions & 21 deletions test/tests/mesh_modifiers/add_extra_nodeset/tests
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
[Tests]
deprecated = True
[./test]
type = 'Exodiff'
input = 'extra_nodeset_test.i'
exodiff = 'out.e'
no_error_deprecated = true
[../]
issues = '#13814'
design = Mesh/index.md

[./test_coord]
type = 'Exodiff'
input = 'extra_nodeset_coord_test.i'
exodiff = 'out.e'
prereq = 'test'
no_error_deprecated = true
[../]
[extra]
requirement = "The system shall support assigning boundary identifiers based on "

[./test_bad_coord]
type = 'RunException'
input = 'extra_nodeset_coord_test.i'
expect_err = "Unable to locate the following point within the domain"
cli_args = 'Mesh/middle_node/coord="0.5 10"'
no_error_deprecated = true
[../]
[test]
type = 'Exodiff'
input = 'extra_nodeset_test.i'
exodiff = 'out.e'

detail = "a nodal id,"
[]

[test_coord]
type = 'Exodiff'
input = 'extra_nodeset_coord_test.i'
exodiff = 'out.e'

detail = "a spatial coordinate, and"
[]

[test_bad_coord]
type = 'RunException'
input = 'extra_nodeset_coord_test.i'
expect_err = "Unable to locate the following point within the domain"
cli_args = 'Mesh/middle_node/coord="0.5 10"'

detail = "if the supplied location is outside of the domain."
[]
[]
[]
57 changes: 35 additions & 22 deletions test/tests/mesh_modifiers/add_side_sets/tests
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
[Tests]
deprecated = True
[./cylinder_points]
type = 'Exodiff'
input = 'cylinder_points.i'
exodiff = 'cylinder_points_out.e'
no_error_deprecated = true
[../]

[./cyliner_normal]
type = 'Exodiff'
input = 'cylinder_normals.i'
exodiff = 'cylinder_normals_out.e'
group = 'requirements'
no_error_deprecated = true
[../]

[./cylinder_points_fixed]
type = 'Exodiff'
input = 'cylinder_normals_fixed.i'
exodiff = 'cylinder_normals_fixed_out.e'
no_error_deprecated = true
[../]
issues = '#13814'
design = Mesh/index.md

[cylinder]
requirement = "The system shall support assigning boundary identifiers based on the normal of a "
"element face for "

[points]
type = 'Exodiff'
input = 'cylinder_points.i'
exodiff = 'cylinder_points_out.e'
mesh_mode = REPLICATED

detail = 'specified points and '
[]

[normal]
type = 'Exodiff'
input = 'cylinder_normals.i'
exodiff = 'cylinder_normals_out.e'
mesh_mode = REPLICATED

detail = 'specified directions with'

[]

[points_fixed]
type = 'Exodiff'
input = 'cylinder_normals_fixed.i'
exodiff = 'cylinder_normals_fixed_out.e'
mesh_mode = REPLICATED

detail = 'fixed normal application.'
[]
[]
[]
143 changes: 79 additions & 64 deletions test/tests/mesh_modifiers/add_side_sets_from_bounding_box/tests
Original file line number Diff line number Diff line change
@@ -1,67 +1,82 @@
[Tests]
deprecated = True
[./test_add_side_sets_from_bounding_box]
type = 'Exodiff'
input = 'add_side_sets_from_bounding_box.i'
exodiff = 'add_side_sets_from_bounding_box_out.e'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./test_multiple_boundary_ids]
type = 'Exodiff'
input = 'multiple_boundary_ids.i'
exodiff = 'multiple_boundary_ids_out.e'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./test_multiple_boundary_ids_3d]
type = 'Exodiff'
input = 'multiple_boundary_ids_3d.i'
exodiff = 'multiple_boundary_ids_3d_out.e'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./error_no_elements_in_bounding_box]
type = 'RunException'
input = 'error_no_elements_in_bounding_box.i'
expect_err = 'No elements found within the bounding box'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./error_no_side_sets_found]
type = 'RunException'
input = 'error_no_side_sets_found.i'
expect_err = 'No side sets found on active elements within the bounding box'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./error_boundary_number]
type = 'RunException'
input = 'error_boundary_number.i'
expect_err = 'Must be 2 boundary inputs or more.'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./error_no_nodes_found]
type = 'RunException'
input = 'error_no_nodes_found.i'
expect_err = 'No nodes found within the bounding box'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./test_overlapping]
type = 'Exodiff'
input = 'overlapping_sidesets.i'
exodiff = 'overlapping_sidesets_out.e'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
[./test_overlapping_sidesets_error]
type = 'RunException'
input = 'overlapping_sidesets_not_found.i'
expect_err = 'No nodes found within the bounding box'
mesh_mode = REPLICATED
no_error_deprecated = true
[../]
issues = '#13814'
design = Mesh/index.md

[bounding]
requirement = "The system shall support assigning boundary identifiers based the bounding box "
[test_add_side_sets_from_bounding_box]
type = 'Exodiff'
input = 'add_side_sets_from_bounding_box.i'
exodiff = 'add_side_sets_from_bounding_box_out.e'

detail = "for all subdomain sides as well as"
[]
[test_multiple_boundary_ids]
type = 'Exodiff'
input = 'multiple_boundary_ids.i'
exodiff = 'multiple_boundary_ids_out.e'

detail = "for all subdomain sides including those with multiple existing identifiers in 2D "
"and"
[]
[test_multiple_boundary_ids_3d]
type = 'Exodiff'
input = 'multiple_boundary_ids_3d.i'
exodiff = 'multiple_boundary_ids_3d_out.e'

detail = "3D."
[]
[]
[error]
requirement = "The system shall support assigning boundary identifiers based the bounding box of "
"a subdomain and error if "

[error_no_elements_in_bounding_box]
type = 'RunException'
input = 'error_no_elements_in_bounding_box.i'
expect_err = 'No elements found within the bounding box'

detail = "if no elements are located in the given bounding box;"
[]
[error_no_side_sets_found]
type = 'RunException'
input = 'error_no_side_sets_found.i'
expect_err = 'No side sets found on active elements within the bounding box'

detail = "if no sides are located in the given bounding box;"
[]
[error_no_nodes_found]
type = 'RunException'
input = 'error_no_nodes_found.i'
expect_err = 'No nodes found within the bounding box'

detail = "if no nodes are located in the given bounding box; and"
[]
[error_boundary_number]
type = 'RunException'
input = 'error_boundary_number.i'
expect_err = 'Must be 2 boundary inputs or more.'

detail = "if the incorrect boundary inputs are supplied."
[]
[]
[overlap]
requirement = "The system shall support assigning boundary identifiers based the bounding box of "
"a subdomain"

[test_overlapping]
type = 'Exodiff'
input = 'overlapping_sidesets.i'
exodiff = 'overlapping_sidesets_out.e'

detail = "if existing boundaries overlap and"
[]
[test_overlapping_sidesets_error]
type = 'RunException'
input = 'overlapping_sidesets_not_found.i'
expect_err = 'No nodes found within the bounding box'

detail = "error if no nodes are located in the given bounding box."
[]
[]
[]
48 changes: 28 additions & 20 deletions test/tests/mesh_modifiers/assign_element_subdomain_id/tests
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
[Tests]
deprecated = True
[./quad_test]
type = 'Exodiff'
input = 'quad_with_subdomainid_test.i'
exodiff = 'out_quad_subdomain_id.e'
no_error_deprecated = true
[../]
[./quad_elementid_test]
type = 'Exodiff'
input = 'quad_with_elementid_subdomainid_test.i'
exodiff = 'out_quad_subdomain_id.e'
prereq = quad_test
no_error_deprecated = true
[../]
[./tri_test]
type = 'Exodiff'
input = 'tri_with_subdomainid_test.i'
exodiff = 'out_tri_subdomain_id.e'
no_error_deprecated = true
[../]
issues = '#13814'
design = Mesh/index.md

[assign]
requirement = "The system shall support assigning subdomain identifiers "

[quad_test]
type = 'Exodiff'
input = 'quad_with_subdomainid_test.i'
exodiff = 'out_quad_subdomain_id.e'

detail = "given a list of ids for each element; and"
[]
[quad_elementid_test]
type = 'Exodiff'
input = 'quad_with_elementid_subdomainid_test.i'
exodiff = 'out_quad_subdomain_id.e'

detail = "given a list of elements and ids for quadrilateral and"
[]
[tri_test]
type = 'Exodiff'
input = 'tri_with_subdomainid_test.i'
exodiff = 'out_tri_subdomain_id.e'

detail = "triangular elements."
[]
[]
[]
11 changes: 7 additions & 4 deletions test/tests/mesh_modifiers/assign_subdomain_id/tests
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[Tests]
deprecated = True
[./test]
issues = '#13814'
design = Mesh/index.md

[test]
type = 'Exodiff'
input = 'assign_subdomain_id.i'
exodiff = 'assign_subdomain_id_out.e'
no_error_deprecated = true
[../]

requirement = "The system shall support assigning subdomain identifiers for the entire domain."
[]
[]

0 comments on commit eb17477

Please sign in to comment.