A method for calculating power flow in integrated energy system
By using the Newton-Raphson method and the iterative Jacobian matrix in the integrated energy system, an independent solution model for regional electricity, heat and natural gas systems is established. Combined with the operation mode of the energy hub, the compressor operating mode and regional problems in the existing technology are solved. It solves the problem of insufficient versatility when the power system is connected to the grid and achieves more accurate power flow calculations.
Patent Information
- Application Number
- CN202111672057.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing integrated energy system power flow calculation methods lack versatility when dealing with compressor operating modes and regional power system grid connections, especially when multiple compressors operate in different modes at the same time. The applicability is insufficient.
The Newton-Raphson method is used to establish independent solution models for the regional power system, regional thermal system and regional natural gas system, taking into account the different operating modes of the compressor and the grid connection of the regional power system, by establishing an iterative Jacobian matrix and setting the energy hub The operation mode forms the power flow calculation method of the integrated energy system.
The versatility and applicability of the calculation method are improved, and the power flow calculation results of the integrated energy system can be accurately obtained under the island or grid-connected operating state of the power subsystem, and the influence of different operating modes of the gas-driven compressor in the gas system is fully considered. .
Smart Images

Figure CN114221346B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power systems, and in particular relates to a method for calculating power flow in an integrated energy system. Background Art
[0002] As the physical carrier of the energy Internet, the Integrated Energy System (IES) can coordinate and optimize the production, transportation, distribution, conversion and consumption of heterogeneous energy and provide high-quality energy services, which is of great significance to improving energy utilization and promoting the consumption of renewable energy.
[0003] Power flow calculation is not only the core of IES steady-state analysis, but also the basis of other related research on IES. In recent years, scholars have conducted a lot of research on power flow calculation of IES. The Newton-Raphson (NR) method used to calculate power system power flow is applied to the power flow calculation of natural gas system; a thermal-electric unified power flow calculation method is proposed, and the influence of natural gas temperature change on natural gas power flow distribution is analyzed; in order to solve the steady-state energy flow model of the electric-thermal coupling network, unified and distributed power flow calculation methods are proposed respectively; taking into account the influence of various coupling units, a unified power flow solution model for the electric-thermal-gas coupling system is established.
[0004] However, most of the above IES power flow calculation methods are established for specific network topologies, and the versatility of these methods needs to be improved. Specifically, some studies ignore the impact of compressors on gas pipelines, and some studies only consider compressors operating in a constant compression ratio mode. Although some scholars have analyzed the modeling method of gas compressors and proposed a unified power flow calculation method to solve the steady-state energy flow of the electric-heat-gas coupled network, the applicability of this method when multiple compressors are operating in different modes at the same time remains to be demonstrated. Summary of the invention
[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method for calculating the power flow of an integrated energy system, taking into account the influence of the operating modes of the compressors in the remaining natural gas systems and the grid connection of the regional power system, thereby improving the versatility of the calculation method.
[0006] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0007] A method for calculating power flow of an integrated energy system, the method comprising the following steps:
[0008] Obtain the specific parameters of the regional power system, regional thermal system, regional natural gas system and energy hub in the integrated energy system, and establish their mathematical models respectively;
[0009] According to the established mathematical model, independent flow solution models of regional power system, regional thermal system and regional natural gas system are established based on Newton-Raphson method. For the regional natural gas system including compressors, iterative Jacobian matrices are established respectively taking into account the operation mode of the compressor driven by natural gas.
[0010] Considering the grid connection situation of the regional power system, the operation mode of each energy hub is set, and the independent solution model of each flow is solved to obtain the flow calculation results.
[0011] Furthermore, for the regional power system, its mathematical model is represented by the AC power flow model, and its power balance equation is expressed as:
[0012]
[0013] In the formula, P and Q represent the active and reactive power injected into the node respectively. represents the node voltage vector, Y represents the node admittance matrix, Re{} and Im{} represent the real part and imaginary part of the complex number respectively.
[0014] Furthermore, when establishing the independent power flow solution model of the regional power system based on the Newton-Raphson method, the state variable vector x e =[U,θ], where U and θ are the node voltage amplitude and voltage phase angle vector respectively;
[0015] The error vector ΔF of the regional power system e It is expressed as:
[0016]
[0017] Where: ΔP represents the node active error vector; ΔQ represents the node reactive error vector; the subscript sp represents the given value, P sp Indicates the given active power of the node; Q sp Represents the given reactive power of the node; Re{} and Im{} represent the real part and imaginary part of the complex number, respectively.
[0018] Furthermore, for the district thermal system, its mathematical model is considered as the unification of the hydraulic model and the thermal model;
[0019] The hydraulic model is composed of a flow balance equation and a circuit pressure equation, which can be expressed as:
[0020]
[0021] In the formula, A h , B h They represent the node-branch matrix and loop-branch matrix of the heating network, respectively. m, K hRespectively represent the flow vector and pipeline resistance coefficient vector of each pipeline, m q 、h f They represent the flow injection vector and head loss vector of each node respectively;
[0022] The thermal model is used to calculate the temperature of each node in the heat network. It consists of a temperature drop equation, a temperature mixing equation, and a node thermal power balance equation, which can be expressed as:
[0023]
[0024] Where, T start , T end Respectively represent the starting and ending temperatures of each pipeline in the heat network, λ h represents the thermal conductivity of the pipe, T a Indicates the ambient temperature, L h Indicates the length of the pipeline, C p represents the specific heat capacity of the transmission medium, m out 、m in Respectively represent the medium flow outflow and inflow of the node, T out , T in represent the medium temperature after and before mixing at the node, Φ represents the thermal power vector of the node, T s , T o Represent the heating and reheating temperatures of the node respectively.
[0025] Furthermore, when establishing the independent solution model of the regional thermal system based on the Newton-Raphson method, the state variable vector x h =[T s,load ,T r,load ,m], where T s,load is the heating temperature vector of the load node; T r,load is the heat recovery temperature vector of the load node; m is the flow vector of each pipeline.
[0026] Error vector ΔF of the district thermal system h It is expressed as:
[0027]
[0028] In the formula, the subscript sp represents a given value, Φ sp Represents the given thermal power of the node; C p Indicates the specific heat capacity of the transmission medium; A h , B h They represent the node-branch matrix and loop-branch matrix of the heating network respectively; T s , T o Respectively represent the heating and reheating temperatures of the node; m, K hThey represent the flow vector and pipeline resistance coefficient vector of each pipeline, C s , C r are the coefficient matrices for calculating the heating and reheating temperatures, b s 、b r are the column vectors related to the calculation of heating and reheating temperature respectively; ΔΦ represents the node thermal power error vector; Δh f represents the node pressure error vector; ΔT s Represents the node heating temperature error vector; ΔT r represents the node reheating temperature error vector; T s,load is the heating temperature vector of the load node; T r,load is the reheating temperature vector of the load node.
[0029] Furthermore, for the regional natural gas system, the method for establishing the mathematical model includes:
[0030] Ignoring the pipeline height deviation and natural gas temperature change, the steady-state energy flow equation of the natural gas pipeline is described as:
[0031]
[0032] In the formula, the subscript p represents the pipeline; f p,k represents the natural gas flow rate of pipeline k starting from node i and ending at node j; S ij is the pipeline flow direction parameter, π i , π j Respectively represent the pressure of nodes i and j; Π i , Π j Represents the square of the pressure at nodes i and j respectively; K p,k is a constant that characterizes the physical characteristics of pipeline k;
[0033] Compressor driving power H c,io and the gas flow rate τ consumed by the compressor io Respectively expressed as:
[0034]
[0035]
[0036] In the formula, subscript c represents the compressor, τ io represents the gas flow consumed by the compressor with inlet node i and outlet node o; f c,io represents the gas flow rate through the compressor with inlet node i and outlet node o, B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor, α c , β c, γ c is the energy conversion efficiency coefficient; Π i , Π o Represents the square of the pressure at the inlet node i and outlet node o of the compressor.
[0037] According to Kirchhoff's second law, the gas flow balance equation at each node in the natural gas network is expressed as:
[0038] A g f p +B g f c +w-Tτ=0
[0039] In the formula, A g is the association matrix between nodes and pipeline branches, B g is the association matrix between nodes and compressor branches, w is the gas injection vector at each node, and f p 、f c represents pipeline and compressor flow; τ represents compressor gas consumption; T is a matrix describing the relationship between gas intake points and compressor branches; if compressor k takes gas from node i, then T ik =1, otherwise T ik =0.
[0040] Furthermore, for a regional natural gas system without a compressor pipeline, when the independent power flow solution model of the regional natural gas system is established based on the Newton-Raphson method, the iterative Jacobian matrix J of the regional natural gas system is g It is expressed as:
[0041]
[0042]
[0043] In the formula, J g Represents an order of N n The square matrix, J g Each row in corresponds to the coefficient of the flow balance equation at each node, Δw is the node gas injection error vector, Π is the square vector of the node pressure, and A g is the association matrix between nodes and pipeline branches, Γ is a diagonal matrix, and its diagonal element value is Γ k , f p,k represents the natural gas flow rate of pipeline k starting from node i and ending at node j, Π i ,Π j Represent the square of the pressure at nodes i and j respectively.
[0044] Furthermore, the operation modes of the compressor include:
[0045] Operating mode I: Compression ratio of the compressor known;
[0046] Operation mode II: Pressure difference between compressor inlet pressure and outlet pressure known;
[0047] Operation Mode III: Gas Flow Rate Through Compressor known;
[0048] Operation Mode IV: Compressor Inlet Pressure known;
[0049] Operation mode V: compressor outlet pressure known;
[0050] The outlet node o is a node with known pressure, and the inlet node i is a node with known flow. At this time, the flow balance equation at nodes o and i is expressed as:
[0051]
[0052] In the formula, τ io represents the gas flow consumed by the compressor with inlet node i and outlet node o; f c,io represents the gas flow rate through the compressor with inlet node i and outlet node o; f p,mi represents the gas flow rate of the pipeline starting from node m and ending at node i; f p,on represents the gas flow rate of the pipeline starting at node o and ending at node n; w o is the gas injection volume of node o.
[0053] In eliminating f in the above formula c,io After that, the flow balance equation at node i is rewritten as:
[0054]
[0055] In the formula, K p,mi is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; S mi is the pipeline flow direction parameter starting from node m and ending at node i; K p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; S on is the pipeline flow direction parameter starting from node o and ending at node n; m ,Π i ,Π o ,Π n is the square of the pressure at nodes m, i, o, and n; w o is the gas injection volume of node o; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; αc , β c is the energy conversion efficiency coefficient.
[0056] Definition i ,θ i They are:
[0057]
[0058] Due to Δw i =w sp,i -w i , therefore, J g The elements in the m, i, and n columns in the i-th row are adjusted according to the following formula:
[0059]
[0060] In the formula, w i is the gas injection volume of node i; Δw i is the error of gas injection amount at node i; K p,mi K is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; m ,Π i ,Π o ,Π n are the squares of the pressures at nodes m, i, o, and n respectively; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; α c , β c is the energy conversion efficiency coefficient.
[0061] The inlet node i is a node with known pressure, and the outlet node o is a node with known flow. At this time, the flow balance equation at nodes o and i is expressed as:
[0062]
[0063] In the formula, τ io represents the gas flow consumed by the compressor with inlet node i and outlet node o; f c,io represents the gas flow rate through the compressor with inlet node i and outlet node o; f p,mi represents the gas flow rate of the pipeline starting at node m and ending at node i; f p,on represents the gas flow rate of the pipeline starting at node o and ending at node n; w i is the gas injection volume of node i.
[0064] In eliminating f in the above formula c,io After that, the flow balance equation at node o is rewritten as:
[0065]
[0066] In the formula, K p,mi is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; S mi is the pipeline flow direction parameter starting from node m and ending at node i; K p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; S on is the pipeline flow direction parameter starting from node o and ending at node n; m , Π i , Π o , Π n is the square of the pressure at nodes m, i, o, and n; w i is the gas injection volume of node i; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; α c , β c is the energy conversion efficiency coefficient.
[0067] Defining ε o ,θ o They are:
[0068]
[0069] Due to Δw o =w sp,o -w o , therefore, J g The elements in the mth, oth, and nth columns in the oth row are adjusted according to the following formula:
[0070]
[0071] In the formula, w o is the gas injection volume of node o; Δw o is the error of the gas injection amount at node o; K p,mi K is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; m , Π i , Π o , Π n are the squares of the pressures at nodes m, i, o, and n respectively; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; α c , β c is the energy conversion efficiency coefficient.
[0072] The compressor in mode V or mode IV directly meets the above two types of assumptions, while for other modes, it meets the above two types of assumptions according to the following formula:
[0073]
[0074] Where: sign(·) represents the sign function; t is the number of iterations; is the compression ratio of the compressor; is the pressure difference between the compressor inlet pressure and outlet pressure; is the gas flow rate through the compressor; is the compressor inlet pressure; is the compressor outlet pressure.
[0075] Further, the energy hub includes a photovoltaic cell, a wind turbine, a combined heat and power unit composed of a gas turbine and a waste heat boiler, a gas boiler, a heat pump, a heat exchanger and a transformer;
[0076] The mathematical model of the energy hub is described as:
[0077]
[0078] Where P o,e , P o,h They represent the output power of electricity and heat respectively, λ and σ represent the distribution coefficient of electricity and heat respectively, η t , η echp , η hchp , η gb , η he , η hp They represent transformer efficiency, CHP unit electrical efficiency, CHP unit thermal efficiency, gas boiler thermal efficiency, heat exchanger efficiency and heat pump efficiency respectively; P dgpv , P dgwt , Represent the input power of photovoltaic cells, wind turbines, and natural gas respectively.
[0079] Furthermore, considering the grid connection of the regional power system, the method of setting the operation mode of each energy hub includes:
[0080] For the regional natural gas system, the nodes connected to the gas source are selected as the relaxed nodes;
[0081] For the district thermal system, the relaxation nodes are set at the nodes connected to the heat source and the nodes connected to the energy hub;
[0082] In the regional power system, the selection of slack nodes depends on whether they are grid-connected or not: in the grid-connected mode, the grid-connected point is selected as the slack node, and the energy fluctuation in the regional power system is balanced by the connected external power grid; while in the island mode, the node connected to the energy hub is selected as the slack node;
[0083] The energy hubs other than those selected as slack nodes are considered as common power sources, heat sources, and natural gas loads.
[0084] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0085] (1) The present invention models the coupling elements in the system as a whole in the form of an energy hub, which can consider multiple types of energy conversion equipment at the same time and has good scalability for the integrated energy system containing different coupling devices;
[0086] (2) The power flow calculation method proposed in the present invention fully considers the actual operating conditions of the regional power system, and can obtain the power flow calculation results of the integrated energy system when the power subsystem is in an isolated or grid-connected operating state;
[0087] (3) The present invention derives the iterative Jacobian matrix of the regional natural gas system taking into account the influence of different operating modes of the compressor driven by natural gas. The proposed integrated energy system flow calculation method can fully consider the different operating modes of the gas-driven compressors in the gas system. BRIEF DESCRIPTION OF THE DRAWINGS
[0088] Figure 1 is a flow chart of a method for calculating power flow of an integrated energy system provided by an embodiment of the present invention;
[0089] Figure 2 is a schematic diagram of a gas turbine driven compressor provided by an embodiment of the present invention;
[0090] Figure 3 It is a schematic diagram of the energy hub structure of the comprehensive energy system provided by an embodiment of the present invention;
[0091] Figure 4 is a flow chart of a method for calculating a regional natural gas system flow provided by an embodiment of the present invention;
[0092] Figure 5 is a structural diagram of a comprehensive energy system to be tested provided by an embodiment of the present invention;
[0093] Figure 6 It is a comparative analysis diagram of node pressure in scenario S2 and scenario S3 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0094] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0095] like Figure 1 As shown, the method for calculating the power flow of an integrated energy system taking into account different operating modes of compressors described in the present invention is aimed at the electric-heat-gas integrated energy system composed of a regional power system, a regional thermal system, a regional natural gas system and an energy hub. First, mathematical models of the regional power system, the regional thermal system and the regional natural gas system are established. Then, based on the Newton-Raphson method and the derived Jacobian matrix of the natural gas system taking into account the influence of different operating modes of compressors driven by natural gas, independent power flow solution models of the regional power system, the regional thermal system and the regional natural gas system are established respectively. Finally, on the basis of considering the grid connection status of the regional power system, a distributed power flow calculation method for the integrated energy system is formed by reasonably setting the operating mode of each energy hub. The specific implementation steps include:
[0096] (1) Obtain the specific parameters of the regional power system, regional thermal system, regional natural gas system and energy hub in the integrated energy system, and establish their mathematical models respectively;
[0097] The regional power system is represented by the traditional AC power flow model, and its power balance equation can be expressed as:
[0098]
[0099] In the formula, P and Q represent the active and reactive power injected into the node respectively. represents the node voltage vector, Y represents the node admittance matrix, Re{} and Im{} represent the real part and imaginary part of the complex number respectively.
[0100] The regional thermal system transmits and distributes energy through transmission media, and its mathematical model can be regarded as the unification of the hydraulic model and the thermal model. The hydraulic model is composed of the flow balance equation and the loop pressure equation, which can be expressed as:
[0101]
[0102] In the formula, A h , B h They represent the node-branch matrix and loop-branch matrix of the heating network, respectively. m, K h Respectively represent the flow vector and pipeline resistance coefficient vector of each pipeline, m q 、h f They represent the flow injection vector and head loss vector of each node respectively.
[0103] The thermal model is used to calculate the temperature of each node in the heating network. It consists of the temperature drop equation, the temperature mixing equation and the node thermal power balance equation, which can be expressed as:
[0104]
[0105] Where, T start , T end Respectively represent the starting and ending temperatures of each pipeline in the heat network, λ h represents the thermal conductivity of the pipe, T a Indicates the ambient temperature, L h Indicates the length of the pipeline, C p represents the specific heat capacity of the transmission medium, m out 、m in Respectively represent the medium flow outflow and inflow of the node, T out , T in represent the medium temperature after and before mixing at the node, Φ represents the thermal power vector of the node, T s , T o Represent the heating and reheating temperatures of the node respectively.
[0106] Typically, regional natural gas systems consist of N b branches and N n Specifically, the branch is divided into N p Pipeline branches and N c compressor branches, the node can be defined as N s Pressure known nodes (also called relaxation nodes, N s ≥1) and N i Nodes with known flow. Ignoring the pipeline height deviation and natural gas temperature change, the steady-state energy flow equation of the natural gas pipeline can be described as:
[0107]
[0108]
[0109] In the formula, the subscript p represents the pipeline; f p,k represents the natural gas flow rate of pipeline k starting from node i and ending at node j; S ij is the pipeline flow direction parameter; π i , π j Respectively represent the pressure of nodes i and j; Π i ,Π j Represents the square of the pressure at nodes i and j respectively; K p,k is a constant that characterizes the physical characteristics of pipeline k.
[0110] Considering the pressure loss during gas transmission, compressors are usually installed in natural gas pipelines to maintain pressure. As the most economical way, compressors driven by gas turbines are widely used in natural gas pipelines. Figure 2 As shown. Driving power H c,io and the gas flow rate τ consumed by the compressor io Can be expressed as:
[0111]
[0112]
[0113] In the formula, subscript c represents the compressor, τ io represents the gas flow consumed by the compressor with inlet node i and outlet node o, f c,io represents the gas flow rate through the compressor, Π i , Π o It represents the square of the pressure at the inlet node i and outlet node o of the compressor, B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor, α c , β c , γ c is the energy conversion efficiency coefficient, taking into account the τ in the compressor io With H c,io It can be approximately regarded as a linear relationship, and τ is usually omitted io Quadratic terms in expressions.
[0114] In order to more accurately describe the operating conditions of the natural gas pipeline network, the present invention considers five operating modes of the compressor: Figure 2 Taking the compressor shown in the figure as an example, the inlet and outlet nodes of the compressor are i and o respectively, m is another node of the vector pipeline with the inlet node of the compressor, and n is another node of the vector pipeline with the outlet node of the compressor. The operation modes of the compressor include:
[0115] Operating mode I: Compression ratio of the compressor known;
[0116] Operation mode II: Pressure difference between compressor inlet pressure and outlet pressure known;
[0117] Operation Mode III: Gas Flow Rate Through Compressor known;
[0118] Operation Mode IV: Compressor Inlet Pressure known;
[0119] Operation mode V: compressor outlet pressure Known.
[0120] According to Kirchhoff's second law, the gas flow balance equation at each node in the natural gas grid can be expressed as:
[0121] A g f p +B g f c +w-Tτ=0
[0122] In the formula, A g is the association matrix between nodes and pipeline branches, B g is the association matrix between nodes and compressor branches, w is the gas injection vector at each node, and f p 、f c represents pipeline and compressor flow; τ represents compressor gas consumption; T is a matrix describing the relationship between gas intake points and compressor branches; if compressor k takes gas from node i, then T ik =1, otherwise T ik =0.
[0123] like Figure 3 As shown in the figure, photovoltaic cells (PV), wind turbines (WT), combined heat and power units (CHP) composed of gas turbines (GT) and waste heat boilers (HB), gas boilers (GB), heat pumps (HP), heat exchangers (HE) and transformers together constitute the energy hub of IES. Its mathematical model can be described as:
[0124]
[0125] Where P o,e , P o,h They represent the output power of electricity and heat respectively, λ and σ represent the distribution coefficient of electricity and heat respectively, η t , η echp , η hchp , η gb , η he , η hp They represent transformer efficiency, CHP unit electrical efficiency, CHP unit thermal efficiency, gas boiler thermal efficiency, heat exchanger efficiency and heat pump efficiency respectively; P dgpv , P dgwt , Represent the input power of photovoltaic cells, wind turbines, and natural gas respectively.
[0126] (2) Based on the Newton-Raphson method, independent flow solution models for regional electricity, heat, and gas energy subsystems are established;
[0127] Considering the high-dimensional and nonlinear characteristics of the energy flow equation, the present invention adopts the traditional power flow calculation method based on the NR method to solve the power flow of each energy network. The iterative form of the NR method is as follows:
[0128] x t+1 =x t -(J t ) -1 ΔF t
[0129] Where t is the number of iterations, x is the state variable vector, ΔF is the error vector, and J is the iterative Jacobian matrix.
[0130] For a regional power system, its state variable vector x e =[U,θ], where U and θ are the node voltage amplitude and voltage phase angle vector respectively. The error vector ΔF of the regional power system e It can be expressed as:
[0131]
[0132] Where: ΔP represents the node active error vector; ΔQ represents the node reactive error vector; P sp Indicates the given active power of the node; Q sp Represents the given reactive power of the node; Re{} and Im{} represent the real part and imaginary part of the complex number, respectively.
[0133] For a district thermal system, its state variable x h =[T s,load ,T r,load ,m], where T s,load is the temperature vector for heating the load node, T r,load is the heat recovery temperature vector of the load node, and m is the flow vector of each pipeline. The error vector ΔF of the regional thermal system h It can be expressed as:
[0134]
[0135] In the formula, the subscript sp represents a given value, Φ sp Represents the given thermal power of the node; C p Indicates the specific heat capacity of the transmission medium; A h , B h They represent the node-branch matrix and loop-branch matrix of the heating network respectively; T s , T o Respectively represent the heating and reheating temperatures of the nodes; K h Represents the resistance coefficient vector of each pipeline, C s , C r are the coefficient matrices for calculating the heating and reheating temperatures, bs 、b r is the column vector related to the calculation of heating and heat recovery temperature; ΔΦ represents the node thermal power error vector; Δh f represents the node pressure error vector; ΔT s Represents the node heating temperature error vector; ΔT r represents the node reheating temperature error vector; T s,load is the heating temperature vector of the load node; T r,load is the reheating temperature vector of the load node.
[0136] The iterative Jacobian matrix of regional power system and regional thermal system has been fully explained in existing research and will not be elaborated here.
[0137] For a regional natural gas system, an embodiment of the present invention provides a method for calculating the flow of a regional natural gas system based on the Newton node method, such as Figure 4 As shown, the following steps are included:
[0138] (1) Calculate the gas input power of each energy hub, regard it as the gas load of the corresponding node, and initialize the natural gas system state variables;
[0139] (2) Correct the state variables of the nodes with known pressure and calculate the flow difference vector Δw of each node other than the nodes with known pressure;
[0140] (3) Calculate the initial Jacobian matrix J of the gas network without compressor pipelines g ;
[0141] (4) Correction J g The relevant elements corresponding to the compressor pipe in , and then delete J g The rows and columns in the same order as the nodes with known pressure;
[0142] (5) Calculate ΔΠ=(J g ) -1 Δw, updates the state variable value of the gas system;
[0143] (6) Determine Max(|ΔΠ|)<ε 1 Is it true? If it is true, go to step (7). If it is not true, go to step (2). 1 is the gas network convergence accuracy;
[0144] (7) Output the regional natural gas system flow calculation results.
[0145] The state variables of the regional natural gas system are defined as x g =[Π], its error vector ΔF g It can be expressed as:
[0146] ΔF g=[Δw] = [w sp +A g f p +B g f c -Tτ]
[0147] For a regional natural gas system without compressor pipelines, its iterative Jacobian matrix can be expressed as:
[0148]
[0149]
[0150] In the formula, J g Represents an order of N n The square matrix, J g Each row in corresponds to the coefficient of the flow balance equation at each node, Δw is the node gas injection error vector, Π is the square vector of the node pressure, and A g is the association matrix between nodes and pipeline branches, Γ is a diagonal matrix, and its diagonal element value is Γ k , f p,k represents the natural gas flow rate of pipeline k starting from node i and ending at node j. Obviously, when considering the influence of the compressor branch in the regional natural gas system, J g is partially wrong, and J g The row elements corresponding to the compressor inlet or outlet nodes are adjusted.
[0151] exist Figure 2 In the definition, Assumption 1 is: the compressor outlet node o is a node with known pressure, and the compressor inlet node i is a node with known flow. At this time, the flow balance equation at the compressor outlet node o and the compressor inlet node i can be expressed as:
[0152]
[0153] In the formula, f p,mi represents the gas flow rate of the pipeline starting from node m and ending at node i; f p,on represents the gas flow rate of the pipeline starting from node o and ending at node n; w o is the gas injection volume of node o.
[0154] In eliminating f in the above formula c,io After that, the flow balance equation at the compressor inlet node i can be rewritten as:
[0155]
[0156] In the formula, K p,mi is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; Smi is the pipeline flow direction parameter starting from node m and ending at node i; K p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; S on is the pipeline flow direction parameter starting from node o and ending at node n; m ,Π i ,Π o ,Π n is the square of the pressure at nodes m, i, o, and n; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; α c , β c is the energy conversion efficiency coefficient.
[0157] To simplify the formula, define ω i ,θ i They are:
[0158]
[0159] Due to Δw i =w sp,i -w i , therefore, J g The elements in the m, i, and n columns of the i-th row can be adjusted according to the following formula:
[0160]
[0161] In the formula, w i is the gas injection volume of node i; w sp,i is the given gas injection volume of node i; Δw i is the error of the gas injection amount at node i.
[0162] Similarly, definition assumption 2 is: the compressor inlet node i is a node with known pressure, and the compressor outlet node o is a node with known flow. At this time, the flow balance equation at the compressor outlet node o and the compressor inlet node i can be expressed as:
[0163]
[0164] In eliminating f in the above formula c,io After that, the flow balance equation at the compressor outlet node o can be rewritten as:
[0165]
[0166] To simplify the formula, define ε o ,θ o They are:
[0167]
[0168] Due to Δw o =w sp,o -w o , therefore, J g The elements in the mth, oth, and nth columns in the oth row can be adjusted according to the following formula:
[0169]
[0170] In the formula, w sp,o is the given gas injection volume of node o; Δw o is the error of the gas injection amount at node o.
[0171] It should be noted that the compressor in operation mode V or operation mode IV can directly satisfy the above two types of assumptions, while for other operation modes, the above two types of assumptions can be satisfied according to the following formula:
[0172]
[0173] In the formula, sign(·) represents the sign function; t is the number of iterations; is the compression ratio of the compressor; is the pressure difference between the compressor inlet pressure and outlet pressure; is the gas flow rate through the compressor; is the compressor inlet pressure; is the compressor outlet pressure.
[0174] As shown in the above formula, the compressor inlet node of operation mode IV can be regarded as a node with known pressure, and assumption 2 applies at this time. On the contrary, for the other four modes, the compressor outlet node can be regarded as a node with known pressure, and assumption 1 applies at this time. It should be noted that considering the existence of N in the regional natural gas system, s The pressure nodes are known, J g The order should be reduced to N i , x g and ΔF g The dimension of i , which can be achieved by deleting the rows or columns whose index values are equal to the index values of the pressure known nodes. In addition, before each iteration, the squared pressure values of all pressure known nodes should be recalculated according to the above formula.
[0175] (3) Considering the grid connection of the regional power system, a distributed power flow calculation method for the integrated energy system is formed by reasonably setting the operation mode of each energy hub.
[0176] Based on the flow calculation methods of the above-mentioned single energy systems, a flow calculation method for an integrated energy system taking into account different operating modes of the compressor is designed. For the regional natural gas system, the node connected to the gas source is selected as the relaxation node. For the regional thermal system, its relaxation nodes are set on the nodes connected to the heat source and the nodes connected to the energy hub. In the regional power system, the selection of relaxation nodes depends on whether it is connected to the grid. In the grid-connected mode, the grid-connected point is selected as the relaxation node, and the energy fluctuations in the regional power system are balanced by the connected external power grid. In the island mode, the node connected to the energy hub is selected as the relaxation node. Other energy hubs except those selected as relaxation nodes are regarded as ordinary power sources, heat sources and natural gas loads.
[0177] The present invention is further described below by means of a calculation example.
[0178] In order to verify the effectiveness of the proposed multi-energy flow calculation method, a simulation analysis of an electric-gas-heat and integrated energy system consisting of an improved 14-node IEEE test power system, a 15-node thermal system, a 14-node natural gas system and two energy hubs was carried out. Figure 5 The structural diagram of the integrated energy system to be tested is given. In the regional power system, the outputs of the generator sets G1 and G2 are 3MW and 8MW respectively. In the regional thermal system, the heat recovery temperature of each load node is 30℃, and the heating temperature of the heat source node is 90℃. In the regional natural gas system, all four compressors are driven by natural gas. In addition, the detailed parameters of the energy hub are shown in Table 1. All simulations were performed by MatlabR2018b on a personal computer equipped with an Intel Core i5 CPU and 16GB RAM.
[0179] Table 1
[0180] Parameter name EH1 EH2 Parameter name EH1 EH2 λ 0 0.3 <![CDATA[η gb ]]> 0.8 0.85 σ 0.7 0.8 <![CDATA[η ec hp,η hchp ]]> 0.35,0.73 0.3,0.69 <![CDATA[η he ]]> 0.9 0.9 <![CDATA[P dgpv ]]> 3MW 4MW <![CDATA[η t ]]> 0.95 0.98 <![CDATA[P dgwt ]]> 2MW 3MW
[0181] Based on the above IES simulation model, the following three simulation scenarios are designed:
[0182] Scenario S1: The regional power system is connected to the grid at node Bs6, i.e. G2 is regarded as an external grid. Nodes Bs6, Hs6 and Gs1 are selected as balancing nodes of each energy network. The initial power output of EH1 is 8MW. Compressors 1-4 operate in mode I (R 0c,io =1.6), Mode III (f 0c,io =120MMCFD), Mode II (D 0c,io =350psia) and Mode IV (π 0i =750psia).
[0183] Scenario S2: The regional power system operates in island mode. Nodes Bs1, Hs6, and Gs1 are selected as balancing nodes for each energy network, respectively. Other conditions are the same as those in scenario S1.
[0184] Scenario S3: In scenario S2, compressors 1-4 operate in mode II (D 0c,io =400psia), Mode I (R 0c,io =1.8) Working in mode V and Mode III (f 0c,io =100MMCFD).
[0185] Based on the proposed integrated energy system power flow calculation method, the power flow analysis of scenarios S1 and S2 is carried out respectively, and some power flow calculation results are shown in Tables 2-4. In general, since the operating conditions are the same except for the different operating modes of the regional power system in scenarios S1 and S2, the energy flow of IES in these two scenarios does not change significantly and is similar to each other. As can be seen from Table 2, the node voltage amplitudes of the regional power system are between 0.9 and 1.1 pu, and none of them exceed the limit. Although the output of the energy hub and the generator set changes with the change of their operating mode, their total power output is similar, which also leads to similar power flow distribution of the regional power system. In the regional thermal system, the flow of load branches l1-l10 is also very close in different scenarios, but due to the change of the thermal output of the energy hub, the flow of the main branch l11-l16 changes significantly. The confluence node changes from Hs3 (scenario S1) to Hs2 (scenario S2). In addition, the difference in natural gas consumption of the energy hub in the two scenarios also leads to changes in node pressure and pipeline flow in the regional natural gas system.
[0186] Table 2
[0187]
[0188]
[0189] Table 3
[0190]
[0191] Table 4
[0192]
[0193] In order to further verify the applicability of the proposed method to different compressor operation modes, the system flow calculation results under scenarios S2 and S3 were analyzed. Since the compressors are all driven by gas turbines, changes in the compressor operation mode will not affect the flow state of other energy networks. Specifically, the flow calculation results of the regional power system, regional thermal system, and energy hub under scenarios S2 and S3 are the same, which further proves the effectiveness of the proposed method. Figure 6 Table 5 compares the node pressure and pipeline flow of the regional natural gas system under scenario S2 and scenario S3. It can be found that the appropriate compressor mode setting can keep the node pressure of the regional natural gas system within a reasonable range. In addition, different compressor operation modes will lead to changes in the flow distribution and compressor gas consumption in the regional natural gas system.
[0194] Table 5
[0195]
[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0197] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0198] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0199] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0200] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for calculating power flow in an integrated energy system. It is characterized in that The method comprises the following steps: Obtain the specific parameters of the regional power system, regional thermal system, regional natural gas system and energy hub in the integrated energy system, and establish their mathematical models respectively; According to the established mathematical model, independent flow solution models of the regional power system, the regional thermal system, and the regional natural gas system are respectively established based on the Newton-Raphson method; among them, for the regional natural gas system without compressor pipeline in the regional natural gas system including compressors, an independent flow solution model of the regional natural gas system is established based on the Newton-Raphson method, and the iterative Jacobian matrix is established respectively taking into account the operation mode of the compressor driven by natural gas; Considering the grid connection of the regional power system, the operation mode of each energy hub is set, and the independent solution model of each flow is solved to obtain the flow calculation results; Among them, the iterative Jacobian matrix J of the regional natural gas system g It is expressed as: In the formula, J g Represents an order of N n The square matrix, J g Each row in corresponds to the coefficient of the flow balance equation at each node, Δw is the node gas injection error vector, Π is the square vector of the node pressure, and Γ is a diagonal matrix whose diagonal element value is Γ k ;Π i , Π j Represents the square of the pressure at nodes i and j respectively; f p,k A represents the natural gas flow rate of pipeline k starting from node i and ending at node j; g is the association matrix between nodes and pipeline branches; The operating modes of the compressor include: Operating mode I: Compression ratio of the compressor known; Operation mode II: Pressure difference between compressor inlet pressure and outlet pressure known; Operation Mode III: Gas Flow Rate Through Compressor known; Operation Mode IV: Compressor Inlet Pressure known; Operation mode V: compressor outlet pressure known; and Represent the compressor inlet pressure and compressor outlet pressure respectively; the outlet node o is a known pressure node, and the inlet node i is a known flow node. At this time, the flow balance equation at nodes o and i is expressed as: In the formula, w i is the gas injection volume of node i; f p,mi represents the gas flow rate of the pipeline starting at node m and ending at node i; τ io represents the gas flow consumed by the compressor with inlet node i and outlet node o; f c,io represents the gas flow rate through the compressor with inlet node i and outlet node o; w o is the gas injection volume of node o; f p,on represents the gas flow rate of the pipeline starting at node o and ending at node n; In eliminating f in the above formula c,io After that, the flow balance equation at node i is rewritten as: In the formula, K p,mi is a constant that characterizes the physical characteristics of the pipeline starting at node m and ending at node i; S mi is the pipeline flow direction parameter starting from node m and ending at node i; K p,on is a constant that characterizes the physical characteristics of the pipeline starting at node o and ending at node n; S on is the pipeline flow direction parameter starting from node o and ending at node n; m , Π o , Π n is the square of the pressure at nodes m, o, and n; α c , β c is the energy conversion efficiency coefficient; B c,io and Z c,io is a constant that depends on the physical characteristics of the compressor; Definition i ,θ i They are: Due to Δw i =w sp,i -w i , therefore, J g The elements in the m, i, and n columns in the i-th row are adjusted according to the following formula: In the formula, w sp,i is the given gas injection volume of node i; Δw i is the error of the gas injection amount at node i; The inlet node i is a node with known pressure, and the outlet node o is a node with known flow. At this time, the flow balance equation at nodes o and i is expressed as: In eliminating f in the above formula c,io After that, the flow balance equation at node o is rewritten as: Defining ε o ,θ o They are: Due to Δw o =w sp,o -w o , therefore, J g The elements in the mth, oth, and nth columns in the oth row are adjusted according to the following formula: In the formula, w sp,o is the given gas injection volume at node o, Δw o is the error of the gas injection amount at node o; The compressor in operation mode V or operation mode IV directly meets the above two types of assumptions, while for other modes, it meets the above two types of assumptions according to the following formula: Where: sign(·) represents the sign function; t is the number of iterations; is the compression ratio of the compressor; is the pressure difference between the compressor inlet pressure and outlet pressure; is the gas flow rate through the compressor; is the compressor inlet pressure; is the compressor outlet pressure.
2. The integrated energy system power flow calculation method according to claim 1, It is characterized in that For the regional power system, its mathematical model is represented by the AC power flow model, and its power balance equation is expressed as: In the formula, P and Q represent the active and reactive power injected into the node respectively. represents the node voltage vector, Y represents the node admittance matrix, Re{} and Im{} represent the real part and imaginary part of the complex number respectively.
3. The integrated energy system power flow calculation method according to claim 2, It is characterized in that When establishing the independent solution model of regional power system power flow based on Newton-Raphson method, take its state variable vector x e =[U,θ], where U and θ are the node voltage amplitude and voltage phase angle vector respectively; The error vector ΔF of the regional power system e It is expressed as: Where: ΔP represents the node active error vector; ΔQ represents the node reactive error vector; The subscript sp indicates a given value, P sp Indicates the given active power of the node; Q sp Indicates the node's given reactive power.
4. The integrated energy system power flow calculation method according to claim 1, It is characterized in that For the district thermal system, its mathematical model is regarded as the unification of hydraulic model and thermal model; The hydraulic model is composed of a flow balance equation and a circuit pressure equation, which can be expressed as: In the formula, A h , B h They represent the node-branch matrix and loop-branch matrix of the heating network, respectively. m, K h Respectively represent the flow vector and pipeline resistance coefficient vector of each pipeline, m q 、h f They represent the flow injection vector and head loss vector of each node respectively; The thermal model is used to calculate the temperature of each node in the heat network. It consists of a temperature drop equation, a temperature mixing equation, and a node thermal power balance equation, which can be expressed as: Where, T start , T end Respectively represent the starting and ending temperatures of each pipeline in the heat network, λ h represents the thermal conductivity of the pipe, T a Indicates the ambient temperature, L h Indicates the length of the pipeline, C p represents the specific heat capacity of the transmission medium, m out 、m in Respectively represent the medium flow outflow and inflow of the node, T out , T in represent the medium temperature after and before mixing at the node, Φ represents the thermal power vector of the node, T s , T o Represent the heating and reheating temperatures of the node respectively.
5. The integrated energy system power flow calculation method according to claim 4, It is characterized in that When establishing the independent solution model of the regional thermal system based on the Newton-Raphson method, take its state variable vector x h =[T s,load ,T r,load ,m], where T s,load is the heating temperature vector of the load node; T r,load is the heat recovery temperature vector of the load node; m is the flow vector of each pipeline; Error vector ΔF of the district thermal system h It is expressed as: In the formula, the subscript sp represents a given value, Φ sp Represents the given thermal power of the node; C p Indicates the specific heat capacity of the transmission medium; A h , B h Respectively represent the node-branch matrix and loop-branch matrix of the heating network; m, K h Respectively represent the flow vector and pipeline resistance coefficient vector of each pipeline; C s , C r are the coefficient matrices for calculating the heating and reheating temperatures, b s , b r is the column vector related to the calculation of heating and heat recovery temperature; ΔΦ represents the node thermal power error vector; Δh f represents the node pressure error vector; ΔT s Represents the node heating temperature error vector; ΔT r Represents the node reheating temperature error vector.
6. The integrated energy system power flow calculation method according to claim 1, It is characterized in that For the regional natural gas system, the mathematical model establishment method includes: Ignoring the pipeline height deviation and natural gas temperature change, the steady-state energy flow equation of the natural gas pipeline is described as: In the formula, the subscript p represents the pipeline; f p,k represents the natural gas flow rate of pipeline k starting from node i and ending at node j; S ij is the pipeline flow direction parameter, K p,k is a constant that characterizes the physical characteristics of pipeline k; Compressor driving power H c,io and the gas flow rate τ consumed by the compressor io Respectively expressed as: In the formula, subscript c represents the compressor, γ c is the energy conversion efficiency coefficient; According to Kirchhoff's second law, the gas flow balance equation at each node in the natural gas network is expressed as: A g f p +B g f c +w-Tτ=0 In the formula, B g is the association matrix between nodes and compressor branches, w is the gas injection vector at each node, and f p 、f c represent pipeline and compressor flow respectively; τ represents compressor gas consumption; T is a matrix describing the relationship between gas intake points and compressor branches; if compressor k takes gas from node i, then T ik =1, otherwise T ik =0.
7. The integrated energy system power flow calculation method according to claim 1, It is characterized in that The energy hub includes photovoltaic cells, wind turbines, a combined heat and power unit consisting of a gas turbine and a waste heat boiler, a gas boiler, a heat pump, a heat exchanger and a transformer; The mathematical model of the energy hub is described as: Where P o,e , P o,h They represent the output power of electricity and heat respectively, λ and σ represent the distribution coefficient of electricity and heat respectively, η t , η gb , η he , η hp They represent transformer efficiency, CHP unit electrical efficiency, CHP unit thermal efficiency, gas boiler thermal efficiency, heat exchanger efficiency, and heat pump efficiency respectively; Represent the input power of photovoltaic cells, wind turbines, and natural gas respectively.
8. The integrated energy system power flow calculation method according to claim 7, It is characterized in that Considering the grid connection of the regional power system, the methods for setting the operation mode of each energy hub include: For the regional natural gas system, the nodes connected to the gas source are selected as the relaxed nodes; For the district thermal system, the relaxation nodes are set at the nodes connected to the heat source and the nodes connected to the energy hub; In the regional power system, the selection of slack nodes depends on whether they are grid-connected or not: in the grid-connected mode, the grid-connected point is selected as the slack node, and the energy fluctuation in the regional power system is balanced by the connected external power grid; while in the island mode, the node connected to the energy hub is selected as the slack node; The energy hubs other than those selected as slack nodes are considered as common power sources, heat sources, and natural gas loads.
