-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslip_flow.i
155 lines (139 loc) · 2.56 KB
/
slip_flow.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[Mesh]
[base_domains]
type = FileMeshGenerator
file = mesh.msh
[]
[]
[Variables]
[vel]
family = LAGRANGE_VEC
[]
[p]
[]
[]
[Kernels]
[mass]
type = NewINSADMass
variable = p
velocity = vel
[]
[mass_pspg]
type = INSADMassPSPG
variable = p
[]
[momentum_advection]
# type = INSADMomentumAdvection
type = TC_ADMomentumConservativeAdvection
variable = vel
[]
[momentum_viscous]
type = INSADMomentumViscous
variable = vel
viscous_form = traction
[]
[momentum_pressure]
type = INSADMomentumPressure
variable = vel
pressure = p
integrate_p_by_parts = true
[]
[momentum_supg]
type = INSADMomentumSUPG
variable = vel
velocity = vel
# material_velocity = relative_velocity
[]
[]
[BCs]
[no_slip]
type = ADVectorFunctionDirichletBC
variable = vel
boundary = '0'
[]
[in_flow]
type = ADVectorFunctionDirichletBC
variable = vel
boundary = '4'
set_y_comp = false
set_z_comp = false
function_x = (z+0.00204)/0.00204
[]
[in_flow_mass]
type = NewINSADMassBC
variable = p
velocity = vel
boundary = '4'
# v_fn = (z+0.002)/0.002
[]
[out_flow_1]
type = NewINSADMassBC
variable = p
velocity = vel
boundary = '2'
[]
[out_flow_2]
type = DirichletBC
variable = p
boundary = '2'
value = 0
[]
[y_no_slip]
type = ADVectorFunctionDirichletBC
variable = vel
boundary = '1 3'
set_x_comp = false
set_z_comp = false
[]
[z_no_slip]
type = ADVectorFunctionDirichletBC
variable = vel
boundary = '5'
set_x_comp = false
set_y_comp = false
[]
[momentum_no_bc]
type = INSADMomentumNoBCBC
variable = vel
pressure = p
viscous_form = traction
boundary = '2 4 100'
[]
[]
[Materials]
[ins_mat]
type = INSADStabilized3Eqn
velocity = vel
pressure = p
temperature = 2500
[]
[steel]
type = ADGenericConstantMaterial
prop_names = 'rho cp mu k'
prop_values = '400 1 1 1'
[]
[]
[Preconditioning]
[SMP]
type = SMP
full = true
petsc_options_iname = '-pc_type -pc_factor_shift_type -pc_factor_mat_solver_type'
petsc_options_value = 'lu NONZERO strumpack'
[]
[]
[Executioner]
type = Steady
petsc_options = '-snes_converged_reason -ksp_converged_reason -options_left'
solve_type = 'NEWTON'
line_search = 'none'
nl_max_its = 100
l_max_its = 100
[]
[Outputs]
[exodus]
type = Exodus
output_material_properties = true
[]
[]
[Debug]
show_var_residual_norms = true
[]