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.
Add test for location dependent material properties in FV, evaluated …
…at boundary by FVDiffusion kernel, idaholab#15194
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
test/tests/materials/boundary_material/fv_material_quadrature.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,78 @@ | ||
# | ||
# Parsed material properties depend on the physical location of the element | ||
# This requires the initialization of the quadrature in the FVFlux loop | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
xmin = 0 | ||
xmax = 1 | ||
ymin = 0 | ||
ymax = 1 | ||
nx = 4 | ||
ny = 4 | ||
elem_type = QUAD9 | ||
[] | ||
|
||
[Functions] | ||
[linear_x] | ||
type = ParsedFunction | ||
value = 'x' | ||
[] | ||
[] | ||
|
||
[Variables] | ||
[u] | ||
family = MONOMIAL | ||
order = CONSTANT | ||
fv = true | ||
[] | ||
[] | ||
|
||
[FVKernels] | ||
[diff] | ||
type = FVDiffusion | ||
variable = u | ||
coeff = k1 | ||
[] | ||
|
||
[r] | ||
type = FVReaction | ||
variable = u | ||
[] | ||
[] | ||
|
||
[FVBCs] | ||
[all] | ||
type = FVDirichletBC | ||
variable = u | ||
boundary = 'left right bottom top' | ||
value = 1 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[k1] | ||
type = ADGenericFunctionMaterial | ||
prop_names = 'k1' | ||
prop_values = linear_x | ||
block = 0 | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
solve_type = NEWTON | ||
|
||
petsc_options_iname = '-pc_type' | ||
petsc_options_value = 'lu' | ||
[] | ||
|
||
[Problem] | ||
kernel_coverage_check = false | ||
[] | ||
|
||
[Outputs] | ||
execute_on = 'timestep_end' | ||
exodus = true | ||
[] |
Binary file added
BIN
+31.7 KB
test/tests/materials/boundary_material/gold/fv_material_quadrature_out.e
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