Skip to content

Commit 12ed0e2

Browse files
authored
Merge branch 'MFlowCode:master' into variablesDocumentation
2 parents 60e4488 + 2b4f815 commit 12ed0e2

File tree

44 files changed

+14
-4099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+14
-4099
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ examples/*/fort.1
3737
examples/*/pre_process.sh
3838
examples/*/simulation.sh
3939
examples/*/post_process.sh
40+
examples/*/fort.1
41+
examples/*/*.sh

examples/0D_qbmm/case.py

Lines changed: 12 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,24 @@
44

55
x0 = 10.E-06
66
p0 = 101325.
7-
rho0 = 1.E+03
7+
rho0 = 1000.
88
c0 = math.sqrt( p0/rho0 )
9-
patm = 1.
109

1110
# water props ==================================================================
1211
n_tait = 7.1
13-
B_tait = 306.E+06 / p0
14-
mul0 = -10.002E-03 #viscosity
15-
ss = 0.07275 #surface tension
16-
pv = 2.3388E+03 #vapor pressure
17-
18-
gamma_v = 1.33
19-
M_v = 18.02
20-
mu_v = 0.8816E-05
21-
k_v = 0.019426
22-
23-
#air props
24-
gamma_n = 1.4
25-
M_n = 28.97
26-
mu_n = 1.8E-05
27-
k_n = 0.02556
12+
B_tait = 306.E+06
13+
mul0 = -10.002E-03
2814

2915
#air props
30-
# gamma_gas = gamma_n
3116
gamma_gas = 1.4
3217

3318
#reference bubble size
3419
R0ref = 10.E-06
3520

36-
pa = 0.1 * 1.E+06 / 101325.
37-
3821
#Characteristic velocity
3922
uu = math.sqrt( p0/rho0 )
40-
#Cavitation number
4123
Ca = 1.
42-
# Ca = (p0 - pv)/(rho0*(uu**2.))
43-
#Weber number
44-
We = rho0*(uu**2.)*R0ref/ss
24+
4525
#Inv. bubble Reynolds number
4626
Re_inv = mul0/(rho0*uu*R0ref)
4727

@@ -58,9 +38,9 @@
5838
cfl = 0.1
5939
Nx = 30
6040
Ldomain = 20.E-03
61-
L = Ldomain/x0
41+
L = Ldomain
6242
dx = L/float(Nx)
63-
dt = cfl*dx*c0/cact
43+
dt = cfl*dx/cact
6444
Lpulse = 0.3*Ldomain
6545
Tpulse = Lpulse/cact
6646
Tfinal = 0.25*10.*Tpulse*c0/x0
@@ -81,19 +61,17 @@
8161
# ===========================================================================
8262

8363
# Computational Domain Parameters ===========================================
84-
'x_domain%beg' : -10.E-03/x0,
85-
'x_domain%end' : 10.E-03/x0,
64+
'x_domain%beg' : -10.E-03,
65+
'x_domain%end' : 10.E-03,
8666
'stretch_x' : 'F',
8767
'cyl_coord' : 'F',
8868
'm' : Nx,
8969
'n' : 0,
9070
'p' : 0,
91-
'dt' : 0.001,
71+
'dt' : dt,
9272
't_step_start' : 0,
9373
't_step_stop' : 30000,
94-
# 't_step_stop' : 4,
9574
't_step_save' : 1000,
96-
# 't_step_save' : 1,
9775
# ===========================================================================
9876

9977
# Simulation Algorithm Parameters ===========================================
@@ -130,54 +108,25 @@
130108
'probe(1)%x' : 0.,
131109
# ===========================================================================
132110

133-
# Patch 1 _ Background ======================================================
134-
# 'patch_icpp(1)%geometry' : 1,
135-
# 'patch_icpp(1)%x_centroid' : 0.,
136-
# 'patch_icpp(1)%length_x' : 20.E-03/x0,
137-
# 'patch_icpp(1)%vel(1)' : 0.0,
138-
# 'patch_icpp(1)%pres' : patm,
139-
# 'patch_icpp(1)%alpha_rho(1)' : (1.-1.E-12)*1.E+03/rho0,
140-
# 'patch_icpp(1)%alpha(1)' : 1.E-12,
141-
# 'patch_icpp(1)%r0' : 1.,
142-
# 'patch_icpp(1)%v0' : 0.0E+00,
143-
# ===========================================================================
144-
145-
# Patch 2 Screen ============================================================
146111
'patch_icpp(1)%geometry' : 1,
147112
'patch_icpp(1)%x_centroid' : 0.,
148-
# 'patch_icpp(1)%length_x' : 5.E-03/x0,
149-
'patch_icpp(1)%length_x' : 20.E-03/x0,
150-
# 'patch_icpp(2)%alter_patch(1)' : 'T',
113+
'patch_icpp(1)%length_x' : 20.E-03,
151114
'patch_icpp(1)%vel(1)' : 0.0,
152-
# 'patch_icpp(1)%pres' : 1/0.5,
153-
'patch_icpp(1)%pres' : 1.0,
154-
# 'patch_icpp(1)%pres' : patm,
155-
'patch_icpp(1)%alpha_rho(1)' : (1.-vf0)*1.E+03/rho0,
115+
'patch_icpp(1)%pres' : p0,
116+
'patch_icpp(1)%alpha_rho(1)' : (1.-vf0)*rho0,
156117
'patch_icpp(1)%alpha(1)' : vf0,
157118
'patch_icpp(1)%r0' : 1.,
158119
'patch_icpp(1)%v0' : 0.,
159-
# 'patch_icpp(1)%v0' : -0.5,
160120
# ===========================================================================
161121

162122
# Fluids Physical Parameters ================================================
163123
# Surrounding liquid
164124
'fluid_pp(1)%gamma' : 1.E+00/(n_tait-1.E+00),
165125
'fluid_pp(1)%pi_inf' : n_tait*B_tait/(n_tait-1.),
166-
# 'fluid_pp(1)%mul0' : mul0,
167-
# 'fluid_pp(1)%ss' : ss,
168-
# 'fluid_pp(1)%pv' : pv,
169-
# 'fluid_pp(1)%gamma_v' : gamma_v,
170-
# 'fluid_pp(1)%M_v' : M_v,
171-
# 'fluid_pp(1)%mu_v' : mu_v,
172-
# 'fluid_pp(1)%k_v' : k_v,
173126
# Last fluid_pp is always reserved for bubble gas state ====================
174127
# if applicable ===========================================================
175128
'fluid_pp(2)%gamma' : 1./(gamma_gas-1.),
176129
'fluid_pp(2)%pi_inf' : 0.0E+00,
177-
# 'fluid_pp(2)%gamma_v' : gamma_n,
178-
# 'fluid_pp(2)%M_v' : M_n,
179-
# 'fluid_pp(2)%mu_v' : mu_n,
180-
# 'fluid_pp(2)%k_v' : k_n,
181130
# ==========================================================================
182131

183132
# Non-polytropic gas compression model AND/OR Tait EOS =====================
@@ -189,32 +138,16 @@
189138
'bubbles' : 'T',
190139
'bubble_model' : 3,
191140
'polytropic' : 'T',
192-
# 'polydisperse' : 'T',
193-
# 'poly_sigma' : 0.1,
194141
'thermal' : 3,
195142
'R0ref' : myr0,
196-
# 'nb' : 3,
197143
'nb' : 1,
198144
'Ca' : Ca,
199-
# 'Web' : We,
200145
'Re_inv' : Re_inv,
201146
'qbmm' : 'T',
202147
'dist_type' : 1,
203148
'sigR' : 0.1,
204149
'sigV' : 0.1,
205150
'rhoRV' : 0.0,
206-
# ==========================================================================
207151

208-
# Acoustic source ==========================================================
209-
# 'Monopole' : 'T',
210-
# 'num_mono' : 1,
211-
# 'Mono(1)%loc(1)' : -5.E-03/x0,
212-
# 'Mono(1)%npulse' : 1,
213-
# 'Mono(1)%dir' : 1.,
214-
# 'Mono(1)%pulse' : 1,
215-
# 'Mono(1)%mag' : pa,
216-
# 'Mono(1)%length' : (1./(300000.))*cact/x0,
217-
# ==========================================================================
218152
}))
219153

220-
# ==============================================================================

0 commit comments

Comments
 (0)