-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_2Domain.hit
249 lines (249 loc) · 4.69 KB
/
input_2Domain.hit
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
239
240
241
242
243
244
245
246
247
248
249
[Problem]
type = FEProblem
coord_type = RSPHERICAL
[]
[Mesh]
[omega1]
type = GeneratedMeshGenerator
dim = 1
xmin = 0.0
xmax = 3.44
nx = 300
boundary_name_prefix = omega_1
elem_type = edge3
[]
[omega2]
type = GeneratedMeshGenerator
dim = 1
xmin = 3.44
xmax = 10.0
nx = 300
boundary_name_prefix = omega_2
elem_type = edge3
[]
[omega]
type = StitchedMeshGenerator
inputs = 'omega1 omega2'
stitch_boundaries_pairs = 'omega_1_right omega_2_left'
clear_stitched_boundary_ids = true
[]
[mod1]
type = SubdomainBoundingBoxGenerator
input = omega
block_id = 1
block_name = omega_1
bottom_left = '0.0 0 0'
top_right = '3.44 1 0'
[]
[mod2]
type = SubdomainBoundingBoxGenerator
input = mod1
block_id = 2
block_name = omega_2
bottom_left = '3.44 0 0'
top_right = '10.0 1 0'
[]
[mod3]
type = SideSetsBetweenSubdomainsGenerator
input = mod2
primary_block = omega_1
paired_block = omega_2
new_boundary = interface_12
[]
[mod4]
type = SideSetsAroundSubdomainGenerator
input = mod3
block = omega_1
normal = '-1 0 0'
new_boundary = omega_1_left
[]
[mod5]
type = SideSetsAroundSubdomainGenerator
input = mod4
block = omega_2
normal = '1 0 0'
new_boundary = omega_2_right
[]
[]
[Variables]
[u1_c]
block = omega_1
order = second
family = lagrange
initial_condition = 100000
[]
[u1_m]
block = omega_2
order = second
family = lagrange
initial_condition = 100000
[]
[]
[AuxVariables]
[diffFlux_u1_c]
block = omega_1
order = first
family = monomial_vec
[]
[diffFlux_u1_m]
block = omega_2
order = first
family = monomial_vec
[]
[diffFlux_u1_c_r]
block = omega_1
order = first
family = monomial
[]
[diffFlux_u1_m_r]
block = omega_2
order = first
family = monomial
[]
[]
[Kernels]
[diffusion_term_u1_c]
type = DiffusionTerm
block = omega_1
variable = u1_c
diffCoeff = 1.84
[]
[diffusion_term_u1_m]
type = DiffusionTerm
block = omega_2
variable = u1_m
diffCoeff = 1.64
[]
[fission_source_u1_c]
type = FissionSource
block = omega_1
variable = u1_c
Sigma_nu = 0.174
[]
[abs_u1_c]
type = SourceTermG1
block = omega_1
variable = u1_c
sigma_sa = -0.0745
[]
[abs_u1_m]
type = SourceTermG1
block = omega_2
variable = u1_m
sigma_sa = -0.00534
[]
[]
[InterfaceKernels]
[scalar_flux_continuity_u1]
type = InterfaceDiffusion
variable = u1_c
neighbor_var = u1_m
boundary = interface_12
D = 1.84
D_neighbor = 1.64
[]
[scalar_flux_jump_u1]
type = InterfacePartition
variable = u1_c
neighbor_var = u1_m
boundary = interface_12
kCoeff = 1
[]
[]
[AuxKernels]
[diffusion_flux_u1_c]
type = HeatFlux
block = omega_1
field = u1_c
thCondCoeff = 1.84
variable = diffFlux_u1_c
execute_on = timestep_end
[]
[diffusion_flux_u1_m]
type = HeatFlux
block = omega_2
field = u1_m
thCondCoeff = 1.64
variable = diffFlux_u1_m
execute_on = timestep_end
[]
[diffusion_flux_u1_c_r]
type = VectorVariableComponentAux
block = omega_1
vector_variable = diffFlux_u1_c
component = x
variable = diffFlux_u1_c_r
execute_on = timestep_end
[]
[diffusion_flux_u1_m_r]
type = VectorVariableComponentAux
block = omega_2
vector_variable = diffFlux_u1_m
component = x
variable = diffFlux_u1_m_r
execute_on = timestep_end
[]
[]
[BCs]
[entry_u1]
type = NeumannBC
variable = u1_c
boundary = omega_1_left
value = 0
[]
[exit_u1]
type = VacuumBC
variable = u1_m
boundary = omega_2_right
[]
[]
[Functions]
[refFluxFunc]
type = ParsedFunction
value = flux_ref
vars = flux_ref
vals = 0.0
[]
[]
[Executioner]
type = Steady
solve_type = PJFNK
petsc_options_iname = '-pc_type -pc_hypre_type'
petsc_options_value = 'hypre boomeramg'
l_max_its = 20
l_tol = 1e-05
nl_max_its = 15
nl_rel_tol = 1e-08
nl_abs_tol = 1e-08
[]
[VectorPostprocessors]
[omega_1]
type = LineValueSampler
execute_on = 'timestep_end final'
variable = 'u1_c diffFlux_u1_c_r'
start_point = '0.0 0 0'
end_point = '3.43656 0 0'
num_points = 601
sort_by = id
[]
[omega_2]
type = LineValueSampler
execute_on = 'timestep_end final'
variable = 'u1_m diffFlux_u1_m_r'
start_point = '3.4434399999999994 0 0'
end_point = '10.0 0 0'
num_points = 601
sort_by = id
[]
[]
[Outputs]
console = true
[csv]
type = CSV
file_base = output
execute_on = final
[]
[]
[Debug]
show_var_residual_norms = true
[]