Академический Документы
Профессиональный Документы
Культура Документы
com
Abstract
We present a one-dimensional model for compressible ows in a deformable pipe which is an alternative to the Allievi equations and is
intended to be coupled in a natural way with the shallow water equations to simulate mixed ows. The numerical simulation is performed using a second-order linearly implicit scheme adapted from the Roe scheme. The validation is performed in the case of water
hammer in a rigid pipe: we compare the numerical results provided by an industrial code with those of our spatial second-order implicit
scheme. It appears that the maximum value of the pressure within the pipe for large CFL numbers and a coarse discretisation is accurately computed.
2008 Elsevier Ltd. All rights reserved.
1. Introduction
The work presented in this article is the rst step in a
more general project: the modelisation of unsteady mixed
ows in open channels and in pipes and its nite volume
discretisation. Since we are interested in ows occurring
in closed pipes, it may happen that some parts of the ow
are free surface (this means that only a part of the cross section of the pipe is lled) and other parts are pressurised
(this means that all the cross section of the pipe is lled).
The Saint Venant equations, which are written in a conservative form, are usually used to describe free-surface ows
of water in open channels. They are also used in the context
of mixed ows using the artice of the Preissman slot
[18,4]: Cunge and Wegner [5] studied the pressurised ow
in the pipe as if it were a free-surface ow by assuming a
narrow slot to exist in the upper part of the pipe, the width
of the slot being calculated to provide the correct sonic
speed. This approach has been credited to Preissmann.
Corresponding author.
E-mail addresses: christian.bourdarias@univ-savoie.fr (C. Bourdarias),
stephane.gerbi@univ-savoie.fr (S. Gerbi).
0045-7930/$ - see front matter 2008 Elsevier Ltd. All rights reserved.
doi:10.1016/j.compuid.2007.09.007
1226
Nomenclature
c
b
Pa
q0
X
x
x
S
~
U
p
L
E
~
N
/
Rh
Ks
~
n
In this paper, we derive a 1D model from 3D compressible Euler equations by integration over sections orthogonal to the ow direction and by using a linearized
pressure law. We will consider entirely rigid as well as
deformable pipes (through the use of a Hookes law for
the deformation of the pipe due to the change of pressure).
This model is a 1D rst-order hyperbolic system of partial
dierential equations written in conservative form which is
formally very close to the SaintVenant equations for shallow water. This particular fact is used to derive a model
and a numerical scheme for mixed ows which are presented in [2]. The goal of the present paper is essentially
to build the new model for pressurised ows, to describe
a nite volume discretisation and to carry out a code to
code validation by the resolution of standard critical tests
of waterhammer.
The paper is organised as follows. In Section 2, we
present a formal derivation of the model from 3D compressible Euler equations. Section 3 is devoted to the nite
volume discretisation of the proposed model. Since the
CFL condition for explicit scheme is very restrictive, we
choose, following [10,7], to discretise the system of rstorder conservative partial dierential equations by a linear
implicit nite volume scheme to avoid the usual CFL condition for an explicit spatial discretization. For the boundary condition treatment, we propose an adaptation of a
classical method ([6,13] for instance) to the implicit case.
We recall the principle of the rst-order explicit Roe
scheme and then we adapt it to build a linearly implicit
method. Then the method to build the missing boundary conditions is described, and the second-order MUSCL
scheme is formulated. Finally in Section 4, we present the
numerical validation of this study by the comparison
between the resolution of this model and the resolution
of the Allievi equation solved by the research code
a
g
P
q
A
~
m
t
u
~
V
Q
z
e
d
Pm
Sf
h
1
2
~ u~i v~
with the speed vector U
j w~
k u~i V~. We use
the linearized pressure law:
P Pa
q q0
bq0
in which q represents the density of the liquid, q0 , the density at atmospheric pressure P a and b the water compressibility coecient (which is the inverse of the bulk modulus
of elasticity). The sonic speed is then given by
1
c p :
bq0
1227
z
y
k
i
(x,t)
m
r
pipe axis
inner wall
inner wall
x
g
Fig. 1. Geometric characteristics of the pipe.
S f KAujuj
with KA
K 2s Rh A
4=3
~ 0;
5
ot q ox qu divy;z qV
2
2
~
ot qu ox qu divy;z quV qgsin h S f c ox q:
6
Eqs. (5) and (6) are integrated over a cross section Xx; t
(Fig. 1, left).
In the following, overlined letters represent averaged
quantities over Xx; t. For Eq. (5) we have successively,
with the approximation qu q
u:
Z
Z
Z
~ ~
o t q ot
q
qot m
n;
Xx;t
Xx;t
oXx;t
Xx;t
2
c ox qA c qox A:
Thus Eq. (6) becomes the equation for the conservation of
momentum:
2
Q
2
ot qQ ox q c qA gqAsin h S f c2 qox A
A
Z
~ uox m
~ V~ ~
quot m
n:
oXx;t
oXx;t
Xx;t
8
m
~
j~
mj
~ ~
qu
quot m
n
oXx;t
Z
ot qQ
quot ~
m ~
n;
oXx;t
Z
Z
Z
~ ~
n
ox qu2 ox
qu2
qu2 ox m
Xx;t
Xx;t
oXx;t
Z
~ ~
ox qu2 A
qu2 ox m
n;
oXx;t
Z
Z
~ ~
divy;z quV~
quV
n;
Xx;t
oXx;t
Z
Z
Z
~ ~
c 2 ox q c 2 ox
q c2
qox m
n
Xx;t
Xx;t
ot qu ot
oXx;t
Therefore we get the following equation for the conservation of the mass:
Z
~ uox m
~ V~ ~
ot qA ox qQ
n;
7
qot m
oXx;t
where Q A
u is the discharge of the ow.
Next, with the approximations qu q
u and qu2 qu2 ,
we get for Eq. (6):
1228
contracting sections. On the other hand, neglecting the tangential deformations in the longitudinal sections of the
~ where R Rx; t is the radius
~ ot RN
pipe, we set ot m
of normal curvature at the point m along oX (see Fig. 1,
right) satisfying R r= cos /. Neglecting the time varia/
~ ~i tan
tions of /, this leads to ot m
ot A and we get
pd
Z
q
1 qA
~
~ uox ~
m V ~
n
ot m
tan2 /ot A:
A qQ
qu
oXx;t
Using tan / 12 ox d0 , where d0 is the diameter at rest, omitting the overlined notations and setting the conservative
variables: M qA and D qQ, Eq. (7) for the conservation of the mass becomes:
ot M ox D
1 ot A
ox d0 2 M:
4 A
10
for a pipe with a circular cross section, this law writes (see
[18] for instance, in the case of a constant radius):
oS
Sd
;
oP eE cos /
11
Ad
ox P
eE cos /
14
2
15
where
t
U qA; qQ M; D ;
t
D2
2
F U D; a M
M
17
ot A kot M;
18
d
Aox q c2 qox S
c2 qox A c2 q
eE cos /
d
d
ox qA c4 q2
ox A c2 qox S
c4 q
eE cos /
eE cos /
where
U qA; qQ M; D ;
t
D2
2
F U D; a M
M
and
Gd x; U Gr
1 ot A
2
ox d0 U :
4 A
19
Gni ;
Dt
hi
1 6 i 6 N ; n P 0:
20
1229
F U ni F U ni1 1
jRU ni ; U ni1 j U ni U ni1 :
2
2
CFL
Dt 6 C
16i6N
maxfj ~knk;i1=2 j; 1 6 k 6 2; 1 6 i 6 N g
C 20; 1;
where ~knk;i1=2 is the kth eigenvalue of the matrix
RU ni ; U ni1 :C is called the CFL coecient.
Following Roes method ([15] in the case of one-dimensional Euler equations) we get, in the case of an entirely
rigid pipe, the following Roe matrix:
p
p
0
1
ul M l ur M r
p
:
p
~
RU l ; U r
with
u
Ml Mr
c2 ~u2 2~u
uc<0<
The eigenvalues of RU l ; U r are ~k1 ~
~k2
~u c, associated to
the right eigenvectors
1
1
~r1
and ~r2
.
~u c
~u c
In the case of a deformable pipe, we have no longer such
a Roe matrix because of the dependency of the sonic speed
a upon x (via cos / and the diameter d). Moreover, in the
case of a non-constant slope and overall in the case of a
contracting or expanding section, the centered treatment
of the corresponding source terms gives a scheme which
is unable to preserve steady states.
Following Gallout [8] we can bypass the non-existence
of a Roe matrix by writing a priori the scheme under the
conservative form (20) with F ni1=2 computed as above,
but using a matrix RU ni ; U ni1 JF U where U is some
intermediate state between U ni and U ni1 (for instance
U n U n
1230
a2
ln S 0
g
and
Wx
a2 x
c2
0
B 0
B
Bx; W B
@ 0
0
0
0
c M ln S 0 x
gM
1
0
0 C
C
C;
1 A
0
0
ax u2
2u
>
: W Z; W; M; D
if x < 0;
W ni Z i ; Wi ; M ni ; Dni
t
W ni1 Z i1 ; Wi1 ; M ni1 ; Dni1 if x > 0
24
M
ox S 0 gMox Z Mln S 0 c2 ox W:
S0
21
n
Next, adding the equations ot Z 0 and ot W 0 to the system (9)(13) and setting
t
W W
with e
J e
J W ni ; W ni1 Bxi1=2 ; i 2 i1 .
e
J has the eigenvalues ~k1 ~k2 0; ~k3 ~uni1=2 ~
ai1=2
and ~k4 ~uni1=2 ~ai1=2 , with
W Z; W; M; D ;
~uni1=2
Di Di1
M i M i1
and a~2i1=2
a2i a2i1
; a2i c2 Wxi :
2
0
0
D2
M
D
a2 M
C
C
C;
A
B
B
TSW B
@
0
0
0
gKA DjDj
M
1
C
C
C:
A
Such an approximation of the topography and the geometry introduces two stationary waves for each local Riemann
problem at the interfaces xi1=2 . Let W ni be an approximation of the mean value of W on the mesh mi at time tn . Integrating the above Eq. (22) over xi1=2 ; xi1=2 tn ; tn1 with
piecewise constant data at time tn , we deduce an explicit
Finite Volume scheme written as follows:
Dt
W n1
W ni
U W i1=2 0 ; W ni ; W ni1
i
hi
UW i1=2 0 ; W ni1 ; W ni DtTS ni
23
where TS ni TSW ni and W i1=2 n x=t; W ni ; W ni1 is the
exact or approximate solution of the Riemann problem
at interface xi1=2 associated to the left and right states
W ni and W ni1 . Notice that neither the topography nor the
variation of the section and the sonic speed appear explicitly in this formulation (ox Z 0 and ox W 0 on xi1=2 ;
xi1=2 ) but contributes to the computation of the numerical
ux. Following Gallouet et al. [9] we compute
1
~a2i1=2 ~uni1=2 2
B
C
0
B
C
~r1 B
C;
n
e
@
A
g M
i1=2
0
B
B
~r3 B
@
1
c2 lnS 0 i1=2
B
C
g
B
C
~r2 B
C;
@
A
0
0
0
0
1
C
C
C
A
B
B
and ~r4 B
@
0
1
C
C
C
A
~uni1=2 ~ai1=2
n
~uni1=2 ~ai1=2
n
M i M i1
en
with
M
and S 0 i1=2 S 0 xi1=2 .
The
i1=2
2
solution of the Riemann problem (24) consists in four constant states connected by shocks propagating along the
lines n x=t ki . Since the velocity is practically always
less (in magnitude) that the sonic speed, we have
~a < ~u < ~a and then ~k2 < 0 ~k1 < ~k3 . Since the values
of the corrected elevation Z and of W are known, we
are looking for the states on each sides of the line n 0 den;
n;
n;
noted by M n;
i1=2 ; Di1=2 for the left side and M i1=2 ; Di1=2
for the right side (see Fig. 2 above). Fig. 3.
Moreover, as the third component of ~r1 is null, the discharge D is continuous through the line n 0. Thus
n;
n
Dn;
i1=2 Di1=2 . In the sequel, we denote Di1=2 this value.
A classical computation gives
e n Z i1 Z i
gM
i1=2
t
(1) (2)
n,
M
M n,+
i+1/2
D n,
(3)
n;
n;
U n1
U ni F i1=2 F i1=2
i
H ni ;
Dt
hi
D n,+
i+1/2
i+1/2
2
2
en
M
i1=2 lnS 0 i1=2 ai1 ai :
Considering the two last components of (23) we get our explicit rst-order scheme under the form:
(4)
i+1/2
and
1231
1 6 i 6 N ; n P 0;
25
n
i
where
W i+1
n
n
F n;
i1=2 F U i1=2 0 ; U i ; U i1
Fig. 2. Solution of the Riemann problem (24). The number of the lines
corresponds to those of the eigenvalues.
with
t
n
U i1=2 0 ; U ni ; U ni1 M n;
i1=2 ; Di1=2
and
H ni gKAi
xi
x i1
x i+1
xi
x i1
xi+1
M ni
2~
ai1=2 ~
ai1=2 ~
uni1=2
en
M
i1=2 lnS 0 i1=2
2~
ai1=2 ~
ai1=2
~
ai1=2
uni1=2 ~
Dni1=2 Dni
en
gM
i1=2
2~
ai1=2
en
gM
i1=2
2~
ai1=2
a2i1 a2i
2~
ai1=2
n
~
ai1=2
ui1=2 ~
2~
ai1=2
~uni1=2 2
Dni ;
en
M
i1=2 lnS 0 i1=2
~
uni1=2 ~
a2i1=2
~
a2i1=2
n1;
F i1=2
F U i1=2 0 ; U n1
; U n1
i
i1
H n1
gKAi
i
M ni1 M ni
Dni1
26
with
Dni1 Dni ;
a2i1 a2i
en
gM
i1=2
H in1
Dt
hi
Z i1 Z i
~
a2i1=2
2~
ai1=2
Z i1 Z i
M ni1 M ni
2~
ai1=2
n;
M n;
i1=2 M i1=2
~
uni1=2
en
M
i1=2 lnS 0 i1=2
2
~
uni1=2
Practically, with b 5:0 1010 m2 =N and in the undeformable case, the (CFL) condition gives Dt 6 0:7103 Dx.
This severe restriction is a motivation for the construction
of an implicit scheme.
extremum
monotonic case
M n;
i1=2
Dni j Dni j
H U ni :
M ni
Z i1 Z i
a2i1 a2i
Dn1
; j Din1 j
i
H U n1
:
i
M in1
27
28
H
i
Dt
hi
29
with
n1;
n
n
Fe i1=2
F n;
i1=2 JF U i1=2 0 ; U i ; U i1
n
n
U i1=2 0 ; U in1 ; U n1
i1 U i1=2 0 ; U i ; U i1 ;
e n1 H n JH U n U n1 U n :
H
i
i
i
i
i
Thanks to the homogeneity property of the ux function F,
JF U U F U ;
the numerical ux is given by
1232
n
n
Fe n1
i1=2 JF U i1=2 0 ; U i ; U i1
n1
:
U i1=2 0 ; U in1 ; U i1
30
1 ot A
ox d0 2 U
4 A
is discretized by
2
M ni
k ni ox d0 i
n1
n
M i M i
;
4Ani Dt
Dni
according to the following time discrete version of Eq. (14):
An1
Ani k ni M in1 M ni ;
i
31
where we set:
dn
1beE cosi /x
i
by ~
an 2i1=2 i 2 i1 .
The cross area A is then updated through (31). Notice
that the computation of A allows us to get the pressure
via q M=A and the discharge Q D=q.
3.3. Boundary conditions
To achieve the description of the implicit scheme, we
present now a way to take the boundary conditions into
account. We recall that the upstream and downstream state
vectors (corresponding to x1=2 and xN 1=2 ) at time
ntn are
M N 1
M n0
n
n
respectively denoted U 0 n and U N 1
.
DnN 1
D0
From a mathematical point of view, we must give as many
scalar boundary conditions as incoming characteristic
curves, that is one at each end of the pipe. For example
M n0 M0; tn and DnN 1 DL; tn are given quantities or,
more generally, we impose some condition fu M; D; t 0
at the upstream end and fd M; D; t 0 at the downstream
end.
Numerically, the computation of the boundary uxes
(via the resolution of the Riemann problem (24)) requires
complete state vectors that one can consider as exterior
values on ctive meshes. U n0 and U nN 1 play this role and
are supposed to be known at time tn . Thus the problem is
n1
1
an1
r1
1 ~
bn1
r2
1 ~
c1n1~r3
and
dn1
r4 :
1 ~
bn1
b1n1
0
and
cn1
c1n1
0
n1
or equivalently D1n1 D0n1 ~u1=2
~a1=2 M 1n1 M 0n1 .
n1
Then we get U 0 as the solution of the nonlinear system:
( n1
D1 D0n1 ~un1
a1=2 M 1n1 M 0n1 ;
1=2 ~
32
n1
fu M n1
0 ; D0 ; t n1 0:
33
34
n1
and fdlin M n1
N 1 ; DN 1 ; t n1 0.
The linear system arising from (29) is now completely
determined.
Second step: equipped with interior vector states issued
from the rst step, we apply the standard BC method
(32) at time tn1 .
2M n1
1233
where
( n;
U i U ni h2i Rni ;
hi1 n
n
U n;
i1 U i1 2 Ri1 :
i1
way would consist in using the central dierence xi1
i1 xi1
which is a second-order approximation of U 0 xi . To satisfy
some monotonicity and TVD properties, we apply a limitation procedure, for instance the following classical one (see
[11] for instance). For k 1; 2 we set
n
U i1;k U ni;k U ni;k U ni1;k
n
Ri;k minmod
;
35
xi1 xi
xi xi1
H in1 H U n1
:
i
The linear implicit second-order scheme is obtained by linn1;
earizing F i1=2
around U n;
and U n;
i
i1 , by using in (24) a
n;
matrix e
J associated to states U n;
;
U
i
i1 at time t n instead
n1;
n1;
of U i
; U i1 and nally by using the estimated slope
~ n1 to compute U in1; and U n1; . It leads to a scheme
R
i1
i
under the form:
n1;
n1;
U n1
U ni Fe i1=2 Fe i1=2
i
e n1
H
i
Dt
hi
with
36
1234
n1;
n;
n1;
n1;
Fe i1=2
JF U i1=2 0 ; U n;
; U i1
;
i ; U i1 U i1=2 0 ; U i
550
e n1
H
i
500
JH U ni
U n1
i
U ni ;
where
( n1;
~ n1
Ui
U in1 h2i R
i
hi1 ~ n1
n1;
n1
R
U
U
i1
i1
i1
H ni
1st order
belier
450
400
350
300
250
200
150
10
15
20
25
12
piezo z d p
with p
c2 q q0
:
q0 g
Discharge (m3/s)
35
40
35
40
1st order
belier
10
30
Time (second)
8
6
4
2
0
-2
10
15
20
25
30
Time (second)
Fig. 4. Validation of the model: rst-order scheme. Piezometric line (top)
and discharge (bottom) at the middle of the pipe.
550
550
2nd order
belier
CFL = 1
CFL = 2
CFL = 5
CFL = 10
500
450
500
400
350
300
250
450
400
350
300
250
200
200
150
150
0
10
15
20
25
30
35
40
10
20
25
12
12
2nd order
belier
10
8
6
4
2
30
35
40
35
40
CFL = 1
CFL = 2
CFL = 5
CFL = 10
10
Discharge (m3/s)
Discharge (m3/s)
15
Time (second)
Time (second)
8
6
4
2
0
0
-2
1235
-2
0
10
15
20
25
30
35
40
Time (second)
Fig. 5. Validation of the model: second-order scheme Piezometric line
(top) and discharge (bottom) at the middle of the pipe.
view of the maximum pressure calculation and that the second-order implicit discretisation is very stable in regard of
the time discretisation. The very good behavior of this
scheme from the point of view of the time discretisation
is a very good argument for using it, even though we must
solve at each time step a linear system (which contains only
6 diagonals). Moreover, we wanted to study the behavior
of the scheme from the point of view of the spatial discretisation. Thus we perform the same test for dierent CFL
coecients and for only 150 mesh points (the mesh size is
then 13.33 m). Before doing this test, we suspected a bad
behavior for a coarse space mesh and great CFL coecients since the scale of the physical eects of a water hammer is very small against this space mesh size and this time
step. Fig. 7 shows the behavior of the second-order scheme
for a coarse grid discretisation and for dierent CFL numbers. A great smoothing eect is present but it seems that
the highest pressure value is well computed.
Nevertheless, the hydraulics engineers are interested in
the value of the highest pressure in the pipe to make a good
evaluation of the size and the strength of the pipe. Therefore we present in Table 1 the highest piezometric line computed in the pipe and the relative error with the highest
piezometric line computed by the code belier for the pre-
10
15
20
25
30
Time (second)
Fig. 6. Numerical behavior for a ne space mesh and dierent CFL
numbers. Piezometric line (top) and discharge (bottom) at the middle of
the pipe.
1236
550
500
CFL = 1
CFL = 2
CFL = 5
450
400
350
S eq R L
dx
0 Sx
300
250
200
800
150
700
10
15
20
25
30
35
40
12
CFL = 1
CFL = 2
CFL = 5
10
8
Discharge (m3/s)
600
Time (second)
Rigid
Deformable
500
400
300
200
6
100
4
0
20
30
12
10
15
20
25
30
35
50
60
50
60
50
60
Discharge (m3/s)
Fig. 7. Numerical behavior for a coarse space mesh and dierent CFL
numbers. Piezometric line (top) and discharge (bottom) at the middle of
the pipe.
Table 1
Highest piezometric level and relative error (in bold)
6
4
2
0
CFL
10
-2
N x 1000
688
0.04%
677
1.7%
685
0.4%
669
2.8%
680
1.2%
655
4.9%
673
2.2%
638
7.3%
-4
N x 150
Rigid
Deformable
10
40
Time (second)
-6
10
20
30
40
Time (second)
1.5968
Rigid
Deformable
1.5966
1.5964
1.5962
Diameter (m)
1.5
H / Heq
40
Time (second)
0
-2
10
1.596
1.5958
1.5956
1.5954
0.5
1.5952
1.595
0
0
0.5
1.5
2.5
3.5
D1/D2
Fig. 8. Comparison in the prediction of pressure rises in cone-shaped
pipes between the present method and the equivalent pipe method.
1.5948
10
20
30
40
Time (second)
Fig. 9. Inuence of the pipe deformation. Piezometric line (top), discharge
(middle) and diameter (bottom) at the middle of the pipe.
dx
0 ax
1237