|
4 | 4 |
|
5 | 5 | x0 = 10.E-06 |
6 | 6 | p0 = 101325. |
7 | | -rho0 = 1.E+03 |
| 7 | +rho0 = 1000. |
8 | 8 | c0 = math.sqrt( p0/rho0 ) |
9 | | -patm = 1. |
10 | 9 |
|
11 | 10 | # water props ================================================================== |
12 | 11 | 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 |
28 | 14 |
|
29 | 15 | #air props |
30 | | -# gamma_gas = gamma_n |
31 | 16 | gamma_gas = 1.4 |
32 | 17 |
|
33 | 18 | #reference bubble size |
34 | 19 | R0ref = 10.E-06 |
35 | 20 |
|
36 | | -pa = 0.1 * 1.E+06 / 101325. |
37 | | - |
38 | 21 | #Characteristic velocity |
39 | 22 | uu = math.sqrt( p0/rho0 ) |
40 | | -#Cavitation number |
41 | 23 | Ca = 1. |
42 | | -# Ca = (p0 - pv)/(rho0*(uu**2.)) |
43 | | -#Weber number |
44 | | -We = rho0*(uu**2.)*R0ref/ss |
| 24 | + |
45 | 25 | #Inv. bubble Reynolds number |
46 | 26 | Re_inv = mul0/(rho0*uu*R0ref) |
47 | 27 |
|
|
58 | 38 | cfl = 0.1 |
59 | 39 | Nx = 30 |
60 | 40 | Ldomain = 20.E-03 |
61 | | -L = Ldomain/x0 |
| 41 | +L = Ldomain |
62 | 42 | dx = L/float(Nx) |
63 | | -dt = cfl*dx*c0/cact |
| 43 | +dt = cfl*dx/cact |
64 | 44 | Lpulse = 0.3*Ldomain |
65 | 45 | Tpulse = Lpulse/cact |
66 | 46 | Tfinal = 0.25*10.*Tpulse*c0/x0 |
|
81 | 61 | # =========================================================================== |
82 | 62 |
|
83 | 63 | # 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, |
86 | 66 | 'stretch_x' : 'F', |
87 | 67 | 'cyl_coord' : 'F', |
88 | 68 | 'm' : Nx, |
89 | 69 | 'n' : 0, |
90 | 70 | 'p' : 0, |
91 | | - 'dt' : 0.001, |
| 71 | + 'dt' : dt, |
92 | 72 | 't_step_start' : 0, |
93 | 73 | 't_step_stop' : 30000, |
94 | | - # 't_step_stop' : 4, |
95 | 74 | 't_step_save' : 1000, |
96 | | - # 't_step_save' : 1, |
97 | 75 | # =========================================================================== |
98 | 76 |
|
99 | 77 | # Simulation Algorithm Parameters =========================================== |
|
130 | 108 | 'probe(1)%x' : 0., |
131 | 109 | # =========================================================================== |
132 | 110 |
|
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 ============================================================ |
146 | 111 | 'patch_icpp(1)%geometry' : 1, |
147 | 112 | '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, |
151 | 114 | '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, |
156 | 117 | 'patch_icpp(1)%alpha(1)' : vf0, |
157 | 118 | 'patch_icpp(1)%r0' : 1., |
158 | 119 | 'patch_icpp(1)%v0' : 0., |
159 | | - # 'patch_icpp(1)%v0' : -0.5, |
160 | 120 | # =========================================================================== |
161 | 121 |
|
162 | 122 | # Fluids Physical Parameters ================================================ |
163 | 123 | # Surrounding liquid |
164 | 124 | 'fluid_pp(1)%gamma' : 1.E+00/(n_tait-1.E+00), |
165 | 125 | '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, |
173 | 126 | # Last fluid_pp is always reserved for bubble gas state ==================== |
174 | 127 | # if applicable =========================================================== |
175 | 128 | 'fluid_pp(2)%gamma' : 1./(gamma_gas-1.), |
176 | 129 | '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, |
181 | 130 | # ========================================================================== |
182 | 131 |
|
183 | 132 | # Non-polytropic gas compression model AND/OR Tait EOS ===================== |
|
189 | 138 | 'bubbles' : 'T', |
190 | 139 | 'bubble_model' : 3, |
191 | 140 | 'polytropic' : 'T', |
192 | | - # 'polydisperse' : 'T', |
193 | | - # 'poly_sigma' : 0.1, |
194 | 141 | 'thermal' : 3, |
195 | 142 | 'R0ref' : myr0, |
196 | | - # 'nb' : 3, |
197 | 143 | 'nb' : 1, |
198 | 144 | 'Ca' : Ca, |
199 | | - # 'Web' : We, |
200 | 145 | 'Re_inv' : Re_inv, |
201 | 146 | 'qbmm' : 'T', |
202 | 147 | 'dist_type' : 1, |
203 | 148 | 'sigR' : 0.1, |
204 | 149 | 'sigV' : 0.1, |
205 | 150 | 'rhoRV' : 0.0, |
206 | | - # ========================================================================== |
207 | 151 |
|
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 | | - # ========================================================================== |
218 | 152 | })) |
219 | 153 |
|
220 | | -# ============================================================================== |
0 commit comments