Skip to content

Commit a4cb20a

Browse files
committed
fix merge mistakes
1 parent f287cb3 commit a4cb20a

File tree

13 files changed

+91
-34
lines changed

13 files changed

+91
-34
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/env python3
2+
import json
3+
4+
# Configuring case dictionary
5+
print(
6+
json.dumps(
7+
{
8+
# Logistics ================================================================
9+
"run_time_info": "T",
10+
# ==========================================================================
11+
# Computational Domain Parameters ==========================================
12+
"x_domain%beg": 0,
13+
"x_domain%end": 0.001,
14+
"m": 199,
15+
"n": 0,
16+
"p": 0,
17+
"dt": 2e-9,
18+
"t_step_start": 0,
19+
"t_step_stop": 250,
20+
"t_step_save": 1,
21+
# ==========================================================================
22+
# Simulation Algorithm Parameters ==========================================
23+
"num_patches": 1,
24+
"model_eqns": 2,
25+
"alt_soundspeed": "F",
26+
"num_fluids": 1,
27+
"mpp_lim": "F",
28+
"mixture_err": "F",
29+
"time_stepper": 3,
30+
"weno_order": 5,
31+
"weno_eps": 1.0e-16,
32+
"teno": "T",
33+
"teno_CT": 1e-8,
34+
"null_weights": "F",
35+
"mp_weno": "F",
36+
"riemann_solver": 2,
37+
"wave_speeds": 1,
38+
"avg_state": 2,
39+
"bc_x%beg": -6,
40+
"bc_x%end": -6,
41+
# ==========================================================================
42+
# Formatted Database Files Structure Parameters ============================
43+
"format": 2,
44+
"precision": 2,
45+
"prim_vars_wrt": "T",
46+
"rho_wrt": "T",
47+
"parallel_io": "T",
48+
# ==========================================================================
49+
# Patch 1 Liquid ===========================================================
50+
"patch_icpp(1)%geometry": 1,
51+
"patch_icpp(1)%x_centroid": 0.0005,
52+
"patch_icpp(1)%length_x": 0.001,
53+
"patch_icpp(1)%vel(1)": 0.0,
54+
"patch_icpp(1)%pres": 1e05,
55+
"patch_icpp(1)%alpha_rho(1)": 1100,
56+
"patch_icpp(1)%alpha(1)": 1.0,
57+
# ==========================================================================
58+
# Acoustic source ==========================================================
59+
"acoustic_source": "T",
60+
"num_source": 1,
61+
"acoustic(1)%support": 1,
62+
"acoustic(1)%loc(1)": 0.0001,
63+
"acoustic(1)%pulse": 2,
64+
"acoustic(1)%npulse": 1,
65+
"acoustic(1)%dir": 1.0,
66+
"acoustic(1)%mag": 1.0,
67+
"acoustic(1)%gauss_sigma_dist": 2e-8 * 1493,
68+
"acoustic(1)%delay": 1e-7,
69+
# ==========================================================================
70+
# Fluids Physical Parameters ===============================================
71+
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
72+
"fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00),
73+
# ==========================================================================
74+
}
75+
)
76+
)
77+
78+
# ==============================================================================

examples/1D_exp_tube_phasechange/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
# save frequency = SF + 1 (because the initial state, 0.dat, is also saved)
8585
SF = 200
8686

87-
# making Nt divisible By SF
87+
# making Nt divisible by SF
8888
tendA = (xe - xb) / ss * 0.25
8989

9090
# 1 - ensure NtA is sufficient to go a little beyond tendA

examples/2D_axisym_shockwatercavity/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116
# I calculating tend twice; first is an estimate, second is
117117
# the actual value used. This is because I am getting errors in the
118-
# post process part every time I approximate the actual Nt By an integer
118+
# post process part every time I approximate the actual Nt by an integer
119119
# number (think of a smarter way).
120120

121121
# dimensionless time
@@ -135,7 +135,7 @@
135135
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
136136
SF = 400
137137

138-
## making Nt divisible By SF
138+
## making Nt divisible by SF
139139
# 1 - ensure NtA goes slightly beyond tendA
140140
NtA = int(tendA // dt + 1)
141141

examples/2D_laplace_pressure_jump/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
# This case file demonstrates the Laplace pressure jump of a water droplet in air. The laplace pressure jump
3-
# in 2D is given By delta = sigma / r where delta is the pressure jump, sigma is the surface tension coefficient,
3+
# in 2D is given by delta = sigma / r where delta is the pressure jump, sigma is the surface tension coefficient,
44
# and r is the radius of the droplet. The results of this simulation agree with theory to well within 1%
55
# relative error.
66

examples/2D_phasechange_bubble/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/2D_phasechange_bubble/casefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/2D_shocktube_phasechange/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
# save frequency = SF + 1 (because the initial state, 0.dat, is also saved)
139139
SF = 40
140140

141-
# making Nt divisible By SF
141+
# making Nt divisible by SF
142142
tendA = (xe - xb) / ss * 5 / 24
143143

144144
# 1 - ensure NtA is sufficient to go a little beyond tendA

examples/3D_phasechange_bubble/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
# Critical time-step
151151
tc = 0.915 * R0 * math.sqrt(rho0wl1 / p01)
152152

153-
# making Nt divisible By SF
153+
# making Nt divisible by SF
154154
# tendA = 1.5 * tc
155155
tend = 1.2 * tc
156156

examples/3D_shockdroplet/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125

126126
# I calculating tend twice; first is an estimate, second is
127127
# the actual value used. This is because I am getting errors in the
128-
# post process part every time I approximate the actual Nt By an integer
128+
# post process part every time I approximate the actual Nt by an integer
129129
# number (think of a smarter way).
130130

131131
# dimensionless time
@@ -145,7 +145,7 @@
145145
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
146146
SF = 400
147147

148-
## making Nt divisible By SF
148+
## making Nt divisible by SF
149149
# 1 - ensure NtA goes slightly beyond tendA
150150
NtA = int(tendA // dt + 1)
151151

examples/scaling/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]:
179179

180180
# I calculate tend twice; first is an estimate, second is
181181
# the actual value used. This is because I am getting errors in the
182-
# post process part every time I approximate the actual Nt By an integer
182+
# post process part every time I approximate the actual Nt by an integer
183183
# number (think of a smarter way).
184184

185185
# dimensionless time
@@ -197,7 +197,7 @@ def nxyz_from_ncells(ncells: float) -> typing.Tuple[int, int, int]:
197197
# Save Frequency. Note that the number of autosaves will be SF + 1, as th IC (0.dat) is also saved
198198
SF = 400
199199

200-
## making Nt divisible By SF
200+
## making Nt divisible by SF
201201
# 1 - ensure NtA goes slightly beyond tendA
202202
NtA = int(tendA // dt + 1)
203203

0 commit comments

Comments
 (0)