Академический Документы
Профессиональный Документы
Культура Документы
Engineering
ELSEVIER Chemical Engineering Journal 69 ( 1998) 47-52
Journal
Abstract
Traditionally, the governing equations for transient analysis of gas pipeline network involve two partial differential equations, which are
normally solved by complex numerical methods. Following the success of its application in the steady analysis of pipeline networks, the
electric analogy method is extended by combining resistance and capacitance, which leads to a first order ordinary differential equation and
an alternative route to solving the transient problem. Solving the proposed first order ordinary differential equation has been shown to be
much simpler than having to solve the set of partial differential equations normally encountered in other transient models. It is found that the
results obtained are comparable to those obtained from the traditional methods published in the literature. The proposed method is computa-
tionally efficient and is readily applicable as a method for design and control of network systems. 0 199X Elsevier Science S.A.
Keywords: Electric analogy; Gas pipeline: Capacitance and resistance: Steady and transient analysis
PlfP2
Y= 1.52x 10” D16’” -
LTSzQ
V e
I+
J= &$ for the Nodal approach, (6)
V=ES-e (10)
~=AY,~bA,oVo+A’b~bA~cVc+A~bGbbA;o~ (23)
J=I+i (11)
J=J, +J2 (12) J” = ktob pbAho V, + AYbpbA;’ V, + A?,GbbA,” zde, (24)
Using the Nodal approach [ 9,101 by expressing Eqs. (2) and
(6) in tensorial form, gives, Incorporating Eqs. ( 19) and (20), into Eqs. (23) and (24)
results in:
$= PbVb (13)
J” =AFb p’Ab“( CbbEb + e,)
(14) de
+A: b Y+‘bA.CC‘bE
b c b +A: b GbbA.=> (2-5)
b dt
Applying the transformation theory [ 61: P = A’TbpbAko( CibEb + e,) (26)
S=A”,Jb=AY,(fl+,) =A’,
[
ybbVb+Gbt’x dVb
1 (15) +A”, ~b&c’C;b&, +A‘?,Gbb&’
de,
yy (26)
dVo
must be solved numerically.
For a network with known topology, tensors AT’,, Aho, A?,,
AbC, Cbb and Cib can be determined easily. So in a gas trans-
1A?,
IAA ybb[A."(A~C]
b b
c
L-1
It is possible to transform Eq. ( 10) from the primitive frame-
dt
dV
dt
(18)
mission system with varying demand P, (i.e., .P =f( t) ) , the
effect of changing .P on e, can be determined by solving Eq.
(27) which is a set of ordinary differential equations. Once
the dynamic change of e, is known, J” can be calculated from
Eq. (25). After e, and P are found, the branch flows and
nodal pressures of the network at any given time can be
work to the orthogonal framework, giving obtained through the application of the transformation
techniques.
vo=&+e,=c~bEb+e, (19)
V, = E, = C; bEb (20)
5. Computational scheme
For an invariant pressure source Eb (i.e., the pressure
source is constant with time), then the ‘derivation can be Recalling that dependent variables in a transient flow sys-
simplified and Eqs. ( 19) and (20) be differentiated as tem are space and time, the space variable can be fixed, if the
follows: connection data of the pipeline network is known.
Once the topology of pipeline network is determined,
dV,
-=- de, steady state analysis of pipeline network can be carried out
(21)
dt dt to determine the initial values of branch flow rates and nodal
pressures, which are then used to solve the ordinary differ-
dvc
-= 0 (22) ential equation. Steady analysis of a network can be based
dt
either on Mesh method or its dualistic Nodal method. A
Expanding Eq. ( 18) and incorporating Eqs. (2 1) and (22)) general guide for selecting the most suitable method is dis-
results in cussed in the previous papers [ 61 and can be utilized herein.
50 W.Q. Tao, H.C. Ti/Chemical Engineering .lournul69 (1998) 47-52
boundary condition as
(Calculation can either t’s based on nodal
I
f=b
Set time stea
I
Fig. 3. Sample network.
I TX
Table 1
Solve eqn 27 using Runge Kutta method
Pipe data of sample network
1 1 3 0.6 80,000
2 1 2 0.6 90,000
3 2 3 0.6 100,000
dvc
l,=c;h2 (30)
(31)
4,75
\ ... ,
_.....
/ .
..I
4.71!;i;;i;wj...
..!.......
.,.
\
....,......I
.. j_
.
..b.. Hence, the system equations for the situation when pressure
source is one of the causes for transients will be Eqs. (3 1)
and (32). Unfortunately, due to the lack of comparisondata,
0 4 8 I2 16 20 24 28 32 36 40 44 48
Time (x 1800 s)
the validity of this moregeneralmodel hasyet to be evaluated.
Fig. 6. Thevariationof pressure at node 3. The derivation of the systemequationsin the presentpaper
is basedon the Nodal approach.Becauseof the dualismthat
bility factors in this study are calculated at each time interval exists between the Nodal approachand Mesh approach, it is
in anticipation of a more accurately predicted result. obvious that the counterpart of the presentmodel can alsobe
In the present study, the effect of space discretization is derived. However, asthe dual of differentiation isintegration,
also examined. Simulation results with all pipes being divided the mathematicalmodel basedon meshapproachwill contain
into two equal parts and five equal sections are calculated integration parts. From a mathematicalpoint of view, solving
respectively. A comparison of these results shows that space a seriesof ordinary differential equationsis much easierthan
discretization has a negligible effect on the precision of sim- solving a seriesof equationswhich contain integration parts.
ulation result. While the integration parts may be transformedinto ordinary
Furthermore, it is found that the time stlsp also has a neg- differential form through proper techniques,additional effort
ligible effect on the simulation result. However, it is noted is required. So the nodal approachis preferred in the transient
that both space and time discretization have noticeable effect analysisof gas transmissionsystem.
on the computation effort involved. The finer the space or
time steps are, the more computation effort is required. If the
time step is too large, especially when the demand varies 7. Conclusion
sharply at a node, errors may occur. Hence, for large scale
gas pipe networks, a balance has to be struck between the Traditional methodsfor transient analysis of gas flow in
required number of data points and the computation cost. pipeline network require considerable computing effort,
The reason for the computational error is due to the stability which hinders the practical application of transient analysis
of Runge Kutta method and not the mathematical model. This in gastransmissionsystems.The findings of the presentwork
computation error can be avoided by applying a more sophis- showsclearly that advantagescan be achieved by using the
ticated algorithm, such as variable step Runge Kutta algo- electric analogy method for the computation of solutions to
rithm in the program. transientgastransmissionsystem.Insteadof having to handle
In the previous derivation, a specific case of the pressure the original partial differential equations, a set of first order
source being constant with time is considered. But the math- ordinary differential equationscan be solved in their place,
52 W.Q. Tao, H.C. Ti/Chemical Engineering Journal 69 (1998) 47-52
and thus significant reduction in the computation times can T Temperatureof gas, K
be achieved. Another advantage of the present model is that V Covariant tensorfor total pressure,in primitive
the iteration process is only required in the part of a steady framework, V= E+ e, MPa
state analysis. It has been demonstrated that steady state anal- VP Volume of pipe, m3
ysis through the transformation method is extremely robust, Y Contravariant tensor for admittance,usedin
and it is especially suitable for handling initial value prob- nodal approach,m’/s MPa
lems. The method is straight forward, and no convergence Z Covariant tensorfor impedance,usedin mesh
problems exist. approach,MPa s/m3
Z Compressibility factor of gas,dimensionless
P Density of gas, kg/m”
8. Nomenclature
index nomenclature
A Transformation tensor usedfor the nodal b Index usedin tensor form, indicating the tensor
approach to be in primitive framework
C Transformation tensor usedfor the mesh S Index usedin tensor form, indicating the tensor
approach to be in orthogonal framework
J Contravariant tensorfor total flow on a branch or C Index usedin tensorform, indicating the tensor
path, m3/s to be in closedpath framework
D The pipe diameter, m 0 Index usedin tensor form, indicating the tensor
E Covariant tensorfor pressuredeveloped by an to be in open path framework
active sourceacrossa branch or path, MPa Position dot, it is usedto indicate the order of
e Covariant tensorfor pressureacrossa branch or occurrence of the indices
path, MPa
f The friction factor, dimensionless
G Contravariant tensorfor capacitanceusedin References
transient nodal approach,m’/MPa
[I] J.F. Wilkinson, et al., Transient Flow in Natural Gas Transmission
H Contravariant tensorfor elasLance,usedin nodal Systems, American Gas Association ( AGA) 1965.
approach,MPa/m3 [ 21 A.J. Osiadacz, Simulation and Analysis of Gas Network E&FN Spon,
I Contravariant tensorfor flow due to external London, 1987.
input-output on a branch or path, m3/s [ 3 ] J. Kralik, et al., Dynamic Modelling of Large-Scale Networks with
Application to Gas Distribution, Elsevier, Amsterdam, 1988.
i Contravariant tensor for flow, due to other cause
[4] S.D. Millston, Electric Analogies for Hydraulic Analysis Part l-
on a branch or path, m3/s System Components, Machine Design, 1952, pp. 185-189.
J Contravariant tensor for total flow on a branch or [5] S.D. Millston, Electric Analogies for Hydraulic Analysis Part 2-
path, in primitive framework, J=I+ i, m3/s Tubing Characteristic, Machine Design, 1953, pp. 166-170.
L Length of a pipe, m [6] H.C. Ti, et al., Steady Analysis of Gas Flow in a Pipeline Network,
The fourth ASEAN Council on Petroleum (ASCOPE) Conference
M Molecular weight of gas,kg/‘kmol
Proceedings, 1989, pp. 484-489.
AP Pressuredrop acrossa pipe, MPa [7] G. Murphy, et al., Engineering Analogies, Iowa State Univ. Press,
pi7 p2 The pressureat the nodes,MPa 1963.
PW.2 Average pressureof a pipe, MPa [8] F.H. Branin, Problems and Analysis in Science and Engineering,
Volumetric flow rate of gasat standardstate, Chapter 2, Academic Press, 1977.
12
[ 91 H.C. Ti, E.T. Kang. Tensor Analysis of Fluid Network Problems, The
m3/s
fourth Asian Pacific Confederation of Chemical Engineering Congress
R Gas constant, 8.3143 kJ/kmol K (APCChE ‘87), Conference Proceedings, 1987, pp. 569-575.
s The specific gravity of gas,ii: is the ratio of [ lo] G. Kron, Tensor Analysis of Networks, MacDonald, London, 1965.
densitiesbetweengasand air, dimensionless [ 1 I ] G.G. Segeler, et al., Gas Engineers Handbook AGA, 1969.