-
Notifications
You must be signed in to change notification settings - Fork 1.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 #28978 from GiudGiud/PR_aux_ik
Support auxiliary neighbor variables for FE IKs
- Loading branch information
Showing
15 changed files
with
279 additions
and
18 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
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
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
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
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,88 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 1 | ||
nx = 10 | ||
xmax = 2 | ||
[] | ||
[subdomain1] | ||
input = gen | ||
type = SubdomainBoundingBoxGenerator | ||
bottom_left = '1.0 0 0' | ||
block_id = 1 | ||
top_right = '2.0 1.0 0' | ||
[] | ||
[interface] | ||
type = SideSetsBetweenSubdomainsGenerator | ||
input = 'subdomain1' | ||
primary_block = '0' | ||
paired_block = '1' | ||
new_boundary = 'primary0_interface' | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
type = MooseVariableFVReal | ||
block = '0' | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[v] | ||
type = MooseVariableFVReal | ||
block = '1' | ||
initial_condition = 4 | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[diff_u] | ||
type = FVDiffusion | ||
variable = u | ||
block = '0' | ||
coeff = 1 | ||
[] | ||
[] | ||
|
||
[FVInterfaceKernels] | ||
[interface] | ||
type = FVDiffusionInterface | ||
variable1 = u | ||
variable2 = 'v' | ||
boundary = 'primary0_interface' | ||
coeff1 = 1 | ||
coeff2= 2 | ||
subdomain1 = 0 | ||
subdomain2 = 1 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = PJFNK | ||
nl_rel_tol = 1e-10 | ||
nl_forced_its = 2 | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
[] | ||
|
||
[Postprocessors] | ||
[min] | ||
type = ElementExtremeValue | ||
variable = 'u' | ||
value_type = 'min' | ||
block = '0' | ||
[] | ||
[max] | ||
type = ElementExtremeValue | ||
variable = 'u' | ||
block = '0' | ||
[] | ||
[] |
3 changes: 3 additions & 0 deletions
3
test/tests/fviks/auxiliary_variables/gold/fv_reaction_1D_out.csv
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,3 @@ | ||
time,max,min | ||
0,0,0 | ||
1,4,4 |
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,20 @@ | ||
[Tests] | ||
issues = '#28977' | ||
design = 'FVInterfaceKernels/index.md' | ||
[aux] | ||
requirement = 'The system shall be able to solve problems with auxiliary variables coupled through interface kernels' | ||
[fv] | ||
type = CSVDiff | ||
input = 'fv_reaction_1D.i' | ||
csvdiff= 'fv_reaction_1D_out.csv' | ||
detail = 'to finite volume variables,' | ||
[] | ||
[fv_res_jac] | ||
type = CSVDiff | ||
input = 'fv_reaction_1D.i' | ||
csvdiff= 'fv_reaction_1D_out.csv' | ||
cli_args = 'Executioner/residual_and_jacobian_together=true' | ||
detail = 'to finite volume variables when computing the residual and Jacobian together,' | ||
[] | ||
[] | ||
[] |
3 changes: 3 additions & 0 deletions
3
test/tests/interfacekernels/auxiliary_variables/gold/reaction_1D_steady_out.csv
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,3 @@ | ||
time,max,min | ||
0,0,0 | ||
1,4,4 |
Oops, something went wrong.