-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1c.i
229 lines (211 loc) · 3.84 KB
/
1c.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
[Mesh]
type = GeneratedMesh
dim = 1
xmin = 0
xmax = 3000
nx = 200
[]
[UserObjects]
[./viscosity_gas]
type = MoskitoViscosityConst
viscosity = 0.0001
[../]
[./viscosity_liqid]
type = MoskitoViscosityConst
viscosity = 0.001
[../]
[./viscosity_2p]
type = MoskitoViscosity2P
ve_uo_gas = viscosity_gas
ve_uo_liquid = viscosity_liqid
[../]
[./df]
type = MoskitoDFShi
surface_tension = 0.0288
Pan_param_cMax = 1.2
Shi_param_Fv = 0.3
[../]
[./eos]
type = MoskitoMixture2P
[../]
[]
[Functions]
[./grad_func]
type = ParsedFunction
value = '293.15 + 0.03 * x'
[../]
[./dts]
type = PiecewiseLinear
x = '0 3153600 31536000'
y = '3600 86400 864000'
[../]
[]
[Materials]
[./area]
type = MoskitoFluidWell_2p1c
well_diameter = 0.2
pressure = p
enthalpy = h
massrate = m
concentration = c
well_direction = x
well_type = -1
eos_uo = eos
viscosity_uo = viscosity_2p
drift_flux_uo = df
roughness_type = smooth
gravity = '9.8 0 0'
output_properties = 'temperature'
outputs = exodus
[../]
[./Lateral]
type = MoskitoLatHeat_Inc_Formation_2p
outer_diameters = '0.2 0.24 0.3'
conductivities = '50.0 0.7'
formation_density = 2650
formation_thermal_conductivity = 2.5
formation_heat_capacity = 1000
# Configuration of material
formation_temperature_function = grad_func
nondimensional_time_function = Ramey_1981_BF
output_properties = 'total_thermal_resistivity'
outputs = exodus
[../]
[./sumgrad]
type = MoskitoGrad
concentration = c
output_properties = 'drho_dc'
outputs = exodus
[../]
[]
[BCs]
[./pbc]
type = FunctionDirichletBC
variable = p
boundary = left
function = '2e7'
[../]
[./mbc]
type = FunctionDirichletBC
variable = m
boundary = right
function = '40'
[../]
[./hbc]
type = FunctionDirichletBC
variable = h
boundary = right
function = '352634'
[../]
[./testibc]
type = FunctionDirichletBC
variable = c
boundary = right
function = '0.3'
[../]
[]
[Variables]
[./p]
[./InitialCondition]
type = FunctionIC
function = '20000000+1000*9.8*x'
[../]
[../]
[./m]
initial_condition = 40
[../]
[./h]
[./InitialCondition]
type = FunctionIC
function = '168050+x*(352634-168050)/3000'
[../]
[../]
[./c]
initial_condition = 0.3
[../]
[]
[AuxVariables]
[./x]
family = MONOMIAL
order = CONSTANT
[../]
[]
[Kernels]
[./mkernel]
type = MoskitoMass_2p1c
variable = m
[../]
[./mkernelt]
type = MoskitoTimeMass_2p1c
variable = m
enthalpy = h
pressure = p
molarity = c
[../]
[./pkernel]
type = MoskitoMomentum_2p1c
variable = p
enthalpy = h
massrate = m
molarity = c
[../]
[./pkernelt]
type = MoskitoTimeMomentum_2p1c
variable = p
massrate = m
[../]
[./hkernel]
type = MoskitoEnergy_2p1c
variable = h
massrate = m
pressure = p
molarity = c
[../]
[./do]
type = MoskitoTimeEnergy_2p1c
variable = h
massrate = m
pressure = p
molarity = c
[../]
[./heat]
type = MoskitoLatHeatIncFormation_2p
variable = h
pressure = p
molarity = c
[../]
[]
[AuxKernels]
[./f_k]
type = MoskitoAux
variable = x
pressure = p
massrate = m
PH = 5
roughness = 2.5e-5
[../]
[]
[convectiondiffusion]
variables = 'c p h m'
index_CO2 = 1
index_presure = 2
index_enthalpy = 3
index_massrate = 4
#index_CH4 = 5
[]
[Executioner]
type = Transient
start_time = 0
end_time = 315360000
nl_max_its = 15
solve_type = NEWTON
dtmin = 2e-14
[./TimeStepper]
type = FunctionDT
function = dts
[../]
[]
[Outputs]
print_linear_residuals = false
exodus = true
[]