Skip to main content
  • Original research
  • Open access
  • Published:

An integrated multi-energy flow calculation method for electricity-gas-thermal integrated energy systems

Abstract

The modeling and multi-energy flow calculation of an integrated energy system (IES) are the bases of its operation and planning. This paper establishes the models of various energy sub-systems and the coupling equipment for an electricity-gas-thermal IES, and an integrated multi-energy flow calculation model of the IES is constructed. A simplified calculation method for the compressor model in a natural gas network, one which is not included in a loop and works in constant compression ratio mode, is also proposed based on the concept of model reduction. In addition, a numerical conversion method for dealing with the conflict between nominal value and per unit value in the multi-energy flow calculation of IES is described. A case study is given to verify the correctness and speed of the proposed method, and the electricity-gas-thermal coupling interaction characteristics among sub-systems are studied.

1 Introduction

In users or building-level systems, through the coordination of heterogenous generation units, energy storage systems and flexible loads, multiple energies can be simultaneously generated, transmitted, stored and consumed. An integrated energy system (IES) is conducive to the rational planning and optimal operation of various energy sources, so as to give full play to the complementary advantages of various energy sources, improve energy efficiency and promote the consumption of renewable energy [1,2,3,4]. Multi-energy flow calculation, which can determine the operational state of each energy sub-system in an IES for a given network structure, parameters and boundary conditions, is an important basis for the planning and optimal operation of IES [5]. At present, there are complete energy flow calculation models and methods in electricity, gas and thermal energy sub-systems [6]. The models and methods of power flow calculation for transmission and distribution networks are introduced in detail in [7, 8], respectively. The flow calculation methods of integrated transmission and distribution networks have also been widely studied [9, 10]. In [11], steady-state and dynamic energy flow models and calculation methods of a natural gas network on the basis of thermodynamics and fluid mechanics are established. Reference [12] describes the detailed steady-state hydraulic model and thermal model of a thermal network.

An IES is a physical entity of the energy internet [13]. With the relative maturity of each energy system model, the modeling and multi-energy flow calculation of an IES including the electricity, natural gas and thermal networks or just two of them have been widely studied. At present, the Newton-Raphson method [5, 14,15,16] is mainly used to solve IES energy flow. This can be divided into two solutions, i.e., the integrated solution and the decomposed solution [17]. In [18], the two solutions are used to calculate the energy flow of an electric-thermal coupling system on Barry Island, and it concludes that the integrated solution has the advantages of fewer iterations and its iterations do not increase with the size of the system. In [19], an improved practical method is proposed to reduce the complexity caused by the traditional method in calculating the natural gas system with compressors, and the integrated calculation model of electricity-gas-heat IES is conducted on this basis. In [20], a traditional method is used to calculate the gas system with compressors, and a hybrid technique is proposed to solve the energy flow problem of an electricity-gas system using a genetic algorithm (GA) to search the initial values of the gas system. In [21], a new alternate iterative calculation method considering the different characteristics of each system and the scalability of IES is proposed, and compared with the integrated solution using an example. In [22], a generalized energy flow (GEF) analysis model is proposed and a hybrid technique combining homotopy and the Newton-Raphson algorithm is used to solve the nonlinear equations of GEF.

Although there has been some progress in the modeling and multi-energy flow calculation of an IES, some challenges remain. First, users or building level IES usually include electricity, gas, and heat / cold energy. While there are many studies on an electricity-thermal coupling or electricity-gas coupling energy system, few studies consider electricity-gas-thermal energy coupling. Second, in the multi-energy flow calculation of an IES, there are many forms of energy. The use of per unit value in a power system has many advantages, while other energy systems usually use nominal values. However, there are no clear steps for data processing to solve this problem. Third, there are few studies on the energy flow calculation of a natural gas pipeline model with a compressor.

When considering users or building level IES, there are also some special requirements. First, the co-existence of electricity, gas, and heat / cold energy means the energy sub-systems are closely coupled. Second, it includes a variety of equipment, and thus the type of models needs to be determined according to specific requirements. For example, when considering the uncertainty of distributed energy output [23, 24] and the volatility of load, it is necessary to establish a dynamic or probabilistic multi-energy flow calculation model.

For an IES including electricity, gas supply and heating networks, this paper makes the following main contributions:

  1. i.

    Establishes the steady-state models of electricity, heat, natural gas sub-systems and the coupling equipment. The integrated multi-energy flow calculation model and method are presented with the calculation steps given in detail.

  2. ii.

    Based on the reduction concept, a simplified calculation method is proposed for a compressor which is not included in any loop and whose working mode is constant compression ratio.

  3. iii.

    Proposes a simple and fast numerical conversion method to deal with the conflicts caused by the use of per unit value in power system and nominal value in thermal and natural gas systems in the process of the integrated multi-energy flow calculation.

  4. iv.

    Studies the coupling interaction characteristics of the electricity-gas-thermal IES considering the source-load characteristics.

The rest of the paper is organized as follows. Section 2 presents the models of electricity, district heat and natural gas systems, and proposes a simplified calculation method for a natural gas network model with compressor. In Section 3, the integrated multi-energy flow calculation model and method are illustrated. In Section 4, a case study is given to verify the correctness and speed of the proposed method, and the coupling interaction among sub-systems is studied. Finally, Section 5 draws the conclusion.

2 Model of the electricity-gas-thermal IES

2.1 Electricity system model

This paper uses the AC power flow model, in which the node voltage is expressed in the form of polar coordinates. The node power expressions are given as:

$$ {P}_i={V}_i\sum \limits_{j=1}^n{V}_j\left({G}_{ij}\cos {\theta}_{ij}+{B}_{ij}\sin {\theta}_{ij}\right) $$
(1)
$$ {Q}_i={V}_i\sum \limits_{j=1}^n{V}_j\left({G}_{ij}\sin {\theta}_{ij}-{B}_{ij}\cos {\theta}_{ij}\right) $$
(2)

where Pi and Qi represent the active power and reactive power of node i, respectively. Vi and Vj represent the voltage of node i and j, respectively, while Gij and Bij represent the conductance and admittance between node i and j, respectively. n is the number of nodes and θij is the phase angle between node i and j.

2.2 District heat system model

Figure 1 shows a closed district heat system, which is mainly composed of heat sources, supply pipelines, return pipelines and heat loads. In the network, the heat medium (usually hot water or steam) transports heat from the heat source to the users through the supply pipelines and then flows back to the heat source through the return pipelines.

Fig. 1
figure 1

A closed district heat system schematic diagram

In Fig. 1, mr is the flow of the rth pipe, Tsi and Tri are the supply and return temperatures of node i, respectively. T0i is the output temperature of node i.

The model of the district heat system is mainly composed of a hydraulic model and a thermal model.

2.2.1 Hydraulic model

The hydraulic model describes the flow law of the heat medium in the network, and also satisfies Kirchhoff’s law. It can be obtained from Kirchhoff’s first law that the node injection flow is equal to the outflow, as shown in the first line of (3). When the heat medium flows in the pipeline, the pressure difference is caused by friction, which is usually referred to as head losses expressed by hf. It can be obtained from Kirchhoff’s second law that in a closed pipe loop, the sum of the head losses of the heat medium flowing in the loop is 0, as shown in the second line of (3).

$$ \left\{\begin{array}{c}{\mathbf{A}}_h\mathbf{m}={\mathbf{m}}_q\\ {}{\mathbf{B}}_h{\mathbf{h}}_f=\boldsymbol{0}\end{array}\right. $$
(3)

In (3), Ah is the node-branch incidence matrix of the heating supply network, m is the flow column vector of the heat pipeline, and mq is the output flow column vector of the nodes. Bh is the loop-branch incidence matrix of the heat network, whereas hf is the head losses column vector of each branch.

2.2.2 Thermal model

The thermal model describes the distribution of heat energy in the network and mainly includes the following three equations, in which the included temperatures are the relative ambient temperatures, i.e., T = T-Ta where Ta is the ambient temperature.

$$ \boldsymbol{\Phi} ={C}_{\mathrm{p}}{\mathbf{m}}_q\left({\mathbf{T}}_s-{\mathbf{T}}_0\right) $$
(4)
$$ {T}_{\mathrm{end}}={e}^{-\frac{K_{\mathrm{T}}L}{C_{\mathrm{p}}m}}{T}_{\mathrm{start}} $$
(5)
$$ \left(\sum {m}_{\mathrm{out}}\right){T}_{\mathrm{out}}=\sum \left({m}_{\mathrm{in}}{T}_{\mathrm{in}}\right) $$
(6)

Equation (4) expresses the node heat power of the network, in which Φ is the node heat power column vector, Cp is the specific heat of the heat medium, Ts is the node supply temperature column vector, and T0 is the user output temperature column vector.

Equation (5) describes the temperature drop law in the heat pipe, in which Tstart and Tend are the temperatures of the start and end of the pipe, respectively. KT is the resistance coefficient, m is the flow of the pipe with unit of kg/s, and L is the pipe length with unit of meter.

Equation (6) describes the temperature rule of the heat medium after mixing at the node, in which min and mout are the input and output flows of the node, respectively. Tin and Tout are the temperatures before and after the flow mixture at the node.

2.3 Natural gas system model and improved gas flow calculation method with compressor

The natural gas network model is mainly composed of gas sources, gas pipelines, compressors and loads. Because of the particularity of the compressor, the pipelines containing compressors are treated separately [19].

2.3.1 Natural gas pipeline model without compressor

The pipelines can be divided into three levels by air pressure: low pressure (0–750 mbar), medium pressure (0.75–7.0 bar) and high pressure (greater than 7.0 bar). The equations of the three levels are different [9], while this paper considers the medium pressure model.

The natural gas pipeline model without compressor can be expressed as:

$$ {q}_r={K}_{\mathrm{g}}{s}_{ij}\sqrt{s_{ij}\left({p_i}^2-{p_j}^2\right)} $$
(7)

where pi and pj are the pressures (unit: bar) of node i and j, respectively. qr is the flow of the rth pipe and Kg is the pipeline constant. sij is the characteristic quantity characterizing the flow direction of natural gas, when pi ≥ pj, sij = + 1, otherwise sij = − 1.

According to Kirchhoff’s first law, the flow continuity equation of a natural gas network can be obtained as:

$$ {\mathbf{A}}_{\mathrm{g}}\mathbf{q}=\mathbf{G} $$
(8)

where G is the natural gas load column vector.

2.3.2 Natural gas pipeline model with compressor

According to [19], the natural gas pipeline model with compressors (shown in Fig. 2) can be described as:

$$ \left\{\begin{array}{c}{q}_{com}={q}_{bn}={K}_{\mathrm{g} bn}\sqrt{{p_b}^2-{p_n}^2}\\ {}{q}_{\mathrm{cp}}=\frac{k_{\mathrm{cp}}{q}_{\mathrm{com}}{T}_{\mathrm{g}\mathrm{as}}}{q_{\mathrm{g}\mathrm{as}}}\left({k_{\mathrm{cp}}}^{\frac{s-1}{s}}-1\right)\\ {}{q}_{ma}={q}_{com}+{q}_{cp}\\ {}{q}_{ma}={K}_{\mathrm{g} ma}\sqrt{{p_m}^2-{p_a}^2}\end{array}\right. $$
(9)

where qcom is gas flow through the compressor, and qma and qbn are the input and output flows of the compressor, respectively. qcp is the natural gas consumption of the compressor, kcp is the compression ratio, and kcp = pb/pa. Kgma and Kgbn are the pipeline constants of pipes ma and bn, respectively. Tgas is the gas temperature in the pipe, qgas is the calorific value of natural gas, and s is a polytropic index.

Fig. 2
figure 2

Compressor model in [19]

As shown in Fig. 2, in this paper, m, a, b and n are set as the nodes in the natural gas network, while nodes a and b are the entry and exit nodes of the compressor, respectively. The compressor is located on the pipeline ab. Based on this, the natural gas network model of the compressor is divided into two categories. One is the model in which the compressor is included in a loop, as shown in Fig. 3, and the other is the model in which the compressor is not included in a loop, as shown in Fig. 4.

Fig. 3
figure 3

Compressor located in a loop

Fig. 4
figure 4

Compressor not located in a loop

For the compressor included in a natural gas pipeline loop, because the nodes on both sides of the compressor are connected to each other, the method proposed in [19] is used to calculate the compressor flow. The specific calculation process is shown in Fig. 5. Based on the different control modes of the compressor, it calculates the input and output flows of the compressor, and converts them into the equivalent load of the entry and exit nodes of the compressor, respectively. In the later calculation of gas network energy flow, the pipeline containing compressor is viewed as being cut off.

Fig. 5
figure 5

Flow chart for calculating pipeline flow with compressor used in [19]

For a compressor which is not included in a natural gas pipeline loop, and works in the mode of a constant compression ratio, this paper proposes a method similar to the voltage level reduction method of a power system transformer to simplify the calculation.

As shown in Fig. 6, the known compression ratio of the compressor kcp1 reduces the pressure of the high-pressure side to the low side of the compressor. The relevant node pressure changes are:

$$ {p}_b={p}_a;\kern0.5em {p}_n\hbox{'}=\frac{p_n}{k_{\mathrm{cp}1}};\kern0.5em {p}_s\hbox{'}=\frac{p_s}{k_{\mathrm{cp}1}}; $$
(10)
Fig. 6
figure 6

Example of compressor not included in loop [19]

According to (10) and from (7) and (8), it can be concluded that the pipe flow and the node gas load also require a corresponding operation as:

$$ {q}_{bn}\hbox{'}=\frac{q_{bn}}{k_{\mathrm{cp}1}};\kern0.5em {q}_{ns}\hbox{'}=\frac{q_{ns}}{k_{\mathrm{cp}1}} $$
(11)
$$ {G}_n\hbox{'}=\frac{G_n}{k_{\mathrm{cp}1}};\kern0.5em {G}_s\hbox{'}=\frac{G_s}{k_{\mathrm{cp}1}} $$
(12)

As shown in Fig. 7, the reduced compressor can be equivalent to node o, and its gas load is qcp’ = qcp∕kcp1. However, the model of the compressor is nonlinear and changes need to be made in order to make its flow continuous. Before calculating the deviation, for the element of the node-branch incidence matrix whose row is corresponding to equivalent node o, the column corresponding to the next pipeline on, should multiply kcp1, i.e., qma = kcp1∙qbn’ + Go = qbn + qcp∕kcp1. In addition, the error caused by the reduction of natural gas consumption by the compressor, i.e. (kcp1–1)qcp∕ kcp1, can be ignored as it is relatively small.

Fig. 7
figure 7

Equivalent natural gas pipeline model of Fig. 6 after reduction

Using the reduced parameters for subsequent calculation, this method needs to multiply the parameters of the corresponding nodes by kcp1 after calculation. When there are multiple compressors, it is similar to multi voltage levels of the power system, and the method is unchanged, and is repeated here.

By using the proposed reduction method, the compressor working in the mode of constant compression ratio does not need to go through the iterative calculation proposed in [19]. This can simplify the calculation steps and reduce the calculation time.

The reliability of the improved method is proved by an example in Section 4.1.

2.4 Coupling equipment model

In an IES, the energy sub-systems are closely connected by coupling equipment. Common multi-energy coupling equipment includes combined heat and power (CHP) systems, gas turbines, electric boilers, etc. In this paper, the most common CHP system [25, 26] is considered as the coupling equipment.

The CHP system with natural gas as input fuel is considered to operate in the following thermal load (FTL) mode. Using the method proposed by the Public Utilities Regulatory Policies Act of 1978 [27] to calculate the efficiency of the CHP system, the relationship among electric power PCHP, thermal power ΦCHP and natural gas consumption Gin can be obtained as follows:

$$ \left\{\begin{array}{c}{P}_{\mathrm{CHP}}=\frac{{\mathtt{\varPhi}}_{\mathrm{CHP}}}{c_{\mathrm{CHP}}}\\ {}{G}_{\mathrm{in}}=\frac{P_{\mathrm{CHP}}+\frac{{\mathtt{\varPhi}}_{\mathrm{CHP}}}{2}}{\eta_{\mathrm{CHP}}}\end{array}\right. $$
(13)

where cCHP is the power-to-heat ratio of the CHP system and ηCHP is the efficiency of the CHP system.

3 The integrated calculation method and data processing

3.1 Integrated calculation model of IES

According to [19], the integrated multi-energy flow calculation model of the electricity-gas-thermal IES is given as:

$$ F(x)=\left(\begin{array}{c}\Delta \mathbf{P}\\ {}\begin{array}{c}\Delta \mathbf{Q}\\ {}\Delta \boldsymbol{\Phi} \\ {}\begin{array}{c}\Delta {\mathbf{h}}_f\\ {}\Delta {\mathbf{T}}_s\end{array}\\ {}\Delta {\mathbf{T}}_r\end{array}\\ {}\Delta \mathbf{G}\end{array}\right)=\left(\begin{array}{c}\operatorname{Re}\left\{\dot{\mathbf{V}}\overline{\left(\mathbf{Y}\dot{\mathbf{V}}\right)}\right\}-{\mathbf{P}}^L=\boldsymbol{0}\\ {}\begin{array}{c}\operatorname{Im}\left\{\dot{\mathbf{V}}\overline{\left(\mathbf{Y}\dot{\mathbf{V}}\right)}\right\}-{\mathbf{Q}}^L=\boldsymbol{0}\\ {}\begin{array}{c}{C}_{\mathrm{p}}{\mathbf{A}}_{h1}\mathbf{m}\left({\mathbf{T}}_s-{\mathbf{T}}_0\right)-{\boldsymbol{\Phi}}^L=\boldsymbol{0}\\ {}{\mathbf{B}}_h{\mathbf{K}}_h\mathbf{m}\left|\mathbf{m}\right|=\boldsymbol{0}\end{array}\\ {}{\mathbf{C}}_s{\mathbf{T}}_{sload}-{\mathbf{b}}_s=\boldsymbol{0}\\ {}{\mathbf{C}}_r{\mathbf{T}}_{rload}-{\mathbf{b}}_r=\boldsymbol{0}\end{array}\\ {}{\mathbf{A}}_{g1}{\mathbf{K}}_g\left(-{{\mathbf{A}}_g}^T\boldsymbol{\Pi} \right)-{\mathbf{G}}^L=\boldsymbol{0}\end{array}\right) $$
(14)

In (14), rows 1–2 are the power balance equations of the electricity system, rows 3–6 are the balance equations of the thermal system, and row 7 is the natural gas flow balance equation. ∆P and ∆Q are the deviations of the active and reactive power of the electrical power system, respectively. ∆Φ, ∆hf, ∆Ts and ∆Tr represent the deviations of the nodal heat power, the loop head losses, the supply and return temperatures, respectively. ∆G represents the nodal flow deviation of the natural gas system. PL, QL, ΦL and GL are the given active power, reactive power, heat power and natural gas load, respectively. Ah1 is the node-branch incidence matrix of the heating network, which has removed the heat source nodes. Cs, Cr, bs and br are the matrices related to the pipe flow and the output temperature of the thermal network, and their specific calculations can be referred to [12]. Ag is the node-branch incidence matrix of the natural gas system while Ag1 is derived from Ag by removing the gas source node and compressor branch. Π represents p2 which is the column vector of the square of node pressure in a natural gas network, while -AgTΠ represents the square difference vector of a natural gas network. x = [V, θ, m, Tsload, Trload, Π]T are the state variables of the IES calculation.

3.2 Data processing of the IES Jacobian matrix

Using the extended Newton-Raphson method to calculate the electricity-gas-thermal IES system, the IES Jacobian matrix can be noted as:

$$ \mathbf{J}=\left(\begin{array}{ccc}{\mathbf{J}}_{ee}& {\mathbf{J}}_{eh}& {\mathbf{J}}_{eg}\\ {}{\mathbf{J}}_{he}& {\mathbf{J}}_{hh}& {\mathbf{J}}_{hg}\\ {}{\mathbf{J}}_{ge}& {\mathbf{J}}_{gh}& {\mathbf{J}}_{gg}\end{array}\right)=\left(\begin{array}{ccc}\frac{\mathrm{\partial \Delta }{\mathbf{F}}_e}{\partial {\mathbf{x}}_e}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_e}{\partial {\mathbf{x}}_h}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_e}{\partial {\mathbf{x}}_g}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{F}}_h}{\partial {\mathbf{x}}_e}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_h}{\partial {\mathbf{x}}_h}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_h}{\partial {\mathbf{x}}_g}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{F}}_g}{\partial {\mathbf{x}}_e}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_g}{\partial {\mathbf{x}}_h}& \frac{\mathrm{\partial \Delta }{\mathbf{F}}_g}{\partial {\mathbf{x}}_g}\end{array}\right) $$
(15)

where Jee, Jhh and Jgg are the matrices on the diagonal block, which can be derived independently from each energy sub-system. The expressions of Jhh and Jgg are given in Section 6.1 and 6.2.

Considering the electricity sub-system in an IES is connected to the bulk power grid, when an internal fluctuation occurs, it will be balanced by the bulk power grid, and thus, Jhe and Jge in (15) are zero matrices. Similarly, the natural gas system usually contains gas source nodes so when an internal fluctuation occurs, it will be balanced by the gas source. Thus, Jeg and Jhg in (15) are also zero matrices.

Since the CHP system works in FTL mode, a fluctuation in the thermal network will affect the operational state of other systems, and thus, Jeh and Jgh are non-zero matrices. The model of CHP system can be expressed as:

$$ \left\{\begin{array}{c}{\mathtt{\varPhi}}_{\mathrm{CHP},i}={C}_{\mathrm{p}}{\mathbf{A}}_{hsource}\mathbf{m}\left({\mathbf{T}}_s-{\mathbf{T}}_0\right)\\ {}{P}_{\mathrm{CHP},i}=\frac{{\mathtt{\varPhi}}_{\mathrm{CHP},i}}{c_{\mathrm{CHP}}}\\ {}G\mathrm{in},i=\frac{P_{\mathrm{CHP}}+\frac{{\mathtt{\varPhi}}_{\mathrm{CHP}}}{2}}{\eta_{\mathrm{CHP}}}\end{array}\right. $$
(16)

where Ahsource is the row related to the heat source in the node-branch incidence matrix of the heating network.

According to (15), it can be obtained that:

$$ {\mathbf{J}}_{eh}=\frac{\mathit{\operatorname{diag}}\left\{{\mathbf{T}}_s-{\mathbf{T}}_0\right\}{\mathbf{A}}_{hsource}}{c_{\mathrm{CHP}}} $$
(17)
$$ {\mathbf{J}}_{gh}=\frac{\left(\frac{1}{c_{\mathrm{CHP}}}+\frac{1}{2}\right)\mathit{\operatorname{diag}}\left\{{\mathbf{T}}_s-{\mathbf{T}}_0\right\}{\mathbf{A}}_{hsource}}{\eta_{\mathrm{CHP}}} $$
(18)

In the traditional AC power flow calculation of the electricity system, the per unit value of variables and parameters is adopted, which has unique advantages. For example, it is convenient to observe and compare data, and simplify the reduction of multi voltage level networks. However, the nominal value is generally used in the power flow calculation of thermal and natural gas systems.

Therefore, in the calculation process of the electricity-gas-thermal IES, due to the existence of the coupling link, there will be problems when the electricity, thermal and natural gas systems use different value representations. If converting per unit values to nominal values in an electricity system to participate in the multi-energy flow calculation, there exists the problem of tedious calculation of the Jacobian matrix elements. In view of this, this paper proposes a technique that enables the electricity system to use the per unit value while standardizing the coupling elements of the IES Jacobian matrix, as shown below.

Before the deviation is calculated in the Newton-Raphson method, the output thermal power of the CHP system needs to be calculated by the given value of the state variables. According to (16). the output electric power and the gas consumption of the CHP system are then calculated according to (13), and the corresponding active power vector of the electricity system and the nodal gas load of the natural gas system are updated. As the active power of the CHP system calculated by (13) is in nominal value, it is necessary to convert to per unit value, as:

$$ {P}_{\mathrm{CHP},i}=\frac{\Phi_{\mathrm{CHP},i}}{c_{\mathrm{CHP}}{S}_{\mathrm{B}}} $$
(19)

When calculating the non-diagonal elements in the Jacobian matrix, Jeh and Jgh calculated from (17) and (18) are also nominal values, and thus are converted into per unit form as:

$$ {\mathbf{J}}_{eh}=\frac{\mathit{\operatorname{diag}}\left\{{\mathbf{T}}_s-{\mathbf{T}}_0\right\}{\mathbf{A}}_{hsource}}{c_{\mathrm{CHP}}{S}_{\mathrm{B}}} $$
(20)
$$ {\mathbf{J}}_{gh}=\frac{\left(\frac{1}{c_{\mathrm{CHP}}}+\frac{1}{2}\right)\mathit{\operatorname{diag}}\left\{{\mathbf{T}}_s-{\mathbf{T}}_0\right\}{\mathbf{A}}_{hsource}}{\eta_{\mathrm{CHP}}{S}_B} $$
(21)

If the element in Jgh goes through the proposed reduction method process in Section 2.3, the corresponding element should be calculated by:

$$ {\mathbf{J}}_{gh}=\frac{\left(\frac{1}{c_{\mathrm{CHP}}}+\frac{1}{2}\right)\mathit{\operatorname{diag}}\left\{{\mathbf{T}}_s-{\mathbf{T}}_0\right\}{\mathbf{A}}_{hsource}}{\eta_{\mathrm{CHP}}{S}_{\mathrm{B}}{k}_{\mathrm{cp}1}} $$
(22)

Using the above conversion method, compared with the power system using nominal values to participate in the calculation, it will lead to a larger difference in value between different matrix blocks. However, standardization is only on the elementary row transformation of the matrix. This will not change the singularity, and thus the results of multi-energy flow calculation remain unchanged.

3.3 Calculation steps

In this paper, the integrated solution method is used to solve the multi-energy flow of the electric-gas-thermal IES. This method has the advantages of fewer solving steps and faster calculation speed. The iterative calculation is carried out based on the Newton-Raphson method, and the specific steps are as follows:

  1. 1.

    Set iteration parameters including the limit on the number of iterations Tmax and the accuracy condition of iterative convergence εE, εG, εH.

  2. 2.

    Input the parameters of each sub-system and coupling equipment, and set the iterative initial value of each state quantity.

  3. 3.

    The compressor mode is dealt with according to the compressor category and its working mode. Calculate the output heat power ΦCHP of the CHP system using the initial value, and obtain the output electric power PCHP and natural gas consumption Gin from the coupling equipment. Convert the relevant parameters from nominal value to standard unitary value.

  4. 4.

    Calculate the deviation matrix ∆F.

  5. 5.

    Determine whether the number of iterations exceeds the limit Tmax. If not, proceed to the next step. Otherwise, go to step 12.

  6. 6.

    Calculate the Jacobian matrix J.

  7. 7.

    Calculate the correction of the state variables Δx =  − J\ΔF.

  8. 8.

    Update the state variables x = x + Δx.

  9. 9.

    Repeat step 3.

  10. 10.

    Calculate the deviation matrix ∆F.

  11. 11.

    Judge whether the deviation of each sub-system satisfies the iterative convergence accuracy condition, i.e., max|ΔFE| ≤ εE, max|ΔFG| ≤ εG, max|ΔFH| ≤ εH. If all are satisfied, go to the next step. Otherwise, return to step 5.

  12. 12.

    Output results.

4 Results and discussions

The studies carried out in this paper use the R2019b version of MATLAB software, and a desktop computer operating with 64-bit Windows 10, Intel Core i7-6500U CPU, 2.5 GHz frequency and 4 GB memory. Based on the above model and the integrated multi-energy flow calculation method, the park level electricity-gas-thermal IES shown in Fig. 8 is simulated. The park IES system consists of an 8-node natural gas system, a 14-node district heating system and an IEEE 39 nodes electric power system. The natural gas network contains a gas turbine-driven compressor operating at constant compression ratio, and there is no loop in the network. The electric system is connected to the bulk power grid, while the CHP system couples the three electricity-gas-heat networks, working in the FTL mode. The balance node of the electric system is the node connected to the bulk power grid, while for the natural gas system it is the node connected to the gas source, and for the thermal system it is node 14 connected to the CHP system. The detailed parameters of each energy network are shown in Section 6.3.

Fig. 8
figure 8

Case of the electricity-gas-thermal IES

4.1 Simulation of the natural gas sub-system

The flow of the natural gas sub-system in Fig. 8 is calculated separately using the method proposed in [19] and the reduction method in this paper, and the calculation time is 0.0032 s and 0.0020 s, respectively. The results of energy flow are compared in Table 1. As can be seen, the calculated results of the two methods are very close, and the maximum error is 0.12%.

Table 1 Node pressure of the natural gas sub-system calculated by the two methods

It is common knowledge that in the field of natural gas the pressure measurement error of the instrument is not as accurate as that of the power system, and the error of 0.12% in this case is negligible. It can be concluded that the method proposed in this paper is effective and fast in dealing with the compressor pipe model which is not located in the loop and operated in constant compression ratio mode.

4.2 IES simulation results

The method proposed in this paper is used to calculate the multi-energy flow of the above model, which converges after 26 iterations. The steady-state data of the thermal and natural gas sub-systems are shown in Tables 2 and 3, respectively, while the power flow calculation results of the electricity system are shown in Section 6.3.

Table 2 Energy flow of the thermal system
Table 3 Energy flow of the natural gas system

The above results are obtained by standardizing the coupling elements of the IES Jacobian matrix. Compared with the calculation results of converting the per unit system into nominal value in the electricity system, the two results are completely consistent.

4.3 Coupling analysis

To analyze the coupling relationship among the three sub-systems, system behavior when the heat load of node 13 is increased from 1 MW to 2 MW is studied. Because of the coupling between various energy networks, the operating states of the CHP system and each energy system change.

In Section 6.3, the power flow results of the electricity system before and after the heat load change are provided. The data shows that before and after the increase of thermal load, the voltages of the load nodes in the electricity system fluctuate from 0.9848–1.0450 p.u. to 0.9848–1.0454 p.u.. The active power output of node 30 in the electricity system connected to the CHP system increases from 2.3853 p.u. to 3.7075p .u., while the active power output of node 39 (the bulk power grid) decreases from 1.5520 p.u. to 1.3313 p.u.. As shown in Figs. 9 and 10, the related pipe flows increase in the thermal network, and the maximum supply temperature increase of the nodes is 1.8 °C. From Fig. 11, the flows in related natural gas network pipes also increase, while the maximum nodal pressure decrease is 1.0 bar. Figure 12 demonstrates the changes of the operation of the CHP system and the bulk power grid. Because of the CHP system working in the FTL mode, when the heat load increases, the output heat power of the CHP is increased by 53.2% while the output electric power is increased by 55.5%. The natural gas consumption of the CHP system is also increased by 55.4%. At the same time, the electricity system takes less electricity from the bulk power grid.

Fig. 9
figure 9

Pipe flow change in the thermal system

Fig. 10
figure 10

Supply temperature change in the thermal system

Fig. 11
figure 11

Pipe flow and node pressure change in the natural gas system

Fig. 12
figure 12

Operation state change of the CHP system and the bulk power grid

4.4 Convergence comparison

The methods proposed in this paper and in [19] are used to separately simulate the compressor in the IES model in Fig. 8. The number of iterations of the method proposed in this paper is 26 and the simulation time is 2.440429 s. In comparison, using the method in [19], the number of iterations is 55 and the simulation time is 3.974894 s. Thus, the method presented in this paper can be used to calculate for a large natural gas pipeline model with compressors not included in the loop, as it can effectively reduce the number of iterations and calculation time.

4.5 Discussions and extensions

The model and multi-energy flow calculation method of an IES proposed in this paper can be applied to actual buildings in certain scenarios. In actual buildings, the existing energy is electricity, gas, heat and cold, and its steady-state model is given in this paper. The characteristics of cold energy and heat energy are the same so their models are also the same, as both transfer energy through a heat medium. In view of the diversity of equipment contained in buildings, it is necessary to model flexibly according to the actual situation. If distributed generations, load fluctuation and other conditions need to be considered, the dynamic or probabilistic IES multi-energy flow calculation model should be considered.

5 Conclusions

This paper has established the models of various energy sub-systems and the coupling equipment for park level electricity-gas-thermal IES. On this basis, an integrated multi-energy flow calculation model of IES is constructed. By treating the compressor separately and its pipe flow equivalent to the nodal gas load in accordance with the working mode in a natural gas network, a simplified calculation method of compressor model which is not included in a loop and operates in constant compression ratio mode is proposed using a reduction method. In addition, a numerical conversion method for dealing with the conflict between nominal value and per unit value in the multi-energy flow calculation of IES is described in detail. A case study is given to verify the correctness and speed of the proposed method, and the coupling interaction among the sub-systems is also studied.

General conclusions are as follows:

  1. 1.

    The proposed simplified calculation method for the certain compressor category mentioned above is correct and fast, and this has been confirmed by the simulation results. The system can converge within 30 iterations, which constitutes a reduction of 52.7%, while the calculation time is also reduced by 38.6%, compared to the existing method. Thus, the method can be particularly effective when the scale of the system is large.

  2. 2.

    The technique of standardizing the coupling elements of the IES Jacobian matrix complements some data processing gaps in the calculation of integrated multi-energy flow in an IES. This technique enables the electricity system to use per unit value to participate in the calculation and simplifies the calculation process. Results are compared to the method of converting the electricity system from per unit value to nominal value, and show good match, which proves the correctness of the proposed technique.

  3. 3.

    Considering electricity-gas-thermal coupling interaction characteristics, it can be concluded that when the network state of one energy sub-system in an IES changes, the operational states of other energy sub-systems will be affected. Through the integrated multi-energy flow calculation, the changes of node and equipment status in each energy sub-system can be known in order to evaluate the rationality of the system, and avoid possible risks such as transformer overload in advance. This is of great significance.

Availability of data and materials

All data generated or analyzed during this study are included in the published article (and its supplementary information files).

Abbreviations

IES:

Integrated energy system

GA:

Genetic algorithm

GEF:

Generalized energy flow

CHP:

Combined heat and power

FTL:

Following the thermal load

References

  1. Li, J., Huang, Y., & Zhang, P. (2018). Review of multi-energy flow calculation model and method in integrated energy system. Electric Power Construction, 39(3), 1–11. https://doi.org/10.3969/j.issn.1000-7229.2018.03.001.

    Article  Google Scholar 

  2. Meng, B., Guo, F., Hu, L., Bai, X., & Liu, C. (2019). Wind abandonment analysis of multi-energy systems considering gas-electrical coupling. Electric Power Engineering Technology, 38(6), 2–8. https://doi.org/10.12158/j.2096-3203.2019.06.001.

    Article  Google Scholar 

  3. Dai, X., Han, X., Dong, Y., Luo, H., & Li, Y. (2019). Multi-source and multi-level coordination optimization method of energy internet. Electric Power Engineering Technology, 38(2), 1–9. https://doi.org/10.19464/j.cnki.cn32-1541/tm.2019.02.001.

    Article  Google Scholar 

  4. Chen, L., Wu, J., Tang, H., Xiong, Y., & Li, C. (2019). Optimal allocation model of the micro-energy grid with CCHP considering renewable energy consumption. Electric Power Engineering Technology, 38(5), 121–129. https://doi.org/10.12158/j.2096-3203.2019.05.018.

    Article  Google Scholar 

  5. Zhong, J., Li, Y., Zeng, Z., & Cao, Y. (2019). Quasi-steady-state analysis and calculation of multi-energy flow for integrated energy system. Electric Power Automation Equipment, 39(08), 22–30. https://doi.org/10.16081/j.epae.201908010.

    Article  Google Scholar 

  6. Chen, B., Sun, H., Wu, W., Guo, Q., & Qiao, Z. (2020). Energy circuit theory of integrated energy system analysis (III): Steady and dynamic energy flow calculation. Proceedings of the Chinese Society of Electrical Engineering, 40(15), 4820–4831. https://doi.org/10.13334/j.0258-8013.pcsee.200647.

    Article  Google Scholar 

  7. Gomezexposito, A., Canizares, C., & Conejo, A. J. (2008). Electric energy systems. Crc Press.

  8. Gandomkar, M., Mirsaeidi, S., & Miveh, M. (2012). Distribution system modeling and analysis. Tehran: Gheddis Press.

    Google Scholar 

  9. Tang, K., Dong, S., & Song, Y. (2020). Successive-intersection-approximation-based power flow method for integrated transmission and distribution networks. IEEE Transactions on Power Apparatus and Systems, 35(6), 4836–4846. https://doi.org/10.1109/TPWRS.2020.2994312.

    Article  Google Scholar 

  10. Tang, K., Dong, S., Shen, J., & Song, Y. (2019). A robust and efficient two-stage algorithm for power flow calculation of large-scale systems. IEEE Transactions on Power Systems, 34(6), 5012–5022. https://doi.org/10.1109/TPWRS.2019.2914431.

    Article  Google Scholar 

  11. Jiang, M., Wang, S., & Zeng, Z. (1995). Simulation and analysis of gas transmission and distribution network. Beijing: Petroleum Industry Press.

    Google Scholar 

  12. Yu, D. (2019). Modeling and analysis optimal energy flow in combined heating and electrical multi-energy system considering the linear network constraints. North China Electric Power University (in Beijing). https://kns.cnki.net/KCMS/detail/detail.aspx?dbname=CMFD202001&filename=1019240086.nh.

  13. Yuan, Z., Zhao, Y., Guo, Z., et al. (2019). Research summary of integrated energy systems planning for energy internet. Southern Power System Technology, 13(7), 1–9. https://doi.org/10.13648/j.cnki.issn1674-0629.2019.07.001.

    Article  Google Scholar 

  14. Guo, Z., Lei, J., Ma, X., Yuan, Z., Dong, B., & Yu, H. (2019). Modeling and calculation methods for multi-energy flows in large-scale integrated energy system containing electricity, gas, and heat. Proceedings of the CSU-EPSA, 31(10), 96–102. https://doi.org/10.19635/j.cnki.csu-epsa.000283.

    Article  Google Scholar 

  15. Li, Q., An, S., & Gedra, T. W. (2003). Solving natural gas load flow problems using electric load flow techniques. In Proceedings of the North American Power Symposium.

    Google Scholar 

  16. Xie, H., & Hu, L. (2017). Power flow calculation of combined heat and electricity system. Distribution & Utilization, 34(12), 21–26. https://doi.org/10.19421/j.cnki.1006-6357.2017.12.004.

    Article  Google Scholar 

  17. Liu, X. (2013). Combined analysis of electricity and heat networks. Cardiff: Cardiff University.

    Google Scholar 

  18. Liu, X., Wu, J., Jekins, N., & Bagdanavicius, A. (2016). Combined analysis of electricity and heat networks. Applied Energy, 162, 1238–1250. https://doi.org/10.1016/j.apenergy.2015.01.102.

    Article  Google Scholar 

  19. Wang, Y., Zeng, B., Guo, Z., & Zhang, J. (2016). Multi-energy flow calculation method for integrated energy system containing electricity, heat and gas. Power System Technology, 40(10), 2942–2950. https://doi.org/10.13335/j.1000-3673.pst.2016.10.004.

    Article  Google Scholar 

  20. Zhao, X., Yang, L., Qu, X., & Yan, W. (2018). An improved energy flow calculation method for integrated electricity and natural gas system. Transactions of China Electrotechnical Society, 33(3), 467–477. https://doi.org/10.19595/j.cnki.1000-6753.tces.161923.

    Article  Google Scholar 

  21. Yu, X., & Zhao, J. (2018). Heat-gas-power flow calculation method for integrated energy system containing P2H and P2G. Electric Power Construction, 39(12), 13–21.

    Google Scholar 

  22. Shi, J., Wang, L., Wang, Y., & Zhang, J. (2017). Generalized energy flow analysis considering electricity gas and heat subsystems in local-area energy systems integration. Energies, 10(4), 514. https://doi.org/10.3390/en10040514.

    Article  Google Scholar 

  23. Magdy, G., Mohamed, E., Shabib, G., Elbaset, A., & Mitani, Y. (2018). Microgrid dynamic security considering high penetration of renewable energy. Protection and Control of Modern Power Systems, 3(3), 236–246. https://doi.org/10.1186/s41601-018-0093-1.

    Article  Google Scholar 

  24. Mohammed, A., Li, L., Jiang, L., & Tang, W. (2018). Residue theorem based soft sliding mode control for wind power generation systems. Protection and Control of Modern Power Systems, 3(3), 247–258. https://doi.org/10.1186/s41601-018-0097-x.

    Article  Google Scholar 

  25. Wood, J. (2008). Combined heat and power. Local Energy: Distributed generation of heat and power. IET Digital Library.

  26. Yan, J., Huang, J., & He, M. (2006). The technology of CCHP. Beijing: Chemical Industry Press.

    Google Scholar 

  27. Public Utility Regulatory Policies Act of 1978 (1982). Annual report to congress. United States.

Download references

Acknowledgments

Not applicable.

Funding

This work was supported by National Natural Science Foundation of China (52077193).

Author information

Authors and Affiliations

Authors

Contributions

M. Zhu, the main author of this study, her contributions included the idea, mathematical and practical design, case study and writing the paper. S. Dong, the corresponding author, he guided the study at all stage and improved the text. C. Xu, K. Tang and C. Gu, the supervisors of the study, their reviewed and improved the text. The author(s) read and approved the final manuscript.

Corresponding author

Correspondence to Shufeng Dong.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Appendix

Appendix

1.1 Mathematical expression of J hh

$$ {\mathbf{J}}_{hh}=\left(\begin{array}{cc}{\mathbf{J}}_{hh11}& {\mathbf{J}}_{hh12}\\ {}{\mathbf{J}}_{hh21}& {\mathbf{J}}_{hh22}\end{array}\right) $$
(23)
$$ {\mathbf{J}}_{hh11}=\left(\begin{array}{c}\frac{\mathrm{\partial \Delta}\boldsymbol{\Phi}}{\partial \mathbf{m}}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{h}}_f}{\partial \mathbf{m}}\end{array}\right)=\left(\begin{array}{c}{C}_{\mathrm{p}}\mathit{\operatorname{diag}}\left\{\left({\mathbf{T}}_s-{\mathbf{T}}_0\right)\right\}{\mathbf{A}}_{h1}\\ {}2{\mathbf{B}}_h{\mathbf{K}}_h\mathbf{m}\end{array}\right) $$
(24)
$$ {\mathbf{J}}_{hh12}=\left(\begin{array}{cc}\frac{\mathrm{\partial \Delta}\boldsymbol{\Phi}}{\partial {\mathbf{T}}_{sload}}& \frac{\mathrm{\partial \Delta}\boldsymbol{\Phi}}{\partial {\mathbf{T}}_{rload}}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{h}}_{\mathbf{f}}}{\partial {\mathbf{T}}_{sload}}& \frac{\mathrm{\partial \Delta }{\mathbf{h}}_{\mathbf{f}}}{\partial {\mathbf{T}}_{rload}}\end{array}\right)=\left(\begin{array}{cc}{C}_{\mathrm{p}}\mathit{\operatorname{diag}}\left\{{\mathbf{A}}_{h1}\mathbf{m}\right\}& \boldsymbol{0}\\ {}\boldsymbol{0}& \boldsymbol{0}\end{array}\right) $$
(25)
$$ {\mathbf{J}}_{hh21}=\left(\begin{array}{c}\frac{\mathrm{\partial \Delta }{\mathbf{T}}_s}{\partial \mathbf{m}}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{T}}_r}{\partial \mathbf{m}}\end{array}\right)=-\left(\begin{array}{c}\frac{\partial {\mathbf{b}}_s}{\partial \mathbf{m}}\\ {}\frac{\partial {\mathbf{b}}_r}{\partial \mathbf{m}}\end{array}\right) $$
(26)
$$ {\mathbf{J}}_{hh22}=\left(\begin{array}{cc}\frac{\mathrm{\partial \Delta }{\mathbf{T}}_s}{\partial {\mathbf{T}}_{sload}}& \frac{\mathrm{\partial \Delta }{\mathbf{T}}_r}{\partial {\mathbf{T}}_{rload}}\\ {}\frac{\mathrm{\partial \Delta }{\mathbf{T}}_s}{\partial {\mathbf{T}}_{sload}}& \frac{\mathrm{\partial \Delta }{\mathbf{T}}_r}{\partial {\mathbf{T}}_{rload}}\end{array}\right)=\left(\begin{array}{cc}{\mathbf{C}}_s& \boldsymbol{0}\\ {}\boldsymbol{0}& {\mathbf{C}}_r\end{array}\right) $$
(27)

1.2 Mathematical expression of J gg

$$ {\mathbf{J}}_{gg}={\mathbf{A}}_{g1}{{\mathbf{DA}}_{g1}}^{\mathrm{T}} $$
(28)
$$ \mathbf{D}=\mathit{\operatorname{diag}}\left(\frac{1}{2}\cdot \frac{q}{\Delta \Pi}\right) $$
(29)

1.3 Data of the case study

Table 4 Gas load data of the natural gas system
Table 5 Pipeline data of the natural gas system
Table 6 Heat load data of the thermal system
Table 7 Pipeline Data of the thermal system
Table 8 Power flow results of the electricity system

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhu, M., Xu, C., Dong, S. et al. An integrated multi-energy flow calculation method for electricity-gas-thermal integrated energy systems. Prot Control Mod Power Syst 6, 5 (2021). https://doi.org/10.1186/s41601-021-00182-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s41601-021-00182-2

Keywords