Professional Documents
Culture Documents
Andaman
Andaman
Andaman
Abstract
A natural gas flow network consists of city gate station, district regulator, pipelines, compressors and valves. The perfor-
mance of such a complex system cannot be studied by analysing individual constituents. Simultaneous performance
of integrated system can be expressed using non-linear equations to simulate and forecast operational behaviour. The
operational behaviour is subject to various alternative operational conditions also. Nodal analysis is performed to cal-
culate the flow capacity of each network segment and the pressure at each node. Two conditions are evaluated, namely,
keeping flow capacity unknown or by making nodal pressure primary unknown. The resulting set of governing equations
are then solved simultaneously. Genetic algorithm method is applied to solve the desired target unknown. Compressor
governs the energy supply required to transport gas from one end to another. The compressor equation is also incor-
porated in city gas network simulation. The simulations are performed by straight gas ducts and complex gas ducts.
Boundary conditions are dependent on the form in which gas duct is fed. It is assumed that the gas duct takes gas from
City Gate Station at x = 0 and supplies the gas to a consumer located at x = L according to a time variable curve demand
Qn (L, t). The capacity of the compressor is also changed and it is observed that the demand is usually periodic in nature.
Flow demand at individual node of a gas pipeline network is calculated. Pressures at various nodes are also calculated
and matched with original pressure at nodes. Percentage deviation error suggest a range between 0 and 1.02%. The aim
of this paper is to optimise certain parameters of a gas transmission pipeline network namely flow rate, mass, cost and
pressure. This optimization is performed to gas transmission pipeline network of Gandhinagar, district, where Gujarat
State Petronet Limited (GSPL) and Sabarmati Gas Limited (SGL) are the major players. The network which has been chosen
for pipeline network consists of 10 CNG stations and 10 DRS.
* Kriti Yadav, kriti.yphd15@spt.pdpu.ac.in | 1Centre of Excellence for Geothermal Energy, Pandit Deendayal Petroleum University,
Gandhinagar 382007, India.
Received: 22 March 2019 / Accepted: 11 June 2019 / Published online: 22 June 2019
Vol.:(0123456789)
Research Article SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2
the pipeline [26, 31].For such issues and challenges an forecasted demand for natural gas. Pietrasz et al. [22]
appropriate network is required to satisfy the demand for studied the problem of reinforcing regional gas trans-
natural gas while maximizing the operation benefits of mission pipeline network. The objective of this study
the networks. The evaluation of new operation schemes was to optimise the reinforcement costs. Depending
includes a comprehensive and mathematical model which on topological decomposition techniques, evolution-
simulates pressure and the mass flow rate of the pipeline ary algorithms or search space reduction method is
network under different operation conditions [16]. It has categorised in three sections. It was based on truncated
been found that the estimated global optimization of branch and bound leaded to a solution which was locally
operations can be enhanced atleast by 15% of the network optimised in the neighbourhood of relaxed solution by
operation benefit [32]. giving the continuous relaxation. A technique for opti-
The objective of this paper is to optimize the flow of mizing the investment costs on existing gas transmis-
gas in transmission pipeline network system by using sion pipeline network was proposed by Andre et al. [2].
genetic algorithm method. The parameters which are The network was optimised by two findings first that the
taken in consideration for optimization of system flow location of pipeline segments to be reinforced and sec-
rate, pressure, gas consumption, looping condition and ond by optimizing sizes for the satisfaction of demands
cost of the network. Genetic algorithm involves 5 major with high pressure for all users. An ant colony optimiza-
steps, population, encoding, fitness function, crossover tion technique was proposed by Chebouba et al. [7] for
and mutation. Gujarat State Petronet Limited (GSPL) and steady state flow gas pipeline operations. The results of
Sabarmati Gas Limited (SGL) were looking for the optimi- this technique were compared with those which were
sation of gas transmission pipeline network so that the obtained by employing dynamic programing method
cost of the network can be optimised at each node. In which shows that ant colony optimization is an effective
this reference present researchers applied genetic algo- way of gas transmission network optimization. In recent
rithm method to a gas pipeline network in Gandhinagar times the natural gas pipeline network optimization
we tried to optimise the cost at each node and the results research have been categorised into two categories. The
are encouraging. Optimising the parameters like flow rate, first category includes methods like regression method
pressure, mass consumption and loop condition leads to including stochastic [33], linear programming [1], inter-
the optimization of pipeline network cost. val analysis approach [4], a sequential quadratic method
[10], a non- sequential quadratic method [6], a bi-level
programing method [34] and economic nonlinear model
2 Literature survey [11] and the other category is intelligent method [18].
Vol:.(1234567890)
SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2 Research Article
Fig. 1 Study area for optimization of CGD network from Gujarat, India
Vol.:(0123456789)
Research Article SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2
to satisfy customers and honor contractual delivery com- 5.1 Formulation of different Constraints
mitments.
• Investment planning The insights into network bottle- 5.1.1 Outflow and inflow rate
necks and to enable planning for debottlenecking or
expansion projects are gained by comprehensive net- Flow rate depends on the area of the channel that the gas
work models. is flowing from and the velocity of gas. The equation for
• Flare reduction Minimize environmental and economic flow rate can be expressed as:
penalties from inefficient operations.
Q = Av (1)
where Q = gas flow rate ( m3/s), A = area of the channel ( m2)
5 Mathematical formulation for simulation and v = velocity of the gas (m/s).
of gas transmission pipeline network Supply nodes should have gas at an optimum mass
(GTPN) flow rate as demanded by consumers. The mass flow rate
at supply nodes must be greater than the mass flow rate
The gas optimization network is categorised into 2 cat- produced by the well. Hence, Qimin ≤ Qi ≤ Qimax , i = 1, 2, …
egories namely optimization of gas distribution network Nn. Where Qi represents the gas inflow and outflow rate at
and optimization of gas transmission pipeline. This study node ‘i’ (m3), Qimin is minimum allowable inflow and outflow
is based on the gas transmission network including com- rate of gas at node ‘i’ ( m3) and Qimax is maximum allowable
pressor stations and other gas pipeline constraints. Opti- inflow and outflow rate of gas at node ‘i’ (m3).
mization of gas network is defined as means of objective
function searching for optimal design parameters, struc-
5.1.2 Pressure in pipe
tures and developments for operation of networks [21].
Optimization of gas transmission network can be done
The basic equation used for inlet and outlet pressures in
either in steady state or in transient state [27].
gas transmission pipeline can be given as [19]:
It has been found that when gas moves by GTPN, it
passes through pipelines, valves, regulators and compres- �� √ �� � �
104 Q f Ps � S.L.Z.T �0.5
sors. Friction of gas with the wall of pipes and heat transfer 2
Pi = po + (2)
between gas and the surrounding leads to gas pressure
7.574 E Ts D5
drop in the pipeline. In order to boost the gas pressure
compressor stations are usually installed. Around 3–5% of �� √ �� � �
the gas is consumed by compressors while compensat- 104 Q f Ps � S.L.Z.T �0.5
Po = pi2 + (3)
ing the lost pressure of the gas [5, 31]. According to Wu 7.574 E Ts D5
[30] even 1% of improvement on the performance of gas
transmission pipeline network of US can result in a saving where L = pipe length (m), D = pipe diameter (mm),
of 48.6 million dollars. The major constraints of designing Ts = standard temperature (K), Ps = standard pressure
and operating of any gas transmission pipeline is mini- (1.01325 bar), f = friction factor, S = gas gravity, Z = gas
mizing the energy consumption and increasing the gas compressibility factor at the flowing temperature (dimen-
flow rate through pipes. After observing the above men- sionless), Pi = inlet pressure (bar) and P
o = outlet pressure
tioned facts in this paper a mathematical model is used (bar).
for the simulation of gas transmission pipeline network. The outflow and inflow pressure is similar to mass flow
This simulation optimizes parameters namely flow rate, rate, which means Pmin ≤ P ≤ Pmax . Where P is pressure at
pressure, gas consumption, looping condition and cost particular node (MPa), Pmin is minimum allowable pressure
of the network. Figure 2 depicts the general outflow for at particular node (MPa) and Pmax is maximum allowable
mathematical model based on configurations and basic pressure at particular node (MPa).
elements of gas transmission pipeline network. Woldeyo-
hannes and Majid [29] simulation method was adopted
in the present study which involves all the basic elements 5.1.3 Loop conditions
of any gas transmission pipeline network. This method is
modified in the present study by adding the compressors In loop piping two or more pipes are connected in such a
equation in governing simulation algorithm. By adding the way that the gas flow can be split among branched pipes
compressor equation we have optimised the cost at every and eventually downstream into a single pipe. According
node and also the cost of whole network, shown in Table 5. to looping condition there is zero pressure drop in a closed
loop within the network system [17, 21].The loop which
Vol:.(1234567890)
SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2 Research Article
is considered here is mentioned in Fig. 2 which includes where H = head, Pi = inlet pressure, Po = outlet pressure,
node points 2, 5, 6, 8, 10 and 12. The equation for single m = (k − 1)/k, k is specific heat ration, Ts = inlet gas tempera-
phase general flow can be expressed as: ture, Z = compressibility of the gas and R = gas constant.
The compressor performance governing equation for
( )0.5 ( )2.5
Q2 L2 D1 the simulation model can be given as [15]:
= (4) ( )m
Q1 L1 D2 Po mn2 { }
= A + BH (Q∕n) + CH (Q∕n)2 + DH (Q∕n)3 + 1
Pi ZRTs H
where Q = gas flow rate through pipe, L = length of the
pipe and D = diameter of the pipe. (8)
where H = adiabatic head, Pi = inlet pressure, Po = outlet
5.1.4 Pressure drop equation of pipelines pressure, m = (k − 1)/k, k is specific heat ration, Ts = inlet gas
temperature, Z = compressibility of the gas, R = gas con-
It is the pressure drop in the pipeline as inlet and outlet stant, AH, BH, CH and DH = constants which depend on the
pressure [13]. The expression for this can be given as: unit, Q = flow rate, n = speed and η = adiabatic efficiency.
Equation 8 is a general compressor equation for single
⎡ ⎤ � � �2 � �2 � compressor. This equation is one of the most significant
⎢ 144gA 2 ⎥ Pi − Po
contribution in order to optimize gas transmission pipeline
w2 = ⎢ � �⎥ × (5)
⎢ V1 fL Pi
+ 2 log e P ⎥ Pi network.
⎣ D o ⎦
where w = flow rate, g = acceleration of gravity, A = cross- 6 Simulation of optimization of gas network
sectional area of pipe, V 1 = specific volume of gas at using genetic algorithm
inflow condition ( ft3/lbm), f = friction factor dimension-
less, L = length (ft), D = diameter of the pipe (ft), P
i = inflow In genetic algorithm method a class of adaptive algorithm
pressure (psi) and Po = outflow pressure (psi). are represented whose search methods are based on the
simulation of natural genetics. It falls under the class of
5.1.5 Mass flow rate balance equation probabilistic algorithms. The parameters and steps which
will be involved in simulation of optimization of gas net-
According to mass conservation law, the outflow rate and working are discussed below. Before starting the genetic
inflow rate should be equal to 0. algorithm, the sampling interval of each parameters such
∑ as flow rate, pressure, loop condition, mass consumption
𝛼ik Mik + Qi = 0 and cost is calculated using the following expression:
(6)
k∈Ci
( )
Smax − Smin
where Ci = sets of elements connected with node ‘i’, ΔS = (9)
Mik = absolute value of inflow (outflow) rate of element (mn − 1)
k connected with node ‘i’ (m3), Qi = exchange flow rate
where ΔS = sampling interval, Smax = maximum value of a
between node ‘i’ and outside (inflow is set as positive value
particular parameter, Smin = minimum value of a particu-
and outflow is negative value) (m3) and aik = A coefficient,
lar parameter, m = encoding base (for binary m = 2) and
its value is − 1 when gas in element k flow into node ‘i’, the
n = number of bits which represent each parameter in
value is 1 when gas in element k flow out of node i.
binary code.
The sampling is required to be estimated as it repre-
5.1.6 Compressor equation sents the whole population. Let us consider the case of
cost which varies from 60 to 74%, and each cost value is
The compressor map information is related to outlet pres- binary coded with eight bits. The resolution of sampling
sure, the inlet pressure and flow rate. The relationship for the same is 0.05%.
between inlet pressure P i and outlet pressure P
o with head
H is expressed as [12]: 6.1 Population
{[ ]m }
ZRTs Po The primary set of population is generated randomly and
H= −1 (7)
m Pi size of population depends upon the complexity of pipe-
line network [14]. In order to discover new clones [23] the
initial population should be a large pool of different genes.
Vol.:(0123456789)
Research Article SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2
Vol:.(1234567890)
SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2 Research Article
Table 3 Flip bit mutation with String no. Offspring after Offspring after Cost (x %) Fitness Fitness
fixed probability crossover mutation f(x) = (x0.5) probability
(Fi)
6.6 Crossover probability
Fig. 3 Gas transmission pipeline system consisting of 12 nodes, 7
After the selection of a pair of chromosomes, crossover compressors and 2 gas source
is performed to generate offspring. Crossover probability
is defined as the ration of pairs of chromosomes which
will be selected for mating to the total number of pairs of the termination conditions are satisfied or not. If it meets
chromosomes. Crossover is performed to generate new the desired output than the outputs are the optimization
chromosomes which will accomplish good qualities of results otherwise it needs to be processed again from the
the old chromosomes. Based on the various experiments fitness function determination point.
in this case the crossover probability is taken to be 65%. In present study flip bit mutation method is used. In
65% of crossover probability means that out of 100 pairs of this mutation process, the bits (0 and 1) of the selected
strings, only 65 pairs of randomly chosen strings will have genes are flipped by mutation operator. Mutation operator
crossover and the rest string pairs will remain unchanged. is generated randomly. According to Table 3 the first and
third string are having mutation. The last bit of the first
6.7 Mutation string and the fifth bit of the third string have been flipped
by the mutation operator.
Mutation can generate new genes by flipping one or more
gene values randomly in a clone. The mutation probability 6.8 Mutation probability
can be calculated as ratio of the bits to be flipped ran-
domly to the total bits of clones [28]. Mutation probability is defined as the ratio of the bits to
A multi- directional search is performed by genetic be flipped randomly to the total bits of the chromosomes.
algorithm in order to maintain a population of potential For example a chromosome of length 100 bits have muta-
solutions and encourage information formation along tion probability of 0.06 that means only six bits randomly
with exchange between these directions. A number of chosen will be flipped. In this example the mutation
populated solutions are developed in this simulated evolu- probability value is kept at 12% because the high muta-
tion in which the relatively “good” solutions reproduce. The tion probability will change the maximum genes of the
different solutions are distinguished on the basis of evalu- chromosome, and the algorithm will relapse into a random
ation function which plays the role of an environment. search for an optimum value.
After the individuals are converted into population by
determining the fitness function of individual. The simula-
tion further proceeds to crossover selection and mutation
probability the simulation needs to be checked whether
Vol.:(0123456789)
Research Article SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2
Table 4 Basic data of each segment like description of pipes, pipe- constraints and purchasing price of gas of each node
line specification, length, etc before and after optimization are shown in Table 5.
Sr. no. Descrip- Pipeline speci- Length (km) Fitting It has been found according to Table 5 that the gas con-
tion of fication (mm) friction coef- sumption of each node has been optimized between of
pipes ficient 30,000–50,000 m3/h range, while pressure is optimized in
1. 1–4 820 × 10 1.2 0.3 the range of 3.01–3.99 MPa. The total cost before optimi-
2. 2–5 820 × 10 9 0.66 zation was 276 × 104 INR/day whereas after optimization
3. 2–6 820 × 10 6.5 0.32 it was found to be 280.32 × 104 INR/day.
4. 3–7 820 × 10 4 0.32
5. 4–9 820 × 10 2 0.32
6. 5–8 820 × 10 1.1 0.44 8 Conclusion
7. 6–8 820 × 10 10 0.32
8. 7–11 820 × 10 6 0.32 This paper present a mathematical model approach for
9. 8–10 820 × 10 3.3 0.32 optimization of gas transmission network. For gas trans-
10. 9–12 820 × 10 5 0.51 mission network the algorithm for genetic algorithm is
11. 10–12 820 × 10 1.4 0.32 developed in C ++. The objective of this research was to
12. 11–12 820 × 10 2.3 0.23 reach the global optimum solution instead of local minima
solution for interdependent parameters. In this paper the
simulation details are followed by the formulation of dif-
7 Simulation application ferent constraints like inlet and outlet pressure, inlet and
outlet flow rate, pressure drop equations of pipeline, loop
In this paper a 12 node gas transmission network is taken conditions, compressor equations and mass flow rate
which consist of 2 gas source and 7 compressors (Fig. 3). balance equation and lost at each node. Simulation was
The network was considered as in steady state condition. performed on the basis of four major steps namely popula-
A High Density Polyethylene (HDPE) type of pipe is used tion generation, fitness function, mutation and crossover.
in the segment after source pipeline to consumer seg- The simulation was used to optimize five parameters like
ment. The pressure of gas in the transmission pipeline pressure, flow rate, mass, loop and cost of a gas transmis-
network ranges from 2.2 MPa to 3.45 MPa. The factors sion network. It was considered that the network was in
like description of pipe, pipeline specification, length of steady state condition. The simulation was applied on 12
pipe and fitting friction coefficient is described in Table 4. node system where the pressure was optimized between
While the parameters like input/output quantity, quantity 3.01 and 3.99 MPa range while the gas consumption was
Table 5 Optimization data like income, maximum and minimum consumption, optimization consumption and pressure, etc. on each node
Courtesy: Gujarat Gas Companies
Sr. No. Gas consumption Optimization gas con- Optimization gas Optimization pres- Income (104 Income after opti-
(m3/h) sumption (m3/h) flow (m3/h) sure (MPa) INR/day) mization (104 INR/
day)
Vol:.(1234567890)
SN Applied Sciences (2019) 1:769 | https://doi.org/10.1007/s42452-019-0755-2 Research Article
optimized between the ranges of 30,000–50,000 m3/h. It 16. Li CJ, Jia WL, Wu X (2009) Comprehensive valuation on regula-
has been seen that the cost at each node and for the whole tion schemes of gas transmission pipelines. In: ASCE proceed-
ings of the international conference on pipelines and trenchless
system is improved. According to Table 5 it has been seen technology, Shanghai, China, pp 581–590
that the income of the chosen network was 276 × 104 INR/ 17. Menon ES (2005) Gas pipeline hydraulics, 1st edn. CRC Press,
day but after the optimization of various parameters New York
involved cost improves to 282.32 × 104 INR/day. 18. MohamadiBaghmolaei M, Mahmoudy M, Jafari D (2014) Assess-
ing and optimization of pipeline system performance using
intelligent systems. J Nat Gas Sci Eng 18:64–76
19. Nasr GG (2011) Gas flow and network analysis. Salford Univer-
Compliance with ethical standards sity, Salford
20. O’Neill RP, Williard M, Wilkins B, Pike R (1979) A mathematical
Conflict of interest The authors declare that they have no competing programming model for allocation of natural gas. Oper Res
interests. 27(5):857–873
21. Osiadacz AJ (1987) Simulation and analysis of gas networks, 1st
edn. Gulf Publishing Company, Houston
22. Pietrasz S, Antunes M, Cornibert L (2008) The problem of rein-
References forcing regional gas transmission networks: a performance
study of three optimization methods. In: EngOpt 2008—interna-
1. Amani H, Kariminezhad H, Kazemzadeh H (2016) Development tional conference on engineering optimization, Rio de Janeiro,
of natural gas flow rate in pipeline networks based on unsteady Brazil, 1–5 June 2008, pp 1–10
state Weymouth equation. J Nat Gas Sci Eng 33:427–437 23. Rezaian A, Alipanah M, Pour HN, Kazemi H (2010) A genetic
2. Andre J, Bonnans F, Cornibert L (2009) Optimization of capacity algorithm approach to determination of optimum diameter of
expansion planning for gas transportation networks. Eur J Oper gas transmission pipes. In: Paper SPE-140671-MS presented at
Res 197(3):1019–1027 the 34th annual SPE international conference and exhibition,
3. Babu BV, Angira R, Chakole PG, Syed Mubeen JH (2003) Optimal Tinapa–Calabar, Nigeria, 31 July–7 August 2010
design of gas transmission network using differential evolu- 24. Rios-Mercado RZ, Wu S, Scout LR, Boyd EA (2002) A reduction
tion. In: Proceedings of the second international conference on technique for natural gas transmission network optimization
computational intelligence, robotics, and autonomous systems problems. Ann Oper Res 117:217–234
(CIRAS-2003), Singapore, December 15–18, PS0402, pp 01–07 25. Sadjadi FA (2004) Comparison of fitness scaling functions in
4. Bonnans JF, Spiers G, Vie JL (2011) Global optimization of pipe genetic algorithms with applications to optical processing. In:
networks by the interval analysis approach: the Belgium net- Proceedings of SPIE (5557), SPIE, Bellingham
work case. INRIA. https://hal.inria.fr/hal-00642932 26. S’anchez BC, Mercado RZ (2005) A hybrid meta-heuristic
5. Borraz-Sanchez C, Rios-Mercado RZ (2004) A non-sequential approach for natural gas pipeline network optimization. In:
dynamic programming approach for natural gas network opti- LNCS, vol 3636, pp 54–65
mization. WSEAS Trans Syst 3:1384–1389 27. Steinbach MC (2007) On PDE solution in transient optimization
6. Borraz-Sánchez C, Ríos-Mercado RZ (2009) Improving the oper- of gas networks. J Comput Appl Math 203:345–361
ation of pipeline systems on cyclic structures by tabu search. 28. Thander B, Sircar A (2014) Hydrocarbon resource estimation: a
Comput Chem Eng 33(1): 58–64 stochastic approach. J Pet Explor Prod Technol 5(4):445–452
7. Chebouba A, Yalaoui F, Smati A, Amodeo L, Younsi K, Tairi A 29. Woldeyohannes AD, Majid MAA (2010) Simulation model for
(2009) Optimization of natural gas pipeline transportation using natural gas transmission pipeline network system. Simul Model
ant colony optimization. Comput Oper Res 36:1916–1923 Pract Theory 19:196–212
8. Chipperfield A, Fleming P, Pohlheim H, Fonseca C (1994) Genetic 30. Wu S (1998) Steady-state simulation and fuel cost minimization
algorithm toolbox. University of Sheffield, Sheffield, pp 1–105 of gas pipeline networks. Department of Mathematics, Ph.D.
9. De Wolf D, Smeers Y (2000) The gas transmission problem Thesis, University of Houston
solved by an extension of the simplex algorithm. Manag Sci 31. Wu S, Rios-Mercado RZ, Boyd EA, Scott LR (2000) Model relaxa-
46(11):1454–1465 tions for the fuel cost minimization of steady-state gas pipeline
10. Furey BP (1993) A sequential quadratic programming-based networks. Math Comput Model 31:197–220
algorithm for optimization of gas networks. Automatica 32. Wu Y, Lai KK, Liu YJ (2007) Deterministic global optimization
29:1439–1450 approach to steady-steady distribution gas pipeline. Optim Eng
11. Gopalakrishnan A, Biegler LT (2013) Economic nonlinear model 8(3):259–275
predictive control for periodic optimal operation of gas pipeline 33. Zavala VM (2014) Stochastic optimal control model for natural
networks. Comput Chem Eng 52:90–99 gas networks. Comput Chem Eng 64:103–113
12. Gresh MT (2000) Compressor performance aerodynamics for the 34. Zhang J, Zhu D (1996) A bilevel programming method for pipe
user, 2nd edn. Butterworth Heinemann, Boston network optimization. SIAM J Optim 6:838–857
13. Griffith P (1984) Multiphase flow in pipes. J Petrol Technol
36(3):361–367 Publisher’s Note Springer Nature remains neutral with regard to
14. Haupt RL, Haupt SE (2004) Practical genetic algorithms, 2nd edn. jurisdictional claims in published maps and institutional affiliations.
Wiley Interscience Publication, Hoboke
15. Kurz R, Ohanian S (2003) Modeling turbo machinery in pipe-
line simulations. In: 35th annual meeting of Pipeline Simulation
Interest Group (PSIG), Bern, Switzerland
Vol.:(0123456789)