forked from idaholab/moose
/
fv_material_quadrature.i
78 lines (67 loc) · 1.02 KB
/
fv_material_quadrature.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
[]