-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmrect1.i
More file actions
238 lines (219 loc) · 4.99 KB
/
mrect1.i
File metadata and controls
238 lines (219 loc) · 4.99 KB
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
230
231
232
233
234
235
236
237
238
endTime = 3.16e8
[Mesh]
uniform_refine = 0
[matrixmesh]
type = FileMeshGenerator # reading mesh from file
file = 'gringartenbrickdomain100by100by10.e' #mesh created in cubit
[]
[]
[GlobalParams]
PorousFlowDictator = dictator
[]
[Variables]
[matrix_P]
[]
[matrix_T]
[]
[]
[ICs]
[matrix_P]
type = FunctionIC
variable = matrix_P
function = insitu_pp
[]
[matrix_T]
type = FunctionIC
variable = matrix_T
function = insitu_T
[]
[]
[BCs]
[]
[Functions]
[insitu_pp]
type = ParsedFunction
value = '9.81*1000*(3000 - z)'
[]
[insitu_T]
type = ParsedFunction
value = '363'
[]
[]
[PorousFlowFullySaturated]
coupling_type = ThermoHydro
porepressure = matrix_P
temperature = matrix_T
fp = water
gravity = '0 0 -9.81'
pressure_unit = Pa
[]
[FluidProperties]
[water]
type = SimpleFluidProperties
thermal_expansion = 0
[]
[]
[Materials]
[porosity]
type = PorousFlowPorosityConst
porosity = 0.1
[]
[permeability]
type = PorousFlowPermeabilityConst
permeability = '1E-16 0 0 0 1E-16 0 0 0 1E-16'
[]
[internal_energy]
type = PorousFlowMatrixInternalEnergy
density = 2875
specific_heat_capacity = 825
[]
[aq_thermal_conductivity]
type = PorousFlowThermalConductivityIdeal
dry_thermal_conductivity = '2.83 0 0 0 2.83 0 0 0 2.83'
[]
[]
[Preconditioning]
[./superlu]
type = SMP
full = true
petsc_options_iname = '-ksp_type -pc_type -pc_factor_mat_solver_package'
petsc_options_value = 'gmres lu superlu_dist'
[../]
[]
[Executioner]
type = Transient
solve_type = NEWTON
dt = 0.1e7
end_time = ${endTime}
line_search = 'none'
automatic_scaling = true
l_max_its = 20
l_tol = 8e-3
nl_forced_its = 1
nl_max_its = 20
nl_rel_tol = 5e-04
nl_abs_tol = 1e-09
[]
[Outputs]
print_linear_residuals = false
[exodus_all_time]
type = Exodus
file_base = result_time_step
[]
[]
[DiracKernels]
[heat_from_fracture]
type = ReporterPointSource
variable = matrix_T
value_name = heat_transfer_rate/transferred_joules_per_s
x_coord_name = heat_transfer_rate/x
y_coord_name = heat_transfer_rate/y
z_coord_name = heat_transfer_rate/z
[]
[]
[Reporters]
[heat_transfer_rate]
type = ConstantReporter
real_vector_names = 'transferred_joules_per_s x y z'
real_vector_values = '10000; 0; 0; 0'
outputs = none
[]
[]
[AuxVariables]
[normal_thermal_conductivity]
family = MONOMIAL
order = CONSTANT
[]
[fracture_normal_x]
family = MONOMIAL
order = CONSTANT
initial_condition = 0
[]
[fracture_normal_y]
family = MONOMIAL
order = CONSTANT
initial_condition = 1
[]
[fracture_normal_z]
family = MONOMIAL
order = CONSTANT
initial_condition = 0
[]
[element_normal_length]
family = MONOMIAL
order = CONSTANT
[]
[fracDensity_AMR]
[]
[]
[AuxKernels]
[normal_thermal_conductivity_auxk]
type = ConstantAux
variable = normal_thermal_conductivity
value = 5
[]
[element_normal_length_auxk]
type = PorousFlowElementLength
variable = element_normal_length
direction = 'fracture_normal_x fracture_normal_y fracture_normal_z'
[]
[]
[MultiApps]
[fracture_app]
type = TransientMultiApp
input_files = frect1.i
execute_on = TIMESTEP_BEGIN
sub_cycling = true
[]
[]
[Transfers]
[normal_x_from_fracture]
type = MultiAppGeneralFieldNearestNodeTransfer
direction = from_multiapp
multi_app = fracture_app
source_variable = normal_dirn_x
variable = fracture_normal_x
[]
[normal_y_from_fracture]
type = MultiAppGeneralFieldNearestNodeTransfer
direction = from_multiapp
multi_app = fracture_app
source_variable = normal_dirn_y
variable = fracture_normal_y
[]
[normal_z_from_fracture]
type = MultiAppGeneralFieldNearestNodeTransfer
direction = from_multiapp
multi_app = fracture_app
source_variable = normal_dirn_z
variable = fracture_normal_z
[]
[element_normal_length_to_fracture]
type = MultiAppGeneralFieldNearestNodeTransfer
direction = to_multiapp
multi_app = fracture_app
source_variable = element_normal_length
variable = enclosing_element_normal_length
[]
[element_normal_thermal_cond_to_fracture]
type = MultiAppGeneralFieldNearestNodeTransfer
direction = to_multiapp
multi_app = fracture_app
source_variable = normal_thermal_conductivity
variable = enclosing_element_normal_thermal_cond
[]
[T_to_fracture]
type = MultiAppGeometricInterpolationTransfer
direction = to_multiapp
multi_app = fracture_app
source_variable = matrix_T
variable = transferred_matrix_T
[]
[heat_from_fracture]
type = MultiAppReporterTransfer
direction = from_multiapp
multi_app = fracture_app
from_reporters = 'heat_transfer_rate/joules_per_s heat_transfer_rate/x heat_transfer_rate/y heat_transfer_rate/z'
to_reporters = 'heat_transfer_rate/transferred_joules_per_s heat_transfer_rate/x heat_transfer_rate/y heat_transfer_rate/z'
[]
[]