-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21567 from yjung-anl/boundary_integrity_check_fix
BoundaryElemIntegrityCheckThread Bug Fix for Boundary Integrity Check on SideUserObject Using Lower-d Variable
- Loading branch information
Showing
3 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
test/tests/userobjects/side_user_object_no_boundary_error/lower_d_side_boundary.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
[Mesh] | ||
[square] | ||
type = GeneratedMeshGenerator | ||
nx = 3 | ||
ny = 3 | ||
dim = 2 | ||
[] | ||
build_all_side_lowerd_mesh = true | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
order = THIRD | ||
family = MONOMIAL | ||
block = 0 | ||
[] | ||
[uhat] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
block = BOUNDARY_SIDE_LOWERD_SUBDOMAIN | ||
[] | ||
[lambda] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
block = INTERNAL_SIDE_LOWERD_SUBDOMAIN | ||
[] | ||
[lambdab] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
block = BOUNDARY_SIDE_LOWERD_SUBDOMAIN | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[v] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
block = 0 | ||
initial_condition = '1' | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = MatDiffusion | ||
variable = u | ||
diffusivity = '1' | ||
block = 0 | ||
[] | ||
[source] | ||
type = CoupledForce | ||
variable = u | ||
v = v | ||
coef = '1' | ||
block = 0 | ||
[] | ||
[reaction] | ||
type = Reaction | ||
variable = uhat | ||
rate = '1' | ||
block = BOUNDARY_SIDE_LOWERD_SUBDOMAIN | ||
[] | ||
[uhat_coupled] | ||
type = CoupledForce | ||
variable = uhat | ||
block = BOUNDARY_SIDE_LOWERD_SUBDOMAIN | ||
v = lambdab | ||
coef = '1' | ||
[] | ||
[] | ||
|
||
[DGKernels] | ||
[surface] | ||
type = HFEMDiffusion | ||
variable = u | ||
lowerd_variable = lambda | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[all] | ||
type = HFEMDirichletBC | ||
boundary = 'left right top bottom' | ||
variable = u | ||
lowerd_variable = lambdab | ||
uhat = uhat | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = 'NEWTON' | ||
petsc_options_iname = '-pc_type -snes_linesearch_type -pc_factor_mat_solver_type' | ||
petsc_options_value = 'lu basic mumps' | ||
[] | ||
|
||
[Postprocessors] | ||
[avg] | ||
type = SideAverageValue | ||
boundary = 'left right top bottom' | ||
[] | ||
[] |
23 changes: 20 additions & 3 deletions
23
test/tests/userobjects/side_user_object_no_boundary_error/tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
[Tests] | ||
design = 'SideAverageValue.md' | ||
issues = '#9103' | ||
issues = '#9103 #21566' | ||
|
||
[./test] | ||
[test] | ||
type = RunException | ||
input = side_no_boundary.i | ||
expect_err = "missing required parameter 'Postprocessors/avg/boundary'" | ||
|
||
requirement = "The system shall error if the boundary is not specified when computing the average value of a variable on a boundary." | ||
[../] | ||
[] | ||
|
||
[lower_d_test] | ||
type = RunApp | ||
input = lower_d_side_boundary.i | ||
cli_args = "Postprocessors/avg/variable='lambdab'" | ||
mesh_mode = replicated | ||
requirement = "The system shall check if the lower-d variable is properly defined on a boundary." | ||
[] | ||
|
||
[lower_d_test_error] | ||
type = RunException | ||
input = lower_d_side_boundary.i | ||
cli_args = "Postprocessors/avg/variable='lambda'" | ||
mesh_mode = replicated | ||
expect_err="'avg' of type 'SideAverageValue' depends on variable\(s\) 'lambda'." | ||
requirement = "The system shall error if the lower-d variable is not properly defined on a boundary." | ||
[] | ||
[] |