Professional Documents
Culture Documents
Elaoud_IJHE_2009
Elaoud_IJHE_2009
Elaoud_IJHE_2009
Available at www.sciencedirect.com
Article history: The purpose of this study is the numerical modeling of high-pressure transient flow of
Received 28 December 2007 hydrogen–natural gas mixtures in rigid pipelines. The governing equations for such flows
Received in revised form are two coupled, non-linear, hyperbolic, partial differential equations. The fluid pressure
17 June 2008 and velocity are considered as two principal dependent variables. The fluid is a homoge-
Accepted 19 June 2008 neous hydrogen–natural gas mixture for which the density is defined by an expression
Available online 22 August 2008 averaging the two gas densities where a polytropic process is admitted for the two compo-
nents. The hydrogen-mixture mass ratio (or quality), assumed to be constant, is used in the
Keywords: mathematical formulation, instead of the void fraction which varies with pressure. The
Hydrogen–natural gas mixtures problem has been solved by the non-linear method of characteristics and the finite
Transient flow difference conservative method. To verify their validity, the computed results of the two
Method of characteristics numerical methods are compared for different values of the quality. The occurrence of
Finite difference method pressure oscillations in hydrogen–natural gas mixture pipelines was studied as a result
of the compression wave created by a rapid closure of downstream shut-off valve.
ª 2008 International Association for Hydrogen Energy. Published by Elsevier Ltd. All rights
reserved.
L
t
P
Compressor ACV RCV
C+ C- Fig. 3 – Hydrogen–natural gas mixtures installation.
R S
variations in potential energy may be ignored; the viscous
effects are modeled by considering the pipeline-wall shear
stress. The calculation of the pressure loss is done by analogy
with the permanent flows.
The transient flow is supposed one-dimensional and
x concerns a homogeneous fluid mixture of hydrogen and
natural gas. The hydrogen-fluid mass ratio (or the quality) is
Fig. 1 – Characteristics lines. noted q ¼ [Mh/(Mg þ Mh)] where Mh and Mg represent the
masses of hydrogen and natural gas, respectively. The density
of hydrogen and natural gas evolve according to the following
Several researches have been done to study the transient polytropic laws:
flow in gas pipelines. The transient happens as a result of 1=n
p
sudden events such as the rapid closure of a shut-off valve, rh ¼ rh0 ; (1)
p0
the compressor failure or the pipeline rupture. Unfortunately,
these studies concern the flow of only one gas, mainly natural
gas. Many numerical methods and experimental techniques 1=n0
p
(the method of characteristics [2,3], the finite difference rg ¼ rg0 ; (2)
p0
scheme [4], the finite volume methods [5,6] and the total vari-
ation diminishing (TVD) finite volume method [7,8]) are per- where rh0 is the density of hydrogen at the initial conditions,
formed to study transient compressible flows in pipes. rg0 is the density of natural gas at the initial conditions, p0 is
However, rarely do we find studies interested in the analysis the permanent regime pressure and p is the pressure of the
of the unsteady flow of hydrogen–natural gas mixtures. transient regime.
In this paper, we study the transient flow of high-pressure The pipe is supposed to be rigid, that means that the
hydrogen–natural gas mixtures through a pipeline and section A of the pipe is constant:
observe the influence of the different values of hydrogen pD2
mass fraction on the pressure evolution. The transient regime A¼ ¼ cte; (3)
4
is created by the rapid closure of a downstream shut-off valve.
where D is the diameter of the pipe.
The numerical simulation was performed by solving the
conservation equations using two methods: the characteris-
tics irregular grid method and the finite difference conserva-
3. Mathematical formulation
tive method.
k+1
The expression of the average density of the mixture is The þ is for the waves coming from the upstream end
defined according to the hydrogen mass ratio q [10]: while the is for the waves coming from the downstream
" #1 " 1=n0 #1 end.
1=n
q 1q q p ð1 qÞ p Eq. (11) determines the evolution of the pressure and the
r¼ þ ¼ þ : (6)
rh rg rh0 p0 rg0 p0 velocity according to the time and the space. They are much
appropriated to be solved numerically on a microcomputer.
The obtained solution constitutes a solution to the original
system of Eqs. (4) and (5).
3.3. Expression of the celerity of pressure waves
The transient flow is generated by a discontinuity of the
initial steady state flow due to a rapid valve closure. This
For a compressible fluid, the celerity of the pressure waves can
discontinuity propagates itself and the displacement is pre-
be defined by the expression:
sented in the plan (x, t) by the characteristic lines. The
1=2
vr unknown values of (V, p, x, t), at any point P, as shown in
C¼ : (7)
vp Fig. 1, can be determined by knowing their values at the points
R and S lying on the two characteristics passing through P and
Taking into account the relation (Eq. (6)), we obtain
" by integrating the two simultaneous Eqs. (9) and (10). These
1=n 1=n0 #
q p 1q p equations can be written for the two signs, which results in
C¼ þ
rh0 p0 rg0 p0 four finite difference equations:
" " 1=n 1=n0 ##1=2 Z Z
P P
1 1 q p 1 1q p dp
þ 0 : (8) ðVP VR Þ þ þ J dt ¼ 0; (12)
p n rh0 p0 n rg0 p0 R rC R
Z P
ðxP xR Þ ¼ ðV þ CÞdt; (13)
R
4. Numerical solutions
Z P Z P
To solve numerically the governing Eqs. (4) and (5), two dp
ðVP VS Þ þ þ J dt ¼ 0; (14)
numerical techniques are used: the method of characteristics R rC R
Z P
Table 3 – Reaction and actuation time of valves ðxP xS Þ ¼ ðV CÞdt: (15)
S
Case ACV reaction (s) ACV actuation (s) RCV actuation (s)
As the characteristics are curved on the (x, t) plane due to
1 2 5 0.25
the non-linearity of Eqs. (4) and (5), the integration is achieved
2 0.2 0.5 0.2
by means of an iterative trapezoidal rule. Consequently, we
international journal of hydrogen energy 33 (2008) 4824–4832 4827
12 12
case 1 case 2
10 10
Discharge (kg/s)
Discharge (kg/s)
8 8
6 6
4 4
2 2
t (s) t (s)
0 0
-2 -2
0 5 10 15 20 0 5 10 15 20
Fig. 4 – Mass-flow rate as a function of time, for cases 1 and 2 at the (RCV) side.
obtain the unknown values tP, xP, VP and pP at the point P: U1 r
U¼ ¼ ; (21)
U2 rV
xS xR þ FR tR GS tS
tkP ¼ ; (16) ! !
FR GS
W1 r U1
W¼ ¼ ðrVÞ 2 ¼ U22 ; (22)
W2 r
þ pðrÞ U1
þ pðU1 Þ
xkP ¼ xR þ FR tkP tR ; (17)
S1 0 0
S¼ ¼ lrVjrVj ¼ lU2 jU2 j : (23)
S2 2Dr 2DU1
MR pR þ MS pS þ VR VS þ HR tkP tR HS tkP tS Once written under the conservative form, Eqs. (4) and (5)
pkP ¼ ; (18)
MR þ MS can be solved by two-step finite difference Sab scheme [12].
Indeed, with the notations of Fig. 2, we can write: Uki ¼
UðiDx; kDtÞ and Wik ¼ WðUki Þ. Moreover, the unknown vector
VPk ¼ VR þ MR pR pkP þ HR tkP tR ; (19) U(x,t þ Dt) can be approximated with the first two terms of
where: FR ¼ ðV þ CÞR , GS ¼ ðV CÞS , MR;S ¼ ð1=rCÞR;S , HR;S ¼ JR;S its Taylor expansion about t, as follows:
for k¼1 and FR ¼ 1=2½ðV þ CÞPk1 þ ðV þ CÞR , GS ¼ vU
1=2½ðV CÞk1 þ ðV CÞ MR;S ¼ 1=2½ð1=rCÞk1 Uðx; t þ DtÞ ¼ Uðx; tÞ þ Dt ; (24)
P S , P þ ð1=rCÞR;S , vt
HR;S ¼ 1=2½ðJÞk1
P þ ðJÞR;S for k ¼ 2,.,j.
In this study, the iteration number is limited to j ¼ 20. The Then, by introducing the physical laws of the transient
determination of the solution in the two extreme sections flow, that is
imposes the introduction of the appropriate boundary
conditions. vU vWðUÞ
¼ þ S; (25)
vt vx
4.2. Finite difference method
we obtain the finite difference form:
12 12
case 1 case 2
0 10
θ=0 θ = 1/3
Discharge (kg/s)
Discharge (kg/s)
8 8
θ = 2/3 θ=1 θ=0 θ = 1/3
6 6 θ = 2/3 θ=1
4 4
2 2
t (s) t (s)
0 0
-2 -2
0 5 10 15 20 0 5 10 15 20
Fig. 5 – Mass-flow rate as a function of time, for cases 1 and 2 at the (ACV) side.
4828 international journal of hydrogen energy 33 (2008) 4824–4832
38 23
θ=0 θ = 1/3 Case 1 Case 2
34 θ = 2/3 θ=1
22
pressure (bar)
pressure (bar)
30
21
26
20
22 θ = 1/3
θ=0
t (s) t (s)
θ = 2/3 θ=1
18 19
0 5 10 15 20 0 5 10 15 20
Fig. 6 – Pressure as a function of time, for cases 1 and 2 at the (ACV) side, for different values of q.
sh
Ukþ1
2i ¼ Uk2i k
ða bÞW2iþ1 k
þ ð2b 1ÞW2i k
þ ð1 a bÞW2i1 5. Applications and results
2a i
kþa kþa
þ W2iþb W2iþb1 þ DtSk2i : ð30Þ
5.1. Description of the system and position of the
In these equations s ¼ Dt/Dx is the grid mesh ratio, and a, problem
b are two parameters of values generally satisfying the condi-
tions 0 a, b 1. Note that the particular values a ¼ 1/2 and To illustrate the dynamic behaviour of high-pressure
b ¼ 1/2 correspond to the two-step Lax–Wendroff method [13]. hydrogen–natural gas mixtures in pipelines, we consider an
The scheme is a three point explicit method of second-order installation (Fig. 3) composed with a compressor pumping
accuracy. It can be shown that the requirement condition for the mixture through an iron pipe of 0.4 m in diameter and
stability is given by Courant–Friedrichs–Lewy condition [14]: 500 m long. In the event of a sudden emergency, we place
a rapid closure valve (RCV) at the downstream end. In this
Dt 1
¼ : (31) case, the pressure in the supply line may reach excessive
Dx ðjVj þ CÞmax
values and may destroy the compressor and the pipeline. To
38 23
θ=0 θ = 1/3 Case 1 Case 2
34 θ = 2/3 θ=1
22
pressure (bar)
pressure (bar)
30
21
26
20
22 θ=0 θ = 1/3
t (s) θ = 2/3 θ=1 t (s)
18 19
0 5 10 15 20 0 5 10 15 20
Fig. 7 – Pressure as a function of time, for cases 1 and 2 at the middle of the pipe, for different values of q.
international journal of hydrogen energy 33 (2008) 4824–4832 4829
38 23
θ=0 θ = 1/3 Case 1 Case 2
34 θ = 2/3 θ=1
22
pressure (bar)
pressure (bar)
30
21
26
20
22
θ=0 θ = 1/3
t (s) θ = 2/3 θ=1 t (s)
18 19
0 5 10 15 20 0 5 10 15 20
Fig. 8 – Pressure as a function of time, for cases 1 and 2 at the (RCV) side, for different values of q.
avoid this, we place an automatic closure valve (ACV) at the makes less time to reach the (ACV) valve when q increases.
immediate discharge side of the compressor. As initial condi- In this case, the reaction time of the (ACV) is largely reduced
tion, we assume a mass flow m0 ¼ 10 Kg/s (398714.400 m3 (n)/ as indicated on Fig. 5.
s), a static temperature T ¼ 15 C and an absolute pressure Figs. 6, 7 and 8, show plots of the numerically obtained
p ¼ 20 bar. The properties of hydrogen and natural gas used results for the pressure distribution, as a function of time,
in the calculations are presented in Tables 1 and 2, for the cases 1 and 2 and for different values of the hydrogen
respectively. mass ratio q. These plots are at the (ACV) side, the middle of
Two parameters were used to characterize the dynamic the pipe and the (RCV) side, respectively.
response of the valves: the reaction time (time taken to start The numerical results clearly show the interaction of the
the valve actuation after sensing a pressure perturbation) pressure wave, generated by the rapid closure of the (RCV),
and the actuation time (time interval between the initial and with the closure time of the (ACV). The results of the numer-
the final positions of the valve). For the RCV we considered ical simulation, plotted in Fig. 6, show that for q ¼ 1 and for
the actuation time only. The Table 3 summarizes these the case 1, the value of the maximum pressure predicted at
closure times. the (ACV) is 33.2 bar, which is reached 7.53 s after the valve
closure. In this example, the increase in mass in the system,
due to delay of the (ACV) closure, generates a pressure
5.2. Results and discussion
increase much higher than that due to the rapid closure of
the (RCV). This over pressure, by mass accumulation, may
Referring to Table 3, we consider a linear variation of the
be lowered by reducing the closure time of the upstream valve
mass flow during the valve transient. Figs. 4 and 5 show
which is represented by the case 2 and for the same value of q.
plots of the numerically obtained results for the mass flow,
In this case, the maximum pressure is reduced to the value of
as function of time, for two sections at the exit side of the
22.8 bar.
(ACV) and immediately upstream end of the (RCV) and for
The results of the numerical simulation, plotted in Fig. 6,
cases 1 and 2. After the rapid closure of the (RCV), a pressure
also show the influence of the hydrogen mass fraction q on
wave front propagates towards the upstream end of the
the pressure evolution. We notice that, for case 1, the
pipeline and makes the (ACV) react and start to close. Since
maximum pressure for natural gas (q ¼ 0) is 21.8 bar. For
the celerity of waves is proportional to the mass fraction q, it
hydrogen–natural gas mixtures, the maximum pressure is
25.8 for q ¼ 1/3 and 29.7 for q ¼ 2/3. For hydrogen (q ¼ 1), the
maximum pressure is 33.2 bar. These results show that for
26
θ = 1/3 the same transient conditions, the pressure increase is
much higher for hydrogen or mixtures than that for natural
24
gas. In fact, the idea of simply replacing natural gas by
hydrogen or hydrogen–natural gas mixtures in the existing
pressure (bar)
5 5
4 4
3 3
t (s)
t (s)
2 2
1 1
0 0
0 100 200 300 400 500 0 100 200 300 400 500
θ = 0 (case 1) x (m) θ = 0 (case 2) x (m)
Fig. 10 – Evolution of the characteristic lines, for cases 1 and 2 and for q [ 0.
the existing pipelines, it’s not sufficient to analyze these risks In the middle of the pipe (Fig. 7) and at the (RCV) side
in the steady state where the pressure remains constant, they (Fig. 8), we notice the same effects on the pressure evolution
also should be analyzed during the transient situations. of time closure of valves and q.
In our study, the numerical results, plotted in Fig. 6, show Fig. 7 also shows the influence of the superposition of the
that the difference between the steady state pressure and two waves reflected from the upstream side and the down-
the transient regime pressure, increases significantly with stream side of the pipe. These waves come upon the middle
the mass fraction q to reach the value of 13.2 bar for q ¼ 1 of the pipe causing a neutralization effect reducing the pres-
and for case 1. sure fluctuations.
5 5
4 4
3 3
t (s)
t (s)
2 2
1 1
0 0
0 100 200 300 400 500 0 100 200 300 400 500
θ = 1 (case 1) x (m) θ = 1 (case 2) x (m)
Fig. 11 – Evolution of the characteristic lines, for cases 1 and 2 and for q [ 1.
international journal of hydrogen energy 33 (2008) 4824–4832 4831
417 1380
θ=0 Case 1 θ=1
413 1300
411 1260
Fig. 12 – Celerity of waves as a function of time, for cases 1 and 2, for q [ 0 and q [ 1.
The plots of Fig. 9 show the perfect concordance of the delay of the upstream valve closure. We have also analyzed
numerical results obtained by the method of characteristics the effect of the different values of hydrogen mass ratio q on
(M.O.C) and the finite difference method (F.D.M). the dynamic behaviour of the pressure.
Figs. 10 and 11 show the evolution of the characteristic The obtained results show that the transient pressure
lines grid for natural gas (q ¼ 0) and hydrogen (q ¼ 1) and oscillations for hydrogen and hydrogen–natural gas mixtures
for cases 1 and 2. If we assume that the value of the velocity are higher compared to natural gas. Therefore, attention
is neglected, the celerity of waves represents the slope of the should be paid when mixing hydrogen with natural gas in
characteristic lines as shown in Eqs. (9) and (10). In these the existing pipelines studied for natural gas only.
figures, the phenomena of wave propagation along the pipe The plots presented show the perfect concordance of the
and wave reflection at the downstream end and the numerical results obtained by the method of characteristics
upstream end are well represented in the different charac- (M.O.C) and the finite difference method (F.D.M).
teristic lines diagrams. These reflections well explain the
fluctuations observed in the pressure curves of Figs. 6–8.
Fig. 12 shows that the celerity of hydrogen waves is much references
higher than that of natural gas waves. In this case, the
hydrogen waves will propagate more rapidly than those of
natural gas. As a result, for the same time interval, the [1] Yang Christopher, Ogden Joan. Determining the lowest
number of the reflected waves in the case of hydrogen is cost hydrogen delivery mode. Int J Hydrogen Energy 2007;32:
three times bigger than that in the case of natural gas as 268–86.
illustrated on Figs. 10 and 11. [2] Rao CVK, Eswaran K. On the analysis of the pressure
transients in pipelines carrying compressible fluids. Int J Pres
Fig. 12, also shows that the difference of the celerity of
1993;56(1):107–29.
waves between the cases 1 and 2 is much important for
[3] Kessal M. Simplified numerical simulation of transients in
hydrogen (q ¼ 1) than that for natural gas (q ¼ 0). As a result, gas networks. Chem Eng Res Design 2000;78(A6):925–31.
the difference of the characteristic lines evolution, between [4] Thorley ARD, Tiley CH. Unsteady and transient flow of
the case 1 and 2, is significant for hydrogen, Fig. 11. For the compressible fluids in pipe lines - a review of theoretical
case of natural gas, the characteristic lines evolution is almost and some experimental studies. Int J Heat Fluid Flow 1987;8(1):
the same for cases 1 and 2, Fig. 10. 3–15.
[5] Greyvenstein GP. An implicit method for the analysis of
transient flows in pipe networks. Int J Numer Methods Eng
2002;53:1127–43.
[6] Osiadacz AJ, Chaczykowski M. Comparison of isothermal
6. Conclusion and non-isothermal pipeline gas flow models. Chem Eng J
2001;81(1–3):41–51.
In this study, the numerical solution of the transient flow in [7] Zhou JY, Adewumi MA. Simulation of transients in natural
rigid pipelines of hydrogen–natural gas mixtures has been gas pipelines using hybrid TVD schemes. Int J Numer
presented. This problem is governed by coupled two linear Methods Fluids 2000;32(4):407–37.
[8] Ibraheem SO, Adewumi MA. On total variation diminishing
partial differential equations of hyperbolic type. The numer-
schemes for pressure transients. J Energy Res Tech-Trans
ical methods employed are the method of characteristics ASME 1999;121(2):122–30.
and the finite difference method. [9] Wylie EB, Streeter VL. Hydraulic transients. Ann Arbor: F.E.B.
The boundary conditions were imposed by introducing Press; 1983.
a linear closure law for the upstream and the downstream [10] Hadj-Taı̈eb E, Lili T. The numerical solution of the transient
valves. two-phase flow in rigid pipelines. Int J Numer Methods Fluids
1999;29:501–14.
The occurrence of pressure oscillations in the different
[11] Abbott MB. An introduction to the method of characteristics.
sections of the pipe was analyzed as a result of the compres-
New York: American Elsevier; 1966.
sion wave originated by the rapid closure of downstream [12] Lerat A, Peyret R. Sur le choix des schémas aux différences
valve (RCV). In this case, the pressure may reach excessive du second ordre fournissant des profils de choc sans
values due to the mass accumulation effect caused by the oscillations. C R Acad Sc Paris 1973:363–6.
4832 international journal of hydrogen energy 33 (2008) 4824–4832
[13] Lax PD, Wendroff B. Difference schemes for hyperbolic [16] Rosyid OA, Jablonski D, Hauptmanns U. Risk analysis for the
equations with high order of accuracy. Comm Pure Appl infrastructure of hydrogen economy. Int J Hydrogen Energy
Math 1966:381–98. 2007;32:3194–200.
[14] Courant R, Friedrichs KO, Lewy H. On the partial differential [17] Wilkening H, Baradli D. CFD modelling of accidental hydrogen
equations of mathematical physics. New York: Institute of release from pipelines. Int J Hydrogen Energy 2007;32:2206–15.
Mathematics; 1956. [18] San Marchi C, Somerday BP, Robinson SL. Permeability,
[15] Stoer J, Burlish R. Introduction to numerical analysis. Berlin: solubility and diffusivity of hydrogen isotopes in stainless
Springer; 1983. steel at high pressures. Int J Hydrogen Energy 2006;32:100–16.