Skip to content

Commit 813ee75

Browse files
committed
additional fixes
1 parent e085eae commit 813ee75

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

examples/3D_lungwave/case.py

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
G_l = 1e06
2323

2424

25-
# primitive vartiables
25+
# primitive variables
2626
patmos = 101325.0 # pa
2727

2828
# problem specific variable
@@ -35,7 +35,8 @@
3535

3636
# non-dim
3737

38-
# define characteristic density, length, time, stress material #make it liquid
38+
# define characteristic density, length, time, stress material
39+
#make it liquid
3940
rho_char = rhol
4041
length_char = lambda_wave
4142
c_char = c_l # should be liquid
@@ -86,11 +87,8 @@
8687
print(
8788
json.dumps(
8889
{
89-
# Logistics ================================================================
9090
"run_time_info": "T",
91-
#'sim_data' : 'T',
92-
# ==========================================================================
93-
# Computational Domain Parameters ==========================================
91+
# Computational Domain Parameters
9492
"x_domain%beg": -dlengx / 2.0,
9593
"x_domain%end": dlengx / 2.0,
9694
"y_domain%beg": 0.0,
@@ -109,8 +107,7 @@
109107
"t_step_start": tstart,
110108
"t_step_stop": tstop,
111109
"t_step_save": tsave,
112-
# ==========================================================================
113-
# Simulation Algorithm Parameters ==========================================
110+
# Simulation Algorithm Parameters
114111
"num_patches": 2,
115112
"model_eqns": 3,
116113
"alt_soundspeed": "F",
@@ -135,18 +132,14 @@
135132
"bc_y%end": -1,
136133
"bc_z%beg": -1,
137134
"bc_z%end": -1,
138-
# ==========================================================================
139-
# Turning on Hypoelasticity ================================================
140135
#'hypoelasticity' : 'T',
141136
"hyperelasticity": "F",
142-
# ==========================================================================
143-
# Formatted Database Files Structure Parameters ============================
137+
# Formatted Database Files Structure Parameters
144138
"format": 1,
145139
"precision": 2,
146140
"prim_vars_wrt": "T",
147141
"parallel_io": "T",
148-
# ==========================================================================
149-
# acoustics setting =========================================================
142+
# acoustics setting
150143
"acoustic_source": "T",
151144
"num_source": 1,
152145
"acoustic(1)%support": 3,
@@ -160,8 +153,7 @@
160153
"acoustic(1)%length": dlengy, # length of the place ???
161154
"acoustic(1)%height": dlengz,
162155
"acoustic(1)%dir": -math.pi,
163-
# ===========================================================================
164-
# Patch 1: Background ======================================================
156+
# Patch 1: Background
165157
"patch_icpp(1)%geometry": 9,
166158
"patch_icpp(1)%x_centroid": 0.0,
167159
"patch_icpp(1)%y_centroid": dlengy / 2.0,
@@ -178,8 +170,7 @@
178170
"patch_icpp(1)%alpha(1)": alphal_back,
179171
"patch_icpp(1)%alpha(2)": alphag_back,
180172
#'patch_icpp(1)%tau_e(1)' : 0.0,
181-
# ==========================================================================
182-
# Patch 2: Lung ============================================================
173+
# Patch 2: Lung
183174
"patch_icpp(2)%geometry": 13,
184175
"patch_icpp(2)%hcid": 301,
185176
#'patch_icpp(2)%geometry' : 9,
@@ -199,17 +190,14 @@
199190
"patch_icpp(2)%alpha_rho(2)": rhog_n * alphag_lung,
200191
"patch_icpp(2)%alpha(1)": alphal_lung,
201192
"patch_icpp(2)%alpha(2)": alphag_lung,
202-
# ==========================================================================
203-
# Fluids Physical Parameters ===============================================
193+
# Fluids Physical Parameters
204194
"fluid_pp(1)%gamma": 1.0e00 / (gammal - 1.0e00),
205195
"fluid_pp(1)%pi_inf": gammal * Bl_n / (gammal - 1.0e00),
206196
"fluid_pp(1)%G": G_l_n,
207197
"fluid_pp(2)%gamma": 1.0e00 / (gammag - 1.0e00),
208198
"fluid_pp(2)%pi_inf": gammag * Bg_n / (gammag - 1.0e00),
209199
"fluid_pp(2)%G": G_g_n,
210-
# ==============================================================================
211200
}
212201
)
213202
)
214203

215-
# ==============================================================================

0 commit comments

Comments
 (0)