forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement FaceArg evaluation for finite element variables
Refs idaholab#19420
- Loading branch information
1 parent
b35f52f
commit c309dac
Showing
5 changed files
with
143 additions
and
10 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
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,68 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 1 | ||
nx = 20 | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[fe][] | ||
[fv] | ||
type = MooseVariableFVReal | ||
[] | ||
[] | ||
|
||
[Kernels] | ||
[diff] | ||
type = Diffusion | ||
variable = fe | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[diff] | ||
type = FVDiffusion | ||
variable = fv | ||
coeff = 1 | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[left] | ||
type = DirichletBC | ||
variable = fe | ||
value = 0 | ||
boundary = left | ||
[] | ||
[right] | ||
type = DirichletBC | ||
variable = fe | ||
value = 1 | ||
boundary = right | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
[left] | ||
type = FVDirichletBC | ||
variable = fv | ||
value = 0 | ||
boundary = left | ||
[] | ||
[right] | ||
type = FVFunctorNeumannBC | ||
variable = fv | ||
functor = fe | ||
boundary = right | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = NEWTON | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
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,18 @@ | ||
[Tests] | ||
design = 'Functors/index.md' | ||
issues = '#19420' | ||
[exo] | ||
type = Exodiff | ||
input = test.i | ||
exodiff = test_out.e | ||
requirement = 'The system shall be able to accurately evaluate a finite element variable through the functor system in a finite volume Dirichlet boundary condition.' | ||
[] | ||
[jac] | ||
type = PetscJacobianTester | ||
ratio_tol = 1e-7 | ||
difference_tol = 1e-5 | ||
input = test.i | ||
run_sim = True | ||
requirement = 'The system shall compute the correct Jacobian when evaluating a finite element variable through the functor system in a finite volume Dirichlet boundary condition.' | ||
[] | ||
[] |