Steam flow simulation method and device for heat source in steam pipe network system
By using an iterative method involving forward and reverse calculation modules, the problem of insufficient accuracy in steam flow simulation in existing technologies has been solved, achieving high-precision simulation without pre-assuming flow rates, thus meeting user needs and node balancing.
Patent Information
- Application Number
- CN202611712906.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-11-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to accurately reflect the coupling relationship between steam condensation along the flow path, user steam demand flow, and mass balance at each node without pre-assuming the target heat source steam flow rate, resulting in low accuracy of steam flow simulation results.
A multi-round iterative method using forward and reverse calculation modules is adopted. The forward calculation module performs hydraulic-thermal coupling simulation based on upstream nodes and downstream flow to determine condensate flow and downstream node state parameters. The reverse calculation module updates the node flow based on condensate flow and user demand flow until the convergence condition is met.
It improves the simulation accuracy of steam flow rate of target heat source, and can simultaneously meet user steam demand and mass balance of each node without pre-determining the flow rate, thereby improving the accuracy and efficiency of calculation.
Smart Images

Figure CN123179775A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the interdisciplinary field of thermal energy engineering and computer simulation technology, specifically to a method and apparatus for simulating the steam flow rate of a heat source in a steam pipeline network system. Background Technology
[0002] Industrial steam pipeline networks are widely used in thermal power plants, chemical plants, paper mills, textile mills, food processing plants, district heating systems, and industrial park energy stations. A typical steam pipeline system includes at least one heat source, steam pipelines, and users. Steam from the heat source is transported to the users via the steam pipelines. In a steam pipeline system, the steam flow rate from the heat source needs to be determined based on the user's steam demand, the pipeline topology, and the hydraulic and thermodynamic processes of the steam within the pipeline. During long-distance transport, steam is affected by factors such as heat dissipation from the pipe walls, environmental heat dissipation, and frictional resistance along the pipeline. Its pressure and temperature continuously change along the transport direction, and condensation may occur, producing condensate. The formation of condensate causes variations in the steam flow rate along the pipeline, thus affecting the mass balance at each node and the steam flow rate from the heat source.
[0003] When determining the steam flow rate of a target heat source in a steam pipeline network system, existing simulation methods often require pre-assuming the steam flow rate of the target heat source or simplifying the impact of condensate along the steam flow path. This makes it difficult to accurately reflect the coupling relationship between steam condensation along the flow path, user steam demand flow rate, and mass balance at each node. When the steam flow rate of the target heat source itself is unknown, existing methods struggle to simultaneously satisfy user steam demand and mass balance at each node without pre-determining the flow rate, resulting in low accuracy of the simulation results for the steam flow rate of the target heat source. Summary of the Invention
[0004] In view of this, the present invention provides a method and apparatus for simulating the steam flow rate of a heat source in a steam pipeline network system.
[0005] One aspect of the present invention provides a method for simulating steam flow rate of a heat source in a steam pipeline network system. The steam pipeline network system includes at least one heat source, a steam pipeline, and users. Steam from the heat source is transported to the users via the steam pipeline. The steam pipeline includes multiple steam pipe segments, with upstream and downstream nodes respectively at both ends along the steam flow direction of each steam pipe segment. The at least one heat source includes a target heat source whose steam flow rate is the quantity to be determined. The method includes: performing multiple iterations on a forward calculation module and a reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met, at which point the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment... Hydraulic-thermal coupling simulations are performed sequentially on each steam pipe segment along the steam flow direction to determine the condensate flow rate of each segment and obtain the steam state parameters of the downstream nodes of each segment. The steam state parameters of the downstream nodes are then used as the steam state parameters of the upstream nodes of the next steam pipe segment. The reverse calculation module is configured to: based on the condensate flow rate of each steam pipe segment and the user's steam demand flow rate determined by the forward calculation module, perform hydraulic-thermal coupling simulations sequentially on each steam pipe segment along the opposite direction of steam flow to update the steam flow rates of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship. The updated steam flow rates of the downstream nodes of each steam pipe segment along the steam flow direction are then used as the steam flow rates of the downstream nodes of the corresponding steam pipe segment in the next iteration.
[0006] According to an embodiment of the present invention, when the forward calculation module is executed in the current round, the forward calculation module starts from the heat source and proceeds downstream segment by segment according to the calculation order of each steam pipe segment. For each steam pipe segment, the steam pressure and steam temperature of the upstream node of the steam pipe segment are used as inputs. When the upstream node of the steam pipe segment is in a saturated steam state, the saturated temperature, saturated steam enthalpy, and saturated water enthalpy of the upstream node of the steam pipe segment are obtained by linear interpolation within the corresponding one-dimensional pressure range in the physical property parameter table. When the upstream node of the steam pipe segment is in a superheated steam state, the superheated steam enthalpy and superheated steam density of the upstream node of the steam pipe segment are obtained by bilinear interpolation within the corresponding two-dimensional grid range in the physical property parameter table. Using the steam pressure, steam temperature, steam enthalpy, steam density of the upstream node of the steam pipe segment and the steam flow rate of the downstream node as input parameters, the steam pipe segment is subjected to hydraulic-thermal coupling simulation, and the output steam pressure, steam temperature, steam enthalpy, steam density of the downstream node of the steam pipe segment, as well as the condensate flow rate of the steam pipe segment.
[0007] According to an embodiment of the present invention, the steam state parameters of the upstream nodes of each steam pipe section include steam density and steam enthalpy. The steam density and steam enthalpy are obtained by interpolation querying a pre-generated physical property parameter table loaded into memory. The physical property parameter table is pre-generated through the following steps: generating multiple pressure nodes within a preset pressure range at a preset step size, and calculating the saturation temperature, saturated steam enthalpy, and saturated water enthalpy at each pressure node using a water and steam thermodynamic property calculation model, with each pressure node constituting a one-dimensional pressure range; generating multiple two-dimensional grid nodes within a preset pressure range and a preset superheat range at a preset step size, and calculating the superheated steam enthalpy and superheated steam density at each two-dimensional grid node using a water and steam thermodynamic property calculation model, with each two-dimensional grid node constituting a two-dimensional grid range; storing the correspondence between each pressure node and its corresponding saturation temperature, saturated steam enthalpy, and saturated water enthalpy, as well as the correspondence between each two-dimensional grid node and its corresponding superheated steam enthalpy and superheated steam density, in the physical property parameter table.
[0008] According to an embodiment of the present invention, the steam pipeline system is a multi-heat-source ring-shaped steam pipeline network, with the target heat source as the main heat source and other heat sources as auxiliary heat sources, the steam flow rate of the auxiliary heat sources being known. Based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipeline segment, hydraulic-thermal coupling simulations are performed sequentially along the steam flow direction for each steam pipeline segment, including: according to the calculation order of each steam pipeline segment, using the steam pressure, steam temperature, steam enthalpy, steam density of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipeline segment, as well as the friction resistance factor and heat dissipation loss coefficient as input parameters, and sequentially performing hydraulic-thermal coupling simulations on each steam pipeline segment along the steam flow direction. A hydraulic-thermal coupling simulation is performed to output the steam pressure, steam temperature, steam enthalpy, and steam density of the downstream nodes of each steam pipe segment, as well as the condensate flow rate of each steam pipe segment. In the initial iteration, the steam flow direction is determined by ignoring the condensate generation of each steam pipe segment and by performing hydraulic calculations on the steam pipe network system based on the mass flow rate conservation at the upstream and downstream nodes of each steam pipe segment and the energy conservation of each loop. In non-initial iterations, the condensate flow rates of each upstream and downstream node are determined based on the condensate flow rates of each steam pipe segment in the previous iteration, and the steam flow direction of each steam pipe segment in the previous iteration is updated using a flow direction analysis algorithm.
[0009] According to an embodiment of the present invention, the method for simulating steam flow of heat sources in a steam pipeline network system further includes: starting from each heat source in at least one heat source, constructing an information transmission progressive hierarchy table by layer-by-layer diffusion using a breadth-first search strategy; the information transmission progressive hierarchy table is used to determine the calculation order of the forward calculation module and the reverse calculation module for hydraulic-thermal coupling simulation of each steam pipe segment; the forward order of the information transmission progressive hierarchy table is determined as the calculation order of each steam pipe segment in the forward calculation module; wherein, in each layer diffusion, each steam pipe segment connected to each node that has been visited in the current layer is traversed, and the other end node of the traversed steam pipe segment other than the node in the current layer is taken as a candidate node, and the candidate node is added to the next layer only when all inflow pipe segments of the candidate node have been visited.
[0010] According to an embodiment of the present invention, starting with each heat source in at least one heat source, a breadth-first search strategy is used to construct a progressive information transmission hierarchy table by spreading outward layer by layer. This includes: taking each heat source in at least one heat source as the current layer node, adding each heat source to the set of visited nodes, and initializing the set of visited pipe segments; in each layer of diffusion, traversing each steam pipe segment connected to each visited node in the current layer, and taking the other end node of the traversed steam pipe segment (excluding the current layer node) as a candidate node; determining the nodes among the candidate nodes that have not been added to the set of visited nodes as candidate nodes for the next layer; and for the next layer of candidate nodes... For each candidate node in the selected nodes, determine whether all inflow pipe segments of the candidate node have been visited. Only when all inflow pipe segments of the candidate node have been visited is the candidate node added to the next layer node set. The next layer node set is used as the current layer node set for the next round of diffusion, and each node in the next layer node set is added to the visited node set. Return to the step of traversing the steam pipe segments connected to each visited node in the current layer until the number of pipe segments in the visited pipe segment set reaches the total number of pipe segments in the steam pipe network system. Generate an information transmission progression hierarchy table according to the hierarchical order in which each steam pipe segment is visited.
[0011] According to an embodiment of the present invention, for non-initial iteration rounds, before executing the forward calculation module, the simulation method for heat source steam flow in the steam pipeline system further includes: updating the friction resistance factor and heat dissipation loss coefficient of each steam pipeline using an error-driven asymptotic correction method based on the change gradient of the steam flow of the target heat source in the current round relative to the previous round; wherein, the change gradient is positively correlated with the update magnitude.
[0012] According to an embodiment of the present invention, when the forward calculation module and / or the reverse calculation module perform hydraulic-thermal coupling simulation on each steam pipe section, the simulation is performed simultaneously on each steam pipe section at the same level using a thread pool parallel calculation method, according to the information transmission hierarchical table.
[0013] According to an embodiment of the present invention, the method for simulating the steam flow rate of a heat source in a steam pipeline network system further includes: determining the change in the steam flow rate of the target heat source in the current round relative to the previous round after each iteration is completed; storing the change in flow rate determined after each iteration into the current window with a preset number of rounds as the window size; when the number of change in flow rate in the current window reaches the preset number of rounds, removing the earliest change in flow rate in the current window for each newly added change in flow rate, so that the current window always maintains the change in flow rate for the consecutive preset number of rounds; and determining that the convergence condition is met when all change in flow rate in the current window is less than the preset change rate threshold.
[0014] Another aspect of the present invention provides a simulation device for steam flow rate of a heat source in a steam pipeline network system. The steam pipeline network system includes at least one heat source, a steam pipeline, and users. Steam from the heat source is transported to the users via the steam pipeline. The steam pipeline includes multiple steam pipe segments, with upstream and downstream nodes respectively at both ends of each steam pipe segment along the steam flow direction. The at least one heat source includes a target heat source whose steam flow rate is the quantity to be determined. The device includes an iteration module for performing multiple iterations on a forward calculation module and a reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met, at which point the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment... The steam flow rate is determined by performing hydraulic-thermal coupling simulations on each steam pipe segment sequentially along the steam flow direction to obtain the condensate flow rate of each steam pipe segment and the steam state parameters of the downstream nodes of each steam pipe segment. The steam state parameters of the downstream nodes are then used as the steam state parameters of the upstream nodes of the next steam pipe segment. The reverse calculation module is configured to perform hydraulic-thermal coupling simulations on each steam pipe segment sequentially along the opposite direction of steam flow, based on the condensate flow rate of each steam pipe segment and the user's steam demand flow rate determined by the forward calculation module. This updates the steam flow rate of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship, and the updated steam flow rate of the downstream nodes of each steam pipe segment along the steam flow direction is used as the steam flow rate of the downstream nodes of the corresponding steam pipe segment in the next iteration.
[0015] According to an embodiment of the present invention, in each iteration, the forward calculation module is executed first, followed by the reverse calculation module. The forward calculation module simulates segment by segment along the steam flow direction, determining the condensate flow rate of each steam pipe segment and the steam state parameters of downstream nodes, providing the reverse calculation module with the basis for condensation and thermodynamic parameters along the pipe. The reverse calculation module uses the condensate flow rate obtained from the forward calculation module and the user's steam demand flow rate to update the steam flow rate of each node in the opposite direction according to the node mass balance relationship, and uses the updated steam flow rate of each downstream node along the steam flow direction as the input of the forward calculation module in the next iteration. Thus, the forward and reverse calculation modules alternately correct, making the flow conditions on which the forward calculation is based continuously approach the true value, and the steam flow rate of the target heat source gradually converges to a value that simultaneously satisfies the user's steam demand and the mass balance relationship of each node. Therefore, the simulation accuracy of the target heat source steam flow rate can be improved without pre-determining the target heat source steam flow rate. Attached Figure Description
[0016] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings.
[0017] Figure 1 A flowchart of a method for simulating the steam flow rate of a heat source in a steam pipeline system according to an embodiment of the present invention is shown.
[0018] Figure 2 A schematic diagram illustrating the iterative relationship between the forward calculation module and the reverse calculation module according to an embodiment of the present invention is shown.
[0019] Figure 3 A flowchart of a method for generating a physical property parameter table according to an embodiment of the present invention is shown.
[0020] Figure 4 A schematic diagram of a multi-heat-source ring steam network according to an embodiment of the present invention is shown.
[0021] Figure 5 A flowchart of a method for constructing a hierarchical information transmission table according to an embodiment of the present invention is shown. Detailed Implementation
[0022] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the invention. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the invention for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.
[0023] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0024] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0025] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0026] In realizing the concept of this invention, it was discovered that multi-heat-source ring steam network systems, due to their advantages such as high heating reliability and flexible energy allocation, are widely used in the field of industrial park heat supply. In multi-heat-source ring steam network systems, the main heat source serves as the primary energy source for the entire network, and accurate calculation of its steam demand flow rate is crucial for rationally planning heat source production schedules, optimizing network operating parameters, ensuring heating quality, and achieving efficient energy utilization. However, existing methods for calculating the steam demand flow rate of the main heat source in multi-heat-source ring steam network systems still have many shortcomings.
[0027] In the hydraulic-thermal coupling calculation of steam pipe sections, existing methods often neglect the crucial factor of condensate precipitation. They typically assume single-phase steam flow within the pipe section, failing to consider the impact of condensate precipitation on hydraulic and thermodynamic parameters. This leads to significant deviations between the calculated results and actual operating conditions, consequently affecting the accuracy of the calculated steam demand flow rate from the main heat source. Regarding the acquisition of steam physical properties, while the calculation method based on the IAPWS-IF97 standard offers high accuracy, it involves numerous complex mathematical operations and iterative processes, resulting in a massive computational load. Especially in large-scale pipe network simulations, frequent calls to the physical property calculation module lead to low computational efficiency, making it difficult to meet the requirements of real-time or near-real-time simulations.
[0028] In terms of information transmission in multi-heat-source ring steam pipe networks, existing methods lack systematicity and efficiency. They typically use simplistic methods to describe the information transmission between elements in the network, failing to fully explore the hierarchical structure and information transmission patterns within the network. This leads to inefficient information transmission and computational redundancy during calculations, requiring repeated transmission and updates of parameters such as pressure and flow rate at each node, further reducing computational efficiency. Regarding the correction of heat transfer characteristics and frictional resistance coefficients, traditional methods usually use fixed timing or empirical values for correction. They cannot adaptively adjust according to the actual operating conditions of the pipe network, making it difficult to accurately reflect the impact of changes in steam temperature, pressure, flow rate, and pipe wall roughness on heat transfer and frictional resistance characteristics, thus affecting the accuracy of steam supply flow rate calculations.
[0029] In terms of computational methods, most existing multi-segment hydraulic-thermal coupling simulations employ a serial computation approach, calculating each segment sequentially. This fails to fully utilize the multi-core parallel processing capabilities of modern computers, resulting in long computation times and low efficiency. As the scale of pipeline networks continues to expand and the number of pipe segments increases, the drawbacks of the serial computation approach become increasingly apparent, making it difficult to meet the demands of real-time simulation calculations for large-scale multi-heat-source ring steam pipeline networks.
[0030] In summary, existing methods for calculating the steam demand flow rate of the main heat source in multi-heat-source ring steam pipe networks have significant shortcomings in terms of calculation accuracy, efficiency, and adaptability, failing to meet the urgent needs of optimized network operation and efficient energy utilization in practical engineering. Therefore, how to accurately and quickly calculate the steam demand flow rate of the main heat source in a multi-heat-source ring steam pipe network without pre-assuming the steam demand flow rate of the main heat source is a technical problem to be solved.
[0031] Based on this, embodiments of the present invention provide a method, apparatus, and device for simulating steam flow rate of a heat source in a steam pipeline network system. The steam pipeline network system includes at least one heat source, steam pipelines, and users. Steam from the heat source is transported to the users via steam pipelines. The steam pipelines include multiple steam pipe segments, with upstream and downstream nodes respectively at both ends along the steam flow direction. At least one heat source includes a target heat source whose steam flow rate is the desired quantity. The method includes: performing multiple iterations on a forward calculation module and a reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met, at which point the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment, perform calculations along the steam flow direction on each steam pipe segment... The first step involves performing a hydraulic-thermal coupling simulation to determine the condensate flow rate of each steam pipe segment and obtain the steam state parameters of the downstream nodes of each steam pipe segment. The steam state parameters of the downstream nodes are then used as the steam state parameters of the upstream nodes of the next steam pipe segment. The reverse calculation module is configured to: based on the condensate flow rate of each steam pipe segment and the user's steam demand flow rate determined by the forward calculation module, perform hydraulic-thermal coupling simulations on each steam pipe segment in the opposite direction to the steam flow to update the steam flow rate of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship. The updated steam flow rate of the downstream nodes of each steam pipe segment along the steam flow direction is then used as the steam flow rate of the downstream nodes of the corresponding steam pipe segment in the next iteration.
[0032] The following will be through Figures 1-4 The method for simulating the steam flow rate of a heat source in a steam pipeline system according to an embodiment of the present invention is described in detail.
[0033] Figure 1 A flowchart of a method for simulating the steam flow rate of a heat source in a steam pipeline system according to an embodiment of the present invention is shown.
[0034] like Figure 1 As shown, the simulation method for heat source steam flow in the steam pipeline system includes step S110.
[0035] In step S110, multiple iterations are performed on the forward calculation module and the reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed in sequence until the convergence condition is met, and the steam flow rate of the target heat source is determined as the target simulation result.
[0036] In this embodiment of the invention, the steam pipeline system includes at least one heat source, a steam pipeline, and users. Steam from the heat source is transported to the users via the steam pipeline. The steam pipeline includes multiple steam pipe segments. Each steam pipe segment has an upstream node and a downstream node at both ends along the steam flow direction. The at least one heat source includes a target heat source with a steam flow rate of the desired quantity.
[0037] It should be noted that a steam pipeline can be divided into multiple steam pipe segments by nodes. Nodes can be heat source nodes, user nodes, pipe segment junction nodes, etc. For any steam pipe segment, along the steam flow direction, the node that the steam passes through first is the upstream node, and the node that the steam passes through last is the downstream node. For different steam pipe segments, the same physical node may be both an upstream node and a downstream node, depending on the steam flow direction at that physical node.
[0038] The target heat source can be one of the heat sources in a steam pipeline system, and its steam flow rate is the unknown quantity. For example, in a multi-heat-source ring steam pipeline network, the target heat source can be used as the main heat source, and other heat sources can be used as auxiliary heat sources, with the steam flow rate of the auxiliary heat sources being a known quantity. The steam flow rate of the target heat source can be simulated using the method of this embodiment of the invention.
[0039] Figure 2 A schematic diagram illustrating the iterative relationship between the forward calculation module and the reverse calculation module according to an embodiment of the present invention is shown.
[0040] like Figure 2 As shown, in each iteration, the forward calculation module is executed first, followed by the reverse calculation module. The output of the forward calculation module can be used as the input of the reverse calculation module, and the correction result of the reverse calculation module is used as the input of the forward calculation module in the next iteration.
[0041] like Figure 2 As shown, the forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment, perform hydraulic-thermal coupling simulations sequentially along the steam flow direction to determine the condensate flow rate of each steam pipe segment, obtain the steam state parameters of the downstream nodes of each steam pipe segment, and use the steam state parameters of the downstream nodes as the steam state parameters of the upstream nodes of the next steam pipe segment. The reverse calculation module is configured to: based on the condensate flow rate of each steam pipe segment determined by the forward calculation module and the user's steam demand flow rate, perform hydraulic-thermal coupling simulations sequentially along the opposite direction of steam flow to update the steam flow rates of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship, and use the updated steam flow rates of the downstream nodes of each steam pipe segment along the steam flow direction as the steam flow rates of the corresponding downstream nodes of the steam pipe segment in the next iteration. Through multiple iterations, the steam flow rate of the target heat source is determined as the target simulation result when the convergence condition is met.
[0042] Convergence conditions may include gradually approximating the value of the target heat source's steam flow rate to satisfy the node mass balance relationship and the user's steam demand flow rate through multiple iterations.
[0043] The node mass balance relationship can be expressed as the sum of the steam flow rates of the upstream nodes equals the sum of the steam flow rates of the downstream nodes, the condensate flow rate at the node, and the user steam demand flow rate at the node.
[0044] Hydraulic-thermal coupling simulation refers to the process of solving for parameters such as steam pressure, steam temperature, steam enthalpy, steam density, steam velocity, and condensate flow rate along the steam pipe section, based on the continuity equation, momentum conservation equation, and energy conservation equation of the steam pipe section and coupled with the calculation of steam physical parameters. The forward calculation module and the reverse calculation module can use the same hydraulic-thermal coupling simulation model, but their calculation directions, input parameters, and output parameters are different.
[0045] For example, the forward calculation module simulates segment by segment along the steam flow direction, determining the condensate flow rate of each steam pipe segment and the steam state parameters of downstream nodes, providing the inverse calculation module with the basis for condensate and thermodynamic parameters along the pipe. The inverse calculation module uses the condensate flow rate and user steam demand obtained from the forward calculation module to update the steam flow rate of each node in the opposite direction according to the node mass balance relationship, and uses the updated steam flow rate of the downstream nodes of each steam pipe segment along the steam flow direction as input to the forward calculation module in the next iteration. Thus, the forward and inverse calculation modules alternately correct the flow conditions used in the forward calculation, continuously approaching the true value, and the steam flow rate of the target heat source gradually converges to a value that simultaneously satisfies the user's steam demand and the mass balance relationship of each node.
[0046] According to an embodiment of the present invention, in each iteration, the forward calculation module is executed first, followed by the reverse calculation module. The forward calculation module simulates segment by segment along the steam flow direction, determining the condensate flow rate of each steam pipe segment and the steam state parameters of downstream nodes, providing the reverse calculation module with the basis for condensation and thermodynamic parameters along the pipe. The reverse calculation module uses the condensate flow rate obtained from the forward calculation module and the user's steam demand flow rate to update the steam flow rate of each node in the opposite direction according to the node mass balance relationship, and uses the updated steam flow rate of each downstream node along the steam flow direction as the input of the forward calculation module in the next iteration. Thus, the forward and reverse calculation modules alternately correct, making the flow conditions on which the forward calculation is based continuously approach the true value, and the steam flow rate of the target heat source gradually converges to a value that simultaneously satisfies the user's steam demand and the mass balance relationship of each node. Therefore, the simulation accuracy of the target heat source steam flow rate can be improved without pre-determining the target heat source steam flow rate.
[0047] According to an embodiment of the present invention, the steam state parameters of the upstream nodes of each steam pipe segment include steam density and steam enthalpy. The steam density and steam enthalpy are obtained by interpolation querying a pre-generated physical property parameter table loaded into memory.
[0048] Figure 3 A flowchart of a method for generating a physical property parameter table according to an embodiment of the present invention is shown.
[0049] like Figure 3 As shown, the physical property parameter table can be pre-generated through the following steps S310 to S330.
[0050] In step S310, multiple pressure nodes are generated within a preset pressure range at a preset step size, and the saturation temperature, saturated steam enthalpy and saturated water enthalpy at each pressure node are calculated using a water and water vapor thermodynamic property calculation model. Each pressure node constitutes a one-dimensional pressure range.
[0051] In step S320, multiple two-dimensional grid nodes are generated within a preset pressure range and a preset superheat range according to a preset step size. The superheated steam enthalpy and superheated steam density at each two-dimensional grid node are calculated using a calculation model of the thermodynamic properties of water and water vapor. Each two-dimensional grid node constitutes a two-dimensional grid range.
[0052] In step S330, the correspondence between each pressure node and its corresponding saturated temperature, saturated steam enthalpy and saturated water enthalpy, as well as the correspondence between each two-dimensional grid node and its corresponding superheated steam enthalpy and superheated steam density, are all stored in the physical property parameter table.
[0053] In this embodiment, the calculation model for the thermodynamic properties of water and steam can adopt the IAPWS-IF97 standard. For example, the calculation of saturated steam / saturated water properties can be performed within the range of triple point pressure to critical point pressure. The preset pressure range can be 0.0007 MPa to 22.064 MPa, and the preset step size can be 0.0001 MPa, thereby generating multiple pressure nodes. For each pressure node, the corresponding saturation temperature, saturated steam enthalpy, and saturated water enthalpy are calculated, and the correspondence between each pressure node and the corresponding saturation temperature, saturated steam enthalpy, and saturated water enthalpy is stored in the property parameter table. For the steam pipeline network of the industrial park, the preset pressure range can be 0.001 MPa to 3 MPa, and the pressure step size can be 1 kPa; the preset superheat range can be 0°C to 200°C, and the superheat step size can be 0.2 K. This generates two-dimensional grid nodes, and the superheated steam enthalpy and superheated steam density at each two-dimensional grid node are calculated. The correspondence between each two-dimensional grid node and its corresponding superheated steam enthalpy and superheated steam density is stored in the physical property parameter table.
[0054] In one example, the physical property parameter table can be stored as a binary snapshot and loaded into memory in its entirety at runtime via memory mapping. During queries, a binary search can be used to locate the interval. For one-dimensional pressure intervals, piecewise linear interpolation can be performed; for two-dimensional grid intervals, bilinear interpolation can be used. This reduces the computational cost of querying physical property parameters and improves simulation efficiency.
[0055] According to embodiments of the present invention, by pre-generating a property parameter table, the calculation results of a complex thermodynamic property calculation model for water and steam are stored offline. During simulation, parameters such as steam density and steam enthalpy can be obtained simply by interpolation lookup, eliminating the need to repeatedly call the IAPWS-IF97 standard in each iteration, thus significantly reducing the computational load. Furthermore, since the property parameter table covers both the saturated and superheated regions and has a sufficiently small step size, microsecond-level lookups can be achieved while maintaining interpolation accuracy, improving overall simulation efficiency.
[0056] According to an embodiment of the present invention, when the forward calculation module is executed in the current round, the forward calculation module starts from the heat source and proceeds downstream segment by segment according to the calculation order of each steam pipe segment.
[0057] For each steam pipe segment, the steam pressure and temperature of the upstream node are used as inputs. When the upstream node is in a saturated steam state, linear interpolation within the corresponding one-dimensional pressure range in the property parameter table yields the saturated temperature, saturated steam enthalpy, and saturated water enthalpy of the upstream node. When the upstream node is in a superheated steam state, bilinear interpolation within the corresponding two-dimensional grid range in the property parameter table yields the superheated steam enthalpy and superheated steam density of the upstream node. Using the steam pressure, steam temperature, steam enthalpy, and steam density of the upstream node and the steam flow rate of the downstream node as input parameters, a hydraulic-thermal coupling simulation of the steam pipe segment is performed. The output parameters are the steam pressure, steam temperature, steam enthalpy, and steam density of the downstream node, as well as the condensate flow rate of the steam pipe segment. The forward calculation module uses the steam state parameters of the downstream node as the steam state parameters of the upstream node of the next steam pipe segment.
[0058] Optionally, the upstream node of the steam pipe section can be determined to be in a saturated steam state or a superheated steam state based on the steam pressure and steam temperature of the upstream node.
[0059] According to embodiments of the present invention, by distinguishing between saturated steam and superheated steam states, and using one-dimensional linear interpolation and two-dimensional bilinear interpolation to query the physical property parameter tables respectively, parameters such as steam enthalpy and steam density of upstream nodes can be obtained quickly and accurately. Since the physical property changes in the saturated and superheated regions differ, using one-dimensional and two-dimensional interpolation respectively can better match their physical characteristics and reduce interpolation errors. Furthermore, interpolation queries replace real-time calls to complex water and steam thermodynamic property calculation models, significantly reducing the computational load and thus improving the simulation efficiency and accuracy of the forward calculation module.
[0060] Figure 4A schematic diagram of a multi-heat-source ring steam network according to an embodiment of the present invention is shown.
[0061] According to embodiments of the present invention, such as Figure 4 As shown, the steam network system is a multi-heat-source ring-shaped steam network. A multi-heat-source ring-shaped steam network can include multiple heat sources, multiple users, and a ring-shaped steam pipeline connecting the heat sources and users.
[0062] like Figure 4 As shown, the multi-heat-source ring-shaped steam network includes a main heat source, an auxiliary heat source, and users 1 to 6. The main heat source serves as the target heat source, and the auxiliary heat sources serve as other heat sources. The main heat source and auxiliary heat sources are connected to each user through a ring-shaped steam pipeline. The steam demand flow rate of each user is known.
[0063] In this embodiment, since the steam pipeline network is a ring structure, the steam flow direction in each steam pipe section may change with the operating conditions. Therefore, before executing the forward calculation module and the reverse calculation module, it is necessary to determine the steam flow direction of each steam pipe section.
[0064] Optionally, in the initial iteration round, condensate generation in each steam pipe segment is ignored. Based on the mass flow conservation at the upstream and downstream nodes of each steam pipe segment and the energy conservation of each loop, hydraulic calculations are performed on the steam pipe network system to determine the initial steam flow direction of each steam pipe segment. In non-initial iteration rounds, the condensate flow rate of each upstream and downstream node is determined based on the condensate flow rate of each steam pipe segment in the previous round, and the steam flow direction of each steam pipe segment in the previous round is updated using a flow direction analysis algorithm. Specifically, the condensate flow rate of each upstream and downstream node can be used as part of the node outflow in the node mass flow conservation relationship, which together with the user's steam demand flow rate constitutes the node outflow, thereby updating the node mass flow conservation relationship. Then, based on the updated node mass flow conservation relationship and loop energy conservation relationship, the mass flow rate and steam flow direction of each steam pipe segment are re-solved using a flow direction analysis algorithm.
[0065] For example, the Hardy-Cross Newton correction method can be used for flow direction analysis. Governing equations can be constructed based on the conservation of nodal mass flow rate and loop energy. The mass flow rate of each steam pipe segment is solved through Newton iteration, and the steam flow direction of each segment is determined based on the sign of the mass flow rate. Nodal mass flow rate conservation means that the sum of the mass flow rates of all steam pipe segments flowing into any node equals the sum of the mass flow rates of all steam pipe segments flowing out of that node. Loop energy conservation means that the sum of the pressure drops of all steam pipe segments within any loop is zero. After ensuring that the loop energy closure error is less than a preset threshold through Newton iteration, the steam flow direction of each segment is determined based on the sign of its mass flow rate.
[0066] Optionally, in non-initial iterations, before executing the forward calculation module, the steam flow direction of each steam pipe segment can be updated based on the condensate flow rate of each segment in the previous iteration. Then, the calculation order of each steam pipe segment can be determined according to the updated steam flow direction, and the forward calculation module can be executed. The updated steam flow direction of each steam pipe segment is used to determine the calculation order of each steam pipe segment by the forward and reverse calculation modules. For example, after updating the steam flow direction of each steam pipe segment, the information transmission hierarchy table can be re-determined based on the updated steam flow direction, or the calculation order of each steam pipe segment in the forward and reverse calculation modules can be updated, so that the forward calculation module performs hydraulic-thermal coupling simulation segment by segment along the updated steam flow direction, and the reverse calculation module performs hydraulic-thermal coupling simulation segment by segment along the opposite direction of the updated steam flow direction.
[0067] After determining the steam flow direction of each steam pipe segment, the forward calculation module can sequentially perform hydraulic-thermal coupling simulations on each steam pipe segment according to the calculation order of each segment. The simulations use the steam pressure, steam temperature, steam enthalpy, and steam density of the upstream node, the steam flow rate of the downstream node, as well as the frictional resistance factor and heat loss coefficient, as input parameters. The module outputs the steam pressure, steam temperature, steam enthalpy, and steam density of the downstream node, as well as the condensate flow rate of each steam pipe segment. The forward calculation module uses the steam state parameters of the downstream node as the steam state parameters of the upstream node of the next steam pipe segment.
[0068] According to embodiments of the present invention, by determining the steam flow direction of each steam pipe segment in a multi-heat-source annular steam pipe network, and using hydraulic calculations ignoring condensate generation to determine the initial flow direction in the initial iteration round, and updating the flow direction in subsequent iteration rounds based on condensate flow rate and flow direction analysis algorithms, the system can adapt to the characteristics of steam flow direction changes with operating conditions in the annular pipe network. Based on this, the forward calculation module performs hydraulic-thermal coupling simulation segment by segment using friction resistance factor and heat dissipation loss coefficient as input parameters, outputting the steam state parameters and condensate flow rate of the downstream nodes of each steam pipe segment. This provides a basis for the reverse calculation module to update the steam flow rate of each node according to the node mass balance relationship, thereby improving the simulation accuracy of the target heat source steam flow rate without pre-determining the target heat source steam flow rate.
[0069] According to an embodiment of the present invention, the method for simulating steam flow in a steam pipeline network system further includes: starting from each heat source in at least one heat source, constructing an information transmission hierarchy table by layer-by-layer diffusion using a breadth-first search strategy. The information transmission hierarchy table is used to determine the calculation order of the forward calculation module and the reverse calculation module for hydraulic-thermal coupling simulation of each steam pipe segment; the forward order of the information transmission hierarchy table is determined as the calculation order of each steam pipe segment in the forward calculation module. Alternatively, the reverse order of the information transmission hierarchy table can be determined as the calculation order of each steam pipe segment in the reverse calculation module. In each diffusion layer, the steam pipe segments connected to each node that has been visited in the current layer are traversed, and the other end node of the traversed steam pipe segment other than the node in the current layer is taken as a candidate node. The candidate node is added to the next layer only when all inflow pipe segments of the candidate node have been visited.
[0070] Specifically, the information transmission hierarchy table can be a table structure formed by arranging each steam pipe segment according to the accessed level. The forward calculation module performs hydraulic-thermal coupling simulation segment by segment along the steam flow direction, requiring the upstream steam pipe segment to be processed first, followed by the downstream steam pipe segment; the reverse calculation module performs hydraulic-thermal coupling simulation segment by segment along the opposite direction of steam flow, requiring the downstream steam pipe segment to be processed first, followed by the upstream steam pipe segment. Therefore, the information transmission hierarchy table is used to provide a unified and orderly calculation order for the forward and reverse calculation modules.
[0071] By defining the ascending order of the information transmission hierarchy as the calculation order for each steam pipe segment in the forward calculation module, the forward calculation module ensures that when simulating a particular steam pipe segment, the steam state parameters of the upstream nodes of that segment have already been determined by the previous steam pipe segment. In other words, the forward calculation module can proceed segment by segment from the heat source side to the downstream side according to the ascending order of the information transmission hierarchy, with the upstream node steam state parameters for each simulation already determined, thus avoiding errors in the calculation order.
[0072] The current layer node represents the node that has been visited so far. By traversing the steam pipe segments it connects to, we can find the adjacent nodes that have not yet been visited. The node at the other end of the steam pipe segment besides the current layer node is used as a candidate node in order to expand outward along the steam pipe network topology.
[0073] The inflow pipe segment is relative to the candidate node and refers to the steam pipe segment whose steam flow direction points towards that candidate node. Determining whether all inflow pipe segments of a candidate node have been visited ensures that all upstream dependencies of that candidate node have been processed. If an inflow pipe segment has not yet been visited, it indicates that the upstream information of that candidate node is incomplete. In this case, it is not advisable to add it to the next layer, otherwise it may lead to missing upstream state parameters during forward calculation or incomplete downstream flow demand transmission during reverse calculation.
[0074] Therefore, by starting from each heat source and employing a breadth-first search strategy to expand outward layer by layer, and only adding a candidate node to the next layer after all its inflow pipe segments have been visited, the arrangement order of the steam pipe segments in the information transmission hierarchy table can be guaranteed to conform to the steam flow dependency relationship. The forward calculation module can perform hydraulic-thermal coupling simulation segment by segment according to the forward order of the information transmission hierarchy table, while the reverse calculation module can perform hydraulic-thermal coupling simulation segment by segment according to the reverse order of the information transmission hierarchy table. Therefore, the information transmission hierarchy table provides a unified and orderly calculation order for the forward and reverse calculation modules, avoiding upstream parameter loss and duplicate calculations caused by disordered calculation order, and improving the overall simulation efficiency.
[0075] Figure 5 A flowchart of a method for constructing a hierarchical information transmission table according to an embodiment of the present invention is shown.
[0076] For example, such as Figure 5 As shown, the construction of the information transmission hierarchy table may include the following steps S510 to S560.
[0077] In step S510, each heat source in at least one heat source is used as the current layer node, each heat source is added to the set of visited nodes, and the set of visited pipe segments is initialized.
[0078] In step S520, during each layer of diffusion, the steam pipe segments connected to each visited node in the current layer are traversed, and the other end node of the traversed steam pipe segment other than the node in the current layer is taken as a candidate node.
[0079] In step S530, nodes that have not been added to the set of visited nodes are identified as candidate nodes for the next layer.
[0080] In step S540, for each candidate node in the next layer of candidate nodes, it is determined whether all inflow pipe segments of the candidate node have been visited. Only when all inflow pipe segments of the candidate node have been visited is the candidate node added to the next layer of node set.
[0081] In step S550, the next layer node set is used as the current layer node set for the next round of diffusion, and each node in the next layer node set is added to the visited node set. Then, the step of traversing the steam pipe segments connected to each visited node in the current layer is returned until the number of pipe segments in the visited pipe segment set reaches the total number of pipe segments in the steam pipe network system.
[0082] In step S560, an information transmission hierarchy table is generated according to the hierarchical order in which each steam pipe segment is accessed.
[0083] In this example, each heat source can be understood as a layer 0 node in a breadth-first search, also known as the seed layer of the source points. Adding each heat source to the visited node set indicates that the heat source node has been visited and will not be added again later. Initializing the visited pipe segment set to empty indicates that no steam pipe segments have been visited. The visited node set records visited nodes to avoid duplicate node processing; the visited pipe segment set records visited steam pipe segments to avoid duplicate steam pipe segment processing and serves as the basis for determining diffusion termination.
[0084] For each steam pipe segment encountered during traversal, if the segment has not yet been visited, its other end node is designated as a candidate node. Nodes among the candidate nodes that have not yet been added to the set of visited nodes are then identified as candidate nodes for the next level. This process removes visited nodes from the candidate nodes while retaining unvisited nodes, avoiding redundant processing.
[0085] Determining whether all inflow pipe segments have been visited is to ensure that the upstream steam pipe segments of the candidate node have been completely processed, thus enabling the candidate node to enter the next level.
[0086] Return to the step of traversing the steam pipe segments connected to each visited node in the current layer. In other words, repeat the layer-by-layer diffusion process. In each round, the current layer node set is updated to the next layer node set, and the set of visited nodes and the set of visited pipe segments are continuously expanded until all steam pipe segments have been visited.
[0087] The information transmission hierarchy table includes all visited steam pipe segments, arranged hierarchically. Therefore, the information transmission hierarchy table reflects the hierarchical relationships and flow dependencies of each steam pipe segment within the steam network.
[0088] The above method ensures that the arrangement order of each steam pipe segment in the information transmission hierarchy table conforms to the steam flow dependency relationship. The forward calculation module can perform hydraulic-thermal coupling simulation segment by segment according to the forward order of the information transmission hierarchy table, ensuring that the steam state parameters of the upstream node are determined during the simulation of each segment; the reverse calculation module can perform hydraulic-thermal coupling simulation segment by segment according to the reverse order of the information transmission hierarchy table, ensuring that the steam flow demand of the downstream node is transmitted during the simulation of each segment.
[0089] According to an embodiment of the present invention, for non-initial iteration rounds, before executing the forward calculation module, the simulation method for heat source steam flow in the steam pipeline system further includes: updating the friction resistance factor and heat dissipation loss coefficient of each steam pipeline using an error-driven asymptotic correction method based on the change gradient of the steam flow of the target heat source in the current round relative to the previous round; wherein, the change gradient is positively correlated with the update magnitude.
[0090] In this embodiment, the gradient of change can represent the relative change in the steam flow rate of the target heat source in the current cycle compared to the previous cycle. For example, the gradient of change can be calculated according to the following formula:
[0091] ;
[0092] in, This represents the gradient of the steam flow rate of the target heat source in the i-th iteration relative to the (i-1)-th iteration. This represents the steam flow rate of the target heat source in the i-th iteration. This represents the steam flow rate of the target heat source in the (i-1)th iteration.
[0093] Error-driven asymptotic correction methods can include determining the update magnitude based on the gradient of change; a larger gradient results in a larger update magnitude, and a smaller gradient results in a smaller update magnitude. For example, the friction drag factor and heat dissipation loss coefficient can be updated as follows:
[0094] , ;
[0095] , ;
[0096] Among them, f old f represents the friction drag factor before the update. calc f represents the friction drag factor calculated based on the current flow regime. new This represents the updated friction drag factor; k old k represents the heat loss coefficient before the update. calc k represents the heat loss coefficient calculated based on the current flow regime. new This represents the updated heat loss coefficient; and These are the update coefficients for the friction resistance factor and the heat dissipation loss coefficient, respectively, which are automatically scaled as the gradient changes.
[0097] Therefore, when the steam flow rate of the target heat source changes significantly, it indicates a significant change in the flow regime of the pipeline network. In this case, the friction resistance factor and heat dissipation loss coefficient are updated by a larger margin to ensure that the simulation parameters reflect the current flow regime in a timely manner. When the steam flow rate of the target heat source changes only slightly, it indicates that the current flow field is close to convergence. In this case, the friction resistance factor and heat dissipation loss coefficient are updated by a smaller margin to avoid iterative oscillations caused by frequent and large parameter updates. Thus, by using an error-driven asymptotic correction method, the number of overall external iterations can be reduced, improving the robustness of the simulation process.
[0098] According to an embodiment of the present invention, when the forward calculation module and / or the reverse calculation module perform hydraulic-thermal coupling simulation on each steam pipe section, the simulation is performed simultaneously on each steam pipe section at the same level using a thread pool parallel calculation method, according to the information transmission hierarchical table.
[0099] In the hierarchical information transmission table, there is no upstream and downstream dependency between steam pipe segments at the same level, allowing for parallel hydraulic-thermal coupling simulations. The thread pool can include multiple threads, each used to execute the hydraulic-thermal coupling simulation of one or more steam pipe segments. The forward calculation module can assign steam pipe segments at the same level to multiple threads in the thread pool for parallel execution, following the ascending order of the hierarchical information transmission table; the reverse calculation module can assign steam pipe segments at the same level to multiple threads in the thread pool for parallel execution, following the descending order of the hierarchical information transmission table.
[0100] For example, for the Lth level steam pipe segment in the information transmission hierarchy table, it can be assigned to multiple threads in the thread pool for simultaneous simulation. Each thread independently completes the hydraulic-thermal coupling simulation of the corresponding steam pipe segment, outputting the steam state parameters and condensate flow rate of the downstream node of the steam pipe segment. After the simulation of all steam pipe segments in the Lth level is completed, the simulation of the L+1th or L-1th level will then begin. L is a positive integer.
[0101] Therefore, by using thread pool parallel computing, multi-core computing resources can be fully utilized, shortening the simulation time for multiple steam pipe segments and improving overall simulation efficiency. Furthermore, since there are no upstream or downstream dependencies between steam pipe segments within the same level, parallel computing does not disrupt the computation order determined by the information transmission hierarchy table, ensuring the accuracy of the simulation results.
[0102] According to an embodiment of the present invention, the method for simulating the steam flow rate of a heat source in a steam pipeline network system further includes: determining the change in the steam flow rate of the target heat source in the current round relative to the previous round after each iteration is completed; storing the change in flow rate determined after each iteration into the current window with a preset number of rounds as the window size; when the number of change in flow rate in the current window reaches the preset number of rounds, removing the earliest change in flow rate in the current window for each newly added change in flow rate, so that the current window always maintains the change in flow rate for the consecutive preset number of rounds; and determining that the convergence condition is met when all change in flow rate in the current window is less than the preset change rate threshold.
[0103] The flow rate change is used to characterize the degree of change in the steam flow rate of the target heat source between two adjacent iterations. After each iteration, the steam flow rate of the target heat source in the current iteration and the steam flow rate in the previous iteration can be obtained, and the flow rate change is determined based on these two values. The flow rate change can be the difference between the steam flow rate in the current iteration and the steam flow rate in the previous iteration, or it can be the absolute value of this difference, as long as it reflects the magnitude of the change in the steam flow rate of the target heat source between two adjacent iterations. This invention does not limit the specific calculation method of the flow rate change.
[0104] The preset number of iterations is used to limit the number of consecutive iterations used for convergence judgment. A current window is constructed with the preset number of iterations as its size. The current window can be a first-in, first-out queue with a capacity equal to the preset number of iterations. After each iteration, the determined flow change is stored in the current window. Once the number of flow changes in the current window reaches the preset number of iterations, for each new flow change, the oldest flow change in the current window is removed, ensuring that the current window always contains the flow changes corresponding to the most recent consecutive preset number of iterations. In other words, the current window always stores the flow changes corresponding to the most recent consecutive preset number of iterations.
[0105] If all flow rate changes within the current window are less than a preset change threshold, the convergence condition is considered met. For example, in this invention, a sliding window can be used to monitor the main heat source flow rate fluctuation in real time. Once the change is less than 0.0001 t / h for 10 consecutive iterations, convergence is determined. In this case, the preset number of iterations can be 10, and the preset change threshold can be 0.0001 t / h. When the flow rate change is less than 0.0001 t / h for 10 consecutive iterations, the steam flow rate of the target heat source is determined to have converged, the iteration stops, and the target heat source steam flow rate determined in the current iteration is taken as the target simulation result.
[0106] Therefore, by monitoring the flow changes over multiple consecutive iterations using a sliding window, misjudgments of convergence due to single-cycle flow fluctuations can be avoided, improving the accuracy of convergence determination. Furthermore, by ensuring that the current window always reflects the flow changes over a preset number of iterations, convergence determination is always based on the results of the most recent consecutive iterations, improving the real-time performance and reliability of convergence assessment.
[0107] Another aspect of the present invention provides a simulation device for steam flow rate of a heat source in a steam pipeline network system. The steam pipeline network system includes at least one heat source, a steam pipeline, and users. Steam from the heat source is transported to the users via the steam pipeline. The steam pipeline includes multiple steam pipe segments, with upstream and downstream nodes respectively at both ends of each steam pipe segment along the steam flow direction. The at least one heat source includes a target heat source whose steam flow rate is the quantity to be determined. The device includes an iteration module for performing multiple iterations on a forward calculation module and a reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met, at which point the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment... The steam flow rate is determined by performing hydraulic-thermal coupling simulations on each steam pipe segment sequentially along the steam flow direction to obtain the condensate flow rate of each steam pipe segment and the steam state parameters of the downstream nodes of each steam pipe segment. The steam state parameters of the downstream nodes are then used as the steam state parameters of the upstream nodes of the next steam pipe segment. The reverse calculation module is configured to perform hydraulic-thermal coupling simulations on each steam pipe segment sequentially along the opposite direction of steam flow, based on the condensate flow rate of each steam pipe segment and the user's steam demand flow rate determined by the forward calculation module. This updates the steam flow rate of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship, and the updated steam flow rate of the downstream nodes of each steam pipe segment along the steam flow direction is used as the steam flow rate of the downstream nodes of the corresponding steam pipe segment in the next iteration.
[0108] According to embodiments of the present invention, any module in the iterative module can be divided into multiple modules. Alternatively, at least a portion of the functionality of one or more of these modules can be combined with at least a portion of the functionality of other modules and implemented in a single module. According to embodiments of the present invention, the iterative module can be partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuitry, or implemented in hardware or firmware, or in any one of software, hardware, and firmware implementations, or in a suitable combination of any of these. Alternatively, the iterative module can be implemented as a computer program module, which, when run, can perform corresponding functions.
[0109] It should be noted that the part of the heat source steam flow simulation device in the steam pipeline system in the embodiments of the present invention corresponds to the part of the heat source steam flow simulation method in the steam pipeline system in the embodiments of the present invention. For a detailed description of the part of the heat source steam flow simulation device in the steam pipeline system, please refer to the part of the heat source steam flow simulation method in the steam pipeline system, which will not be repeated here.
[0110] Those skilled in the art will understand that the features described in the various embodiments of the present invention can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments of the present invention can be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All such combinations and / or combinations fall within the scope of the present invention.
[0111] The embodiments of the present invention have been described above. However, these embodiments are merely illustrative and not intended to limit the scope of the invention. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of the invention, and all such substitutions and modifications should fall within the scope of the invention.
Claims
1. A method for simulating steam flow rate of a heat source in a steam pipeline network system, wherein the steam pipeline network system includes at least one heat source, a steam pipeline, and users, wherein steam from the heat source is transported to the users via the steam pipeline, the steam pipeline includes multiple steam pipe segments, and each steam pipe segment is designated as an upstream node and a downstream node at both ends along the steam flow direction, and the at least one heat source includes a target heat source whose steam flow rate is the quantity to be determined; characterized in that, The method includes: Multiple iterations are performed on the forward calculation module and the reverse calculation module. In each iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met. Then, the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment, perform hydraulic-thermal coupling simulation on each steam pipe segment in sequence along the steam flow direction to determine the condensate flow rate of each steam pipe segment, and obtain the steam state parameters of the downstream nodes of each steam pipe segment, and use the steam state parameters of the downstream nodes as the steam state parameters of the upstream nodes of the next steam pipe segment; The reverse calculation module is configured to: based on the condensate flow rate of each steam pipe segment determined by the forward calculation module and the steam demand flow rate of the user, perform hydraulic-thermal coupling simulation on each steam pipe segment in the opposite direction to the steam flow, so as to update the steam flow rate of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship, and use the updated steam flow rate of the downstream node of each steam pipe segment along the steam flow direction as the steam flow rate of the corresponding downstream node in the next iteration.
2. The method according to claim 1, characterized in that, When the forward calculation module is executed in the current round, the forward calculation module starts from the heat source and proceeds downstream segment by segment according to the calculation order of each steam pipe segment; For each of the steam pipe segments, the steam pressure and steam temperature of the upstream node of the steam pipe segment are used as inputs; When the upstream node of the steam pipe section is in a saturated steam state, the saturated temperature, saturated steam enthalpy and saturated water enthalpy of the upstream node of the steam pipe section are obtained by linear interpolation within the corresponding one-dimensional pressure range in the physical property parameter table. When the upstream node of the steam pipe section is in a superheated steam state, the superheated steam enthalpy and superheated steam density of the upstream node of the steam pipe section are obtained by bilinear interpolation within the corresponding two-dimensional grid interval in the physical property parameter table. Using the steam pressure, steam temperature, steam enthalpy, and steam density of the upstream node and the steam flow rate of the downstream node of the steam pipe section as input parameters, a hydraulic-thermal coupling simulation is performed on the steam pipe section, and the output is the steam pressure, steam temperature, steam enthalpy, and steam density of the downstream node of the steam pipe section, as well as the condensate flow rate of the steam pipe section.
3. The method according to claim 2, characterized in that, The steam state parameters of the upstream nodes of each steam pipe segment include steam density and steam enthalpy; the steam density and steam enthalpy are obtained by interpolation querying the physical property parameter table that has been pre-generated and loaded into memory; The physical property parameter table is generated in advance through the following steps: Multiple pressure nodes are generated within a preset pressure range at a preset step size, and the saturation temperature, saturated steam enthalpy, and saturated water enthalpy at each pressure node are calculated using a water and water vapor thermodynamic property calculation model. Each pressure node constitutes the one-dimensional pressure range. Multiple two-dimensional grid nodes are generated within a preset pressure range and a preset superheat range at a preset step size. The superheated steam enthalpy and superheated steam density at each two-dimensional grid node are calculated using a water and steam thermodynamic property calculation model. Each two-dimensional grid node constitutes the two-dimensional grid range. The correspondence between each pressure node and its corresponding saturation temperature, saturated steam enthalpy, and saturated water enthalpy, as well as the correspondence between each two-dimensional grid node and its corresponding superheated steam enthalpy and superheated steam density, are all stored in the physical property parameter table.
4. The method according to claim 2, characterized in that, The steam pipeline system is a multi-heat-source ring steam pipeline network, with the target heat source serving as the main heat source and other heat sources serving as auxiliary heat sources. The steam flow rate of the auxiliary heat sources is a known quantity. The process involves performing hydraulic-thermal coupling simulations on each steam pipe segment sequentially along the steam flow direction, based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes. This includes: According to the calculation order of each steam pipe segment, the steam pressure, steam temperature, steam enthalpy, steam density of the upstream node and the steam flow rate of the downstream node of each steam pipe segment, as well as the friction resistance factor and heat dissipation loss coefficient are used as input parameters. Hydraulic-thermal coupling simulation is performed on each steam pipe segment in sequence along the steam flow direction. The output is the steam pressure, steam temperature, steam enthalpy and steam density of the downstream node of each steam pipe segment, as well as the condensate flow rate of each steam pipe segment. In the initial iteration, the steam flow direction is determined by ignoring the condensate generation of each steam pipe segment and by performing hydraulic calculations on the steam pipe network system based on the mass flow conservation at the upstream and downstream nodes of each steam pipe segment and the energy conservation of each loop. In non-initial iterations, the condensate flow rates of each upstream and downstream node are determined based on the condensate flow rates of each steam pipe segment in the previous iteration, and the steam flow direction of each steam pipe segment in the previous iteration is updated using a flow direction analysis algorithm.
5. The method according to claim 2, characterized in that, The method further includes: Starting from each of the at least one heat source, a breadth-first search strategy is used to construct an information transmission hierarchy table by spreading outward layer by layer. The information transmission hierarchy table is used to determine the calculation order of the forward calculation module and the reverse calculation module for the hydraulic-thermal coupling simulation of each steam pipe segment. The ascending order of the information transmission hierarchy table is determined as the calculation order of each steam pipe segment in the forward calculation module; In each diffusion layer, the steam pipe segments connected to each visited node in the current layer are traversed. The other end node of the traversed steam pipe segment other than the node in the current layer is taken as a candidate node. The candidate node is added to the next layer only when all inflow pipe segments of the candidate node have been visited.
6. The method according to claim 5, characterized in that, The process of constructing a hierarchical information transmission table, starting from each of the at least one heat source and employing a breadth-first search strategy to expand outwards layer by layer, includes: Using each of the at least one heat source as the current layer node, add each heat source to the set of visited nodes, and initialize the set of visited pipe segments; In each layer of diffusion, traverse each steam pipe segment connected to each visited node in the current layer, and take the other end node of the traversed steam pipe segment other than the current layer node as a candidate node. Nodes that are not included in the visited node set among the candidate nodes are identified as candidate nodes for the next layer. For each candidate node in the next layer of candidate nodes, determine whether all inflow pipe segments of the candidate node have been visited. Only when all inflow pipe segments of the candidate node have been visited, add the candidate node to the next layer of node set. The next layer node set is used as the current layer node set for the next round of diffusion, and each node in the next layer node set is added to the visited node set. The process of traversing the steam pipe segments connected to each visited node in the current layer is repeated until the number of pipe segments in the visited pipe segment set reaches the total number of pipe segments in the steam pipe network system. The information transmission hierarchy table is generated according to the hierarchical order in which each steam pipe segment is accessed.
7. The method according to claim 4, characterized in that, For non-initial iteration rounds, before executing the forward calculation module, the method further includes: Based on the gradient of the steam flow rate of the target heat source in the current cycle relative to the previous cycle, an error-driven asymptotic correction method is used to update the friction resistance factor and heat loss coefficient of each steam pipe; wherein the gradient of change is positively correlated with the update magnitude.
8. The method according to claim 5, characterized in that, When the forward calculation module and / or the reverse calculation module perform hydraulic-thermal coupling simulation on each steam pipe section, they simultaneously perform simulation on each steam pipe section at the same level using a thread pool parallel calculation method, according to the information transmission hierarchical table.
9. The method according to claim 1, characterized in that, The method further includes: Upon completion of each iteration, determine the change in steam flow rate of the target heat source in the current round relative to the flow rate in the previous round; Using a preset number of rounds as the window size, store the determined flow change after each iteration into the current window; If the number of traffic changes in the current window reaches the preset number of rounds, each time a new traffic change is added, the earliest traffic change in the current window is removed, so that the current window always maintains the traffic change for the preset number of rounds. If all traffic changes in the current window are less than a preset change threshold, the convergence condition is determined to be met.
10. A device for simulating steam flow rate of a heat source in a steam pipeline network system, the steam pipeline network system comprising at least one heat source, a steam pipeline, and a user, wherein steam from the heat source is transported to the user via the steam pipeline, the steam pipeline comprising multiple steam pipe segments, each of the steam pipe segments having an upstream node and a downstream node at both ends along the steam flow direction, and the at least one heat source comprising a target heat source whose steam flow rate is the quantity to be determined; characterized in that, The device includes: The iteration module is used to perform multiple rounds of iteration on the forward calculation module and the reverse calculation module. In each round of iteration, the forward calculation module and the reverse calculation module are executed sequentially until the convergence condition is met, and the steam flow rate of the target heat source is determined as the target simulation result. The forward calculation module is configured to: based on the steam state parameters of the upstream nodes and the steam flow rate of the downstream nodes of each steam pipe segment, perform hydraulic-thermal coupling simulation on each steam pipe segment in sequence along the steam flow direction to determine the condensate flow rate of each steam pipe segment, and obtain the steam state parameters of the downstream nodes of each steam pipe segment, and use the steam state parameters of the downstream nodes as the steam state parameters of the upstream nodes of the next steam pipe segment; The reverse calculation module is configured to: based on the condensate flow rate of each steam pipe segment determined by the forward calculation module and the steam demand flow rate of the user, perform hydraulic-thermal coupling simulation on each steam pipe segment in the opposite direction to the steam flow, so as to update the steam flow rate of the upstream and downstream nodes of each steam pipe segment according to the node mass balance relationship, and use the updated steam flow rate of the downstream node of each steam pipe segment along the steam flow direction as the steam flow rate of the corresponding downstream node in the next iteration.
