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.
Use field variables in two transfers, add postprocessor FV tests, efs i…
- Loading branch information
Showing
16 changed files
with
568 additions
and
12 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
Binary file added
BIN
+32.2 KB
test/tests/postprocessors/element_integral_var_pps/gold/pps_old_value_fv_out.e
Binary file not shown.
84 changes: 84 additions & 0 deletions
84
test/tests/postprocessors/element_integral_var_pps/pps_old_value_fv.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,84 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 4 | ||
ny = 4 | ||
elem_type = QUAD4 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
fv = true | ||
initial_condition = 1 | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./force_fn] | ||
type = ParsedFunction | ||
value = '1' | ||
[../] | ||
|
||
[./exact_fn] | ||
type = ParsedFunction | ||
value = 't' | ||
[../] | ||
[] | ||
|
||
[FVKernels] | ||
[./diff_u] | ||
type = FVDiffusion | ||
variable = u | ||
coeff = '1' | ||
block = '0' | ||
[../] | ||
|
||
[./ffn_u] | ||
type = FVBodyForce | ||
variable = u | ||
function = force_fn | ||
[../] | ||
[] | ||
|
||
[FVBCs] | ||
[./all_u] | ||
type = FVFunctionDirichletBC | ||
variable = u | ||
boundary = '0 1 2 3' | ||
function = exact_fn | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./a] | ||
type = ElementIntegralVariablePostprocessor | ||
variable = u | ||
execute_on = 'initial timestep_end' | ||
[../] | ||
|
||
[./total_a] | ||
type = TotalVariableValue | ||
value = a | ||
execute_on = 'initial timestep_end' | ||
[../] | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = 'PJFNK' | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'timestep_end' | ||
exodus = true | ||
[] |
Binary file added
BIN
+57.2 KB
...stprocessors/interface_value/gold/interface_average_variable_value_postprocessor_fv_out.e
Binary file not shown.
Binary file added
BIN
+57.2 KB
...tprocessors/interface_value/gold/interface_integral_variable_value_postprocessor_fv_out.e
Binary file not shown.
Binary file modified
BIN
+888 Bytes
(100%)
...postprocessors/interface_value/gold/interface_integral_variable_value_postprocessor_out.e
Binary file not shown.
172 changes: 172 additions & 0 deletions
172
.../tests/postprocessors/interface_value/interface_average_variable_value_postprocessor_fv.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,172 @@ | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 6 | ||
xmax = 3 | ||
ny = 9 | ||
ymax = 3 | ||
elem_type = QUAD4 | ||
[] | ||
[./subdomain_id] | ||
input = gen | ||
type = SubdomainBoundingBoxGenerator | ||
bottom_left = '0 0 0' | ||
top_right = '2 1 0' | ||
block_id = 1 | ||
[../] | ||
[./interface] | ||
input = subdomain_id | ||
type = SideSetsBetweenSubdomainsGenerator | ||
primary_block = '0' | ||
paired_block = '1' | ||
new_boundary = 'interface' | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./fn_exact] | ||
type = ParsedFunction | ||
value = 'x*x+y*y' | ||
[../] | ||
|
||
[./ffn] | ||
type = ParsedFunction | ||
value = -4 | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
fv = true | ||
[../] | ||
[] | ||
|
||
|
||
[FVKernels] | ||
[./diff] | ||
type = FVDiffusion | ||
variable = u | ||
coeff = '1' | ||
[../] | ||
|
||
[./ffn] | ||
type = FVBodyForce | ||
variable = u | ||
function = ffn | ||
[../] | ||
[] | ||
|
||
[FVBCs] | ||
[./all] | ||
type = FVFunctionDirichletBC | ||
variable = u | ||
boundary = '0 1 2 3' | ||
function = fn_exact | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./stateful1] | ||
type = StatefulMaterial | ||
block = 0 | ||
initial_diffusivity = 5 | ||
[../] | ||
[./stateful2] | ||
type = StatefulMaterial | ||
block = 1 | ||
initial_diffusivity = 2 | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./diffusivity_1] | ||
type = MaterialRealAux | ||
property = diffusivity | ||
variable = diffusivity_1 | ||
[] | ||
[./diffusivity_2] | ||
type = MaterialRealAux | ||
property = diffusivity | ||
variable = diffusivity_2 | ||
[] | ||
[] | ||
|
||
[AuxVariables] | ||
[./diffusivity_1] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
[] | ||
[./diffusivity_2] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
[] | ||
[] | ||
|
||
|
||
|
||
[Postprocessors] | ||
[./diffusivity_average] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = average | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[./diffusivity_jump_primary_secondary] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = jump_primary_minus_secondary | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[./diffusivity_jump_secondary_primary] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = jump_secondary_minus_primary | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[./diffusivity_jump_abs] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = jump_abs | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[./diffusivity_primary] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = primary | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[./diffusivity_secondary] | ||
type = InterfaceAverageVariableValuePostprocessor | ||
interface_value_type = secondary | ||
variable = diffusivity_1 | ||
neighbor_variable = diffusivity_2 | ||
execute_on = TIMESTEP_END | ||
boundary = 'interface' | ||
[../] | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = NEWTON | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
Oops, something went wrong.