diff --git a/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_1d_sbdids_in.e b/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_1d_sbdids_in.e new file mode 100644 index 000000000000..c70a2ad4e87f Binary files /dev/null and b/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_1d_sbdids_in.e differ diff --git a/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_2d_bcids_in.e b/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_2d_bcids_in.e new file mode 100644 index 000000000000..8e911e22c3d0 Binary files /dev/null and b/test/tests/meshgenerators/poly2tri_mesh_generator/gold/poly2tri_from_2d_bcids_in.e differ diff --git a/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_1d_sbdids.i b/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_1d_sbdids.i new file mode 100644 index 000000000000..146f474b798b --- /dev/null +++ b/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_1d_sbdids.i @@ -0,0 +1,38 @@ +[Mesh] + [./left_bdy] + type = PolyLineMeshGenerator + points = '-3.0 0.0 0.0 + -2.0 -1.0 0.0 + -1.0 0.0 0.0 + -2.0 2.0 0.0' + loop = true + [] + [./right_bdy] + type = PolyLineMeshGenerator + points = '3.0 0.0 0.0 + 2.0 -1.0 0.0 + 1.0 0.0 0.0 + 2.0 2.0 0.0' + loop = true + [] + [./right_sbd1] + type = SubdomainIDGenerator + input = right_bdy + subdomain_id = 1 + [] + [./both_bdy] + type = CombinerGenerator + inputs = 'left_bdy right_sbd1' + [] + [./triang] + type = Poly2TriMeshGenerator + boundary = 'both_bdy' + input_subdomain_names = 1 # only the right half + refine_boundary = true + desired_area = 0.1 + [] +[] + +[Outputs] + exodus = true +[] diff --git a/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_2d_bcids.i b/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_2d_bcids.i new file mode 100644 index 000000000000..fa88f337c1bd --- /dev/null +++ b/test/tests/meshgenerators/poly2tri_mesh_generator/poly2tri_from_2d_bcids.i @@ -0,0 +1,42 @@ +[Mesh] + [./left_bdy] + type = PolyLineMeshGenerator + points = '-3.0 0.0 0.0 + -2.0 -1.0 0.0 + -1.0 0.0 0.0 + -2.0 2.0 0.0' + loop = true + [] + [./right_bdy] + type = PolyLineMeshGenerator + points = '3.0 0.0 0.0 + 2.0 -1.0 0.0 + 1.0 0.0 0.0 + 2.0 2.0 0.0' + loop = true + [] + [./left_2d] + type = Poly2TriMeshGenerator + boundary = 'left_bdy' + [] + [./right_2d] + type = Poly2TriMeshGenerator + boundary = 'right_bdy' + output_boundary_id = 1 + [] + [./both_2d] + type = CombinerGenerator + inputs = 'left_2d right_2d' + [] + [./triang] + type = Poly2TriMeshGenerator + boundary = 'both_2d' + input_boundary_names = 1 # only the right half + refine_boundary = true + desired_area = 0.1 + [] +[] + +[Outputs] + exodus = true +[] diff --git a/test/tests/meshgenerators/poly2tri_mesh_generator/tests b/test/tests/meshgenerators/poly2tri_mesh_generator/tests index 32c5cf659db2..48692ee4a3ee 100644 --- a/test/tests/meshgenerators/poly2tri_mesh_generator/tests +++ b/test/tests/meshgenerators/poly2tri_mesh_generator/tests @@ -36,13 +36,29 @@ recover = false detail = "or a 2D input mesh" [] + [subboundary_1d] + type = 'Exodiff' + input = 'poly2tri_from_1d_sbdids.i' + cli_args = '--mesh-only' + exodiff = 'poly2tri_from_1d_sbdids_in.e' + recover = false + detail = "or a specified subset" + [] + [subdomain_2d] + type = 'Exodiff' + input = 'poly2tri_from_2d_bcids.i' + cli_args = '--mesh-only' + exodiff = 'poly2tri_from_2d_bcids_in.e' + recover = false + detail = "in either case" + [] [with_holes] type = 'Exodiff' input = 'poly2tri_with_holes.i' cli_args = '--mesh-only' exodiff = 'poly2tri_with_holes_in.e' recover = false - detail = "respecting any specified interior 'hole' meshes" + detail = "while respecting any specified interior 'hole' meshes" [] [stitching] type = 'Exodiff'