Next Article in Journal
Experimental Evaluation of Napier Grass Gasification in an Autothermal Bubbling Fluidized Bed Reactor
Next Article in Special Issue
Influence of Permeability and Injection Orientation Variations on Dispersion Coefficient during Enhanced Gas Recovery by CO2 Injection
Previous Article in Journal
Integrating Parametric Analysis with Building Information Modeling to Improve Energy Performance of Construction Projects
Previous Article in Special Issue
Fractal and Multifractal Analysis of Pore Size Distribution in Low Permeability Reservoirs Based on Mercury Intrusion Porosimetry
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Efficiently Decoupled Implicit Method for Complex Natural Gas Pipeline Network Simulation

1
School of Mechanical Engineering, Beijing Key Laboratory of Pipeline Critical Technology and Equipment for Deepwater Oil & Gas Development, Beijing Institute of Petrochemical Technology, Beijing 102617, China
2
Research Center of Cloud Simulation and Intelligent Decision-making, Tsinghua Sichuan Energy Internet Research Institute, Chengdu 610042, China
*
Author to whom correspondence should be addressed.
Energies 2019, 12(8), 1516; https://doi.org/10.3390/en12081516
Submission received: 1 March 2019 / Revised: 15 April 2019 / Accepted: 18 April 2019 / Published: 22 April 2019

Abstract

:
The simulation of a natural gas pipeline network allows us to predict the behavior of a gas network system under different conditions. Such predictions can be effectively used to guide decisions regarding the design and operation of the real system. The simulation is generally associated with a high computational cost since the pipeline network is becoming more and more complex, as well as large-scale. In our previous study, the Decoupled Implicit Method for Efficient Network Simulation (DIMENS) method was proposed based on the ‘Divide-and-Conquer Approach’ ideal, and its computational speed was obviously high. However, only continuity/momentum Equations of the simple pipeline network composed of pipelines were studied in our previous work. In this paper, the DIMENS method is extended to the continuity/momentum and energy Equations coupled with the complex pipeline network, which includes pipelines and non-pipeline components. The extended DIMENS method can be used to solve more complex engineering problems than before. To extend the DIMENS method, two key issues are addressed in this paper. One is that the non-pipeline components are appropriately solved as the multi-component interconnection nodes; the other is that the procedures of solving the energy Equation are designed based on the gas flow direction in the pipeline. To validate the accuracy and efficiency of the present method, an example of a complex pipeline network is provided. From the result, it can be concluded that the accuracy of the proposed method is equivalent to that of the Stoner Pipeline Simulator (SPS), which includes commercially available simulation core codes, while the efficiency of the present method is over two times higher than that of the SPS.

1. Introduction

As a high quality and clean fossil fuel, natural gas plays an important role in global industry and economy [1]. Pipelines are the primary means by which the natural gas is transported. As more and more cities are using natural gas as the main energy source, the pipeline network is becoming extraordinarily complex. The characteristic of a complex topology has created many challenges for the design, monitoring, and operating of the pipeline network. The simulation of the natural gas pipeline network allows us to predict the behavior of a gas network system under different conditions. By matching the simulator's output with measured information from Supervisory Control and Data Administration (SCADA) systems, the gas pipelines can be estimated in real-time [2], the historical conditions can be reviewed, and the unexpected transient conditions can be analyzed [3]. Such predictions and analyses can be effectively used to guide decisions regarding the design and operation of the real pipeline network system. For example, Gssco improved his pipeline capacity with the help of a commercial tool known as the Pipeline Modeling System (PMS) [4].
Depending on the gas flow characteristics in the network system, there are two states in which the simulation can be: steady simulation (static simulation) and unsteady simulation (transient simulation). Steady simulation does not take into account the gas flow characteristics’ variations over time. The goal of steady simulation is usually to compute the nodes’ pressures, the nodes’ loads, and the pipes’ flow rates for the network design. The pressures at the nodes and the flow rates in the pipes must satisfy the general flow equations; the lodes’ loads must fulfill the first Kirchhoff’s law or Node formulation and the pressure drop around any closed loop must fulfill the second Kirchhoff’s law or Loop formulation. The steady simulation was explained in detail by Osiadacz [5], and interested readers can refer to it. Unsteady simulation considers the facts that gas flow characteristics are mainly functions of time. In fact, the gas flow in a pipeline is actually a transient process, while a steady state is rare in practice. Thus, unsteady simulation is more practical for the operations of a real pipeline network. However, the mathematical model of unsteady simulation is a system of partial differential equations (PDEs) of mass conservation, momentum conservation, and energy conservation. The mathematical model is usually solved by numerical methods [6,7,8,9,10,11,12,13,14,15], and the frequently used numerical methods are method of characteristics (MOC), finite difference methods (FDM), and finite element methods (FEM). MOC firstly reduces PDEs to a family of ordinary differential equations (ODEs) along the characteristic curves, and the ODEs are then solved along the characteristic curves to obtain the flow and thermodynamic parameters. FDM firstly divides the long pipeline into many short sections, then converts PDEs into a system of difference Equations (DEs) on these small sections, and lastly solves DEs by matrix algebra techniques. FEM firstly divides the entire pipeline into many small sections that are so-called finite elements, then uses variational methods to derive the simple equations for these finite elements, and lastly solves the larger system of simple equations by minimizing an associated error function. Thorley and Tiley [16] have provided an excellent literature review of these methods, and interested readers can refer to it.
Among these methods, the implicit finite difference method is one of the most widely applied methods because its time step is not restricted by the stability criterion [6,17,18,19]. This means that the time step of the implicit finite difference method can be very large, which is very useful for simulating long-term transient flow in a natural gas pipeline. However, in the implicit finite difference method, one system of large-scale nonlinear discretized Equations needs to be solved [20]. When working with large-scale pipeline networks, its efficiency could be low and unsatisfactory, especially on a personal computer.
To improve the computational speed of the implicit finite difference method, a series of research projects have been carried out. Kiuchi [17,18] and Wylie et al. [19] directly ignored the convective inertia term in the governing Equations of a pipeline to avoid nonlinear equations. However, this process could reduce the accuracy of simulation [21]. Luskin [22] proposed a linearized method where the nonlinear governing equations were linearized about the previous time step based on the Taylor expansion. Zheng et al. [23] found that the linearized method could improve the computational speed by over five times. Barley [24] and Helgaker and Ytrehus [25] put forward a decoupled solution strategy, in which the continuity/momentum equations (flow equations) and energy equation (thermodynamics equation) were solved alternatively. This strategy could further increase the computational speed by about 20%. Wang et al. [26] found that the form of flow equations, which took the density and velocity as the solving variables, was the most efficient form. The computational speed was further improved by 50%. Many researchers, such as Wylie et al. [19] and Stoner [27], have recommended the sparse matrix technique to efficiently solve the large-scale discretized equations of network simulation. Madoliat et al. [13] proposed a novel approach based on intelligent algorithms, such as particle swarm optimization (PSO), for dynamic simulation of a gas pipeline network. These studies have improved the computational speed of natural gas pipeline network simulation to a considerable extent.
However, in the above studies, all pipelines in the network must be solved simultaneously, and one system of large-scale equations inevitably has to be solved. It is well-known that the computational speed of small-scale equations is faster than that of large-scale equations. Therefore, dividing the network into several pipelines and then solving them one by one is an effective way to further improve the computational speed of natural gas pipeline network simulation. This is the idea of the ‘Divide-and-Conquer Approach’. Based on this idea, a fast method for the flow simulation of natural gas pipeline networks was proposed in our previous study [28], called the Decoupled Implicit Method for Efficient Network Simulation (DIMENS). In the DIMENS method, the flow equations of all the multi-pipeline interconnection nodes were firstly solved, and the flow parameters such as pressure and flow rate were known; the pipeline network was then divided into several independent pipelines, and the pipelines were efficiently solved one by one. Thus, this method is more efficient than the commercially available simulation core codes of Stoner Pipeline Simulator (SPS), whose computational speed can represent the highest level in the world.
In our previous work [28], the gas flow was considered isothermal, and the pipeline network was only composed of pipelines. Thus, the DIMENS method was only implemented in flow equations of the simple pipeline network. However, in practical engineering problems, the pipeline network is generally very complex, which includes not only pipelines, but also non-pipeline components, such as compressors, valves, supplies, and demands [12]. What is more, many researchers [24,25,29,30] have shown that the thermodynamic parameters have a major impact on the flow parameters of a pipeline network, and the effect of treating the gas in a non-isothermal manner was extremely necessary for pipeline flow calculation accuracies.
To overcome the above issue, the DIMENS method is extended to the flow and thermodynamic-coupled simulation of the complex pipeline network in this paper. The layout of this paper is as follows. First, the mathematical model of the pipeline network and its discretization is introduced. Second, the main idea of the DIMENS method is reviewed. Third, the implementation process of the extended DIMENS method is given, and the solution procedures of the thermodynamic equations are elaborated. Finally, a numerical case of the complex pipeline network is designed to test the performance of the present method.

2. Mathematical Model and Discretization

2.1. Mathematical Model

The pipeline network is mainly formed by interconnecting many kinds of components, and the basic components are pipelines, compressors, valves, supplies, demands, and so on [8]. The components of the pipeline network can be classified into four categories, namely, pipelines, non-pipelines, externals, and multi-component interconnection nodes. Therefore, the mathematical model of the natural gas pipeline network in this paper includes four parts: pipeline model, non-pipeline model, multi-component interconnection node model, and boundary conditions.

2.1.1. Pipeline Model

For natural gas pipeline network simulation, the flow in the pipeline is generally assumed to be homogeneous equilibrium flow with negligible fluid/structure interactions, and the influence of the non-uniformity of the velocity distribution is neglected. The pipeline model is a set of governing equations of homogeneous, geometrically one-dimensional flow in the pipeline, which consist of the continuity equation, momentum equation, and energy equation. The continuity and momentum equations are so-called flow equations, and the energy equation is a so-called thermodynamic equation. These equations can be written in a general form [24,25,26,31], as shown in Equation (1), and 50the parameters of the general form are given in Table 1. The detailed process of transformations and the parameter expressions of Equation (1) can be found in Appendix A:
U t + B U x = F ,
It should be noted that natural gas is a compressible gas, and its thermodynamic properties (pressure, volume, temperature) are property relations. An equation of state which would express the density in terms of pressure and temperature needs to be close to Equation (1). Several different equations of state, including SRK, PR, BWRS, AGA-8, GERG 88, and GERG 2004, are applied in the industry. The sensitivity of the selection of the equation of state for pipeline gas flow models was investigated by Chaczykowski [32]. In this paper, the BWRS equation of state [20,33] is used, and the BWRS equation is formulated as
p = ρ R T + ( B 0 R T A 0 C 0 T 2 + D 0 T 3 E 0 T 4 ) ρ 2 + ( b R T a d T ) ρ 3 + α ( a + d T ) ρ 6 + c ρ 3 T 2 ( 1 + γ ρ 2 ) exp ( γ ρ 2 )
In total, it contains 11 coefficients. Values and mixing rules can be found in the literature [20,33].

2.1.2. Non-Pipeline Model

The main non-pipeline components in the natural gas pipeline network are compressor and valve components. Their mathematical models can be found in much literature [12,23]. In this paper, the mathematical models of compressors and valves are presented as Equations (3) to (5) and Equations (6) to (7), respectively.
Compressors model:
m in m out = 0 ,
p out ε p in = 0 ,
T out T in ε n 1 n = 0 ,
where, ε = a + b Q in + c Q in 2 .
Valves model:
m in m out = 0 ,
m in C v ρ in p in 2 p out 2 Z Δ T in = 0 ,
T out T in + ( p out p in ) { 1 c p [ T ρ 2 ( p / T ) ρ ( p / ρ ) T 1 ρ ] } out = 0 ,

2.1.3. Multi-Component Interconnection Node Model

In each multi-component interconnection node, the laws of mass conservation, the equality of pressure, and the equality of gas temperature must be observed [12,20,26,28,31]. The corresponding mathematical models are represented by Equations (9) to (10).
Mass conservation:
m in = m out ,
Equality of pressure:
p in , 1 = p in , 2 = p out , 1 = p out , 2 ,
Equality of gas temperature outflow from the node:
T out , 1 = T out , 2 = | c p m T | in / | c p m | out ,

2.1.4. Boundary Conditions

The boundary conditions give the value of pressure, flow rate, and temperature of the external components [12,26,28,31]. The external components of the gas pipeline network include the supply and the demand. The supply is the component where gas is injected into the network, and the demand is the component where gas is extracted from the network. The boundary conditions are represented by Equations (12) to (14).
Pressure:
p = p ( t ) ,
Flow rate:
m = m ( t ) ,
Temperature:
T = T ( t ) ,

2.2. Discretization

The pipeline model, that is Equation (1), is a nonlinear partial differential equation. It can be linearized about the previous time step based on the Taylor expansion, as shown below [12,17,18,23,24,26]:
U t + B ¯ U x + G ¯ ( U U ¯ ) = F ¯ + S ¯ ( U U ¯ ) ,
where, [ G ] i , j = l = 1 n ( B u j ) i , l u l x , [ S ] i , j = F i u j . The detailed expressions of G and S can be found in Appendix A. It should be noted that the bar ’ ¯ ’ above the matrixes B , G , F , S , and U represents the previous time step, so B ¯ , G ¯ , F ¯ , S ¯ , and U ¯ are calculated by the results of the previous time step.
The pipeline is divided into N sections, and thus, there are N + 1 grid points. The ith section is the section between the ith point and the (i + 1)th point. Figure 1 is the schematic diagram of the pipeline grid.
The flow equations of Equation (15) are discretized by the central difference scheme in the ith section in Figure 1, and the discretized flow equations are obtained as Equation (16) [26,28,31]:
C E i U i n + 1 + D W i U i + 1 n + 1 = H i ,
where, C E i = 1 2 Δ t I 1 Δ x B ¯ + 1 2 ( G ¯ S ¯ ) ; D W i = 1 2 Δ t I + 1 Δ x B ¯ + 1 2 ( G ¯ S ¯ ) ; H i = F ¯ + ( G ¯ S ¯ + 1 Δ t ) U ¯ .
The thermodynamic equation of Equation (15) is discretized by the upwind scheme at the ith point in Figure 1, and the discretized thermodynamic equation is obtained as Equation (17) [23,29,31]:
U P i T i 1 n + 1 + C E i T i n + 1 + D W i T i + 1 n + 1 = H i ,
where, U P i = max ( w i n + 1 , 0 ) 1 Δ x ; C E i = ( 1 Δ t S ¯ + | w i n + 1 | 1 Δ x ) ; D W i = max ( w i n + 1 , 0 ) 1 Δ x , H i = F ( T i n ) + ( 1 Δ t S ¯ ) T i n .
Equations (3) to (17) are the flow and thermodynamic-coupled discretized equations of the natural gas pipeline network. These equations are split into two parts: the system of flow equations and the system of thermodynamic equations.
The system of flow equations consists of Equations (3) to (4), Equations (6) to (7), Equations (9) to (10), Equations (12) to (13), and equation (16). The system of thermodynamic equations consists of Equation (5), Equation (6), Equation (11), Equation (14), and Equation (17).
The decoupled solution strategy [23,24,25] is adopted to efficiently solve the flow and thermodynamic-coupled discretized equations. In the decoupled solution strategy, the discretized flow equations are firstly solved using the interpolated temperature, and the discretized thermodynamic equations are then solved using the solved flow variables, such as the pressure and flow rate. The decoupled solution strategy is shown in Figure 2.

3. Main Idea of the DIMENS Method

In the DIMENS method, the network is firstly divided into several independent pipelines, and the pipelines are then efficiently solved one by one. Figure 3 shows an example, where a pipeline network is divided into four interconnection nodes and three pipelines.
The key to decoupling the pipelines is solving the multi-pipeline interconnection nodes. However, the equation number of the multi-pipeline interconnection nodes is less than the number of the unknowns to be solved, so those equations of nodes cannot be solved directly.
Our previous work [28] is the first report on how to solve the above problem. The idea of solving the problem is that ‘the supplemental equations for solving the multi-pipeline interconnection nodes are obtained from the discretized equations of the pipeline’. In other words, the discretized equations of pipelines are solved in advance to obtain supplemental equations, and the equations of multi-pipeline interconnection nodes are then solved with the supplemental equations. Figure 4 shows the procedure of the DIMENS method for the pipeline network.
In our previous work [23], the DIMENS method was only implemented in flow simulation of the simple pipeline network, which is only composed of pipelines. In the following section, the DIMENS method is extended to the flow and thermodynamic-coupled simulation of the complex pipeline network, which includes pipelines and non-pipeline components. Based on the flow and thermodynamic-decoupled solution strategy [23,24,25], the DIMENS method is implemented in the flow simulation and thermodynamic simulation, respectively.

4. Extended DIMENS for Complex Pipeline Network

4.1. Implementation of the Flow Simulation of the Complex Pipeline Network

4.1.1. Analysis of Flow Simulation

In our previous work [28], the process of solving flow Equations by the DIMNES method has been discussed in detail as step1, step2, and step3. However, the pipeline network does not involve non-pipeline components, such as compressor and valve components. In this paper, the non-pipeline components are appropriately solved as multi-component interconnection nodes in step 2 of the DIMENS method. The procedures of the DIMENS method in flow simulation are given below.

4.1.2. Procedures of the DIMENS Method in Flow Simulation

Step 1: Pre-solve pipeline
By taking the pressure of the starting point p1 and the mass flow rate of the terminal point mN+1 as free variables, Equation (16) can be solved by the block three diagonal matrix algorithm (BTDMA). It's general solution can be written as Equation (18). The detailed solution process can be viewed in previous literature [28]:
[ p 1 , m 1 , , p N + 1 , m N + 1 ] T = p 1 α + m N + 1 β + γ ,
Equations (19) and (20) are the supplemental equations used to solve the multi-component interconnection nodes. These equations are the key to solving the multi-component interconnection nodes.
m 1 = α 1 m p 1 + β 1 m m N + 1 + γ 1 m ,
p N + 1 = α N + 1 p p 1 + β N + 1 p m N + 1 + γ N + 1 p ,
Step 2: Solve the multi-component interconnection node
With the supplemental equations obtained from step 1, the equations of multi-component interconnection nodes are closed and can be solved. The closed equations are composed of four parts: (1) the flow equations of the non-pipeline model, Equations (3) to (4) and Equations (6) to (7); (2) the flow equations of the multi-component interconnection node model, Equations (9) to (10); (3) the flow equations of boundary conditions, Equations (12) to (13); and (4) the supplemental equations obtained from the first step, Equations (19) to (20). The unknown variables of the closed equations are the mass flow rates and pressures of the starting and terminal points of all components. The preconditioned conjugate gradient (CG) algorithm proposed in our previous work [28] is employed to solve the closed equations. For better understanding how the equations of multi-component interconnection nodes are solved, a simple pipeline network is given as the example in Appendix B.
Step 3: Solve the internal points of the pipeline
The values of the free variables (p1 and mN+1) solved in step 2 are substituted into Equations (19) to (20). The flow parameters of the internal grid points of the pipelines can be easily obtained to complete the flow simulation of the whole pipeline network. Through the above three steps, the flow simulation of the complex pipeline network can be solved by the DIMENS method.

4.2. Implementation of the Thermodynamic Simulation of the Complex Pipeline Network

4.2.1. Analysis of Thermodynamic Simulation

It is generally known that the downstream propagation of natural gas temperature is dominated by gas flow in the pipeline, and only upstream gas affects downstream gas. Therefore, only the temperature of the pipeline inlet can be chosen as the free variable for the DIMENS method to solve the thermodynamic equations. However, the direction of gas flow in the pipeline can unpredictably change during the transience. This means that gas could flow into the pipeline either from the starting or terminal point of the pipeline. Therefore, the flow states of gas in the pipeline should be analyzed to choose the free thermodynamic variables for the DIMENS method.
During the transience of the natural gas flow in the pipeline, there are four kinds of flow states: (1) natural gas flows out of the pipeline from both the starting and terminal points; (2) natural gas flows into the pipeline from the starting point and flows out of the pipeline from the terminal point; (3) natural gas flows into the pipeline from the terminal point and flows out of the pipeline from the starting point; and (4) natural gas flows into the pipeline from both the starting and terminal points. According to the corresponding gas flow state, pipelines can be classified as four types. The flow states and types of the pipeline are shown in Table 2.
For the first type of pipeline, the thermodynamic-discretized equation of the pipeline model, Equation (17), is a closed system. This means that there is no free variable, and the first type of pipeline can be solved directly. For the second type of pipeline, Equation (17) is not a closed system until the temperature of the starting point is known. That is to say, the temperature of the starting point should be chosen as the free variable. Similar to the second type of pipeline, the free variable of the third type of pipeline is the temperature of the terminal point. For the fourth type of pipeline, until the temperatures of the starting and terminal points are both known, the temperature of the internal grid point in the pipeline can be obtained by solving Equation (17). In other words, the fourth type of pipeline should be solved after the other three pipeline types. The solution requirements of these four types of pipelines are also shown in Table 2.

4.2.2. Procedures of the DIMENS Method in Thermodynamic Simulation

According to the above analysis of the pipeline flow state, the DIMENS method is extended to the thermodynamic simulation of the complex pipeline network, and the detailed procedures are presented as follows.
Step 1: Classify pipelines
Pipelines are classified as four types according to flow state, shown in Table 2.
Step 2: Solve the first type pipeline
The objective of this step is to obtain the thermodynamic parameters of the first type of pipeline. For the first type of pipeline, Equation (17) is closed, which can be rewritten as Equation (21). Then, Equation (21) is solved efficiently by the three diagonal matrix algorithm (TDMA) [34], and the temperature values of all points on the first type pipeline are obtained:
[ C E 1 D W 1 U P 2 C E 2 D W 2 U P N C E N D W N U P N + 1 C E N + 1 ] [ T 1 T 2 T N T N + 1 ] = [ H 1 H 2 H N H N + 1 ] ,
Step 3: Pre-solve the second and third type pipelines
By taking the temperature of starting point T1 of the second type of pipeline as the free variable, Equation (17) can be rewritten as Equation (22), and its general solution is Equation (23). Similar to the second type of pipeline, the temperature of terminal point TN+1 of the third type of pipeline is the free variable, and the corresponding discretized Equation and general solution are Equation (24) and Equation (25), respectively. In addition, the TDMA algorithm [34] is adopted too.
Thermodynamic-discretized equations of the second type of pipeline:
[ 1 0 U P 2 C E 2 D W 2 U P N C E N D W N U P N + 1 C E N + 1 ] [ α 1 γ 1 α 2 γ 2 α N γ N α N + 1 γ N + 1 ] = [ 1 0 0 H 2 0 H N 0 H N + 1 ] ,
General solution of the second type of pipeline:
[ T 1 T 2 T N T N + 1 ] T = T 1 α + γ ,
Thermodynamic-discretized equations of the third type of pipeline:
[ C E 1 D W 1 U P 2 C E 2 D W 2 U P N C E N D W N 0 1 ] [ α 1 γ 1 α 2 γ 2 α N γ N α N + 1 γ N + 1 ] = [ 0 H 1 0 H 2 0 H N 1 0 ] ,
General solution of the third type of pipeline:
[ T 1 T 2 T N T N + 1 ] T = T N + 1 α + γ ,
Equation (26) and Equation (27) are the supplemental equations used to solve the multi-component interconnection nodes. These equations are the key to solving the multi-component interconnection nodes.
T N + 1 = T 1 α N + 1 + γ N + 1 ,
T 1 = T N + 1 α 1 + γ 1 ,
Step 4: Solve the multi-components interconnection node
In the DIMENS method, the fourth step of thermodynamic equations is similar to the second step of the flow equations. The thermodynamic parameters of multi-components interconnection nodes are solved via the closed equations of the starting and terminal points of all components. The complete system of closed equations is comprised of five parts: (1) thermodynamic equations of the non-pipeline model, Equation (5) and Equation (6); (2) thermodynamic equation of the multi-components interconnection node model, Equation (11); (3) thermodynamic equation of the boundary condition, Equation (14); (4) the temperature values of the starting and terminal points of the first type of pipeline that are solved in step 2; and (5) the supplemental equations obtained in step 3, Equation (26) and Equation (27). The unknown variables of these closed equations are the temperatures of the starting and terminal points of all components. The preconditioned CG algorithm that is proposed in the paper [34] is adopted to solve the closed equations. For better understanding how the equations of multi-component interconnection nodes are solved in thermodynamic equations, a simple pipeline network is given as the example in Appendix C.
Step 5: Solve the internal points of the second and third pipelines
The fifth step of thermodynamic equations is similar to the third step of the flow equations. The values of the free variables solved in step 4 are substituted into Equation (23) and Equation (25), and the temperature value of the internal grid points of the first and second types of pipelines can be easily obtained.
Step 6: Solve the fourth type pipeline
After step 5, the temperatures of the starting and terminal points of all pipelines are known. Then, Equation (17) of the fourth type of pipeline is rewritten as Equation (28), and is efficiently solved by the TDMA algorithm [34].
[ 1 0 U P 2 C E 2 D W 2 U P N C E N D W N 0 1 ] [ T 1 T 2 T N T N + 1 ] = [ T 1 s H ( 2 ) H ( N ) T N + 1 s ] ,
Through the above six steps, thermodynamic simulation of the complex pipeline network can be solved by the DIMENS method.

5. Results and Analysis

An example of the complex pipeline is designed to validate the DIMENS method here. The calculation accuracy of the DIMENS method is investigated by comparing the numerical solution obtained by the DIMENS method with that of SPS. The computational speed of the DIMENS method is investigated by comparing the CPU time of the DIMENS method with that of SPS.

5.1. Description of the Numerical Test

The complex pipeline is comprised of 84 pipelines, four compressors, eight valves, and 51 externals, and the structure of the complex pipeline network is shown in Figure 5 and detailed data are given in Table 3, Table 4, Table 5 and Table 6. All the pipelines are horizontal, with a roughness, thickness, and thermal conductivity of 0.02286 mm, 5 mm, and 0.0127 W/(m·K), respectively.
The components of natural gas are listed in Table 7. The standard pressure and temperature are 101.325 kPa and 20 °C, respectively. The Colebrook Equation is used as the friction Equation [35]. During simulation, the ambient temperature is maintained at 15 °C.
The initial pressure is 2.8 MPa, the initial volume flow rate is zero, and the initial temperature is 15 °C. After t = 0 h, the pressure of some externals is maintained, the volume flow rate of some externals increases suddenly, the compressors are started, and the valves are opened. During the simulation, the volume flow rate of some externals is constant, while the volume flow rate of other externals and the valve opening (FR) of valves are changed, shown as Table 8, Table 9 and Table 10, respectively. It is assumed that: (1) all the compressors have the same performance curve as shown in Figure 6, the rated speed of the compressor is 6000 RPM, and the start time is 3 minutes; (2) all the valves are same, the flow coefficient of the valve in this paper is calculated by the Equation Cv = 200 − 200FR, and the travel time of the valve is one minute.

5.2. Comparison of Numerical Accuracy

The case of the complex pipeline network is simulated by the DIMENS and SPS, respectively. The time step and spatial step are 10 s and 0.5 km, respectively. The pressure, volume flow rate, and temperature of the starting point of some pipelines during 0–10 h are shown in Figure 7, Figure 8 and Figure 9. The pressure, volume flow rate, and temperature of the compressor 1# are shown in Figure 10.
Figure 7, Figure 8 and Figure 9 show that the numerical solutions of flow simulation, such as pressure and flow rate, obtained by the DIMENS method, are in good agreement with those obtained by SPS. The results of these comparisons are the same as in previous literature [28]. This can validate the DIMENS method for flow equations of the complex pipeline network. In addition, it is clearly seen from Figure 9 that the difference between the temperature obtained by the DIMENS method and that obtained by SPS is very small. The maximum deviation of temperature of the two methods is less than 1 °C, which can be found at the starting point of pipe 63 at t = 6 h, as shown in Figure 9b. This is acceptable for practical engineering problems of natural gas pipeline transportation. That is to say, the DIMENS method is also accurate for the thermodynamic simulation. Additionally, the results of pressure, flow rate, and temperature of the compressor obtained by the DIMENS method are also in good agreement with those of SPS, as shown in Figure 10. This means that the complex start-up process of the compressor can be accurately simulated by the DIMENS method too. The above analysis shows that the DIMENS method has a high accuracy comparable to the accuracy of the SPS and can meet the requirements of practical engineering problems.
To further test the simulation accuracy of the DIMENS method, the results of the pipeline network at t = 24 h obtained by the DIMENS method and SPS are compared, as shown in Figure 11, Figure 12 and Figure 13.
From the comparison of the pressure of the connection nodes in Figure 11, it can be seen that the pressures obtained by the two methods are almost the same, and the maximum absolute and relative deviations of pressure are 0.015 MPa and 0.45%, respectively. From the comparison of the volume flow rate in Figure 12, the maximum absolute and relative deviations of the volume flow rate are 2.4 × 104 Nm3/h and 3.5%, respectively. What is more, the maximum absolute deviation of temperature is less than 0.5 °C, as shown in Figure 13. It can be summarized that the deviation between the numerical solution calculated by the DIMENS method and SPS is sufficiently small. These analyses again imply that the calculation accuracy of the DIMENS method is comparable to that of SPS.

5.3. Comparison of Computational Efficiency

The number of discretized grid points of the pipeline network and the number of pipeline sections of the pipeline network are two main factors that can affect the efficiency of pipeline network simulation. Therefore, the computational speed of the DIMENS method proposed in this paper is examined from three aspects: (1) the number of discretized grid points; (2) the number of components; and (3) the number of discretized grid points and the number of components. The restart process of the complex pipeline network is simulated by both the DIMENS method and SPS, and the CPU times are recorded and compared. The time step is 10 s, and the simulation time is 1 day. The computations are carried out on a computer equipped with a 2.6 GHz Intel Xeon E5-2640 CPU with 64 GB RAM.
First, the topology of the pipeline network in Figure 5 is unchanged, while the pipelines are discretized by different spatial steps. The adaptability of the DIMENS method for the number of discretized grid points is studied. The CPU time is shown in Figure 14.
It can be seen from Figure 14 that the CPU time of the DIMENS method is less than that of the SPS. This means that the DIMENS method is more efficient than SPS. What is more, the CPU times of these two methods are both almost linear with the number of discretized points. This indicates that the DIMNES method and the SPS both have a strong adaptability to the increase of discretized points of the pipeline network. However, with the same number of discretized points, the CPU time of SPS is always longer than that of DIMENS method. The slope of the line of the DIMENS method in Figure 14 is 0.01, while that of SPS is 0.036. This is means that the efficiency of the DIMENS method is about 0.0036/0.01 = 3.6 times higher than that of the SPS as the number of discretized points is increasing. In other word, the DIMENS method is more efficient than SPS.
Second, the total number of discretized grid points is unchanged, while the number of components of the pipeline network is increased. The adaptability of the DIMENS method for the number of components is studied. The CPU time is shown in Figure 15.
It is clearly shown in Figure 15 that the CPU time of the DIMENS method is also less than that of the SPS. This means that the computational efficiency of the DIMENS method is high. What is more, the CPU time of the DIMENS method and that of the SPS are both linear with the number of components. The fit linear curve of SPS is y = 376 + 0.55x, and that of DIMENS is y = 31 + 0.59x. In other words, the gradients of the two lines are similar. Thus, the DIMNES method and the SPS are both not only well adapted to the increase of discrete points, but also to the increase of components. This indicates that the DIMNES method and the SPS both have a strong adaptability to the number of pipeline sections.
Last, the pipe network, as shown in Figure 5, is copied multiple times and connected to each other to form a larger network. The adaptability of the DIMENS method for the couple of grid points and components is studied. The CPU time is shown in Figure 16.
Figure 16 shows that the CPU time of the DIMENS method and that of the SPS are both linear with multiple network expansions. However, with the same multiple network expansions, the CPU time of SPS is always more than that of DIMENS method, and the slope of the line of the DIMENS method is smaller than that of SPS. That is to say, the CPU time of the DIMENS method is always less than that of SPS, and the DIMENS method would be more time-saving with the larger scale of the pipe network. This indicates that the DIMENS method is more efficient than SPS. It can be further seen that the fitted linear curve of SPS is y = 45 + 405x, while that of DIMENS is y = −56 + 187x. In other words, the slope of the line of the DIMENS method is about 187, while the slope of the line of SPS is about 405, which is over two times greater (405/187 = 2.16) than that of the DIMENS method. This means that the computing efficiency of the DIMENS method is over two times greater than that of SPS.

6. Conclusions and Future Work

In this paper, the DIMENS method has been extended to the flow and thermodynamic-coupled simulation of the complex pipeline network that includes pipelines and non-pipeline components. The simulation accuracy and efficiency of the present method have been investigated through an example of the complex pipeline network. The conclusions are as follows:
(1)
DIMES shows a very good agreement with SPS (differences below 3.5%). This accuracy can meet the requirements of practical engineering;
(2)
The CPU time of the DIMENS method is always less than that of SPS, and the computational speed of the DIMENS method is over two times higher than that of the SPS;
(3)
The DIMENS method has a strong adaptability to the scale of the pipeline network. The CPU time of the DIMNES method is linear with the size of the pipeline network.
In recent years, as a rapidly developing role in High Performance Computing (HPC), Graphic Processing Unit (GPU) computing has been becoming a research hotspot in many research fields. In order to maximize the GPU computing speed, the parallel granularity of the computational task should be fine enough. Thus, the algorithm should be highly parallel. In the DIMENS method, the pipelines in the network are parallel and the solution process of one pipeline is parallel too. This means that the parallel characteristic of the DIMENS method greatly matches the GPU. Therefore, to improve the computational speed further, it would be meaningful and worthwhile to study the GPU-accelerated simulation for large-scale natural gas pipeline networks in the future.

Author Contributions

Conceptualization, B.Y.; Methodology, P.W.; Validation, S.A., D.H., and Y.X.; Writing—original draft, P.W.; Writing—review & editing, P.W. and B.Y.

Funding

The study is supported by the National Natural Science Foundation of China (No. 518060180), the Project of Construction of Innovative Teams and Teacher Career Development for Universities and Colleges under Beijing Municipality (No. IDHT20170507), and the Program of Great Wall Scholar (No. CIT&TCD20180313).

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

Roman symbols 

cvSpecific heat capacity at constant volume, J/(kg·K)
cpSpecific heat capacity at constant pressure, J/(kg·K)
eSpecific internal energy, J/(kg·K)
dInternal diameter of pipe, m
gGravitational acceleration, m/s2
hSpecific enthalpy, J/(kg·K)
mMass flow rate, kg/s
nPolytropic index
pPressure, Pa
sElevation, m
tTime, s
uCorresponding component of general variable U
wFlow velocity, m/s
xSpatial coordinate, m
ACross-section area, m2
CvFlow coefficient of valve
FRValve opening
KTotal heat transfer coefficient, W/(m2·K)
NNumber of discretized sections of pipeline
QVolume flow, m3/s
RSpecific gas constant, J/(kg·K)
TTemperature, K
UGeneral variable
ZCompressibility factor

Greek symbols 

α, βFundamental set of solution
γParticular solution
ρDensity, kg/m3
θInclination angle of a pipe, rad
λFriction factor
εCompression ratio
ΔSpecific density of natural gas relative to air
ΔxSpatial step, m
ΔtTime step, s

Superscripts 

nTime level
mRelated to mass flow
pRelated to pressure

Subscripts 

npcNon-pipeline components
inFlow in
outFlow out
pPipeline
cCompressor
vValve
sSupply
dDemand

Appendix A

The pipeline model is a set of governing equations of homogeneous, geometrically one-dimensional flow in the pipeline, which consists of the continuity equation (A1), momentum equation (A2), and energy equation (A3):
ρ t + ( ρ w ) x = 0 ,
( ρ w ) t + ( ρ w w ) x + p x = λ 2 ρ w | w | d ρ g sin θ ,
t [ ( e + w 2 2 + g s ) ρ A ] + x [ ( h + w 2 2 + g s ) ρ w A ] = q ρ w A ,
With the following equations:
Cross-section area:
A = π 4 d 2 ,
Mass flux:
m = ρ w A ,
Specific heat increment:
q = π K d ( T T g ) m ,
Relationship between elevation and inclination:
θ = s x ,
Derivation rule of composite functions:
ρ t = ( ρ p ) T p t + ( ρ T ) p T t ,
ρ x = ( ρ p ) T p x + ( ρ T ) p T x ,
d ( ) d t = ( ) t + w ( ) x ,
Fundamental equations of thermodynamic functions:
( ρ T ) p = ( p T ) ρ ( ρ p ) T = ( p T ) ρ ( p ρ ) T ,
( ρ p ) T = 1 ( p ρ ) T ,
d h = d e + d ( p ρ ) ,
d e = c v d T 1 ρ 2 [ T ( p T ) ρ p ] d ρ ,
Equations (A1) to (A3) can be transformed to mathematical forms with pressure, mass rate, and temperature as the dependent variables.
Continuity Equation
Substituting Equation (A5) and Equation (A8) into Equation (A1),
( ρ p ) T p t + ( ρ T ) p T t + 1 A m x = 0 ,
Substituting Equation (A11) and Equation (A12) into Equation (A13),
p t ( p T ) ρ T t + 1 A ( p ρ ) T m x = 0 ,
Momentum Equation
Substituting Equation (A5) into Equation (A2),
m t + 2 m A ρ m x m 2 A ρ 2 ρ x + A p x = λ 2 m | m | d A ρ A ρ g sin θ ,
Substituting Equation (A9) into Equation (A17),
m t + [ A m 2 A ρ 2 ( ρ p ) T ] p x + 2 m A ρ m x = λ 2 m | m | d A ρ A ρ g sin θ + m 2 A ρ 2 ( ρ T ) p T x ,
Energy Equation
Substituting Equations (A4)–(A7) into Equation (A3),
t [ ( h + w 2 2 ) ρ A ] p t + x [ ( h + w 2 2 ) ρ w A ] = π K d ( T T g ) ρ w g A sin θ ,
Substituting Equation (A13) into Equation (A19),
t [ ( h + w 2 2 ) ρ ] p t + w x [ ( h + w 2 2 ) ρ ] + ( h + w 2 2 ) ρ w x = 4 K ( T T g ) d ρ w g sin θ ,
Equation (A20) can be rewritten in the form
ρ d d t ( h + w 2 2 ) + ( h + w 2 2 ) [ ρ t + w ρ x + ρ w x ] p t = 4 K ( T T g ) d ρ w g sin θ ,
ρ d h d t p t + ρ w d w d t = 4 K ( T T g ) d ρ w g sin θ ,
Equation (A2) can be rewritten in the form
ρ w t + ρ w w x + p x = λ 2 ρ w | w | d ρ g sin θ ,
ρ w d w t = w p x λ 2 ρ | w | 3 d ρ w g sin θ ,
Substituting Equation (A22b) into Equation (A21b),
ρ d h d t p t w p x = λ 2 ρ | w | 3 d 4 K ( T T g ) d ,
ρ d h d t d p d t = λ 2 ρ | w | 3 d 4 K ( T T g ) d ,
Substituting Equation (A13) into Equation (A23b),
ρ d e d t p ρ d ρ d t = λ 2 ρ | w | 3 d 4 K ( T T g ) d ,
Substituting Equation (A14) into Equation (A24),
ρ c v d T d t T ( p T ) ρ 1 ρ d ρ d t = λ 2 ρ | w | 3 d 4 K ( T T g ) d ,
Equation (A1) can be rewritten in the form
ρ t + w ρ x + ρ w x = 0 ,
d ρ d t = ρ w x ,
Substituting Equation (A26b) into Equation (A25),
T t + w T x = 1 ρ c v [ T ( p T ) ρ w x + λ 2 ρ | w | 3 d 4 K ( T T g ) d ] ,
Equation (A14), Equation (16) and Equation (A23) can be written in the general form
U t + B U x = F ,
The detailed expressions of U, G, and S in the pipeline model are as follows:
Flow Equation:
U = [ u 1 u 2 ] = [ p m ] ,
G = [ 1 A p ( p ρ ) T m x 0 { m 2 A [ 2 ρ 3 ( ρ p ) T 2 1 ρ 2 p ( ρ p ) T ] p x 2 m A ρ 2 ( ρ p ) T m x } 2 m A ρ 2 ( ρ p ) T p x + 2 A ρ m x ] ,
S = [ T t p ( p T ) ρ 0 { λ 2 m | m | d A ρ 2 ( ρ p ) T A g sin θ ( ρ p ) T + m 2 A T x p ( 1 ρ 2 ( ρ T ) p ) } λ | m | d A ρ + 2 m A ρ 2 ( ρ T ) p T x ] ,
Thermodynamic Equation:
U = T ,
G = 0 ,
S = { 1 ρ c v ( ( p T ) ρ w x T w x T ( p T ) ρ + λ 2 | w | 3 d ρ T 4 K d ) [ T ( p T ) ρ w x + λ 2 ρ | w | 3 d 4 K ( T T a ) d ] ( 1 ρ c v ) 2 ( ρ c v T + c v ρ T ) } ,

Appendix B

To describe in detail how the flow equations of multi-component interconnection nodes are solved, a pipeline network is given as the instance. The pipeline network is comprised of three pipes, one compressor, one valve, and two externals, as shown in Figure A1. The closed equations for the solution of multi-component interconnection nodes are Equations (A35)–(A58), shown as below.
Figure A1. The schematic diagram of the structure of a pipeline network.
Figure A1. The schematic diagram of the structure of a pipeline network.
Energies 12 01516 g0a1
Flow equations of the compressor:
m in , c m out , c = 0 ,
ε p in , c p out , c = 0 ,
Flow equations of the valve:
m in , v m out , v = 0 ,
m in , v C v ρ in , v ( p in , v 2 p out , v 2 ) Z Δ T in , v ¯ = 0 ,
Flow equation of supply:
p s = p ( t ) ,
Flow equation of demand:
m d = m ( t ) ,
Flow equations of multi-component interconnection node 1:
m s = m 1 , p 1 ,
p s = p 1 , p 1 ,
Flow equations of multi-component interconnection node 2:
m N 1 + 1 , p 1 = m in , c ,
p N 1 + 1 , p 1 = p in , c ,
Flow equations of multi-component interconnection node 3:
m out , c = m 1 , p 2 ,
p out , c = p 1 , p 2 ,
Flow equations of multi-component interconnection node 4:
m N 2 + 1 , p 2 = m in , v ,
p N 2 + 1 , p 2 = p in , v ,
Flow equations of multi-component interconnection node 5:
m out , v = m 1 , p 3 ,
p in , v = p 1 , p 3 ,
Flow equations of multi-component interconnection node 6:
m N 3 + 1 , p 3 = m d ,
p N 3 + 1 , p 3 = p d ,
Supplemental equations of pipe 1:
m 1 , p 1 = α 1 , p 1 m p 1 , p 1 + β 1 , p 1 m m N 1 + 1 , p 1 + γ 1 , p 1 m ,
p N 1 + 1 , p 1 = α N 1 + 1 , p 1 p p 1 , p 1 + β N 1 + 1 , p 1 p m N 1 + 1 , p 1 + γ N 1 + 1 , p 1 p ,
Supplemental equations of pipe 2:
m 1 , p 2 = α 1 , p 2 m p 1 , p 2 + β 1 , p 2 m m N 2 + 1 , p 2 + γ 1 , p 2 m ,
p N 2 + 1 , p 2 = α N 2 + 1 , p 2 p p 1 , p 2 + β N 2 + 1 , p 2 p m N 2 + 1 , p 2 + γ N 2 + 1 , p 2 p ,
Supplemental equations of pipe 3:
m 1 , p 3 = α 1 , p 3 m p 1 , p 3 + β 1 , p 3 m m N 3 + 1 , p 3 + γ 1 , p 3 m , ,
p N 3 + 1 , p 3 = α N 3 + 1 , p 3 p p 1 , p 3 + β N 3 + 1 , p 3 p m N 3 + 1 , p 3 + γ N 3 + 1 , p 3 p
The number of the mass flow and pressure variables at the starting and terminal points of the pipeline is 4, and the numbers of the compressor and valve are both 4 too, while the number of the mass flow and pressure variables of the external component is 2. This means that there are a total of 4 × 3 + 4 × 1+ 4 × 1+2 × 2 = 24 unknown variables for solving the multi-component interconnection nodes in the pipeline network in Figure 5. The number of equations in Equations (A35)–(A58) is 24. Therefore, these equations are closed and have a unique solution.

Appendix C

To describe how the thermodynamic equations of multi-component interconnection nodes are solved in detail, a pipeline network is given as the instance. For instance, the flow state of the pipeline network at a certain moment is shown in Figure A2. Pipe 1, pipe 2, and pipe 3 are respectively the second, fourth, and first type of pipeline. The complete system of linear equations of the multi-component interconnection nodes is presented as follows:
Figure A2. The flow status of the pipeline networks at a given time.
Figure A2. The flow status of the pipeline networks at a given time.
Energies 12 01516 g0a2
Thermodynamic-linearized equation of the compressor:
T out , c T in , c ε m 1 m = 0 ,
Thermodynamic equation of the valve:
T out , v 1 T in , v 1 + ( p out , v 1 p in , v 1 ) 1 c p [ T ρ 2 ( p / T ) ρ ( p / ρ ) T 1 ρ ] out ,   v 1 = 0 ,
Thermodynamic equation of the external component:
T s = T 1 ( t ) ,
Thermodynamic equations of multi-component interconnection nodes 1:
T 1 , p 1 = | c p m | e 1 | c p m | 1 , p 1 T s ,
Thermodynamic equations of multi-component interconnection nodes 2:
T in , c = | c p m | N 1 + 1 , p 1 | c p m | in , c T N 1 + 1 , p 1 ,
Thermodynamic equations of multi-component interconnection nodes 3:
T 1 , p 2 = | c p m | out , c | c p m | 1 , p 2 T out , c ,
Thermodynamic equations of multi-component interconnection nodes 4:
T N 2 + 1 , p 2 = | c p m | in , v | c p m | N 2 + 1 , p 2 T in , v ,
Thermodynamic equations of multi-component interconnection nodes 5:
T 1 , p 3 = | c p m | out , v | c p m | 1 , p 3 T out , v ,
Thermodynamic equations of multi-component interconnection nodes 6:
T d = | c p m | N 3 + 1 , p 3 | c p m | 2 g T N 3 + 1 , p 3 ,
Temperature value of the starting and terminal points of pipe 3:
T 1 , p 3 = T 1 , p 3 solved ,
T N + 1 , p 3 = T N + 1 , , p 3 solved ,
where, the superscript ‘solved’ is standing for having been solved in the second step.
Supplemental equation of pipe 1:
T N 1 + 1 , p 1 = T 1 , p 1 α N 1 + 1 , p 1 + γ N 1 + 1 , p 1 ,
The number of temperature variables at the starting and terminal points of the pipeline, compressor, and valve is 2, while the number of temperature variables of the external component is 1. This means that there are 5 × 2 + 2 × 1 = 12 unknown temperature variables for solving the multi-component interconnection nodes solution in pipeline networks, as shown in Figure A2. There are also 12 Equations in Equations (A59) to (A70). Therefore, these equations are closed and have a unique solution.

References

  1. Birol, F. Golden Rules for a Golden Age of Gas: World Energy Outlook Special Report on Unconventional Gas: Report. International Energy Agency. Available online: www.worldenergyoutlook.org/media/weowebsite/2012/goldenrules/WEO2012_GoldeGRulesReport.pdf (accessed on 22 October 2012).
  2. Turner, W.J.; Kwon, P.S.J.; Maguire, P.A. Evaluation of a gas pipeline simulation program. Math. Comput. Model. 1991, 15, 1–14. [Google Scholar] [CrossRef]
  3. Ouellette, L.; Hanks, H. Integrated simulation and SCADA to replay historical data for a local distribution company. In Proceedings of the PSIG Annual Meeting, Pipeline Simulation Interest Group, Tucson, AZ, USA, 15–17 October 1997. [Google Scholar]
  4. Hendriks, P.H.G.M.; Postvoll, W.; Mathiesen, M.; Spiers, R.P.; Siddorn, J. Improved capacity utilization by integrating real-time sea bottom temperature data. In Proceedings of the PSIG annual Meeting, Pipeline Simulation Interest Group, Williamsburg, VA, USA, 23–25 October 1995. [Google Scholar]
  5. Osiadacz, A. Simulation and Analysis of Gas Networks; E. & F.N. Spon Ltd.: London, UK, 1987; pp. 69–82. [Google Scholar]
  6. Helgaker, J.F.; Müller, B.; Ytrehus, T. Transient flow in natural gas pipelines using implicit finite difference schemes. J. Offshore Mech. Arct. Eng. 2014, 136, 031701. [Google Scholar] [CrossRef]
  7. Wang, H.; Liu, X.; Zhou, W. Transient flow simulation of municipal gas pipelines and networks using semi implicit finite volume method. Procedia Eng. 2011, 12, 217–223. [Google Scholar] [Green Version]
  8. Ebrahimzadeh, E.; Shahrak, M.N.; Bazooyar, B. Simulation of transient gas flow using the orthogonal collocation method. Chem. Eng. Res. Des. 2012, 90, 1701–1710. [Google Scholar] [CrossRef]
  9. Alamian, R.; Behbahani-Nejad, M.; Ghanbarzadeh, A. A state space model for transient flow simulation in natural gas pipelines. J. Nat. Gas Sci. Eng. 2012, 9, 51–59. [Google Scholar] [CrossRef]
  10. Behbahani-Nejad, M.; Shekari, Y. The accuracy and efficiency of a reduced-order model for transient flow analysis in gas pipelines. J. Pet. Sci. Eng. 2010, 73, 13–19. [Google Scholar] [CrossRef]
  11. Farzaneh-Gord, M.; Rahbari, H.R. Unsteady natural gas flow within pipeline network, an analytical approach. J. Nat. Gas Sci. Eng. 2016, 28, 397–409. [Google Scholar] [CrossRef]
  12. Pambour, K.A.; Bolado-Lavin, R.; Dijkema, G.P.J. An integrated transient model for simulating the operation of natural gas transport systems. J. Nat. Gas Sci. Eng. 2016, 28, 672–690. [Google Scholar] [CrossRef]
  13. Madoliat, R.; Khanmirza, E.; Moetamedzadeh, H.R. Transient simulation of gas pipeline networks using intelligent methods. J. Nat. Gas Sci. Eng. 2016, 29, 517–529. [Google Scholar] [CrossRef]
  14. Wang, J.; Wang, T.; Wang, J. Application of π equivalent circuit in mathematic modeling and simulation of gas pipeline. Appl. Mech. Mater. 2014, 496, 943–946. [Google Scholar] [CrossRef]
  15. Herrán-González, A.; Cruz, J.M.D.L.; De Andrés-Toro, B.; Risco-Martín, J.L. Modeling and Simulation of a Gas Distribution Pipeline Network. Appl. Math. Model. 2009, 33, 1584–1600. [Google Scholar] [CrossRef]
  16. Thorley, A.R.D.; Tiley, C.H. Unsteady and transient flow of compressible fluids in pipelines—A review of theoretical and some experimental studies. Int. J. Heat Fluid Flow 1987, 8, 3–15. [Google Scholar] [CrossRef]
  17. Kiuchi, T.T.; Izumi, H.H.; Huke, T.T. An operation support system of large city gas networks based on fluid transient model. J. Energy Resour. Technol. 1995, 117, 324–328. [Google Scholar] [CrossRef]
  18. Kiuchi, T. An implicit method for transient gas flows in pipe networks. Int. J. Heat Fluid Flow 1994, 15, 378–383. [Google Scholar] [CrossRef]
  19. Wylie, E.B.; Stoner, M.A.; Streeter, V.L. Network: System transient calculations by implicit method. Soc. Pet. Eng. J. 1971, 11, 356–362. [Google Scholar] [CrossRef]
  20. Li, Y.; Yao, G. Design and Operation of Gas Pipeline; China University of Petroleum Press: Beijing, China, 2009; pp. 19–26. (In Chinese) [Google Scholar]
  21. Abbaspour, M.; Chapman, K.S. Non-isothermal transient flow in natural gas pipeline. J. Appl. Mech. 2008, 75, 031018. [Google Scholar] [CrossRef]
  22. Luskin, M. An approximation procedure for non-symmetric, nonlinear hyperbolic systems with integral boundary conditions. Siam J. Numer. Anal. 1979, 16, 145–164. [Google Scholar] [CrossRef]
  23. Zheng, J.G.; Chen, G.Q.; Song, F.; Ai, M.Y.; Zhao, J.L. Research on simulation model and solving technology of large scale gas pipe network. J. Syst. Simul. 2012, 14, 133. (In Chinese) [Google Scholar]
  24. Barley, J. Thermal decoupling: An investigation. In Proceedings of the PSIG annual Meeting, Pipeline Simulation Interest Group, Santa Fe, NM, USA, 16–19 April 2012. [Google Scholar]
  25. Helgaker, J.F.; Ytrehus, T. Coupling between continuity/momentum and energy Equation in 1D gas flow. Energy Procedia 2012, 26, 82–89. [Google Scholar] [CrossRef]
  26. Wang, P.; Yu, B.; Deng, Y.; Zhao, Y. Comparison study on the accuracy and efficiency of the four forms of hydraulic Equations of a natural gas pipeline based on linearized solution. J. Nat. Gas Sci. Eng. 2015, 22, 235–244. [Google Scholar] [CrossRef]
  27. Stoner, M.A. Sensitivity analysis applied to a steady-state model of natural gas transportation systems. Soc. Pet. Eng. J. 1972, 12, 115–125. [Google Scholar] [CrossRef]
  28. Wang, P.; Yu, B.; Han, D.; Sun, D. Fast method for the hydraulic simulation of natural gas pipeline networks based on the divide-and-conquer approach. J. Nat. Gas Sci. Eng. 2018, 50, 55–63. [Google Scholar] [CrossRef]
  29. Keenan, P.T. Collation and upwinding for thermal flow in pipelines: The linearized case. Int. J. Numer. Methods Fluids 1996, 22, 835–849. [Google Scholar] [CrossRef]
  30. Osiadacz, A.J.; Chaczykowski, M. Comparison of isothermal and non-isothermal pipeline gas flow models. Chem. Eng. J. 2001, 81, 41–51. [Google Scholar] [CrossRef]
  31. Wang, P.; Yu, B.; Han, D.; Li, J.; Sun, D.; Xiang, Y.; Wang, L. Adaptive implicit finite difference method for natural gas pipeline transient flow. Oil Gas Sci. Technol. Rev. D’ifp Energ. Nouv. 2018, 73, 21. [Google Scholar] [CrossRef]
  32. Chaczykowski, M. Sensitivity of Pipeline Gas Flow Model to the Selection of the Equation of State. Chem. Eng. Res. Des. 2009, 87, 1596–1603. [Google Scholar] [CrossRef]
  33. Benedict, M.; Webb, G.B.; Rubin, L.C. An empirical Equation for thermodynamic properties of light hydrocarbons and their mixtures I. Methane, ethane, propane and n-butane. J. Chem. Phys. 1940, 8, 334–345. [Google Scholar] [CrossRef]
  34. Scott, L.R. Numerical Analysis, 2nd ed.; Princeton University Press: Oxford, MS, USA, 2016; pp. 53–64, 145–149. [Google Scholar]
  35. Colebrook, C.F. Turbulent flow in pipes with particular reference to the transition region between the smooth and rough pipe laws. J. Inst. Civ. Eng. 1939, 11, 133–156. [Google Scholar] [CrossRef]
Figure 1. Grids of the pipeline
Figure 1. Grids of the pipeline
Energies 12 01516 g001
Figure 2. The decoupled strategy.
Figure 2. The decoupled strategy.
Energies 12 01516 g002
Figure 3. Divide-and-conquer approach for the natural gas pipeline network.
Figure 3. Divide-and-conquer approach for the natural gas pipeline network.
Energies 12 01516 g003
Figure 4. Procedure of the DIMENS method for the pipeline network.
Figure 4. Procedure of the DIMENS method for the pipeline network.
Energies 12 01516 g004
Figure 5. The schematic diagram of the topology structure of the complex pipeline network.
Figure 5. The schematic diagram of the topology structure of the complex pipeline network.
Energies 12 01516 g005
Figure 6. The performance curve of the compressor.
Figure 6. The performance curve of the compressor.
Energies 12 01516 g006
Figure 7. Pressure of the starting point of some pipelines: (a) Pipe 3, 15, 25, and 38; (b) Pipe 52, 62, 70, and 83.
Figure 7. Pressure of the starting point of some pipelines: (a) Pipe 3, 15, 25, and 38; (b) Pipe 52, 62, 70, and 83.
Energies 12 01516 g007
Figure 8. Volume flow rate of the starting point of some pipelines: (a) Pipe 1, 62, 72, and 81; (b) Pipe 11, 27, 30, and 52.
Figure 8. Volume flow rate of the starting point of some pipelines: (a) Pipe 1, 62, 72, and 81; (b) Pipe 11, 27, 30, and 52.
Energies 12 01516 g008
Figure 9. Temperature of the starting point of some pipelines: (a) Pipe 9, 17, 36, and 78; (b) Pipe 27, 45, 56, and 63.
Figure 9. Temperature of the starting point of some pipelines: (a) Pipe 9, 17, 36, and 78; (b) Pipe 27, 45, 56, and 63.
Energies 12 01516 g009
Figure 10. Pressure, flow rate, and temperature at the outlet of the 1#compressor outlet: (a) Pressure; (b) flow rate; (c) temperature.
Figure 10. Pressure, flow rate, and temperature at the outlet of the 1#compressor outlet: (a) Pressure; (b) flow rate; (c) temperature.
Energies 12 01516 g010
Figure 11. Comparison of pressure at the connection node: (a) Pressure value; (b) deviation.
Figure 11. Comparison of pressure at the connection node: (a) Pressure value; (b) deviation.
Energies 12 01516 g011
Figure 12. Comparison of flow rate of pipelines: (a) Flow rate value; (b) deviation.
Figure 12. Comparison of flow rate of pipelines: (a) Flow rate value; (b) deviation.
Energies 12 01516 g012
Figure 13. Comparison of temperature at the start and end nodes of pipelines: (a) Temperature value at the start node; (b) deviation at the start node; (c) temperature value at end node; (d) deviation at the end node.
Figure 13. Comparison of temperature at the start and end nodes of pipelines: (a) Temperature value at the start node; (b) deviation at the start node; (c) temperature value at end node; (d) deviation at the end node.
Energies 12 01516 g013aEnergies 12 01516 g013b
Figure 14. Change of CPU time with the number of discretized grid points.
Figure 14. Change of CPU time with the number of discretized grid points.
Energies 12 01516 g014
Figure 15. Change of computing time with the number of pipeline sections.
Figure 15. Change of computing time with the number of pipeline sections.
Energies 12 01516 g015
Figure 16. Change of computing time with multiple network expansions.
Figure 16. Change of computing time with multiple network expansions.
Energies 12 01516 g016
Table 1. Parameters in the governing equations.
Table 1. Parameters in the governing equations.
U B F
[ p m ] [ 0 1 A ( p ρ ) T [ A m 2 A ρ 2 ( ρ p ) T ] 2 m A ρ ] [ ( p T ) ρ T t λ 2 m | m | d A ρ A ρ g sin θ + m 2 A ρ 2 ( ρ T ) p T x ]
T w 1 ρ c v [ T ( p T ) ρ w x + λ 2 ρ | w | 3 d 4 K ( T T a ) d ]
Table 2. The flow states and the solution conditions of the pipeline.
Table 2. The flow states and the solution conditions of the pipeline.
TypeFlow StateSolution Requirement
First type pipeline Energies 12 01516 i001No need
Second type pipeline Energies 12 01516 i002The temperature of starting point.
Third type pipeline Energies 12 01516 i003The temperature of terminal point.
Fourth type pipeline Energies 12 01516 i004The temperature of both starting and terminal points.
Table 3. Pipeline data.
Table 3. Pipeline data.
Pipeline1234567891011121314
Starting node6435515695678946151366
Ending node12234678106410124613
Length (km)5278664023223958506035595756
Diameter (mm)325325325219325219325273457168273355273219
Pipeline1516171819202122232425262728
Starting node131411766181927272225252426
Ending node1515172618142720212121232528
Length (km)60632046367541333342788345135
Diameter (mm)273168457457273325219219168168355355355457
Pipeline2930313233343536373839404142
Starting node553131323253528373845453940
Ending node642930563363361353738394041
Length (km)9246745040772585638569447667
Diameter (mm)457457355508508219508426426426426426219355
Pipeline4344454647484950515253545556
Starting node116556471126241451253542931
Ending node264374821345042424632345556
Length (km)1154674536386637214293805310250
Diameter (mm)426273273219219355219426426325325508426426
Pipeline5758596061626364656667686970
Starting node57585960613569131816616038
Ending node39401591685134701661605162
Length (km)30684356523645525280841019533
Diameter (mm)168325273273325355273355355273273426426325
Pipeline7172737475767778798081828384
Starting node412333184945498461124484723
Ending node255542842363634344248702947
Length (km)6842426852504352596649637653
Diameter (mm)355273457273273273219355325355355325325219
Note: Diameter in Table 3 is outside diameter.
Table 4. Compressor data.
Table 4. Compressor data.
Compressor1234
Starting point71727374
Ending point52542561
Table 5. Valve data.
Table 5. Valve data.
Valve12345678
Starting point70311764111265
Ending point626319365676669
Table 6. External data.
Table 6. External data.
Externals12345678910111213
Adjacent node3753454748565134971701312
Externals14151617181920212223242526
Adjacent node725522589577341596027446
Externals27282930313233343536373839
Adjacent node78234628205041629384330
Externals40414243444546474849
Adjacent node2366310151814356832
Table 7. Main components of natural gas.
Table 7. Main components of natural gas.
ComponentCH4C2H4C3H8N2CO2
Volume fraction (%)97.070.170.020.712.03
Table 8. Constant boundary conditions - pressure of the external.
Table 8. Constant boundary conditions - pressure of the external.
Externals101420254648
Pressure (MPa)2.82.82.82.82.52.5
Table 9. Constant boundary conditions flow rate of the external (flow in).
Table 9. Constant boundary conditions flow rate of the external (flow in).
Externals123567891112
Volume flow rate
(104 Nm3/d)
−9852526−1004415365568
Externals15161718192122232427
Volume flow rate
(104 Nm3/d)
25151814214215612-34
Externals28293031323335363738
Volume flow rate
(104 Nm3/d)
−142−13−150−45−13.7−14−35−22−13−44
Externals394041424344454749
Volume flow rate
(104 Nm3/d)
−21−25−50−16−56−69.4−63−66−85
Table 10. Changed boundary conditions.
Table 10. Changed boundary conditions.
External 4External 13External 26External 34Valves 1-8
Volume flow rate (104 Nm3/d)FR
0 h ≤ t < 5 h2232-80-681.0
5 h ≤ t < 10 h00000.1
t ≥ 10 h2232-80-681.0

Share and Cite

MDPI and ACS Style

Wang, P.; Ao, S.; Yu, B.; Han, D.; Xiang, Y. An Efficiently Decoupled Implicit Method for Complex Natural Gas Pipeline Network Simulation. Energies 2019, 12, 1516. https://doi.org/10.3390/en12081516

AMA Style

Wang P, Ao S, Yu B, Han D, Xiang Y. An Efficiently Decoupled Implicit Method for Complex Natural Gas Pipeline Network Simulation. Energies. 2019; 12(8):1516. https://doi.org/10.3390/en12081516

Chicago/Turabian Style

Wang, Peng, Shangmin Ao, Bo Yu, Dongxu Han, and Yue Xiang. 2019. "An Efficiently Decoupled Implicit Method for Complex Natural Gas Pipeline Network Simulation" Energies 12, no. 8: 1516. https://doi.org/10.3390/en12081516

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop