3.2.1. Steady-State Hydraulic Model of the Pipeline Network
In heat supply systems, the hydraulics and thermodynamics of the pipeline network exhibit a one-way coupling relationship. Changes in the hydraulic state directly affect the thermal state, whereas adjustments in the thermal state do not influence the hydraulic state. Therefore, when conducting steady-state modeling, priority should be given to the hydraulic modeling of the pipeline network. This process includes calculating the flow velocity and pressure loss in each pipeline section, as well as the pressure at each node within the system, thereby providing the necessary hydraulic parameters for subsequent thermal condition modeling.
The one-dimensional flow process of water in the pipeline sections of a heat supply network can be described using the mass conservation Equation (5) and the momentum conservation Equation (6) [
24].
In the equations, ρ is the density of water (kg/m3); ν is the flow velocity of water (m/s); p is the pressure of water (Pa); λ is the friction coefficient of the pipeline; D is the inner diameter of the pipeline (m); g is the acceleration due to gravity (m/s2; x is spatial coordinates(m); t is time (s).
In the pipeline network, water is regarded as an incompressible fluid, with its density being considered to be constant. The flow velocity of water within a unit length of the pipeline is uniform and does not vary with the position. Therefore, we have the following:
For ease of calculation, the quadratic relationship between the flow velocity of water and the pressure difference across the pipeline section is linearized through an approximate treatment, as shown in Equation (9). The formula for calculating the flow rate within the pipeline can be expressed as Equation (10):
The mass conservation Equation (5) and the momentum conservation Equation (6) can be simplified as follows:
In the equations, A is the cross-sectional area of the pipeline section (m2); νb is the reference flow velocity corresponding to the reference flow rate Gb.
Due to the fact that the time scale of hydraulic regulation in actual heat supply pipeline networks is significantly longer than the time scale of hydraulic dynamic processes, the hydraulic regulation of the pipeline network can be considered as multiple steady-state conditions, and the flow rate in the pipeline section does not change with time during the steady-state process. Taking a micro-element of unit length
dx, the difference in flow rate and the pressure drop at its two ends can be expressed as follows:
By employing the analogy of electrical circuits, one can obtain hydraulic elements corresponding to voltage and resistance, namely, the water pressure source and hydraulic resistance. These can be expressed as follows:
In the equation, Rh is the hydraulic resistance, representing the frictional resistance of the pipe to water flow; Eh is the water pressure source, which is used to represent the adjustment of water pressure loss due to the inclination angle of the pipe and changes in flow rate.
Since the water flow values in the above distributed parameter hydraulic pipe sections are the same, a lumped parameter method can be used to describe the relationship between water flow and water pressure at the beginning and end of the pipe section.
Based on the above analysis, the steady-state hydraulic characteristics of valves and pumps in the pipeline network are also modeled. The pressure difference between the inlet and outlet of the valve can be expressed as follows:
In the equation, kv is the valve opening coefficient.
For a pump in the heat supply pipeline network with a given rotational speed, the pressure difference between the inlet and outlet can also be expressed through the flow rate:
In the equation, ks1, ks2, and ks3 are the inherent coefficients of the pump; ωs is the frequency at which the pump operates.
After completing the modeling of key hydraulic components such as pipeline sections, valves, and pumps in the heat supply network, further analysis is conducted on the hydraulic topology model of the network. A general steady-state hydraulic branch can be represented by Equation (21) as follows:
In the equation, Gz is the water flow rate of the branch (kg/s); pz is the water pressure difference across the branch (Pa); Ez is the total water pressure source of the branch; Rz is the hydraulic resistance of the branch (Pa/(kg/s)).
All hydraulic branches in the heat supply network can be expressed as follows:
, , and are column vectors consisting of the branch variables and parameters; is a diagonal matrix composed of the reciprocals of the branch hydraulic resistances.
Further, the hydraulic topology of the network is characterized using the node–branch method. The node–branch incidence matrix is an n × m matrix, where n is the number of nodes and m is the number of branches. is the element in the i-th row and j-th column of the matrix. indicates that branch j is not connected to node i, indicates that the water flow in branch j is outflowing from node i, and indicates that the water flow in branch j is inflowing into node i.
By analogy with Kirchhoff’s laws, the water flow rate out of each node is equal to the water flow rate into the node. The total water pressure drop around any closed loop is zero, which gives us the following:
In the equation, is the column vector of water flow rates in each branch; is the column vector of water pressure values at each node; is the column vector of pressure differences across each branch.
Combining Equations (22)–(24), we can obtain the steady-state hydraulic characteristic equation of the pipeline network, as shown in Equation (25):
Using the node admittance matrix
and the generalized node
to simplify the equation, the hydraulic characteristic equation of the heat supply network is
In the steady-state hydraulic condition, the flow rate in the pipeline section is fixed. During the derivation of the hydraulic characteristic equation, a linear approximation is used, and the accuracy of the model is directly affected by the choice of the base value. Therefore, the quasi-Newton method is used to iteratively correct the error between the actual flow rate and the base value to ensure the accuracy of the equation solution and finally obtain the accurate flow distribution in the pipeline section. The flow base value in the iteration process can be updated according to the following formula:
In the equation, is the current flow base value; is the next flow base value; is the updated flow value from the iteration; is the iteration adjustment speed, with a value in the range (0, 1].
3.2.2. Steady-State and Dynamic Thermal Models of the Pipeline Network
The energy conservation equation for fluid heat transfer in the heat supply pipeline network is
In the equation, c is the specific heat capacity of water, taken as 4.2 kJ/(kg·°C); T is the temperature difference between the heat carrier and the external environment, and it is used to describe the relative temperature of the hot water (°C); ϵ is the heat loss coefficient for heat dissipation from the pipeline to the external environment (W/(m·K)).
A with the idea of hydraulic modeling, corresponding thermal elements can be abstracted. It is important to note that the flow rate in the thermal model is the result of hydraulic modeling. Since the time scale of thermal regulation is much larger than that of hydraulic balance, the change of thermal conditions over time is considered to occur on the basis of the hydraulic steady state. Based on the transformation of Equation (28), the key operating parameters of the pipeline network are converted into multiple sinusoidal steady-state excitations using a Fourier transform, and the characteristics of the thermal branches are described using vector notation. The temperature relationship between the beginning and end of the pipeline section can be expressed as
In the equation, T0 and T1 are the temperatures at the beginning and end nodes of the pipeline section (K); kt is the heat loss and time delay of hot water from the beginning to the end of the pipeline.
The characteristic equation of the thermal branch can be expressed in matrix form as
In the equation, and , respectively, represent the column vectors of temperatures at the beginning and end of the pipeline.
The temperature constraints of convergence and divergence at each node within the pipeline section can be expressed as
In the equation, is the weighted node inflow branch incidence matrix; is the node outflow branch incidence matrix; is the column vector of hot water temperatures at each node; is the column vector of weighted inflow temperatures at each node.
Combining Equations (27)–(29), the temperature calculation equation for the beginning and end of the pipeline network branches can be expressed as