Skip to content

Commit 61e7221

Browse files
committed
fix more case files
1 parent d308c97 commit 61e7221

File tree

9 files changed

+30
-39
lines changed

9 files changed

+30
-39
lines changed

examples/2D_lungwave/case.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define pulse
3333
P_amp = 10.E+6
3434
P_len = 45 #length of the impulse
35-
theta = -math.pi/2 #direction of propagation
35+
theta = -math.pi/2 #direction of propagation
3636

3737
#non-dim
3838

@@ -44,8 +44,8 @@
4444
stress_char = rho_char*c_char*c_char/gammag
4545

4646
#non-dim the properties
47-
rhog_n = rhog/rho_char
48-
c_g_n = c_g/c_char
47+
rhog_n = rhog/rho_char
48+
c_g_n = c_g/c_char
4949
rhol_n = rhol/rho_char
5050
c_l_n = c_l/c_char
5151
Bg_n = Bg/stress_char
@@ -73,15 +73,15 @@
7373
time_end = 2.5
7474
cfl = 0.5
7575

76-
dt = cfl * dx/c_l
76+
dt = cfl * dx/c_l
7777
Nt = int(time_end/dt)
7878
Nframes = 50000
7979
tstart = 0
8080
tstop = Nt
8181
tsave = int(Nt/Nframes)
8282

8383
#interface profile
84-
interface_amp = 0.5
84+
interface_amp = 0.5
8585

8686
# Configuring case dictionary
8787
print(json.dumps({
@@ -108,13 +108,12 @@
108108
'model_eqns' : 2,
109109
'alt_soundspeed' : 'F',
110110
'num_fluids' : 2,
111-
'adv_alphan' : 'T',
112111
'mpp_lim' : 'T',
113112
'mixture_err' : 'T',
114113
'time_stepper' : 3,
115114
'weno_order' : 5,
116115
'weno_eps' : 1.E-16,
117-
'weno_Re_flux' : 'F',
116+
'weno_Re_flux' : 'F',
118117
'weno_avg' : 'F',
119118
'mapped_weno' : 'T',
120119
'null_weights' : 'F',
@@ -134,19 +133,19 @@
134133
'prim_vars_wrt' :'T',
135134
'parallel_io' :'T',
136135
# ==========================================================================
137-
136+
138137
# Monopole setting =========================================================
139-
'Monopole' : 'T', # creating an acoustic wave
140-
'num_mono' : 1, # place in the middle and expand
141-
'Mono(1)%pulse' : 3, # sine wave
142-
'Mono(1)%npulse' : 1, # 1 pulse
143-
'Mono(1)%mag' : 10.0*patmos_n, # magnitude
144-
'Mono(1)%length' : 1*dlengx, # impulse length
145-
'Mono(1)%loc(1)' : dlengx/2, # x_center of the domain
146-
'Mono(1)%loc(2)' : 5.0*dlengx, # upper boundary of the domain
147-
'Mono(1)%dir' : -math.pi/2, # direction: -pi/2
138+
'acoustic_source' : 'T', # creating an acoustic wave
139+
'num_source' : 1, # place in the middle and expand
140+
'acoustic(1)%pulse' : 3, # sine wave
141+
'acoustic(1)%npulse' : 1, # 1 pulse
142+
'acoustic(1)%mag' : 10.0*patmos_n, # magnitude
143+
'acoustic(1)%length' : 1*dlengx, # impulse length
144+
'acoustic(1)%loc(1)' : dlengx/2, # x_center of the domain
145+
'acoustic(1)%loc(2)' : 5.0*dlengx, # upper boundary of the domain
146+
'acoustic(1)%dir' : -math.pi/2, # direction: -pi/2
148147
#==============================================================================
149-
148+
150149
# Patch 1: Background ======================================================
151150
'patch_icpp(1)%geometry' : 3,
152151
'patch_icpp(1)%x_centroid' : dlengx/2,
@@ -186,8 +185,8 @@
186185
'fluid_pp(1)%pi_inf' : gammal*Bl_n/(gammal-1.E+00),
187186
'fluid_pp(2)%gamma' : 1.E+00/(gammag-1.E+00),
188187
'fluid_pp(2)%pi_inf' : gammag*Bg_n/(gammag-1.E+00),
189-
# ==========================================================================
190-
188+
# ==========================================================================
189+
191190
}))
192191

193192
# ==============================================================================

examples/2D_lungwave_horizontal/case.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
'model_eqns' : 2,
105105
'alt_soundspeed' : 'F',
106106
'num_fluids' : 2,
107-
'adv_alphan' : 'T',
108107
'mpp_lim' : 'T',
109108
'mixture_err' : 'T',
110109
'time_stepper' : 3,
@@ -132,17 +131,17 @@
132131
# ==========================================================================
133132

134133
# Monopole setting =========================================================
135-
'Monopole' : 'T', # creating an acoustic wave
136-
'num_mono' : 1, # place in the middle and expand
137-
'Mono(1)%pulse' : 3, # square wave
138-
'Mono(1)%npulse' : 1, # 1 pulse
139-
'Mono(1)%mag' : 100.0*patmos_n,# magnitude
140-
'Mono(1)%length' : 45.0*dlengy, # pulse length
141-
'Mono(1)%support' : 2, # 2D semi infinite plane (x: -inf,inf; y:-len/2, len/2)
142-
'Mono(1)%support_width' : 30,
143-
'Mono(1)%loc(1)' : 0.7*dlengy, # x_center of the domain
144-
'Mono(1)%loc(2)' : dlengy/2, # upper boundary of the domain
145-
'Mono(1)%dir' : -math.pi, # direction: -pi/2
134+
'acoustic_source' : 'T', # creating an acoustic wave
135+
'num_source' : 1, # place in the middle and expand
136+
'acoustic(1)%pulse' : 3, # square wave
137+
'acoustic(1)%npulse' : 1, # 1 pulse
138+
'acoustic(1)%mag' : 100.0*patmos_n,# magnitude
139+
'acoustic(1)%length' : 45.0*dlengy, # pulse length
140+
'acoustic(1)%support' : 2, # 2D semi infinite plane (x: -inf,inf; y:-len/2, len/2)
141+
'acoustic(1)%support_width' : 30,
142+
'acoustic(1)%loc(1)' : 0.7*dlengy, # x_center of the domain
143+
'acoustic(1)%loc(2)' : dlengy/2, # upper boundary of the domain
144+
'acoustic(1)%dir' : -math.pi, # direction: -pi/2
146145

147146
# Patch 1: Background ======================================================
148147
'patch_icpp(1)%geometry' : 3,

examples/2D_phasechange_bubble/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@
204204
'num_patches' : 2,
205205
'model_eqns' : 3,
206206
'num_fluids' : 3,
207-
'adv_alphan' : 'T',
208207
'mpp_lim' : 'T',
209208
'mixture_err' : 'T',
210209
'relax' : 'T',

examples/2D_phasechange_bubble/casefile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@
211211
'num_patches' : 2,
212212
'model_eqns' : 3,
213213
'num_fluids' : 3,
214-
'adv_alphan' : 'T',
215214
'mpp_lim' : 'T',
216215
'mixture_err' : 'T',
217216
'relax' : 'T',

examples/3D_hyper_bubingel/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@
294294
'num_fluids' : 4,
295295
'hypoelasticity' : 'F',
296296
'hyperelasticity' : 'T',
297-
'adv_alphan' : 'T',
298297
'mpp_lim' : 'T',
299298
'mixture_err' : 'T',
300299
'relax' : 'T',

examples/3D_hyper_bubinwater/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@
289289
'num_fluids' : 4,
290290
'hypoelasticity' : 'F',
291291
'hyperelasticity' : 'T',
292-
'adv_alphan' : 'T',
293292
'mpp_lim' : 'T',
294293
'mixture_err' : 'T',
295294
'relax' : 'T',

examples/3D_lungwave/arc_case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
'model_eqns' : 3,
117117
'alt_soundspeed' : 'F',
118118
'num_fluids' : 2,
119-
#'adv_alphan' : 'T',
120119
'mpp_lim' : 'T',
121120
'mixture_err' : 'T',
122121
'time_stepper' : 3,

examples/3D_lungwave/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
'model_eqns' : 3,
117117
'alt_soundspeed' : 'F',
118118
'num_fluids' : 2,
119-
#'adv_alphan' : 'T',
120119
'mpp_lim' : 'T',
121120
'mixture_err' : 'T',
122121
'time_stepper' : 3,

examples/3D_phasechange_bubble/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@
211211
'num_patches' : 2,
212212
'model_eqns' : 3,
213213
'num_fluids' : 3,
214-
'adv_alphan' : 'T',
215214
'mpp_lim' : 'T',
216215
'mixture_err' : 'T',
217216
'relax' : 'T',

0 commit comments

Comments
 (0)