Skip to content

Commit 2b4f815

Browse files
authored
Merge pull request #99 from anandrdbz/patch-1
2 parents 7d465f8 + fd0c2b4 commit 2b4f815

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/0D_qbmm/case.py

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

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

1010
# water props ==================================================================
1111
n_tait = 7.1
12-
B_tait = 306.E+06 / p0
12+
B_tait = 306.E+06
1313
mul0 = -10.002E-03
1414

1515
#air props
@@ -38,9 +38,9 @@
3838
cfl = 0.1
3939
Nx = 30
4040
Ldomain = 20.E-03
41-
L = Ldomain/x0
41+
L = Ldomain
4242
dx = L/float(Nx)
43-
dt = cfl*dx*c0/cact
43+
dt = cfl*dx/cact
4444
Lpulse = 0.3*Ldomain
4545
Tpulse = Lpulse/cact
4646
Tfinal = 0.25*10.*Tpulse*c0/x0
@@ -61,14 +61,14 @@
6161
# ===========================================================================
6262

6363
# Computational Domain Parameters ===========================================
64-
'x_domain%beg' : -10.E-03/x0,
65-
'x_domain%end' : 10.E-03/x0,
64+
'x_domain%beg' : -10.E-03,
65+
'x_domain%end' : 10.E-03,
6666
'stretch_x' : 'F',
6767
'cyl_coord' : 'F',
6868
'm' : Nx,
6969
'n' : 0,
7070
'p' : 0,
71-
'dt' : 0.001,
71+
'dt' : dt,
7272
't_step_start' : 0,
7373
't_step_stop' : 30000,
7474
't_step_save' : 1000,
@@ -110,10 +110,10 @@
110110

111111
'patch_icpp(1)%geometry' : 1,
112112
'patch_icpp(1)%x_centroid' : 0.,
113-
'patch_icpp(1)%length_x' : 20.E-03/x0,
113+
'patch_icpp(1)%length_x' : 20.E-03,
114114
'patch_icpp(1)%vel(1)' : 0.0,
115-
'patch_icpp(1)%pres' : 1.0,
116-
'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,
117117
'patch_icpp(1)%alpha(1)' : vf0,
118118
'patch_icpp(1)%r0' : 1.,
119119
'patch_icpp(1)%v0' : 0.,

0 commit comments

Comments
 (0)