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 #16115 from GiudGiud/PR_FV_objects
Enable multiple objects, postprocs, transfers for FV variables
- Loading branch information
Showing
48 changed files
with
775 additions
and
62 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
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
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 | ||
[] |
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
66 changes: 66 additions & 0 deletions
66
test/tests/postprocessors/element_variable_value/elemental_variable_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,66 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 10 | ||
ny = 1 | ||
ymax = 0.1 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
fv = true | ||
[../] | ||
[] | ||
|
||
[FVKernels] | ||
[./diff] | ||
type = FVDiffusion | ||
variable = u | ||
coeff = 0.1 | ||
[../] | ||
[] | ||
|
||
[FVBCs] | ||
[./left] | ||
type = FVDirichletBC | ||
variable = u | ||
boundary = left | ||
value = 1 | ||
[../] | ||
[./right] | ||
type = FVDirichletBC | ||
variable = u | ||
boundary = right | ||
value = 10 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = PJFNK | ||
petsc_options_iname = '-pc_type -pc_hypre_type' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Postprocessors] | ||
[./elem_left] | ||
type = ElementalVariableValue | ||
variable = u | ||
elementid = 0 | ||
[] | ||
[./elem_right] | ||
type = ElementalVariableValue | ||
variable = u | ||
elementid = 9 | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
csv = true | ||
[] |
3 changes: 3 additions & 0 deletions
3
test/tests/postprocessors/element_variable_value/gold/elemental_variable_value_fv_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,elem_left,elem_right | ||
0,0,0 | ||
1,1.45,9.55 |
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
File renamed without changes.
Binary file added
BIN
+57.3 KB
...tests/postprocessors/interface_value/gold/InterfaceAverageVariableValuePostprocessor_fv.e
Binary file not shown.
Binary file added
BIN
+55.2 KB
...ests/postprocessors/interface_value/gold/InterfaceIntegralVariableValuePostprocessor_fe.e
Binary file not shown.
Binary file added
BIN
+57.3 KB
...ests/postprocessors/interface_value/gold/InterfaceIntegralVariableValuePostprocessor_fv.e
Binary file not shown.
Binary file removed
BIN
-54.3 KB
...postprocessors/interface_value/gold/interface_integral_variable_value_postprocessor_out.e
Binary file not shown.
Oops, something went wrong.