Unified per-unit calculation method for hybrid energy flow in electricity-water interconnected systems
Through the unified standard unit calculation method of the power-water interconnection system, the problem of too large Jacobian matrix condition number in the unified energy flow solution of the power grid and water network is solved, and the stability of the system and calculation efficiency are improved.
Patent Information
- Application Number
- CN202011300350.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing electricity-water mixed energy flow calculation method is prone to excessively large Jacobian matrix condition numbers during the unified solution process, leading to system pathology and difficulty in ensuring convergence. Especially in the hydraulic calculation of water distribution networks, the pipe coefficient is too large, affecting the power grid. Unified energy flow solution with water network.
A unified standard unit calculation method for power-water interconnected systems is proposed. By obtaining basic data and initializing it, a power system power flow model, a water distribution system steady-state model and a coupling link steady-state model are established, and the Newton-Raphson method is used to solve the problem. Calculate the energy flow model of the electricity-water interconnection system and use the Jacobian matrix to correct it until convergence is achieved.
It effectively reduces the condition number of the Jacobian matrix of the water distribution network, improves the stability and calculation efficiency of the system, and simplifies the unified energy flow solution process of the power grid and water network.
Smart Images

Figure CN112531716B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy flow calculation, and in particular to a unified per-unit calculation method for mixed energy flow of an electricity-water interconnected system. Background Art
[0002] Energy flow calculation is the basic operation of the power-water interconnection system and the basis for the planning and optimization of the power-water interconnection system. Previously, the coupling element between the power grid and the water grid was mainly a water pump, which input electrical power from the power grid to increase the water head, thereby ensuring the normal operation of the water grid. At present, there are literatures that consider the bidirectional coupling of the power-water system. For example, based on the water consumption model of power generation equipment, the bidirectional flow of matter and energy in the power-water interconnection system is realized.
[0003] In the existing literature on the calculation of hybrid power flow of electricity and water, most of the hydraulic analysis of the water distribution network uses the software EPANET to solve or discuss the impact of different hydraulic calculation methods on the hydraulic calculation of the water distribution network. In the water distribution network model part, the water network is not considered to be calibrated per unit. The power grid generally uses the Newton-Raphson method and solves after calibrating the power system. In the integrated energy system, such as the combined system of electricity-water, electricity-gas, electricity-heat or electricity-gas-heat, the convergence of the system will be difficult to guarantee if a unified solution method is used, which is indeed the case in the actual solution process. Among them, the pipe coefficient of the pipe equation in the hydraulic calculation of the water distribution network is too large. In the process of solving it using the Newton-Raphson method, the problem of too large Jacobian matrix condition number will appear. If the unified energy flow solution is performed with the power grid, the Jacobian matrix condition number will dominate, resulting in too large composite Jacobian matrix condition number, and the system is prone to pathological. Summary of the invention
[0004] The object of the present invention is to provide a unified per-unit calculation method for mixed energy flow in an electricity-water interconnection system, comprising the following steps:
[0005] 1) Obtain basic data of the electricity-water interconnection system and initialize it.
[0006] The power-water interconnection system includes basic data of the power system, basic data of the water distribution system, coupling link parameters, reference power of the power-water interconnection system, reference value of voltage of the power system, reference value of water head of the water distribution system and convergence accuracy ε of the Newton-Raphson method. The basic data of the power system include branch parameters, transformer parameters, generator parameters, load parameters and node types. The basic data of the water distribution system include water source parameters, water pipeline parameters, load node parameters, water pump branch parameters, load node type and water reservoir parameters. The coupling link parameters include gas unit parameters, water pump parameters and electric boiler parameters.
[0007] The steps to initialize the system basic data are:
[0008] 1.1) Assume that there are N e nodes, of which the number of balance nodes is 1 and the number of PQ nodes is n e , the number of PV nodes is (Ne-n e -1). The power system adopts the node method and takes the node voltage phasor as the state variable. The power system adopts flat start, the node voltage modulus is taken as 1, and the phase angle is taken as 0.
[0009] 1.2) Assume that there is N in the water distribution system w nodes, R w The number of water sources is 1, where the water source is a balance node. The number of constant flow load nodes is n w , the number of reservoirs is N w -n w -1, where the reservoir is used as a constant head node. The number of pumps is n p , the number of other branches is R w -n p The water distribution system adopts the node-loop flow method and takes the pipe flow as the state variable. The initial value of the pipe flow of the water distribution system is taken as 1.
[0010] 2) Establish a power system flow model. The power system flow model is as follows:
[0011]
[0012]
[0013] Where P G,i , Q G,i P is the active power and reactive power generated by the generator at node i. L,i , Q L,i U is the active power and reactive power of the load at node i. i is the voltage amplitude of node i. j is the voltage amplitude at node j. i is the voltage phase angle at node i. ij is the phase angle difference between nodes i and j. ij , B ij are the conductance and susceptance of the line between nodes i and j respectively.
[0014] 3) Establishing a steady-state model of the water distribution system. The steady-state model of the water distribution system includes a steady-state model of the water distribution pipeline, a steady-state model of the water pump, a node water flow balance equation, and a loop pressure drop equation.
[0015] The steady-state model of the water distribution pipeline is as follows:
[0016] h W,i -h W,j=γ Wp,ij q Wp,ij |q Wp,ij | n-1 (3)
[0017] Where, subscript W represents water network. Subscript p represents pipeline. W,i 、h W,j are the water heads at nodes i and j respectively. Wp,ij is the water flow rate of pipe ij. ij indicates that the flow direction is positive from i to j. γ Wp,ij is the pipe friction resistance. n is the hydraulic index.
[0018] The steady-state model of the water pump is as follows:
[0019]
[0020] Where, the subscript u represents the water pump. Δh Wu,ij is the head of the water pump ij. 0ij 、r Wu,ij and m ij They are the static head, internal resistance coefficient and head index of the water pump ij respectively. ij is the relative speed of the water pump ij, that is, the ratio of the operating speed to the rated speed. Wu,ij is the water flow rate flowing through the water pump ij.
[0021] The node water flow balance model is as follows:
[0022]
[0023] Where j∈i represents the set of nodes connected to node i. Ws,i is the water source flow at node i. Wd,i is the water load flow at node i. u,ij is the water flow direction indicator variable of the water pump. When node i is the water pump inlet node, s u,ij =1, when node i is the pump outlet node, s u,ij =-1.
[0024] The loop pressure drop equation is shown below:
[0025]
[0026] Where l∈L represents the branch set of the loop L to which the branch l belongs. Δh Wl Represents the pressure drop loss of branch l.
[0027] 4) Establish a steady-state model of the coupling link.
[0028] The coupling link model of the electricity-water interconnected system includes the water consumption calculation equation of the gas unit, the water pump electric power calculation equation, and the water consumption and power consumption calculation equation of the boiler.
[0029] The water consumption calculation equation of the gas unit is as follows:
[0030] q W-GFU =β W-GFU P GFU (7)
[0031] In the formula, q W-GFU is the water consumption of the gas unit, β W-GFU is the water consumption coefficient of the gas unit, P GFU is the output electrical power of the gas unit.
[0032] The calculation equation of water pump electric power is as follows:
[0033]
[0034] Where P u is the electrical power consumed by the water pump. ρ is the density of water, and g is the acceleration due to gravity. η u is the pump efficiency. Δh Wu and q Wu are the head and flow rate of the pump respectively.
[0035] The boiler water consumption calculation equation is as follows:
[0036]
[0037] In the formula, the subscript B represents the boiler. B is the heating power of the boiler. W-B is the water inlet to the boiler. in and t out They are the boiler inlet water temperature and the boiler outlet water temperature respectively. and are the density and specific heat of water respectively.
[0038] The boiler power consumption calculation equation is as follows:
[0039] H B =η B P B (10)
[0040] Where η B is the boiler efficiency, P B The power consumption of electric boiler.
[0041] 5) Based on the power system flow model, the water distribution system steady-state model and the coupling link steady-state model, a unified per-unit power-water interconnected system energy flow model is established, and the steps include:
[0042] 5.1) Taking the power reference value S of the whole power system B And voltage reference value U B As a known quantity, the current reference value I is calculated B and impedance reference value Z B . Take the power reference value S in the water distribution system WB , node head reference value H WB As a known quantity, the flow reference value q is calculated WB And water resistance reference value Z WB Among them, the flow reference value q WB And water resistance reference value Z WB Satisfy the following formula:
[0043]
[0044]
[0045] Where ρ is the density of water and g is the acceleration due to gravity.
[0046] 5.2) Calculate the head loss per unit value Δh W * ,Right now:
[0047] Δh W * =Z W * (q W * ) n (13)
[0048] In the formula, Z W * ,q W * They are the per unit value of head loss, per unit value of water resistance and per unit value of flow rate respectively.
[0049] Calculate the standard value of pump head Δh Wp * ,Right now:
[0050]
[0051] In the formula, Δh Wu * is the per unit value of the pump head; q Wu * is the standard value of the water flow rate of the pump. The reference value of the static head coefficient h0 is H WB , is the per unit value of the static head coefficient; the internal resistance coefficient r Wu The reference value is HWB / (q WB ) m , is the per unit value of the internal resistance coefficient. u is the relative speed of the water pump. m is the head index.
[0052] 5.3) The coupling link model of the electricity-water interconnection system is calibrated per unit, and the water consumption per unit value of the gas unit is Per-unit value of electrical power consumed by the pump Boiler heating power per unit value They are as follows:
[0053]
[0054] In the formula, the superscript “*” is the per-unit value of the corresponding variable. B is the power reference value of the power system. WB The flow rate reference value. It is the per unit water consumption of the gas unit. It is the per unit value of the output electric power of the gas unit.
[0055]
[0056] In the formula, is the per-unit value of the electrical power consumed by the pump. u is the pump efficiency. and They are the per unit values of the pump head and flow rate respectively.
[0057]
[0058] In the formula, It is the per unit value of the boiler's heat output. is the per unit value of boiler water inlet. in and t out They are the boiler inlet water temperature and the boiler outlet water temperature respectively. is the specific heat of water. WB is the node head reference value.
[0059]
[0060] In the formula, It is the per unit power consumption of electric boiler.
[0061] 5.4) Combine steps 5.1) to 5.3) to establish a hybrid energy flow model for the electricity-water interconnection system, namely:
[0062]
[0063] Where, the subscripts E, W and EW represent the power system, water distribution system and power-water coupling link respectively. U and δ are the voltage modulus and phase angle vector to be determined in the power system respectively. W ,q W are the node water head and branch water flow vector of the water distribution system to be determined. EW Represents the vector of variables to be determined in the coupling link.
[0064] 6) Using Newton's method to solve the energy flow model of the unified per-unit electricity-water interconnected system to obtain the electricity-water mixed energy flow, the steps include:
[0065] 6.1) Calculation of imbalance in the energy flow model of the electricity-water interconnection system Including the power imbalance of the power system, the node flow imbalance of the water distribution system, and the loop pressure imbalance of the water distribution system. The power consumption and water consumption of the coupling link have been converted into the imbalance of the power grid and the water distribution network. ΔP* is the per-unit value of the active imbalance, and the dimension is 1×(N e -1). ΔQ* is the unit value of reactive unbalance, and its dimension is 1×n e . is the per-unit value of node traffic imbalance, with a dimension of 1×(N w -1). is the per unit value of the loop voltage drop imbalance, and its dimension is 1×(R w -N w +1).
[0066] Among them, the power imbalance of the power system is as follows:
[0067]
[0068]
[0069] Where ΔP i * , They are the unbalanced values of active power and reactive power in the power system respectively. is the per unit value of active power and reactive power generated by the generator at node i. is the per unit value of active power and reactive power of load at node i. is the per unit value of the voltage amplitude at node i. is the voltage amplitude per unit value at node j. ij is the phase angle difference between nodes i and j. are the per-unit values of conductance and susceptance of the line between nodes i and j respectively. are the per unit active power and reactive power of the water pump connected to the grid node i in the water distribution system. is the per unit power value of the electric boiler at node i of the water distribution system connected to the grid.
[0070] Per unit value of node flow imbalance in water distribution system As shown below:
[0071]
[0072] In the formula, They represent the per unit values of the water source flow at node i and the water load flow at node i respectively. is the per unit value of water flow in pipe ij. Per unit value of water flow rate of pump ij. is the per unit water consumption of the gas unit connected to the water distribution network node i. is the per unit value of the boiler water inlet volume connected to the water distribution network node i.
[0073] The equation for the pressure imbalance in the water distribution system loop is as follows:
[0074]
[0075] In the formula, is the per unit value of the pressure drop loss in branch l. is the per unit value of the total pressure drop loss of loop L;
[0076] 6.2) Establish a composite Jacobian matrix J consisting of the Jacobian matrix of the power system, the Jacobian matrix of the electricity-water coupling link, the Jacobian matrix of the water-electricity coupling link, and the Jacobian matrix of the water distribution system EW ,Right now:
[0077]
[0078] Among them, when node i≠j, the Jacobian matrix element H of the power system ij Element J ij Element N ij Element L ij As shown below:
[0079]
[0080]
[0081]
[0082]
[0083] When node i=j, the Jacobian matrix element H of the power system ii Element J ii Element N ii Element L ii As shown below:
[0084]
[0085]
[0086]
[0087]
[0088] The Jacobian matrix elements of the electric-water coupling link are as follows:
[0089]
[0090]
[0091] Where i represents the i-th node of the power system, n represents the n-th pipe of the water distribution system, i.e., the water pump, and θ is the power factor of the water pump. It represents the per unit flow rate of the nth pipe in the water distribution system. It represents the per unit value of the pump head of the nth pipe in the water distribution system. It represents the per unit value of the internal resistance coefficient of the pump in the nth pipe of the water distribution system.
[0092] The Jacobian matrix element of the water-electricity coupling link is 0.
[0093] The Jacobian matrix of the water distribution system can be divided into a node part and a loop part, where the node part is the node-branch association matrix A W The loop part is composed of the loop-branch association matrix B W Element b W , Jacobian elements of pipeline branches and Jacobian elements of pump branches.
[0094] Among them, the node-branch association matrix A W The element a W,ij As shown below:
[0095]
[0096] Loop-branch association matrix B W The element b W,ij As shown below:
[0097]
[0098] The elements of the Jacobian matrix of the pipeline branch are as follows:
[0099]
[0100] In the formula, Indicates the per unit flow rate of branch 1 pipeline.
[0101] The elements of the Jacobian matrix of the pump branch are as follows:
[0102]
[0103] Wherein, L represents the Lth loop, and l represents the lth pipeline branch in loop L. Indicates the per unit flow rate of branch 1 water pump.
[0104] 6.3) Calculate the correction value of the variable to be determined, i.e., the voltage and pipeline flow correction value ΔX, according to the following formula:
[0105] ΔX=-J -1 ΔF (39)
[0106] Among them, the calculated voltage and pipeline flow correction value ΔX are as follows:
[0107]
[0108] 6.4) Update the variable value X k+1 ,Right now:
[0109] X k+1 =X k +ΔX k (41)
[0110] In the formula, k represents the number of iterations. When k = 1, X (k) The elements in are the initial values of the state variables of the electricity-water combined system.
[0111] 6.5) Determine whether max(|ΔF|)<ε holds. If so, proceed to step 6.6). Otherwise, return to step 6.1). ε is the convergence accuracy.
[0112] 6.6) Input the current variable values into the power system flow model to calculate the active power and reactive power of the balancing nodes, the reactive power of the PV nodes, and the power of all branches. Input the current variable values into equations (13) and (14) to calculate the water heads of all nodes in the water distribution system.
[0113] 6.7) Based on the calculation results of step 6.6), calculate the named values of the state variables.
[0114] It is worth noting that the present invention first inputs the basic parameters of the power system and the water distribution system, selects the system's reference power, reference voltage and reference water head, and calculates the reference impedance, reference water flow and reference water resistance. Then solve the admittance matrix of the power grid after per unit and the water resistance matrix of the water distribution network after per unit. Then use the Newton-Raphson method to solve the mixed energy flow of the power-water combined system, solve the composite Jacobian matrix of the power-water combined system after per unit, and obtain the correction amount of voltage and pipeline flow. Repeat this step until the energy flow converges. Output the power grid node voltage and the water distribution network pipeline flow, and finally calculate the power of the power grid branch and the water distribution network node head to obtain the calculation result of the mixed energy flow of the power-water combined system.
[0115] The technical effect of the present invention is unquestionable. The per-unit method of the water distribution network proposed in the present invention can reduce the condition number of the Jacobian matrix of the water distribution network to a certain extent. In view of the large numerical difference in the nominal value calculation between the power grid and the water distribution network and the complex conversion relationship, the present invention proposes a unified per-unit method for the power-water joint system to simplify the system description and improve the calculation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0116] Figure 1 is the voltage magnitude and phase angle of the distribution network node;
[0117] Figure 2 is the flow rate of water distribution network pipelines;
[0118] Figure 3 is the node head of the water distribution network;
[0119] Figure 4 Comparison of distribution network node voltages between the two methods;
[0120] Figure 5 Comparison of water head at the nodes of the water distribution network under the two methods;
[0121] Figure 6 Comparison of flow rates in water distribution network pipelines under two methods;
[0122] Figure 7 This is the structural diagram of the electricity-water combined system example. DETAILED DESCRIPTION
[0123] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments. Without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the art, which should all be included in the protection scope of the present invention.
[0124] Embodiment 1:
[0125] See also Figures 1 to 3, a unified per-unit calculation method for hybrid energy flow of an electricity-water interconnected system includes the following steps:
[0126] 1) Obtain basic data of the electricity-water interconnection system and initialize it.
[0127] The electricity-water interconnection system includes basic data of the power system, basic data of the water distribution system, coupling link parameters, reference power of the electricity-water interconnection system, reference value of voltage of the power system, reference value of water head of the water distribution system and convergence accuracy ε of the Newton-Raphson method.
[0128] The basic data of the power system include branch parameters, transformer parameters, generator parameters, load parameters and node types. The basic data of the water distribution system include water source parameters, water pipeline parameters, load node parameters, water pump branch parameters, load node types and water reservoir parameters. The coupling link parameters include gas unit parameters, water pump parameters and electric boiler parameters.
[0129] The steps to initialize the basic data of the power system are:
[0130] 1.1) Assume that there are N e nodes, of which the number of balance nodes is 1 and the number of PQ nodes is n e , the number of PV nodes is (Ne-n e -1). The power system adopts the node method and takes the node voltage phasor as the state variable. The power system adopts flat start, the node voltage modulus is taken as 1, and the phase angle is taken as 0.
[0131] 1.2) Assume that there is N in the water distribution system w nodes, R w The number of water sources is 1, where the water source is a balance node. The number of constant flow load nodes is n w , the number of reservoirs is N w -n w -1, where the reservoir is used as a constant head node. The number of pumps is n p , the number of other branches is R w -n p The water distribution system adopts the node-loop flow method and takes the pipe flow as the state variable. The initial value of the pipe flow of the water distribution system is taken as 1.
[0132] 2) Establish a power system flow model. The power system flow model is as follows:
[0133]
[0134]
[0135] Where P G,i , Q G,iP is the active power and reactive power generated by the generator at node i. L,i , Q L,i U is the active power and reactive power of the load at node i. i is the voltage amplitude of node i. j is the voltage amplitude at node j. i is the voltage phase angle at node i. ij is the phase angle difference between nodes i and j. ij , B ij are the conductance and susceptance of the line between nodes i and j respectively.
[0136] 3) Establish a steady-state model of the water distribution system. The steady-state model of the water distribution system includes a steady-state model of the water distribution pipeline, a steady-state model of the water pump, a node water flow balance equation, and a loop pressure drop equation. The steady-state model of the water distribution pipeline is as follows:
[0137] h W,i -h W,j =γ Wp,ij q Wp,ij |q Wp,ij | n-1 (3)
[0138] Where, subscript W represents water network. Subscript p represents pipeline. W,i 、h W,j are the water heads at nodes i and j respectively. Wp,ij is the water flow rate of pipe ij. ij indicates that the flow direction is positive from i to j. γ Wp,ij is the pipe friction resistance. n is the hydraulic index.
[0139] The steady-state model of the water pump is as follows:
[0140]
[0141] Where, the subscript u represents the water pump. Δh Wu,ij is the head of the water pump ij. 0ij 、r Wu,ij and m ij They are the static head, internal resistance coefficient and head index of the water pump ij respectively. ij is the relative speed of the water pump ij, that is, the ratio of the operating speed to the rated speed. Wu,ij is the water flow rate flowing through the water pump ij.
[0142] The node water flow balance model is as follows:
[0143]
[0144] Where j∈i represents the set of nodes connected to node i. Ws,iis the water source flow at node i. Wd ,i is the water load flow of node i. s u,ij is the water flow direction indicator variable of the water pump. When node i is the water pump inlet node, s u,ij =1, when node i is the pump outlet node, s u,ij =-1.
[0145] The loop pressure drop equation is shown below:
[0146]
[0147] Where l∈L represents the branch set of the loop L to which the branch l belongs. Δh Wl Represents the pressure drop loss of branch l.
[0148] 4) Establish a steady-state model of the coupling link.
[0149] The coupling link steady-state model includes a gas unit water consumption calculation equation, a water pump electric power calculation equation, and a boiler water consumption and power consumption calculation equation.
[0150] The water consumption calculation equation of the gas unit is as follows:
[0151] q W-GFU =β W-GFU P GFU (7)
[0152] In the formula, q W-GFU is the water consumption of the gas unit, β W-GFU is the water consumption coefficient of the gas unit, P GFU is the output electrical power of the gas unit;
[0153] The calculation equation of water pump electric power is as follows:
[0154]
[0155] Where P u is the electrical power consumed by the water pump; ρ is the density of water, g is the acceleration due to gravity; η u is the pump efficiency; Δh Wu and q Wu are the head and flow of the pump respectively;
[0156] The boiler water consumption calculation equation is as follows:
[0157]
[0158] In the formula, subscript B represents boiler; H B is the heating power of the boiler; q W-B is the boiler water inlet; t in and t outThe inlet and outlet water temperatures of the boiler are respectively; and are the density and specific heat capacity of water respectively;
[0159] The boiler power consumption calculation equation is as follows:
[0160] H B =η B P B (10)
[0161] Where η B is the boiler efficiency, P B The power consumption of electric boiler.
[0162] 5) Based on the power system flow model and the water distribution system steady-state model, a unified per-unit energy flow model of the power-water interconnected system is established, and the steps include:
[0163] 5.1) Taking the power reference value S of the whole power system B And voltage reference value U B As a known quantity, the current reference value I is calculated B and impedance reference value Z B . Take the power reference value S in the water distribution system WB , node head reference value H WB As a known quantity, the flow reference value q is calculated WB And water resistance reference value Z WB Among them, the flow reference value q WB And water resistance reference value Z WB Satisfy the following formula:
[0164]
[0165]
[0166] Where ρ is the density of water and g is the acceleration due to gravity.
[0167] 5.2) Calculate the head loss per unit value Δh W * ,Right now:
[0168] Δh W * =Z W * (q W * ) n (13)
[0169] In the formula, Z W * ,q W *They are the per unit value of head loss, per unit value of water resistance and per unit value of flow rate respectively.
[0170] Calculate the standard value of pump head Δh Wp * ,Right now:
[0171]
[0172] In the formula, Δh Wu * It is the standard value of pump head. Wu * is the standard value of the water flow rate of the pump. The reference value of the static head coefficient h0 is H WB , is the per unit value of the static head coefficient. Internal resistance coefficient r Wu The reference value is H WB / (q WB ) m , is the per unit value of the internal resistance coefficient. u is the relative speed of the water pump. m is the head index.
[0173] 5.3) The coupling link model of the electricity-water interconnection system is calibrated per unit, and the water consumption per unit value of the gas unit is Per-unit value of electrical power consumed by the pump Boiler heating power per unit value They are as follows:
[0174]
[0175] In the formula, the superscript “*” is the per unit value of the corresponding variable. B is the power reference value of the power system. WB The flow rate reference value. It is the per unit water consumption of the gas unit. It is the per unit value of the output electric power of the gas unit.
[0176]
[0177] In the formula, is the per-unit value of the electric power consumed by the pump. u is the pump efficiency. and They are the per unit values of the pump head and flow rate respectively.
[0178]
[0179] In the formula, It is the per unit value of boiler heat output. is the per unit value of boiler water inlet. in and tout They are the boiler inlet water temperature and the boiler outlet water temperature respectively. is the specific heat capacity of water. WB is the node head reference value.
[0180]
[0181] In the formula, It is the per unit power consumption of electric boiler.
[0182] 5.4) Combine steps 5.1) to 5.3) to establish a hybrid energy flow model for the electricity-water interconnection system, namely:
[0183]
[0184] Where, the subscripts E, W and EW represent the power system, water distribution system and power-water coupling link respectively. U and δ are the voltage modulus and phase angle vector to be determined in the power system respectively. W ,q W are the node water head and branch water flow vector of the water distribution system to be determined. EW represents the vector of variables to be determined in the coupling link. E (U,δ,x EW ) represents the energy flow equation of the power system. W (h W ,q W ,x EW ) represents the energy flow equation of the water distribution system. EW (x EW )=0 represents the energy flow equation of the electricity-water coupling link.
[0185] 6) Using Newton's method to solve the energy flow model of the unified per-unit electricity-water interconnected system to obtain the electricity-water mixed energy flow, the steps include:
[0186] 6.1) Calculation of imbalance in the energy flow model of the electricity-water interconnection system Including the power imbalance of the power system, the node flow imbalance of the water distribution system, and the loop pressure imbalance of the water distribution system. The power consumption and water consumption of the coupling link have been converted into the imbalance of the power grid and the water distribution network. ΔP* is the per-unit value of the active imbalance, and the dimension is 1×(Ne-1). ΔQ* is the per-unit value of the reactive imbalance, and the dimension is 1×n e . is the per-unit value of node traffic imbalance, with a dimension of 1×(N w -1). is the per unit value of the loop voltage drop imbalance, and its dimension is 1×(R w -N w +1). ΔP i * , Node 1, Node N e -1 Active unbalance value per unit. For node 1 and node n e Reactive unbalance value per unit. Node 1, Node N w -1 Flow unbalance value per unit. Node 1, node R w -N w +1 is the per unit value of the voltage drop unbalance in the loop.
[0187] Among them, the power imbalance of the power system is as follows:
[0188]
[0189]
[0190] Where ΔP i * , They are the unbalanced values of active power and reactive power in the power system respectively. is the per unit value of active power and reactive power generated by the generator at node i. is the per unit value of active power and reactive power of load at node i. is the per unit value of the voltage amplitude at node i. is the voltage amplitude per unit value at node j. ij is the phase angle difference between nodes i and j. are the per-unit values of conductance and susceptance of the line between nodes i and j respectively. are the per unit active power and reactive power of the water pump connected to the grid node i of the water distribution system respectively. is the per unit power value of the electric boiler at node i of the water distribution system connected to the grid.
[0191] Per unit value of node flow imbalance in water distribution system As shown below:
[0192]
[0193] In the formula, They represent the per unit values of the water source flow at node i and the water load flow at node i respectively. is the per unit value of water flow in pipe ij. Per unit value of water flow rate of pump ij. is the per unit water consumption of the gas unit connected to the water distribution network node i. is the per unit value of the boiler water inlet volume connected to the water distribution network node i.
[0194] The equation for the pressure imbalance in the water distribution system loop is as follows:
[0195]
[0196] In the formula, is the per unit value of the pressure drop loss in branch l.
[0197] 6.2) Establish a composite Jacobian matrix J consisting of the Jacobian matrix of the power system, the Jacobian matrix of the electricity-water coupling link, the Jacobian matrix of the water-electricity coupling link, and the Jacobian matrix of the water distribution system EW ,Right now:
[0198]
[0199] In the formula, the matrix The element is denoted as H ij , The element is denoted by J ij , The element is denoted by N ij , The element is denoted as L ij . ΔP * , ΔQ * is the per unit value of the unbalanced amount of active power and reactive power, δ is the phase angle difference, U * is the voltage per unit value.
[0200] Among them, when node i≠j, the Jacobian matrix element H of the power system ij Element J ij Element N ij Element L ij As shown below:
[0201]
[0202]
[0203]
[0204]
[0205] When node i=j, the power system Jacobian matrix element H ii Element J ii Element N ii Element L ii As shown below:
[0206]
[0207]
[0208]
[0209]
[0210] The Jacobian matrix elements of the electric-water coupling link are as follows:
[0211]
[0212]
[0213] Where i represents the i-th node of the power system, n represents the n-th pipe of the water distribution system, i.e., the water pump, and θ is the power factor of the water pump. It represents the per unit flow rate of the nth pipe in the water distribution system; It represents the per unit value of the pump head of the nth pipe in the water distribution system; It represents the per unit value of the internal resistance coefficient of the pump in the nth pipe of the water distribution system;
[0214] The Jacobian matrix element of the water-electricity coupling link is 0.
[0215] The Jacobian matrix of the water distribution system can be divided into a node part and a loop part, where the node part is the node-branch association matrix A W The loop part is composed of the loop-branch association matrix B W Element b W , Jacobian elements of pipeline branches and Jacobian elements of pump branches.
[0216] Among them, the node-branch association matrix A W The element a W,ij As shown below:
[0217]
[0218] Loop-branch correlation matrix B W The element b W,Ll As shown below:
[0219]
[0220] The elements of the Jacobian matrix of the pipeline branch are as follows:
[0221]
[0222] In the formula, Indicates the per unit flow rate of branch 1 pipeline.
[0223] The elements of the Jacobian matrix of the pump branch are as follows:
[0224]
[0225] Wherein, L represents the Lth loop, and l represents the lth pipeline branch in loop L. Indicates the per unit flow rate of branch 1 water pump.
[0226] 6.3) Calculate the correction value of the variable to be determined, i.e., the voltage and pipeline flow correction value ΔX, according to the following formula:
[0227] ΔX=-J -1 ΔF (39)
[0228] Where J refers to the Jacobian matrix. ΔF is the unbalanced quantity of the energy flow model of the above-mentioned unified per-unit electricity-water interconnection system.
[0229] Among them, the calculated voltage and pipeline flow correction value ΔX are as follows:
[0230]
[0231] In the formula, Δδ1, is the phase angle imbalance, is the per unit value of voltage unbalance, It is the per unit value of branch flow imbalance.
[0232] 6.4) Update the variable value X k+1 ,Right now:
[0233] X k+1 =X k +ΔX k (41)
[0234] In the formula, k represents the number of iterations. When k = 1, X (k) Each element in is the initial value of each state variable of the electricity-water interconnection system. k is the correction amount for the kth iteration.
[0235] 6.5) Determine whether max(|ΔF|)<ε holds. If so, proceed to step 6.6). Otherwise, return to step 6.1). ε is the convergence accuracy.
[0236] 6.6) Input the current variable values into the power system flow model to calculate the active power and reactive power of the balancing nodes, the reactive power of the PV nodes, and the power of all branches. Input the current variable values into formulas (13) and (14) to calculate the water heads of all nodes in the water distribution system.
[0237] 6.7) Based on the calculation results of step 6.6), calculate the named values of the state variables.
[0238] Embodiment 2:
[0239] The unified per-unit calculation method of the hybrid energy flow of the electricity-water interconnection system includes the following steps:
[0240] 1) Input basic data and initialization
[0241] 1.1) Input basic data. Input grid parameters include: branch parameters, transformer parameters, generator parameters, load parameters and node types; input water distribution network parameters include: water source parameters, water pipeline parameters, load node parameters, load node type and reservoir parameters; input coupling link parameters; set the reference power of the hybrid system, the grid voltage reference value and the water distribution network head reference value; set the Newton-Raphson method convergence accuracy ε.
[0242] 1.2) Parameter initialization: Assume that there are N e nodes, the number of balanced nodes is 1, and the number of PQ nodes is n e , the number of PV nodes is (Ne-n e -1). There are N w nodes, R w branches; the number of water sources is 1, where the water source is used as a balancing node; the number of constant flow load nodes is n w ; The number of reservoirs is N w -n w -1, where the reservoir is used as a constant head node; the number of pumps is n p , the number of other branches is R w -n p The power grid adopts the node method and takes the node voltage phasor as the state variable. The water distribution network adopts the loop flow method and takes the pipeline flow as the state variable. Therefore, in the entire power-water mixed flow, the number of state variables is N e +n e -1+R w The power grid adopts flat start, the node voltage modulus is 1, the phase angle is 0, and the initial value of the water distribution network pipeline flow is 1.
[0243] 2) Establish a unified per-unit energy flow model for the electricity-water interconnection system. The steps are as follows:
[0244] 2.1) Power Grid Flow Model
[0245] The AC power flow model of the power network in polar coordinate form is:
[0246]
[0247]
[0248] Where P Gi (MW), Q Gi (MVar) is the active power and reactive power generated by the generator at node i; P Li , Q Li is the active power and reactive power of the load at node i; U i is the node voltage amplitude; δi is the voltage phase angle of node i; δ ij is the phase angle difference between nodes i and j; G ij , B ij are the conductance and susceptance of the line between nodes i and j respectively.
[0249] 2.2) Steady-state model of water distribution network
[0250] The water distribution system mainly includes components such as water source, pipeline, water pump, water reservoir and water load. Its steady-state model is composed of the steady-state model of each component and the node water flow balance equation.
[0251] Water distribution pipeline:
[0252] The steady-state characteristics of the water distribution pipeline are described by the head loss along the pipeline. Commonly used head loss formulas include the Hazen-Williams formula, the Darey-Weisbach formula, etc. The general form is:
[0253] h W,i -h W,j =γ Wp,ij q Wp,ij |q Wp,ij | n-1 (3)
[0254] In the formula, the subscript W represents the water network, p represents the pipeline; h W,i 、h W,j are the water heads at nodes i and j respectively; q Wp,ij is the water flow rate in pipe ij (the direction of water flow is positive from i to j, and the commonly used unit is m 3 / s); γ Wp,ij is the pipe friction, which is related to parameters such as pipe material, diameter and length; n is the hydraulic index (for the Hazen-Williams formula, n is 1.852; for the Darey-Weisbach formula, n is 2).
[0255] Water pump: The water pump provides mechanical energy to the water distribution network to increase the water head. The mechanical energy provided is expressed by the pump head (water head increment). For the commonly used variable speed centrifugal water pump, its hydraulic characteristics are:
[0256]
[0257] Where, subscript u represents the water pump; Δh Wu,ij is the head of the water pump ij; h 0ij 、r Wu,ij and m ij They are the static head, internal resistance coefficient and head index of the water pump ij, which are generally obtained by fitting the head curve provided by the manufacturer; ω ijIt is the relative speed of the water pump ij, that is, the ratio of the operating speed to the rated speed.
[0258] Node water flow balance equation: Each node in the water distribution network satisfies the following water flow balance equation:
[0259]
[0260] In the formula, j∈i represents the set of nodes connected to node i; q Ws,i is the water source flow of node i (positive if it flows into the water network), q Wd,i is the water load flow of node i (positive when outflowing from the water network); s u,ij is the water flow direction indicator variable of the water pump. When node i is the water pump inlet node, s u,ij =1, when node i is the pump outlet node, s u,ij =-1.
[0261] Loop pressure drop equation: For a ring water distribution network, the pressure drop of each branch in the loop satisfies the sum of the loop pressure drop to 0, as follows:
[0262]
[0263] Where l∈L represents the branch set of the loop L to which the branch l belongs; Δh Wl Represents the pressure drop loss of branch l.
[0264] 2.3) Coupling Link Model
[0265] The steady-state model of the coupling link includes the calculation equations for the water consumption of the gas unit, the calculation equations for the electric power of the water pump, and the calculation equations for the water consumption and power consumption of the boiler.
[0266] Gas unit water consumption
[0267] The production water used by the gas unit is industrial water taken from the water distribution network. The following empirical formula is used to describe the relationship between the output power and water consumption of the gas unit.
[0268] q W-GFU =β W-GFU P GFU (7)
[0269] In the formula, q W-GFU is the water consumption of the gas unit, which is treated as the water load of the water intake node of the gas unit; β W-GFU is the water consumption coefficient of the gas unit, P GFU is the output electrical power of the gas unit.
[0270] Water pump power
[0271]
[0272] Where Pu is the electrical power consumed by the water pump; ρ is the density of water, g is the acceleration due to gravity; η u is the pump efficiency; Δh Wu and q Wu are the head and flow rate of the pump respectively.
[0273] Boiler water consumption
[0274]
[0275] In the formula, subscript B represents boiler; H B is the heating power of the boiler; q W-B is the boiler water inflow (i.e. the water load of the boiler water intake node); t in and t out The inlet and outlet water temperatures of the boiler are respectively; and are the density and specific heat of water respectively.
[0276] Boiler power consumption
[0277] H B =η B P B (10)
[0278] Where η B is the boiler efficiency, P B The power consumption of electric boiler.
[0279] 2.4) Unified per-unit model
[0280] The state variables of the power grid include node voltage phasors and branch current phasors, and the product of the two is the dimension of power. The state variables of the hydraulic calculation of the water network mainly include node water head and pipeline flow. Similarly, the product of node water head and pipeline flow is the dimension of power, so the water distribution network can be analogized to the power grid, and the water network can be standardized in the same way as the power grid, so that the two are unified in form. The analogy between the power grid and the water distribution network is shown in Table 1.
[0281] Table 1 Analogy between power grid and water distribution network
[0282]
[0283] In the table, ρ is the density of water and g is the acceleration due to gravity.
[0284] Selection of grid standard reference value: Generally, the grid power reference value S is selected. B And voltage reference value U B , find the current reference value I B and impedance reference value Z B .
[0285] Selection of water network standard reference value: Take the power reference value and node head reference value, and calculate the flow reference and water resistance reference. The details are as follows:
[0286] Water network power reference value S WB , node head reference value H WB .
[0287] Flow rate reference value:
[0288]
[0289] Water resistance benchmark:
[0290]
[0291] Pipeline equation per unit:
[0292] Δh W * =Z W * (q W * ) n (13)
[0293] Pump equation per unit:
[0294]
[0295] In the formula, the reference value of h0 is h 0B =H WB , r Wu The reference value is r Wu =H WB / (q WB ) m .
[0296] 2.5) Coupling Link Model
[0297] Water consumption per unit value of gas unit
[0298]
[0299] In the formula, the superscript “*” is the per-unit value of the corresponding variable; S B is the power reference value of the power system; q WB is the flow rate reference value; is the per unit water consumption of the gas unit; It is the per unit value of the output electric power of the gas unit.
[0300] Pump power per unit value
[0301]
[0302] In the formula, is the per-unit value of the electric power consumed by the water pump; η u is the pump efficiency; and They are the per unit values of the pump head and flow rate respectively.
[0303] Boiler water consumption per unit value
[0304]
[0305] In the formula, is the per unit value of boiler heat output; is the per unit value of boiler water inlet; t in and t out The inlet and outlet water temperatures of the boiler are respectively; is the specific heat capacity of water; H WB is the node head reference value.
[0306] Boiler power per unit value
[0307]
[0308] In the formula, It is the per unit power consumption of electric boiler.
[0309] 3) Newton's method to solve the mixed energy flow of electricity and water, the steps are:
[0310] 3.1) Hybrid energy flow model of electricity-water interconnected system
[0311] According to step 2, the power grid, water distribution network and coupling element models can establish the following general form of electricity-water hybrid energy flow equation.
[0312]
[0313] Where: subscripts E, W and EW represent the distribution network, water distribution network and power-water coupling link respectively; U and δ are the voltage modulus and phase angle vector to be determined in the distribution network respectively; h W ,q W are the water head of the node to be determined and the water flow vector of the branch in the water distribution network; x EW Represents the variable vector to be determined in the coupling link, such as the water consumption of the gas unit, the electrical power of the water pump, etc.
[0314] 3.2) Calculate the unbalance
[0315] A unified solution method is used to solve the electric-water mixed energy flow. According to Section 1.2, the state variable of the power grid is selected as the node voltage, and the number of variables is N. e +n e -1; the state variable of the water distribution network is selected as pipeline flow, and the number of variables is R w, the mixed state variables are sorted from the power grid to the water distribution network. All the following variables are expressed in units, and the superscript "*" is omitted for simplicity.
[0316] The power imbalance of the power grid is:
[0317]
[0318]
[0319] Node flow imbalance in the water distribution network:
[0320]
[0321] Water distribution network loop pressure imbalance:
[0322]
[0323] The above unbalanced quantities are arranged into a column vector according to the order of the unbalanced quantities of the power grid and the water distribution network, and are represented by ΔF.
[0324]
[0325] In the formula, ΔP is the active unbalance, and its dimension is 1×(N e -1); P W,i and P B,i are the active load of the water pump and the load of the electric boiler at node i respectively; ΔQ is the reactive unbalance quantity, and its dimension is 1×n e ;Q W,i is the reactive load of the pump at node i, Δq W is the node traffic imbalance, with a dimension of 1×(N w -1);q W-GFU,i and q B,i are the water loads supplied to the gas turbine and boiler at the water distribution network node i; Δh Wl is the loop voltage drop imbalance, and its dimension is 1×(R w -N w +1).
[0326] 3.3) Composite Jacobian matrix. The general formula for calculating the composite Jacobian matrix is:
[0327]
[0328] Elements of the composite Jacobian matrix:
[0329] 1) Grid part, i≠j:
[0330]
[0331]
[0332]
[0333]
[0334] i=j
[0335]
[0336]
[0337]
[0338]
[0339] 2) Electric-water coupling part:
[0340]
[0341]
[0342] Where i represents the i-th node of the power grid, and n represents the n-th pipe of the water distribution network (here specifically referring to the water pump). Equations (34)-(35) represent the coupling of the power grid to the water distribution network, and θ is the power factor of the water pump.
[0343] Since the boiler is a combined electricity and water load, the example treats it as a load with known power during design.
[0344] Water-electric coupling part
[0345] The water consumption of the gas turbine is converted into electricity generation. Since it is different from the state variables to be directly determined in the power grid, in order to simplify the Jacobian matrix, the water consumption of the gas turbine is treated as the water grid load correction. Therefore, the Jacobian matrix element of the water-electricity coupling part is 0.
[0346] Water distribution network
[0347] For the node method, the Jacobian matrix is: A W . A W is the node-branch association matrix. Its elements a W,ij The relationship is as follows:
[0348]
[0349] For the loop part, define the matrix B W is the loop-branch association matrix. W,ij The relationship is as follows:
[0350]
[0351] Pipeline branch:
[0352]
[0353] If there is a pump branch in the loop:
[0354]
[0355] Wherein, L represents the Lth loop, and l represents the lth pipeline branch in loop L.
[0356] 3.4) Calculate the correction amount
[0357] The imbalance ΔF and Jacobian matrix J obtained according to the above steps EW , calculate the correction value ΔX of each variable to be determined:
[0358] ΔX=-J -1 ΔF (40)
[0359] Where ΔX is the voltage and pipeline flow correction, as follows:
[0360]
[0361] Update the variable values:
[0362] X k+1 =X k +ΔX k (42)
[0363] In the formula, k represents the number of iterations. When k = 1, X (k) The elements in are the initial values of the state variables of the electricity-water interconnected system.
[0364] 3.5) Convergence judgment
[0365] When the unbalanced value ΔF satisfies max(|ΔF|)<ε, the calculation ends.
[0366] When max(|ΔF|)≥ε, return to step 3.2 to continue the iterative calculation.
[0367] 3.6) Calculate the power of the balancing nodes and lines and the water head of the water network nodes
[0368] According to equations (1) and (2), the active power and reactive power of the balancing node, the reactive power of the PV node, and the power of each branch are calculated. According to equations (13) and (14), the water head of each node in the water distribution network is calculated. Finally, the nominal value results of each variable are calculated.
[0369] Embodiment 3:
[0370] like Figure 7As shown in the figure, taking the power-water interconnected system composed of IEEE 33-node distribution network and 13-node water distribution network as an example, a hybrid energy flow calculation method for the power-water interconnected system considering unified per-unit calculation is as follows:
[0371] 1) Input basic data and initialization
[0372] 1.1) Input basic data. Input grid parameters include: branch parameters, transformer parameters, generator parameters, load parameters and node types; water distribution network parameters include: water source parameters, water pipeline parameters, load node parameters, load node type and reservoir parameters; input coupling link parameters; set the reference power of the hybrid system, the grid voltage reference value and the water distribution network head reference value; set the Newton-Raphson method convergence accuracy ε. The grid uses IEEE33-node power network data, and the water distribution network parameters are detailed in Tables 2 and 3.
[0373] Table 2 Water distribution network node parameters
[0374]
[0375]
[0376] Table 3 shows the pipe parameters of the water distribution network.
[0377]
[0378] 1.2) Parameter initialization
[0379] The distribution network operates in an island. Node 21 is a balancing node, nodes 18, 22, 24 and 33 are PV nodes, and the remaining nodes are PQ nodes. The initial voltage value of the PQ node is selected by the flat start method, that is, the voltage modulus per unit value is 1 and the phase angle is 0. The voltage phase angle of the PV node is set to 0. The water source node 11 of the water distribution network is a balancing node, the reservoir nodes 12 and 13 are constant pressure nodes, and the remaining nodes are constant flow nodes. The water distribution network has two water pump branches and the rest are pipeline branches. The initial per unit flow of all branches is 1. The distribution network nodes 18 and 33 are connected to two groups of photovoltaics with powers of 0.9MW and 0.9MW respectively. As PV nodes, the voltage amplitude is taken as 1. Nodes 21, 22 and 24 are connected to three gas turbines, of which the gas turbine at node 21 is used as a balancing node, and the output of the initial balancing node is 0.8MW. The remaining gas turbine nodes are treated as PV nodes, providing power of 0.09MW and 0.42MW respectively, and the node voltage amplitude is 0.99. The boiler heat output is 0.1MW and 0.01MW respectively. The power reference value S for the entire network is B =100MW, U B =12.66kV, H B =10 4 m. Newton method iteration convergence accuracy ε=10-10 The node admittance matrix of the power grid and the water resistance parameters of the water network are calculated.
[0380] 2) Newton's method to solve the mixed energy flow of electricity and water
[0381] 2.1) Calculate the unbalance
[0382] Through the mixed energy flow equation listed above, the grid parameters, water distribution network parameters, coupling variable parameters and initial values of state variables are brought into the power flow equation, and the unbalanced amount ΔF can be calculated.
[0383]
[0384] 2.2) Calculate the composite Jacobian matrix and get:
[0385]
[0386] For the convenience of explanation, the Jacobian matrix is divided into blocks, where J ee For the pure power grid part, the matrix dimension is 60×60, J ew For the electric-water coupling part, the matrix dimension is 60×14, J we is the water-electric coupling part, this part is 0, J ww It is the pure water network part, and the matrix dimension is 14×14.
[0387] In the first iteration, the values of the elements of the Jacobian matrix are as follows:
[0388]
[0389]
[0390] There are two water pumps in the example system, so after coupling, the Jacobian matrix of the electric-water coupling part has four non-zero elements, and the rest are all zero.
[0391]
[0392] Divide the Jacobian matrix of the water network into blocks A W and C W , where A W is the node-branch association matrix of the water network, and is a constant matrix. W It changes with the change of state variables. If the water network is a radial network, then C W Some of them do not exist. In this example, C W The initial value is:
[0393]
[0394] Since the reservoir in this example is a constant pressure node, the number of equations using the node-loop method is 12, and the number of unknowns is 14, so two equations need to be added. The hydraulic balance from the water source to the reservoir is known, so the pressure difference equation between the water source and the two reservoirs is added. The Jacobian matrix element in the initial state is C w The last two lines.
[0395] 2.3) Calculate the correction amount
[0396] The imbalance △F and Jacobian matrix J obtained according to the above steps EW , taking the result after the first iteration as an example, the correction amount of each node voltage is calculated in combination with formula (40) in Example 2:
[0397]
[0398] According to the above results, the values of each variable are updated as follows:
[0399]
[0400] 2.4) Convergence judgment
[0401] When the correction amount ΔX satisfies max(|ΔX|)<ε, the calculation ends.
[0402] When max(|ΔX|)≥ε, return to step 2.1 to continue the iterative calculation.
[0403] According to the previous steps, it can be calculated that after 10 iterations, the convergence condition is met, and max(|△X|)=1.9362×10 -12 <ε.
[0404] 2.5) Balance node power and pump power
[0405] According to the energy flow calculation results, the power of the balancing node and the power of the water pump are shown in Table 2.
[0406] Table 4 Balancing nodes and pump power
[0407]
[0408] 2.6) Water consumption of gas turbines and boilers
[0409] The water consumption of gas turbine and boiler is shown in Table 3 below.
[0410] Table 5 Water consumption of gas turbine and boiler
[0411]
[0412] 2.7) Distribution network node voltage
[0413] The node voltage of the distribution network solved by the above power flow method (the node voltage modulus value is still expressed in per unit value) is as follows Figure 1 shown.
[0414] 2.8) Energy flow results of water distribution network
[0415] The distribution network pipe flow and node head (already converted into nominal values) solved by the above flow method are as follows: Figure 2 and Figure 3 shown.
[0416] Experimental results:
[0417] by Figure 7 The electric-water interconnected system shown is the simulation object, and two electric-water hybrid energy flow calculation methods are designed to compare and verify the superiority and effectiveness of the method of the present invention. Both methods are based on the unified solution method to solve the electric-water hybrid energy flow, and the difference lies in the different parameter processing methods. Method 1: In the energy flow calculation, the power grid uses the per-unit value, and the water distribution network uses the nominal value. Method 2: In the energy flow calculation, the power grid uses the per-unit value, and the water distribution network uses the per-unit value.
[0418] In both methods, the power grid is calculated using per-unit values, and the parameters are not much different, so the main comparison is made on the Jacobian elements of the water distribution network.
[0419] I) Jacobian Matrix Condition Number
[0420] Method 1: Initial iteration of the Jacobian matrix of the water distribution network
[0421] According to the analysis in the previous section, we know that part of the Jacobian matrix of the water distribution network is a constant matrix A. W , so only the changes are discussed.
[0422]
[0423] Method 2: Initial iteration of the Jacobian matrix of the water distribution network
[0424]
[0425] Among them, C1 1 W Indicates the first iteration of method 1, C2 1 W It represents the first iteration of method 2. From the two Jacobian matrix elements, it can be seen that the two are very different in value. The order of magnitude of the Jacobian matrix of method 1 reaches 5 times, while the order of magnitude of method 2 is only 1 time. The degree of matrix pathology is positively correlated with the condition number of the matrix. After calculation, the condition number of method 1 is 1.0690×10 6, the condition number of method 2 is 110.9789. From the perspective of matrix pathology, the matrix of method 2 is less pathological than that of method 1. This shows that after the water distribution network is calibrated, the condition number of the Jacobian matrix of the water distribution network is greatly reduced, which can reduce the system pathology and enhance the stability of the system.
[0426] The above is an analysis of the water distribution network alone. From the perspective of electricity-water combination, the condition number of the Jacobian matrix of the power grid is 5.6547×10 3 If method 1 is used, the condition number of the composite Jacobian matrix of the entire power-water system will increase due to the addition of the water distribution network and become 9.1003×10 7 If method 2 is used, the composite Jacobian matrix condition number of the entire power-water system is not greatly affected by the water distribution network and becomes 1.4519×10 4 .
[0427] Therefore, in terms of whether the matrix is prone to pathological conditions, this per-unit method is better than the nominal value calculation.
[0428] II) Comparison of calculation results: Figure 4-Figure 6 The results show that the two methods obtain the same results for calculating the electricity-water mixed energy flow, which verifies the correctness of the algorithm proposed in the present invention.
[0429] Computation time and number of iterations
[0430] Table 6 Computation time and iteration number of two methods
[0431]
[0432] The calculation time and number of iterations of the two methods in this example are not much different, but the number of iterations of method 2 is reduced.
Claims
1. A unified per-unit calculation method for hybrid energy flow in an electricity-water interconnected system, characterized in that: The following steps are involved: 1) Obtain basic data of the electricity-water interconnection system and initialize it; 2) Establish power system flow model; 3) Establish a steady-state model of the water distribution system; 4) Establish a steady-state model of the coupling link; 5) Based on the power system flow model, the water distribution system steady-state model and the coupling link steady-state model, a unified per-unit energy flow model of the electricity-water interconnected system is established; 6) Using Newton's method, the energy flow model of the unified per-unit electricity-water interconnected system is solved to obtain the electricity-water mixed energy flow; The steps to establish a unified per-unit energy flow model for the electricity-water interconnection system include: 5.1) Taking the power reference value and voltage reference value of the entire power system as known quantities, calculate the current reference value and impedance reference value; The power reference value S in the water distribution system WB , node head reference value H WB As a known quantity, the flow reference value q is calculated WB And water resistance reference value Z WB ; Among them, the flow reference value q WB And water resistance reference value Z WB Satisfy the following formula: In the formula, ρ is the density of water, g is the acceleration due to gravity; 5.2) Calculate the head loss per unit value Δh W * ,Right now: Δh W * =Z W * (q W * ) n (3) In the formula, Z W * ,q W * They are the per unit value of head loss, per unit value of water resistance and per unit value of flow rate respectively; Calculate the standard value of pump head Δh Wp * ,Right now: In the formula, Δh Wu * is the per unit value of the pump head; q Wu * is the per unit water flow rate of the pump; the reference value of the static head coefficient h0 is H WB , is the per unit value of the static head coefficient; the internal resistance coefficient r Wu The reference value is H WB / (q WB ) m , is the per unit value of the internal resistance coefficient; ω u is the relative speed of the water pump u; m is the head index; 5.3) The coupling link model of the electricity-water interconnection system is calibrated per unit, and the water consumption per unit value of the gas unit is Per-unit value of electrical power consumed by the pump Boiler heating power per unit value They are as follows: In the formula, the superscript "*" is the per-unit value of the corresponding variable; S B is the power reference value of the power system; q WB is the flow rate reference value; is the per unit water consumption of the gas unit; is the per unit value of the output electric power of the gas generator set; In the formula, is the per-unit value of the electric power consumed by the water pump; η u is the pump efficiency; and are the per unit values of the pump head and flow rate respectively; In the formula, is the per unit value of boiler heat output; is the per unit value of boiler water inlet; t in and t out The inlet and outlet water temperatures of the boiler are respectively; is the specific heat capacity of water; H WB is the node head reference value; In the formula, is the per unit power consumption of the electric boiler; η B is the efficiency of the boiler; 5.4) Combine steps 5.1) to 5.3) to establish a hybrid energy flow model for the electricity-water interconnection system, namely: Where, the subscripts E, W and EW represent the power system, water distribution system and power-water coupling link respectively; U and δ are the voltage modulus and phase angle vector to be determined in the power system respectively; h W ,q W are the node water head and branch water flow vector of the water distribution system to be determined; x EW Represents the vector of variables to be determined in the coupling link; The steps of solving the energy flow model of the unified per-unit electricity-water interconnection system using Newton's method include: 6.1) Calculation of imbalance in the energy flow model of the electricity-water interconnection system It includes the power imbalance of the power system, the node flow imbalance of the water distribution system, and the loop pressure imbalance of the water distribution system: Among them, the power consumption and water consumption of the coupling link are part of the imbalance of the power grid and the water distribution network; ΔP* is the per-unit value of the active imbalance, and the dimension is 1×(Ne-1); ΔQ* is the per-unit value of the reactive imbalance, and the dimension is 1×n e ; is the per-unit value of node traffic imbalance, with a dimension of 1×(N w -1); is the per unit value of the loop voltage drop imbalance, and its dimension is 1×(R w -N w +1); Among them, the power imbalance of the power system is as follows: In the formula, are the unbalanced values of active power and reactive power of the power system respectively; is the per unit value of active power and reactive power generated by the generator at node i; is the per unit value of active power and reactive power of load at node i; is the per unit value of the voltage amplitude at node i; is the voltage amplitude per unit value at node j; δ ij is the phase angle difference between nodes i and j; are the per unit conductance and susceptance values of the line between nodes i and j respectively; are the per unit active power and reactive power of the water pump connected to the grid node i in the water distribution system; is the per unit power value of the electric boiler at the node i of the water distribution system connected to the grid; Per unit value of node flow imbalance in water distribution system As shown below: In the formula, They represent the per unit values of the water source flow rate and the water load flow rate of node i respectively; is the per unit water flow rate in pipe ij; is the per unit water flow rate of the water pump ij; is the per unit water consumption of the gas generator set connected to the water network node i; is the per unit value of the boiler water inlet volume connected to the water network node i; s u,ij is the water flow direction indicator variable of the water pump. When node i is the water pump inlet node, s u,ij =1, when node i is the outlet node of the water pump, s u,ij = -1; The equation for the pressure imbalance in the water distribution system loop is as follows: In the formula, is the per unit value of the pressure drop loss of branch l; is the per unit value of the total pressure drop loss of loop L; 6.2) Establish a composite Jacobian matrix J consisting of the Jacobian matrix of the power system, the Jacobian matrix of the electricity-water coupling link, the Jacobian matrix of the water-electricity coupling link, and the Jacobian matrix of the water distribution system EW ,Right now: When node i≠j, the Jacobian matrix element H of the power system is ij Element J ij Element N ij Element L ij As shown below: When node i=j, the power system Jacobian matrix element H ii Element J ii Element N ii Element L ii As shown below: The Jacobian matrix elements of the electric-water coupling link are as follows: Where i represents the i-th node of the power system, n represents the n-th pipe of the water distribution system; θ is the power factor of the water pump; It represents the per unit flow rate of the nth pipe in the water distribution system; It represents the per unit value of the pump head of the nth pipe in the water distribution system; Indicates the per unit value of the internal resistance coefficient of the pump in the nth pipe of the water distribution system; η u is the pump efficiency; m is the head index; The Jacobian matrix element of the water-electricity coupling link is 0; The Jacobian matrix of the water distribution system is divided into a node part and a loop part, where the node part is the node-branch association matrix A W The loop part is composed of the loop-branch association matrix B W Element b W , Jacobian elements of pipeline branches and Jacobian elements of pump branches; Among them, the node-branch association matrix A W The element a W,ij As shown below: Loop-branch association matrix B W The element b W,Ll As shown below: The elements of the Jacobian matrix of the pipeline branch are as follows: In the formula, Indicates the per unit flow rate of branch l pipeline; Z W * is the per unit water resistance value; The elements of the Jacobian matrix of the pump branch are as follows: In the formula, L represents the Lth loop, l represents the lth pipeline branch in loop L; Indicates the per unit flow rate of branch 1 water pump; 6.3) Calculate the correction value of the variable to be determined, i.e., the voltage and pipeline flow correction value ΔX, according to the following formula: ΔX=-J -1 ΔF (29) Among them, the calculated voltage and pipeline flow correction value ΔX are as follows: 6.4) Update the variable value X k+1 ,Right now: X k+1 =X k +ΔX k (31) In the formula, k represents the number of iterations. When k = 1, X k Each element in is the initial value of each state variable of the electricity-water interconnection system; 6.5) Determine whether max(|ΔF|)<ε holds. If so, proceed to step 6.6), otherwise, return to step 6.1); ε is the convergence accuracy; 6.6) Input the current variable values into the power system flow model to calculate the active power and reactive power of the balancing node, the reactive power of the PV node and the power of all branches; Input the current variable values into formula (3) and formula (4) to calculate the water head at all nodes of the water distribution system; 6.7) Based on the calculation results of step 6.6), calculate the named values of the state variables.
2. The unified per-unit calculation method for hybrid energy flow of an electricity-water interconnection system according to claim 1, characterized in that: The electricity-water interconnection system includes basic data of the power system, basic data of the water distribution system, coupling link parameters, reference power of the electricity-water interconnection system, reference value of voltage of the power system, reference value of water head of the water distribution system and convergence accuracy ε of the Newton-Raphson method; The basic data of the power system include branch parameters, transformer parameters, generator parameters, load parameters and node types; The basic data of the water distribution system include water source parameters, water pipeline parameters, water pump branch parameters, load node parameters, load node type and water reservoir parameters; The coupling link parameters include gas unit parameters, water pump parameters and electric boiler parameters.
3. The unified per-unit calculation method for hybrid energy flow of an electricity-water interconnection system according to claim 1 or 2, characterized in that: The steps to initialize the system basic data are: 1) Assume that there is N in the power system e nodes, of which the number of balance nodes is 1 and the number of PQ nodes is n e , the number of PV nodes is (Ne-n e -1); the power system adopts the node method and takes the node voltage phasor as the state variable; the power system adopts flat start, the node voltage modulus is taken as 1, and the phase angle is taken as 0; 2) Assume that there is N in the water distribution system w nodes, R w branches; the number of water sources is 1, where the water source is a balance node; the number of constant flow load nodes is n w , the number of reservoirs is N w -n w -1, where the reservoir is used as a constant head node; the number of pumps is n p , the number of other branches is R w -n p The water distribution system adopts the node-loop flow method and takes the pipe flow as the state variable. The initial value of the pipe flow in the water distribution system is taken as 1.
4. The unified per-unit calculation method for hybrid energy flow of an electricity-water interconnection system according to claim 1, characterized in that: The power system flow model is as follows: Where P G,i , Q G,i is the active power and reactive power generated by the generator at node i; P L,i , Q L,i is the active power and reactive power of the load at node i; U i is the voltage amplitude of node i; U j is the voltage amplitude at node j; δ i is the voltage phase angle of node i; δ ij is the phase angle difference between nodes i and j; G ij , B ij are the conductance and susceptance of the line between nodes i and j respectively.
5. The unified per-unit calculation method for hybrid energy flow of an electricity-water interconnection system according to claim 1, characterized in that: The water distribution system steady-state model includes a water distribution pipeline steady-state model, a water pump steady-state model, a node water flow balance equation and a loop pressure drop equation; The steady-state model of the water distribution pipeline is as follows: In the formula, subscript W represents water network; subscript p represents pipeline; h W,i 、h W,j are the water heads at nodes i and j respectively; q Wp,ij is the water flow rate in pipe ij; ij indicates that the flow direction is positive from i to j; γ Wp,ij is the pipeline friction resistance; n is the hydraulic index; The steady-state model of the water pump is as follows: Where, subscript u represents the water pump; Δh Wu,ij is the head of the water pump ij; h 0ij 、r Wu,ij and m ij are the static head, internal resistance coefficient and head index of the water pump ij respectively; ω ij is the relative speed of the water pump ij, that is, the ratio of the operating speed to the rated speed; q Wu,ij is the water flow through the water pump ij; The node water flow balance model is as follows: In the formula, j∈i represents the set of nodes connected to node i; q Ws,i is the water source flow rate at node i; q Wd,i is the water load flow at node i; s u,ij is the water flow direction indicator variable of the water pump. When node i is the water pump inlet node, s u,ij =1, when node i is the outlet node of the water pump, s u,ij = -1; The loop pressure drop equation is shown below: Where l∈L represents the branch set of the loop L to which the branch l belongs; Δh Wl Represents the pressure drop loss of branch l.
6. The unified per-unit calculation method for hybrid energy flow of an electricity-water interconnection system according to claim 1, characterized in that: The coupling link steady-state model includes a gas unit water consumption calculation equation, a water pump electric power calculation equation, a boiler water consumption calculation equation and a boiler electric power calculation equation; The water consumption calculation equation of the gas unit is as follows: what W-GFU =β W-GFU P GFU (38) In the formula, q W-GFU is the water consumption of the gas unit, β W-GFU is the water consumption coefficient of the gas unit, P GFU is the output electrical power of the gas unit; The calculation equation of water pump electric power is as follows: Where P u is the electrical power consumed by the water pump; ρ is the density of water, g is the acceleration due to gravity; η u is the pump efficiency; Δh Wu and q Wu are the head and flow of the pump respectively; The boiler water consumption calculation equation is as follows: In the formula, subscript B represents boiler; H B is the heating power of the boiler; q W-B is the boiler water inlet; t in and t out The inlet and outlet water temperatures of the boiler are respectively; and are the density and specific heat capacity of water respectively; The boiler power consumption calculation equation is as follows: H B =the B P B (41) Where η B is the boiler efficiency, P B The power consumption of electric boiler.
