forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information to FVFluxBC error on faces it should not be triggered on
Add test for FVFluxBCs to capture this error Add test for FVNeumannBC for regular use refs idaholab#16882
- Loading branch information
1 parent
e8c00b9
commit 0b08823
Showing
5 changed files
with
114 additions
and
3 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
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,73 @@ | ||
[Mesh] | ||
[mesh] | ||
type = CartesianMeshGenerator | ||
dim = 2 | ||
dx = '1 1' | ||
dy = '1' | ||
ix = '5 5' | ||
iy = '5' | ||
subdomain_id = '1 1' | ||
[] | ||
[internal_sideset] | ||
type = ParsedGenerateSideset | ||
combinatorial_geometry = 'x<1.01 & x>0.99' | ||
included_subdomain_ids = 1 | ||
new_sideset_name = 'center' | ||
input = 'mesh' | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
fv = true | ||
block = 1 | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[diff] | ||
type = FVDiffusion | ||
variable = u | ||
coeff = 1 | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
inactive = 'center' | ||
[left] | ||
type = FVDirichletBC | ||
variable = u | ||
boundary = left | ||
value = 1 | ||
[] | ||
[right] | ||
type = FVNeumannBC | ||
variable = u | ||
boundary = right | ||
value = 4 | ||
[] | ||
# Internal center sideset, should cause erroring out | ||
[center] | ||
type = FVNeumannBC | ||
variable = u | ||
boundary = center | ||
value = 0 | ||
[] | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = off | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = 'Newton' | ||
petsc_options_iname = '-pc_type' | ||
petsc_options_value = 'lu' | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
Binary file not shown.
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,28 @@ | ||
[Tests] | ||
[fv_neumann] | ||
design = 'FVNeumannBC.md' | ||
issues = '#16477' | ||
type = 'Exodiff' | ||
input = 'fv_neumannbc.i' | ||
exodiff = 'fv_neumannbc_out.e' | ||
requirement = 'The system shall run a simple 1D diffusion problem with a Neumann BC value.' | ||
[] | ||
[fvbcs_internal] | ||
design = 'FVNeumannBC.md' | ||
issues = '#16882' | ||
type = RunException | ||
input = 'fv_neumannbc.i' | ||
cli_args = "FVBCs/inactive=''" | ||
expect_err = 'A FVFluxBC is being triggered on an internal face with centroid' | ||
requirement = 'The system shall error out if FVFluxBC, in this case a FVNeumannBC, are used internally.' | ||
[] | ||
[fvbcs_disconnected_from_variable] | ||
design = 'FVNeumannBC.md' | ||
issues = '#16882' | ||
type = RunException | ||
input = 'fv_neumannbc.i' | ||
expect_err = 'A FVFluxBC is being triggered on a face which does not connect to a block with the relevant finite volume variable.' | ||
cli_args = "Mesh/mesh/subdomain_id='1 2'" | ||
requirement = 'The system shall error out if FVFluxBC are used on a mesh face that is not connected to an element with the corresponding finite volume variable.' | ||
[] | ||
[] |
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