Skip to content

Commit

Permalink
Test coverage for restricted outer boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Aug 8, 2022
1 parent b5b53f9 commit 009df73
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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
[]
Original file line number Diff line number Diff line change
@@ -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
[]
18 changes: 17 additions & 1 deletion test/tests/meshgenerators/poly2tri_mesh_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 009df73

Please sign in to comment.