Search

CN-121809349-B - Steam simulation method, device, equipment and medium based on flow direction pre-solving

CN121809349BCN 121809349 BCN121809349 BCN 121809349BCN-121809349-B

Abstract

The application discloses a steam simulation method, a device, equipment and a medium based on flow direction pre-solving, which relate to the field of steam simulation and comprise the steps of setting steam output for end nodes of a current steam pipe network, adjusting a pipe network steam source according to an increased value of the steam output of the pipe network, carrying out hydraulic calculation pre-solving on a preset first mathematical model according to the obtained adjusted virtual steam pipe network, correcting the pipeline flow direction of the pipe network according to an obtained hydraulic pre-solving result to obtain a virtual steam pipe network to be mapped, mapping the hydraulic pre-solving result to a preset fine grid, determining the leakage amount of the pipe network after mapping, correcting the leakage amount according to the leakage amount, solving the preset second mathematical model through the obtained corrected virtual steam pipe network to obtain operation parameters of all nodes in the pipe network, and correcting the condensation amount of the pipe network by utilizing condensation amount distribution of all nodes determined based on the operation parameters so as to carry out steam simulation on the pipe network through the obtained target virtual steam pipe network. Thus, the accuracy of the steam simulation can be improved.

Inventors

  • LIU WENHAO
  • Luan xing
  • WANG WENBO
  • ZHOU LELE
  • LU XUNPU

Assignees

  • 上海叁零肆零科技有限公司

Dates

Publication Date
20260508
Application Date
20260311

Claims (10)

  1. 1. The steam simulation method based on flow direction pre-solving is characterized by comprising the following steps of: Setting the steam outlet amount of a pipe network end node in a current steam pipe network to obtain a corresponding initial virtual steam pipe network, and counting the steam outlet amount increasing value of the initial virtual steam pipe network to distribute the steam outlet amount increasing value to a steam source of the initial virtual steam pipe network so as to obtain an adjusted virtual steam pipe network; carrying out hydraulic calculation pre-solving on a preset first mathematical model through the adjusted virtual steam pipe network, and correcting the pipeline flow direction of the adjusted virtual steam pipe network through an obtained hydraulic pre-solving result so as to obtain a virtual steam pipe network to be mapped; Mapping the hydraulic pre-solving result of the virtual steam pipe network to be mapped to a preset fine grid to obtain a virtual steam pipe network to be corrected, determining the leakage amount of the virtual steam pipe network to be corrected, and correcting the virtual steam pipe network to be corrected based on the leakage amount to obtain a corrected virtual steam pipe network; solving a preset second mathematical model based on the corrected virtual steam pipe network to obtain operation parameters of all nodes in the corrected virtual steam pipe network, correcting the condensation quantity of the corrected virtual steam pipe network by utilizing condensation quantity distribution of all nodes in the corrected virtual steam pipe network determined based on the operation parameters to obtain a target virtual steam pipe network, and performing steam simulation based on the target virtual steam pipe network.
  2. 2. The steam simulation method based on flow direction pre-solving according to claim 1, wherein the setting the steam outlet amount of the end node of the current steam pipe network to obtain a corresponding initial virtual steam pipe network, and counting the steam outlet amount increase value of the initial virtual steam pipe network to distribute the steam outlet amount increase value to the steam source of the initial virtual steam pipe network to obtain an adjusted virtual steam pipe network comprises: Identifying end nodes of a current steam pipe network, and setting the steam outlet quantity of the end nodes as a preset steam outlet quantity to obtain an initial virtual steam pipe network; And counting the steam outlet amount increasing value of the initial virtual steam pipe network, and distributing the steam outlet amount increasing value to the steam source nodes of the initial virtual steam pipe network based on a preset distribution proportion so as to obtain the adjusted virtual steam pipe network.
  3. 3. The steam simulation method based on flow direction pre-solving according to claim 1, wherein the performing hydraulic calculation pre-solving on the preset first mathematical model through the adjusted virtual steam pipe network, and correcting the pipeline flow direction of the adjusted virtual steam pipe network through the obtained hydraulic pre-solving result to obtain a virtual steam pipe network to be mapped comprises: Carrying out hydraulic calculation pre-solving on a preset first mathematical model through the adjusted virtual steam pipe network to obtain a hydraulic pre-solving result corresponding to the adjusted virtual steam pipe network, wherein the hydraulic pre-solving result comprises mass distribution, pressure distribution and flow distribution corresponding to the virtual steam pipe network; And determining the current pipeline flow direction in the adjusted virtual steam pipe network based on the mass distribution, the pressure distribution and the flow distribution, and adjusting the upstream-downstream relationship of the adjusted virtual steam pipe network based on the pipeline flow direction to obtain the virtual steam pipe network to be mapped.
  4. 4. The steam simulation method based on flow direction pre-solving according to claim 1, wherein mapping the hydraulic pre-solving result of the virtual steam pipe network to be mapped to a preset fine grid to obtain the virtual steam pipe network to be corrected comprises: Mapping the pre-solved result of the virtual steam pipe network to be mapped to a preset fine grid through a preset numerical interpolation algorithm to obtain the virtual steam pipe network to be corrected, wherein the preset fine grid is a grid with grid resolution higher than that of the current grid of the virtual steam pipe network to be corrected.
  5. 5. The steam simulation method based on flow direction pre-solving according to claim 1, wherein the determining the leakage amount of the virtual steam pipe network to be corrected to correct the virtual steam pipe network to be corrected based on the leakage amount, to obtain a corrected virtual steam pipe network, includes: counting the current total input flow and the total output flow of the virtual steam pipe network to be corrected; If the total input flow is not smaller than the total output flow, the virtual steam pipe network to be corrected is used as the corrected virtual steam pipe network; And if the total input flow is smaller than the total output flow, determining leakage amount based on the total input flow and the total output flow, and compressing the total output flow to be equal to the total input flow based on the leakage amount so as to obtain the corrected virtual steam pipe network.
  6. 6. The steam simulation method based on flow direction pre-solving according to claim 4, wherein the solving the preset second mathematical model based on the corrected virtual steam pipe network to obtain the operation parameters of each node in the corrected virtual steam pipe network comprises; Performing spatial dispersion on a preset second mathematical model based on the preset numerical interpolation algorithm to obtain a discrete mathematical model, and performing iterative solution on the discrete mathematical model through the corrected virtual steam pipe network to obtain operation parameters of each node in the corrected virtual steam pipe network, wherein the preset second mathematical model is a model for introducing equivalent leakage coefficients into the preset first mathematical model, and the equivalent leakage coefficients are coefficients representing condensing quality loss intensity.
  7. 7. The steam simulation method based on flow direction pre-solving according to any one of claims 1 to 6, wherein the performing condensation amount correction on the corrected virtual steam pipe network by using the condensation amount distribution of each node in the corrected virtual steam pipe network determined based on the operation parameters to obtain a target virtual steam pipe network, and performing steam simulation based on the target virtual steam pipe network, comprises; determining condensation quantity distribution of each node in the corrected virtual steam pipe network based on the operation parameters; And if the condensation quantity distribution is a negative value, reducing the condensation quantity of each node based on the steam consumption proportion of each node until the current middle total input flow of the corrected virtual steam pipe network is equal to the total output flow so as to obtain a target virtual steam pipe network, and performing steam simulation based on the target virtual steam pipe network.
  8. 8. A steam simulation device based on flow direction pre-solving, comprising: The steam pipe network adjusting module is used for setting the steam outlet amount of the pipe network end node in the current steam pipe network to obtain a corresponding initial virtual steam pipe network, counting the steam outlet amount increasing value of the initial virtual steam pipe network, and distributing the steam outlet amount increasing value to the steam source of the initial virtual steam pipe network to obtain an adjusted virtual steam pipe network; the pipeline flow direction correction module is used for carrying out hydraulic calculation pre-solving on a preset first mathematical model through the adjusted virtual steam pipe network, and correcting the pipeline flow direction of the adjusted virtual steam pipe network through an obtained hydraulic pre-solving result so as to obtain a virtual steam pipe network to be mapped; The steam pipe network correction module is used for mapping the hydraulic pre-solving result of the virtual steam pipe network to be mapped to a preset fine grid to obtain a virtual steam pipe network to be corrected, determining the leakage amount of the virtual steam pipe network to be corrected, and correcting the virtual steam pipe network to be corrected based on the leakage amount to obtain a corrected virtual steam pipe network; The condensation quantity correction module is used for solving a preset second mathematical model based on the corrected virtual steam pipe network to obtain operation parameters of all nodes in the corrected virtual steam pipe network, correcting the condensation quantity of the corrected virtual steam pipe network by utilizing condensation quantity distribution of all nodes in the corrected virtual steam pipe network determined based on the operation parameters to obtain a target virtual steam pipe network, and performing steam simulation based on the target virtual steam pipe network.
  9. 9. An electronic device, comprising: A memory for storing a computer program; a processor for executing the computer program to implement the flow direction pre-solution based steam simulation method according to any of claims 1 to 7.
  10. 10. A computer readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the flow direction pre-solution based steam simulation method according to any of claims 1 to 7.

Description

Steam simulation method, device, equipment and medium based on flow direction pre-solving Technical Field The invention relates to the field of steam simulation, in particular to a steam simulation method, device, equipment and medium based on flow direction pre-solving. Background Along with the continuous improvement of the requirements of industrial systems on energy efficiency management and operation intellectualization, the refined modeling and simulation of a steam pipe network become a key supporting means for guaranteeing the efficient operation of a thermodynamic system. In order to realize system design optimization, energy consumption diagnosis and operation scheme evaluation, steady-state simulation tools are widely relied on in engineering to predict pressure, flow, temperature and energy distribution in a pipe network. In the simulation modeling process of the pipe network, a hydraulic balance equation and a thermodynamic transfer equation are required to be solved simultaneously. In some nodes, a node enthalpy value mixing model is generally adopted, that is, steam with different upstream enthalpy values is evenly mixed and then transmitted to the downstream, so that the thermodynamic calculation depends on the fluid flow direction to determine the transmission path of the enthalpy values. However, under the working condition of partial branches or low load of the pipe network, the flow of the pipe may approach zero, and small flow values with uncertain signs are easy to appear due to rounding errors or iterative fluctuation in the numerical solution process, so that flow direction judgment is inaccurate. Since the enthalpy value transmission direction is strongly related to the flow direction, such erroneous judgment may cause a condition that a deficit rank may occur in the thermodynamic calculation equation, resulting in direct collapse of calculation. On the other hand, the steam continuously dissipates heat to the environment when being transported in the pipeline, and condensed water is generated. The condensed water is periodically discharged out of the system through a drain valve, so that the quality and energy loss in actual operation are formed. The existing simulation modeling method is generally based on ideal heat preservation conditions and a standard heat dissipation model to estimate the condensation amount, and influences of on-site actual factors are ignored. This makes the actual condensate volume generally higher than the theoretical calculation and difficult to accurately characterize by fixed parameters. The traditional method lacks an effective compensation mechanism for the deviation, so that the whole network thermodynamic calculation result deviates from the real working condition, and particularly in a long-distance conveying or multistage decompression system, the error is amplified step by step, and the engineering guiding value of simulation is weakened. Disclosure of Invention In view of the above, the present invention aims to provide a steam simulation method, apparatus, device and medium based on flow direction pre-solving, which can effectively improve the drainage modeling accuracy of a steam pipe network by the cooperative optimization of flow direction judgment and condensation amount correction of the steam pipe network. The specific scheme is as follows: in a first aspect, the application discloses a steam simulation method based on flow direction pre-solving, which comprises the following steps: Setting the steam outlet amount of a pipe network end node in a current steam pipe network to obtain a corresponding initial virtual steam pipe network, and counting the steam outlet amount increasing value of the initial virtual steam pipe network to distribute the steam outlet amount increasing value to a steam source of the initial virtual steam pipe network so as to obtain an adjusted virtual steam pipe network; carrying out hydraulic calculation pre-solving on a preset first mathematical model through the adjusted virtual steam pipe network, and correcting the pipeline flow direction of the adjusted virtual steam pipe network through an obtained hydraulic pre-solving result so as to obtain a virtual steam pipe network to be mapped; Mapping the hydraulic pre-solving result of the virtual steam pipe network to be mapped to a preset fine grid to obtain a virtual steam pipe network to be corrected, determining the leakage amount of the virtual steam pipe network to be corrected, and correcting the virtual steam pipe network to be corrected based on the leakage amount to obtain a corrected virtual steam pipe network; solving a preset second mathematical model based on the corrected virtual steam pipe network to obtain operation parameters of all nodes in the corrected virtual steam pipe network, correcting the condensation quantity of the corrected virtual steam pipe network by utilizing condensation quantity distribution of all nodes in the corrected virtual