Skip to content

Commit 1aefc09

Browse files
authored
Merge pull request #180 from anandrdbz/final
2 parents f2bee49 + 44ff93d commit 1aefc09

Some content is hidden

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

68 files changed

+6041
-2064
lines changed

examples/1D_qbmm/case.py

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@
3939
#Characteristic velocity
4040
uu = math.sqrt( p0/rho0 )
4141
#Cavitation number
42-
# Ca = (p0 - pv)/(rho0*(uu**2.))
43-
Ca = 1.
42+
Ca = (p0 - pv)/(rho0*(uu**2.))
4443
#Weber number
45-
# We = rho0*(uu**2.)*R0ref/ss
46-
We = p0*R0ref/ss
44+
We = rho0*(uu**2.)*R0ref/ss
4745
#Inv. bubble Reynolds number
4846
Re_inv = mul0/(rho0*uu*R0ref)
4947

5048
#IC setup
51-
vf0 = 4.E-5
49+
vf0 = 0.04
5250
n0 = vf0/(math.pi*4.E+00/3.E+00)
5351

5452
cact = 1475.
@@ -89,11 +87,11 @@
8987
'm' : Nx,
9088
'n' : 0,
9189
'p' : 0,
92-
'dt' : 0.002,
90+
'dt' : dt,
9391
't_step_start' : 0,
94-
't_step_stop' : 8000,
92+
't_step_stop' : 800,
9593
# 't_step_stop' : 4,
96-
't_step_save' : 8000,
94+
't_step_save' : 80,
9795
# 't_step_save' : 1,
9896
# ==========================================================
9997

@@ -122,7 +120,7 @@
122120
'format' : 1,
123121
'precision' : 2,
124122
'prim_vars_wrt' :'T',
125-
'parallel_io' :'F',
123+
'parallel_io' :'T',
126124
'fd_order' : 1,
127125
#'schlieren_wrt' :'T',
128126
'probe_wrt' :'T',
@@ -186,34 +184,23 @@
186184
# Bubbles ==================================================
187185
'bubbles' : 'T',
188186
'bubble_model' : 2,
189-
'polytropic' : 'T',
187+
'polytropic' : 'F',
190188
'polydisperse' : 'T',
191189
'R0_type' : 1,
192190
'poly_sigma' : 0.3,
193191
'thermal' : 3,
194192
'R0ref' : myr0,
195-
# 'nb' : 3,
196193
'nb' : 3,
197194
'Ca' : Ca,
198-
# 'Web' : We,
199-
# 'Re_inv' : Re_inv,
195+
'Web' : We,
196+
'Re_inv' : Re_inv,
200197
'qbmm' : 'T',
201198
'dist_type' : 2,
202199
'sigR' : 0.1,
203200
'sigV' : 0.1,
204201
'rhoRV' : 0.0,
205202
# ==========================================================
206203

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

219206
# ==============================================================================

src/common/include/inline_conversions.fpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
else
3737
c = &
3838
(1d0/gamma + 1d0)* &
39-
(pres + pi_inf/(gamma+1d0))/ &
40-
(rho*(1d0 - adv(num_fluids)))
39+
(pres + pi_inf/(gamma + 1d0)) / &
40+
(rho * (1d0 - adv(num_fluids)))
4141
end if
42+
4243
else
4344
c = ((H - 5d-1*vel_sum)/gamma)
4445
end if

src/common/m_derived_types.f90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ module m_derived_types
2020
real(kind(0d0)), pointer, dimension(:, :, :) :: sf => null()
2121
end type scalar_field
2222

23+
!> Derived type for bubble variables pb and mv at quadrature nodes (qbmm)
24+
type pres_field
25+
real(kind(0d0)), pointer, dimension(:, :, :, :, :) :: sf => null()
26+
end type pres_field
27+
2328
type mpi_io_var
2429
integer, allocatable, dimension(:) :: view
2530
type(scalar_field), allocatable, dimension(:) :: var

0 commit comments

Comments
 (0)