Skip to content

Commit

Permalink
Add test for sideset around subdomain near a boundary that will trigg…
Browse files Browse the repository at this point in the history
…er sideset communication in parallel, refs idaholab#13814
  • Loading branch information
GiudGiud committed Oct 12, 2022
1 parent 23dd912 commit 96a28d0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[Mesh]
[./gmg]
type = GeneratedMeshGenerator
dim = 3
xmax = 3
ymax = 3
zmax = 3
nx = 3
ny = 3
nz = 3
[]

[central_block]
type = SubdomainBoundingBoxGenerator
input = gmg
block_id = 2
bottom_left = '1 0 0'
top_right = '3 2 2'
[]

[central_boundary_xminus]
type = SideSetsAroundSubdomainGenerator
input = central_block
block = 2
new_boundary = 7
normal = '-1 0 0'
[]

[central_boundary_xplus]
type = SideSetsAroundSubdomainGenerator
input = central_boundary_xminus
block = 2
new_boundary = 8
normal = '1 0 0'
[]

[central_boundary_y]
type = SideSetsAroundSubdomainGenerator
input = central_boundary_xplus
block = 2
new_boundary = 9
normal = '0 1 0'
[]

[central_boundary_z]
type = SideSetsAroundSubdomainGenerator
input = central_boundary_y
block = 2
new_boundary = 10
normal = '0 0 1'
[]
[]

[Outputs]
exodus = true
[]
17 changes: 15 additions & 2 deletions test/tests/meshgenerators/sideset_around_subdomain_generator/tests
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
exodiff = 'around_multi_created_subdomain_in.e'
recover = false

detail = 'around multiple subdomains within a larger domain, and'
detail = 'around multiple subdomains within a larger domain,'
[]

[two_inside]
Expand All @@ -42,7 +42,20 @@
exodiff = 'around_in.e'
recover = false

detail = 'around two blocks within a domain.'
detail = 'around two blocks within a domain, and'
[]

[adjacent_to_boundary]
type = 'Exodiff'
input = 'sideset_around_subdomain_including_boundary.i'
cli_args = "--mesh-only"
exodiff = 'sideset_around_subdomain_including_boundary_in.e'
recover = false

detail = "for a subdomain contained completely within a larger domain but containing part of that subdomain's boundary."
# To ensure the current coverage recipe triggers the communication of sides
min_parallel = 5
mesh_mode = 'distributed'
[]
[]

Expand Down

0 comments on commit 96a28d0

Please sign in to comment.