A dynamic simulation method for steam pipe network considering condensate

By establishing mathematical models and discrete partial differential equations, combined with improved algorithms to conduct simulations, the problem that the influence of condensation water in the steam pipe network is not considered is solved, and the analysis of the dynamic characteristics of the steam pipe network and the accurate calculation of the amount of condensate water are realized. Improved calculation accuracy and design guidance effect.

CN114239199BActive Publication Date: 2024-09-27TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111494760.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2024-09-27
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

The existing technology fails to effectively consider the temperature changes of steam along the pipeline and the influence of condensation water in the calculation of steam pipe networks, resulting in insufficient analysis of energy and quality losses.

Method used

A dynamic simulation method of steam pipe network considering condensation water is proposed. By establishing a mathematical model, discrete partial differential equations, input geometric parameters and boundary conditions, the improved SIMPLE algorithm and breadth-first traversal algorithm are used to simulate and calculate the steam pipe network. Condensate volume and dynamic characteristics.

Benefits of technology

It realizes the analysis of the dynamic characteristics of the steam pipe network and the accurate calculation of the condensed water volume, improves the calculation accuracy, and guides the design and operation of the steam pipe network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114239199B
    Figure CN114239199B
Patent Text Reader

Abstract

The present invention discloses a method for dynamic simulation of a steam network considering condensate: considering that steam will generate condensate in a pipeline, a mathematical model of steam running in the pipeline is established according to the mass conservation equation, the momentum conservation equation and the energy conservation equation; the steam pipeline is discretized into a control body, and then the partial differential equations in the mathematical model are discretized into algebraic equations in a first-order upwind format in space and in an implicit format in time; the steam network is abstracted into a topological structure, and the known geometric parameters of the steam network, including the pipe diameter and the pipe length, and the measured operating parameters, including the heat source outlet temperature, pressure and flow, are substituted into the discretized algebraic equations; according to the input parameters, the steam network is simulated, and the whole network status information is iteratively solved and outputted to realize the dynamic simulation of the steam heating network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of steam pipe networks, and more particularly to a steam pipe network dynamic simulation method taking condensate into consideration. Background Art

[0002] In the production process, industries such as printing and dyeing, papermaking, tape, food, pharmaceuticals, cashmere and chemicals require steam as the basic energy source, and there is a large demand for industrial heat. Central heating, as a recognized energy-saving and environmentally friendly technology, is a heating method that the Chinese government has always advocated and actively encouraged.

[0003] A lot of work has been done in the development of steam network calculation methods and software at home and abroad, but most of them are limited to hydraulic calculations, without considering the temperature change of steam along the pipeline, and there are few calculation methods that couple hydraulics with thermal forces. In addition, as the temperature of the steam gradually decreases in the pipeline, condensate will be generated along the way, and this part of condensate will be discharged from the pipeline, causing additional energy loss and quality loss. This part of the additional loss is less studied in domestic and foreign research. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to propose a steam pipe network dynamic simulation method taking condensate into consideration.

[0005] The objectives of the present invention are achieved through the following technical solutions.

[0006] The present invention provides a steam pipe network dynamic simulation method considering condensate, comprising the following steps:

[0007] S1, Establishing a mathematical model of the steam network

[0008] Considering that steam will produce condensate in the pipeline, a mathematical model of steam running in the pipeline is established based on the mass conservation equation, momentum conservation equation, and energy conservation equation. This mathematical model is a set of partial differential equations. The steam state equation is introduced to make the partial differential equation group closed.

[0009] S2, Discreteness of Mathematical Model

[0010] First, the steam pipeline is discretized into control volumes, and then the partial differential equation in step S1 is discretized into algebraic equations in a first-order upwind format in space and in an implicit format in time;

[0011] S3, Input of geometric parameters and boundary conditions

[0012] The steam pipe network is abstracted into a topological structure that is easy to describe mathematically, and then the known geometric parameters of the steam pipe network, including pipe diameter and pipe length, and the measured operating parameters, including the steam temperature T_Source at the heat source, the steam pressure P_Source at the heat source, and the steam flow rate G_Consumer at the heat user, are input into the dynamic simulation algorithm, that is, substituted into the algebraic equation discretized in step S2;

[0013] S4, based on the input parameters, simulate the steam network, iteratively solve and output the status information of the entire network, and realize the dynamic simulation of the steam heating network.

[0014] The mathematical model of the steam network in step S1 is:

[0015]

[0016]

[0017]

[0018] ρ=ρ(P,T)

[0019] Where A is the cross-sectional area of ​​the pipe, in m 2 ; x is the direction along the coordinate axis; g is the acceleration due to gravity, in m / s 2 ; ρ represents the density of steam, the unit is Kg / m 3 ; τ represents time, unit is s; v represents the speed of steam flowing in the pipe, unit is m / s; m c Indicates the amount of condensed water, in kg / s; P indicates the steam pressure, in MPa; f indicates the friction coefficient of steam flowing in the pipeline; D indicates the diameter of the steam pipeline, in m; θ indicates the slope of the pipeline; E indicates the total energy of the steam, including internal energy U and mechanical energy E k , the unit is J; k2 represents the heat transfer coefficient of steam; T represents the temperature of steam, the unit is K; T a Indicates the ambient temperature in K; h c Indicates the enthalpy of condensed water, in J;

[0020] In the above mathematical model, the first equation is the mass conservation equation, and the right side of the equal sign represents the mass loss caused by the discharge of condensed water; the second equation is the momentum conservation equation, and the m on the right side of the equal sign is c / Adx represents the loss of steam momentum due to the discharge of condensed water; the third equation is the energy conservation equation, and the m on the right side of the equal sign is c h c / Adx represents the energy loss of steam due to the discharge of condensed water; since steam is not an ideal gas, the ideal gas state equation cannot be used. The calculation formula provided by IAPWS is used to calculate the steam density, as shown in the fourth equation.

[0021] In step S2, the partial differential equations are discretized in space and time. The spatial discretization adopts the first-order upwind format. In order to avoid the appearance of checkerboard-format calculation results, the physical property nodes and velocity nodes are arranged on staggered grids respectively. The temporal discretization adopts the implicit format. The algebraic equation obtained by discretization is:

[0022]

[0023]

[0024]

[0025] Where: represent the coefficients of the momentum conservation equation, represents the source term of the momentum conservation equation, v i ,v i-1 ,v i+1 They represent the velocity values ​​at different positions in the momentum conservation equation; Represent the coefficients of the pressure correction equation, represents the source term of the pressure correction equation, P′ I ,P′ I-1 ,P′ I+1 They represent the pressure correction values ​​at different positions in the pressure correction equation respectively; represent the coefficients of the energy conservation equation, represents the source term of the energy conservation equation, E I ,E I-1 ,E I+1 They represent the energy values ​​at different positions in the energy conservation equation;

[0026] In order to solve the mass conservation equation and the momentum conservation equation simultaneously, the mass conservation equation was changed to a certain extent, and its variable was processed as a pressure correction term P', so that the mass conservation equation was transformed into a pressure correction equation.

[0027] In step S3, the input quantities of the dynamic simulation algorithm are: the topological structure and pipeline information of the steam network; the steam temperature T_Source, steam pressure P_Source and steam flow G_Consumer at the heat source of the steam network; the initial operating parameters of the steam network, including the flow, temperature T0 and pressure P0 of each pipeline and node.

[0028] In step S3, the boundary conditions of the dynamic simulation algorithm are as follows: the inlet values ​​of the momentum conservation equation and the energy conservation equation are set as Dirichlet boundary conditions, and the inlet flow value and temperature value are stored at nodes i=1 and I=2 respectively; the influence of the inlet boundary conditions on the mass conservation equation is mainly reflected in the pressure correction equation. When the inlet volume flow is known, the inlet boundary condition is set as the Neumann boundary condition;

[0029] The setting of the outlet boundary is slightly different. For the momentum conservation equation and the energy conservation equation, the local unidirectional assumption is adopted, that is, the coefficient of the variable at the outlet is recorded as 0, and it is assumed that the value at the outlet has no effect on the upstream value; for the mass conservation equation, the known outlet pressure value is used as the Dirichlet boundary condition.

[0030] In step S4, the first step of simulating the steam network is to simulate the pipelines. The simulation of the pipelines adopts the improved SIMPLE algorithm, which includes the following steps:

[0031] (1) Estimate a reasonable condensate volume m based on the pipeline operation conditions, pipeline length, and pipe diameter c0 ;

[0032] (2) Input the steam parameters at the pipeline inlet, including the temperature, pressure, and flow rate of the steam at the pipeline inlet, and use the SIMPLE algorithm to calculate the steam parameters of the pipeline to obtain the steam parameters at various positions of the pipeline and the total heat loss Q of the entire pipeline;

[0033] (3) Based on the total heat loss Q of the pipeline calculated in step (2), calculate the latent heat loss Q due to steam condensation c ;

[0034] (4) According to the latent heat loss Q c , calculate the amount of condensate lost m c ;

[0035] (5) Compare the estimated condensate value m c0 And the calculated condensation water volume m c , if the difference is less than 10 -3 , then stop the calculation and output m c , which is the amount of condensed water in the pipeline under this operating condition. The calculated steam parameters of the pipeline are the final steam parameters;

[0036] (6) If m c With m c0 The difference is greater than or equal to 10 -3 , then the calculated m c As the estimated value of condensate m c0Repeat steps (2) to (6) to start the next round of calculation until the difference between the two is less than 10 -3 .

[0037] In step S4, the simulation of the steam network also requires the extension and application of the pipeline simulation calculation to the steam network. The calculation of the steam network involves the order of calculation, which is obtained by the breadth-first traversal algorithm.

[0038] In step S4, the simulation calculation steps of the steam network integrating the breadth-first traversal algorithm are as follows:

[0039] 1) Input the basic information of the pipe network: the index matrix Peak of the pipe network; the number SourceNum of the heat source; the flow vector Q_Consumer of the user; the radial quantity D of the pipe; the pipe length vector L; the steam pressure P_Source and steam temperature T_Source at the outlet of the heat source;

[0040] 2) Define the node temperature vector T and the node pressure vector P, initialize them to null values, and place P_Source and T_Source at the head of the queue respectively;

[0041] 3) Calculate the association matrix A of the pipe network according to the index matrix Peak;

[0042] 4) Calculate the pipeline flow G based on the association matrix A and the user's flow vector Q_Consumer;

[0043] 5) According to the index matrix Peak and the heat source number SourceNum, a breadth-first traversal algorithm is used to obtain the traversal result Seq of the pipe network;

[0044] 6) Define the order of calculation w=1;

[0045] 7) Find the wth item in Seq, which is defined as pipeline k; find the inflow node i and outflow node j of pipeline k in Peak;

[0046] 8) Find the temperature value T(i) and pressure value P(i) of node i in the node temperature vector T and the node pressure vector P as the inlet boundary conditions; find L(k), D(k), and G(k);

[0047] 9) Calculate the kth pipeline and obtain the steam parameters at the pipeline outlet, recorded as P(j) and T(j);

[0048] 10) Determine whether k is the last item of Seq. If so, terminate the calculation. If not, repeat steps 7) to 10).

[0049] In step S4, the steam network is simulated, and the outputs obtained are: steam temperature T, steam pressure P, steam density ρ, pipeline flow G, pipeline condensate volume m at any position of the steam network at any time c .

[0050] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0051] (1) The dynamic simulation method of the steam pipe network proposed in the present invention can analyze and study the dynamic characteristics of the steam pipe network;

[0052] (2) The dynamic simulation method of the steam pipe network proposed in the present invention can calculate the amount of condensate in the pipe network;

[0053] (3) The dynamic simulation method of the steam pipe network proposed in the present invention has a simple calculation method and high calculation accuracy, and can be used to guide the actual design and operation of the steam pipe network. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is the division of staggered control bodies in steam pipelines;

[0055] Figure 2 It is the improved SIMPLE algorithm flow chart;

[0056] Figure 3 It is a flowchart of the breadth-first traversal algorithm;

[0057] Figure 4 It is the calculation process of the steam network. DETAILED DESCRIPTION

[0058] The present invention is further described below with reference to the accompanying drawings using an embodiment, but this embodiment is merely illustrative and the protection scope of the present invention is not limited by this embodiment.

[0059] The present invention provides a steam pipe network dynamic simulation method considering condensate, comprising the following steps:

[0060] S1, Establishing a mathematical model of the steam network

[0061] Considering that steam will produce condensate in the pipeline, a mathematical model of steam running in the pipeline is established based on the mass conservation equation, momentum conservation equation, and energy conservation equation. This mathematical model is a set of partial differential equations. The steam state equation is introduced to make the partial differential equation group closed.

[0062] The mathematical model of the steam network is:

[0063]

[0064]

[0065]

[0066] ρ=ρ(P,T) (4)

[0067] Where A is the cross-sectional area of ​​the pipe, in m 2 ; x is the direction along the coordinate axis; g is the acceleration due to gravity, in m / s 2 ; ρ represents the density of steam, the unit is Kg / m 3 ; τ represents time, unit is s; v represents the speed of steam flowing in the pipe, unit is m / s; m c Indicates the amount of condensed water, in kg / s; P indicates the steam pressure, in MPa; f indicates the friction coefficient of steam flowing in the pipeline; D indicates the diameter of the steam pipeline, in m; θ indicates the slope of the pipeline; E indicates the total energy of the steam, including internal energy U and mechanical energy E k , the unit is J; k2 represents the heat transfer coefficient of steam; T represents the temperature of steam, the unit is K; T a Indicates the ambient temperature in K; h c It represents the enthalpy of condensed water, in J.

[0068] In the above mathematical model, the first equation is the mass conservation equation (continuity equation), and the right side of the equal sign represents the mass loss caused by the discharge of condensed water. The second equation is the momentum conservation equation, and the m on the right side of the equal sign is c / Adx represents the loss of steam momentum due to the discharge of condensed water. The third equation is the energy conservation equation. c h c / Adx represents the energy loss of steam due to condensate discharge. The variable of the energy conservation equation is total energy E, which includes internal energy U and kinetic energy u 2 / 2. Since steam is not an ideal gas, the ideal gas state equation cannot be used. The calculation formula provided by IAPWS is used to calculate the steam density, as shown in the fourth equation (steam state equation).

[0069] S2, Discreteness of Mathematical Model

[0070] First, the steam pipeline is discretized into control volumes, and then the partial differential equation in step S1 is discretized into algebraic equations in a first-order upwind format in space and in an implicit format in time.

[0071] The partial differential equations are discretized in space and time. The spatial discretization adopts the first-order upwind format. In order to avoid the appearance of checkerboard-style calculation results, the physical property nodes and velocity nodes are arranged on staggered grids, such as Figure 1As shown. The implicit format is used for time discretization. The algebraic equation obtained by discretization is:

[0072]

[0073]

[0074]

[0075] Where: represent the coefficients of the momentum conservation equation, represents the source term of the momentum conservation equation, v i ,v i-1 ,v i+1 They represent the velocity values ​​at different positions in the momentum conservation equation; Represent the coefficients of the pressure correction equation, represents the source term of the pressure correction equation, P′ I ,P′ I-1 ,P′ I+1 They represent the pressure correction values ​​at different positions in the pressure correction equation respectively; represent the coefficients of the energy conservation equation, represents the source term of the energy conservation equation, E I ,E I-1 ,E I +1 They represent the energy values ​​at different positions in the energy conservation equation.

[0076] In order to solve the mass conservation equation and the momentum conservation equation simultaneously, the mass conservation equation was changed to a certain extent, and its variable was processed as a pressure correction term P', so that the mass conservation equation was transformed into a pressure correction equation.

[0077] S3, Input of geometric parameters and boundary conditions

[0078] The steam network is abstracted into a topological structure that can be easily described mathematically. Then, the known geometric parameters of the steam network, including pipe diameter, pipe length, etc., and the measurable operating parameters, including the steam temperature T_Source at the heat source, the steam pressure P_Source at the heat source, the steam flow rate G_Consumer at the heat user, etc., are input into the dynamic simulation algorithm, that is, substituted into the algebraic equation discretized in step S2.

[0079] The input of the dynamic simulation algorithm is:

[0080] 1) The topological structure Peak and pipeline information of a steam network, including the pipeline length L and diameter D;

[0081] 2) The steam temperature T_Source at the heat source of the steam network;

[0082] 3) Steam pressure P_Source at the heat source of the steam network;

[0083] 4) Steam flow rate G_Consumer at the heat user of the steam network;

[0084] 5) The initial operating parameters of the steam network, including the flow rate, temperature T0, and pressure P0 of each pipeline and node;

[0085] The boundary conditions of the dynamic simulation algorithm are as follows: the inlet values ​​of the momentum conservation equation and the energy conservation equation are set as Dirichlet boundary conditions, and the inlet flow value and temperature value are stored at nodes i=1 and I=2 respectively. The influence of the inlet boundary condition on the mass conservation equation is mainly reflected in the pressure correction equation formula (6). When the inlet volume flow is known, the inlet boundary condition can be set as the Neumann boundary condition.

[0086] The settings of the outlet boundary are slightly different. For the momentum conservation equation and the energy conservation equation, the local unidirectional assumption is adopted, that is, the coefficients of the variables at the outlet are recorded as 0, and it is assumed that the values ​​at the outlet have no effect on the values ​​upstream. For the mass conservation equation, the known outlet pressure value is used as the Dirichlet boundary condition. The boundary conditions are summarized in Appendix 1.

[0087] Table 1 Summary of boundary conditions

[0088]

[0089] S4, based on the input parameters, simulate the steam network, iteratively solve and output the status information of the entire network, and realize the dynamic simulation of the steam heating network.

[0090] The first step in simulating a steam network is to simulate the pipeline. The simulation step of the pipeline uses the SIMPLE algorithm, which is the Semi-Implicit-Method for Pressure Linked Equations. This is a widely used numerical method for solving flow fields in computational fluid dynamics.

[0091] Since condensate is introduced into the equation, the original SIMPLE algorithm has been improved to a certain extent. The calculation process of the pipeline using the improved SIMPLE algorithm is shown in the attached figure. Figure 2 As shown, it includes the following steps:

[0092] 1) Estimate a reasonable condensate volume m based on the pipeline operation, pipeline length, and pipe diameter c0 ;

[0093] 2) Input the steam parameters at the pipeline inlet, including the temperature, pressure, and flow rate of the steam at the pipeline inlet, and use the SIMPLE algorithm to calculate the steam parameters of the pipeline to obtain the steam parameters at various positions of the pipeline and the total heat loss Q of the entire pipeline;

[0094] 3) Based on the total heat loss Q of the pipeline calculated in step 2), calculate the latent heat loss Q due to steam condensation c ;

[0095] 4) According to the latent heat loss Q c , calculate the amount of condensate lost m c ;

[0096] 5) Compare the estimated condensation water value m c0 And the calculated condensation water volume m c , if the difference is less than 10 -3 , then stop the calculation and output m c , which is the amount of condensed water in the pipeline under this operating condition. The calculated steam parameters of the pipeline are the final steam parameters;

[0097] 6) If m c With m c0 The difference is greater than or equal to 10 -3 , then the calculated m c As the estimated value of condensate m c0 Repeat steps 2) to 6) to start the next round of calculation until the difference between the two is less than 10 -3 .

[0098] To simulate the steam network, it is also necessary to extend the simulation calculation of the pipeline to the steam network. The calculation of the steam network involves the order of calculation, which is obtained by the breadth-first traversal algorithm. The calculation process of the breadth-first traversal algorithm is shown in the attached figure. Figure 3 As shown, it mainly includes the following steps:

[0099] 1) Data input: input the traversal queue q for storing the nodes to be traversed, and initialize it to an empty set), input the traversal result queue V result , and initialized to an empty set, input the access flag F of the node flag , and initialize all nodes to zero, and input the index matrix P according to the specific heating network topology k ;

[0100] 2) Put the node numbers of all heat sources into the traversal queue q;

[0101] 3) Let i = q1 (the first element in q), find the outflow node j of node i (the flow direction is from node i to j), access i and update its access flag, remove q1 and put i at the end of the traversal result queue, and then put node j at the head of the traversal queue q;

[0102] 4) According to the index matrix P k Find the inflow node k of node j (the flow direction is from node k to j). If the number of inflow nodes is more than one and all inflow nodes have been visited, visit node j and update its visit flag. Otherwise, do not visit node j, put node k at the head of the traversal queue q and visit node k.

[0103] 5) Repeat steps 3) and 4) until the access flags of all nodes have been updated.

[0104] The simulation calculation process of the steam pipe network that integrates the breadth-first traversal algorithm is shown in the attached figure. Figure 4 As shown, it mainly includes the following steps:

[0105] 1) Input the basic information of the pipe network: the index matrix Peak of the pipe network; the number SourceNum of the heat source; the flow vector Q_Consumer of the user; the radial quantity D of the pipe; the pipe length vector L; the steam pressure P_Source and steam temperature T_Source at the outlet of the heat source;

[0106] 2) Define the node temperature vector T and the node pressure vector P, initialize them to null values, and place P_Source and T_Source at the head of the queue respectively;

[0107] 3) Calculate the association matrix A of the pipe network according to the index matrix Peak;

[0108] 4) Calculate the pipeline flow G based on the association matrix A and the user's flow vector Q_Consumer;

[0109] 5) According to the index matrix Peak and the heat source number SourceNum, a breadth-first traversal algorithm is used to obtain the traversal result Seq of the pipe network;

[0110] 6) Define the order of calculation w=1;

[0111] 7) Find the wth item in Seq, which is defined as pipeline k; find the inflow node i and outflow node j of pipeline k in Peak;

[0112] 8) Find the temperature value T(i) and pressure value P(i) of node i in the node temperature vector T and the node pressure vector P as the inlet boundary conditions; find L(k), D(k), and G(k);

[0113] 9) Calculate the kth pipeline and obtain the steam parameters at the pipeline outlet, recorded as P(j) and T(j);

[0114] 10) Determine whether k is the last item of Seq. If so, terminate the calculation. If not, repeat steps 7) to 10).

[0115] Input the above parameters into the dynamic simulation algorithm and simulate the steam network, and the output can be obtained as follows:

[0116] 1) Steam temperature T at any position in the steam network at any time;

[0117] 2) Steam pressure P at any position in the steam network at any time;

[0118] 3) Steam density ρ at any position of the steam network at any time;

[0119] 4) The flow rate G of each pipeline in the steam network at any time;

[0120] 5) The amount of condensate in each pipe of the steam network at any time m c .

[0121] Example:

[0122] Example of a steam network in an industrial area, including one heat source and 22 heat users. The total length of the pipeline is 7.1 km, and the area of ​​the heating area is 2.1 km 2 The heat network has 1 heat source, 22 heat users, and a total of 54 branches. At the outlet of the thermal power plant and at the entrance of each branch pipe, vortex flowmeters, thermometers, and pressure gauges are installed to measure the volume flow, temperature, and pressure of steam respectively.

[0123] The basic information of steam pipes is sorted out. The insulation material of steam pipes is glass fiber, and the thickness is related to the pipe diameter. Table 1 shows the statistics of the length and diameter of each steam pipe.

[0124] The calculation of the pipe network involves the order of calculation, which is obtained by the breadth-first traversal algorithm. According to the topological sorting order, the calculation starts from the first pipe adjacent to the heat source, and the calculation result of the previous pipe is used as the boundary condition at the entrance of the next pipe. The calculation is gradually backward until all the pipes in the pipe network are calculated. The solution of steam running in the pipe adopts the improved SIMPLE algorithm.

[0125] Although the functions and working processes of the present invention have been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific functions and working processes, and the above-mentioned specific implementation methods are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which are all within the protection of the present invention.

Claims

1. A dynamic simulation method for a steam pipe network considering condensate, characterized in that: The following steps are involved: S1, Establishing a mathematical model of the steam network Considering that steam will produce condensate in the pipeline, a mathematical model of steam running in the pipeline is established based on the mass conservation equation, momentum conservation equation, and energy conservation equation. This mathematical model is a set of partial differential equations. The steam state equation is introduced to make the partial differential equation group closed. Among them, the mathematical model of the steam network is: ρ=ρ(P,T) Where A is the cross-sectional area of ​​the pipe, in m 2 ; x is the direction along the coordinate axis; g is the acceleration due to gravity, in m / s 2 ; ρ represents the density of steam, the unit is Kg / m 3 ; τ represents time, unit is s; v represents the speed of steam flowing in the pipe, unit is m / s; m c Indicates the amount of condensed water, in kg / s; P indicates the steam pressure, in MPa; f indicates the friction coefficient of steam flowing in the pipeline; D indicates the diameter of the steam pipeline, in m; θ indicates the slope of the pipeline; E indicates the total energy of the steam, including internal energy U and mechanical energy E k , the unit is J; k2 represents the heat transfer coefficient of steam; T represents the temperature of steam, the unit is K; T a Indicates the ambient temperature in K; h c Indicates the enthalpy of condensed water, in J; In the above mathematical model, the first equation is the mass conservation equation, and the right side of the equal sign represents the mass loss caused by the discharge of condensed water; the second equation is the momentum conservation equation, and the m on the right side of the equal sign is c / Adx represents the loss of steam momentum due to the discharge of condensed water; the third equation is the energy conservation equation, and the m on the right side of the equal sign is c h c / Adx represents the energy loss of steam due to the discharge of condensed water; since steam is not an ideal gas, the ideal gas state equation cannot be used. The calculation formula provided by IAPWS is used to calculate the steam density, as shown in the fourth equation; S2, Discrete Mathematical Model First, the steam pipeline is discretized into control volumes, and then the partial differential equation in step S1 is discretized into algebraic equations in a first-order upwind format in space and in an implicit format in time; S3, Input of geometric parameters and boundary conditions The steam network is abstracted into a topological structure that can be easily described mathematically, and then the known geometric parameters of the steam network, including pipe diameter and pipe length, and the measured operating parameters, including the steam temperature T_Source at the heat source, the steam pressure P_Source at the heat source, and the steam flow rate G_Consumer at the heat user, are input into the dynamic simulation algorithm, that is, substituted into the algebraic equation discretized in step S2; S4, based on the input parameters, simulate the steam network, iteratively solve and output the status information of the entire network, and realize the dynamic simulation of the steam heating network.

2. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S2, the partial differential equations are discretized in space and time. The spatial discretization adopts a first-order upwind format. In order to avoid the appearance of checkerboard-format calculation results, the physical property nodes and velocity nodes are arranged on staggered grids respectively. The temporal discretization adopts an implicit format. The discretized algebraic equation is: Where: represent the coefficients of the momentum conservation equation, represents the source term of the momentum conservation equation, v i ,v i-1 ,v i +1 They represent the velocity values ​​at different positions in the momentum conservation equation; Represent the coefficients of the pressure correction equation, represents the source term of the pressure correction equation, P′ I ,P′ I-1 ,P′ I+1 They represent the pressure correction values ​​at different positions in the pressure correction equation respectively; represent the coefficients of the energy conservation equation, represents the source term of the energy conservation equation, E I ,E I-1 ,E I+1 They represent the energy values ​​at different positions in the energy conservation equation; In order to solve the mass conservation equation and the momentum conservation equation simultaneously, the mass conservation equation was changed to a certain extent, and its variable was processed as a pressure correction term P', so that the mass conservation equation was transformed into a pressure correction equation.

3. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S3, the input quantities of the dynamic simulation algorithm are: the topological structure and pipeline information of the steam network; the steam temperature T_Source, steam pressure P_Source and steam flow G_Consumer at the heat source of the steam network; the initial operating parameters of the steam network, including the flow, temperature T0 and pressure P0 of each pipeline and node.

4. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S3, the boundary conditions of the dynamic simulation algorithm are as follows: the inlet values ​​of the momentum conservation equation and the energy conservation equation are set as Dirichlet boundary conditions, and the inlet flow value and temperature value are stored at nodes i=1 and I=2 respectively; the influence of the inlet boundary conditions on the mass conservation equation is mainly reflected in the pressure correction equation. When the inlet volume flow is known, the inlet boundary condition is set as the Neumann boundary condition; The setting of the outlet boundary is slightly different. For the momentum conservation equation and the energy conservation equation, the local unidirectional assumption is adopted, that is, the coefficient of the variable at the outlet is recorded as 0, and it is assumed that the value at the outlet has no effect on the upstream value; for the mass conservation equation, the known outlet pressure value is used as the Dirichlet boundary condition.

5. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S4, the first step of simulating the steam network is to simulate the pipelines. The simulation of the pipelines adopts the improved SIMPLE algorithm, which includes the following steps: (1) Estimate a reasonable condensate volume m based on the pipeline operation conditions, pipeline length, and pipe diameter c0 ; (2) Input the steam parameters at the pipeline inlet, including the temperature, pressure, and flow rate of the steam at the pipeline inlet, and use the SIMPLE algorithm to calculate the steam parameters of the pipeline to obtain the steam parameters at various positions of the pipeline and the total heat loss Q of the entire pipeline; (3) Based on the total heat loss Q of the pipeline calculated in step (2), calculate the latent heat loss Q due to steam condensation c ; (4) According to the latent heat loss Q c , calculate the amount of condensate lost m c ; (5) Compare the estimated condensate value m c0 And the calculated condensation water volume m c , if the difference is less than 10 -3 , then stop the calculation and output m c , which is the amount of condensed water in the pipeline under this operating condition. The calculated steam parameters of the pipeline are the final steam parameters; (6) If m c With m c0 The difference is greater than or equal to 10 -3 , then the calculated m c As the estimated value of condensate m c0 Repeat steps (2) to (6) to start the next round of calculation until the difference between the two is less than 10 -3 .

6. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S4, the simulation of the steam network also requires the extension and application of the pipeline simulation calculation to the steam network. The calculation of the steam network involves the order of calculation, which is obtained by the breadth-first traversal algorithm.

7. The method for dynamic simulation of a steam pipe network taking condensate into consideration according to claim 6, characterized in that: In step S4, the simulation calculation steps of the steam network integrating the breadth-first traversal algorithm are as follows: 1) Input the basic information of the pipe network: the index matrix Peak of the pipe network; the number SourceNum of the heat source; the flow vector Q_Consumer of the user; the radial quantity D of the pipe; the pipe length vector L; the steam pressure P_Source and steam temperature T_Source at the outlet of the heat source; 2) Define the node temperature vector T and the node pressure vector P, initialize them to null values, and place P_Source and T_Source at the head of the queue respectively; 3) Calculate the association matrix A of the pipe network according to the index matrix Peak; 4) Calculate the pipeline flow G based on the association matrix A and the user's flow vector Q_Consumer; 5) According to the index matrix Peak and the heat source number SourceNum, a breadth-first traversal algorithm is used to obtain the traversal result Seq of the pipe network; 6) Define the order of calculation w=1; 7) Find the wth item in Seq, which is defined as pipeline k; find the inflow node i and outflow node j of pipeline k in Peak; 8) Find the temperature value T(i) and pressure value P(i) of node i in the node temperature vector T and the node pressure vector P as the inlet boundary conditions; find L(k), D(k), and G(k); 9) Calculate the kth pipeline and obtain the steam parameters at the pipeline outlet, recorded as P(j) and T(j); 10) Determine whether k is the last item of Seq. If so, terminate the calculation. If not, repeat steps 7) to 10).

8. The method for dynamic simulation of a steam pipe network considering condensate according to claim 1, characterized in that: In step S4, the steam network is simulated, and the outputs obtained are: steam temperature T, steam pressure P, steam density ρ, pipeline flow G, pipeline condensate volume m at any position of the steam network at any time c .