CN111428320B - Dynamic and online simulation modeling method for pipe network system for parallel computing - Google Patents

Dynamic and online simulation modeling method for pipe network system for parallel computing Download PDF

Info

Publication number
CN111428320B
CN111428320B CN202010061318.6A CN202010061318A CN111428320B CN 111428320 B CN111428320 B CN 111428320B CN 202010061318 A CN202010061318 A CN 202010061318A CN 111428320 B CN111428320 B CN 111428320B
Authority
CN
China
Prior art keywords
pipeline
simulation model
dynamic
node
connection point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010061318.6A
Other languages
Chinese (zh)
Other versions
CN111428320A (en
Inventor
郭乔
王寿喜
刘丹
华东阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Shiyou University
Original Assignee
Xian Shiyou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Shiyou University filed Critical Xian Shiyou University
Priority to CN202010061318.6A priority Critical patent/CN111428320B/en
Publication of CN111428320A publication Critical patent/CN111428320A/en
Application granted granted Critical
Publication of CN111428320B publication Critical patent/CN111428320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A dynamic and on-line simulation modeling method for a pipe network system for parallel computation respectively establishes a simulation model for a station yard, an off-station connection point and a pipeline in the pipe network system, and connects the station yard and the pipeline with the connection point; the method comprises the following steps: firstly, establishing a connection point dynamic simulation model and a station dynamic simulation model; secondly, performing space dispersion on all the pipelines to obtain uniformly distributed pipeline internal nodes; establishing a left line, a right line and a heating power line for each node again to obtain a pipeline dynamic simulation model; finally, connecting the simulation models by connecting points; each simulation model calculates the station yard, the connection point and the pipeline in parallel until the simulation is finished; the method of the invention simultaneously analyzes the station yard and the connection point in parallel, and then analyzes the pipeline in parallel, thus not only being applicable to multithreading, but also being applicable to multiprocessing and GPU technology, even realizing parallel computation by a computer cluster, fully utilizing computation and hardware resources and improving simulation computation speed.

Description

Dynamic and online simulation modeling method for pipe network system for parallel computing
Technical Field
The invention relates to the technical field of pipe network system dynamics and on-line simulation, in particular to a pipe network system dynamics and on-line simulation modeling method for parallel computing.
Background
Dynamic and on-line simulation is an effective means for planning and designing a pipe network system, evaluating economy and managing operation. At present, the pipe network system rapidly develops, the system scale is increasingly large and complicated, the pipe network simulation model topology is also increasingly large and complex, the simulation calculation time is also increasingly time-consuming, and people increasingly need a rapid calculation method. Therefore, an accurate theoretical model is adopted, the actual flowing process of an actual pipe network system is restored to the greatest extent, the calculation effect of accurate simulation is achieved, and the rapid and accurate dynamic and on-line simulation is realized, so that the method has important engineering significance.
The numerical algorithm adopted by the dynamic simulation of the pipe network is numerous, and the analysis is usually carried out by adopting methods such as display, implicit, characteristic line, galerkin, integral transformation and the like.
For the development of the pipe network simulation parallel computing technology in recent years, a split node pressure method and an efficient solving method of a 'divide-and-conquer' idea are not researched how to fully utilize computer resources to realize multi-thread parallel computing. The flow distribution mode is modified by improving the flow distribution mode of the connecting point pipeline and the method for realizing parallel calculation by the pipeline dynamic simulation model, and pipe network systems with different pipe diameters cannot be processed. Therefore, the current parallel computing technology research on the dynamic and online simulation of the pipe network system is insufficient.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a dynamic and online simulation modeling method of a pipe network system for parallel computation, and provides a dynamic and online simulation parallel computation method of the pipe network system based on a characteristic line method on the basis of the pipe network simulation technology.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a dynamic and on-line simulation modeling method for a pipe network system for parallel computation respectively establishes a simulation model for a station yard, an off-station connection point and a pipeline in the pipe network system, and connects the station yard and the pipeline with the connection point; the method comprises the following steps: firstly, establishing a connection point dynamic simulation model and a station dynamic simulation model; secondly, performing space dispersion on all the pipelines to obtain uniformly distributed pipeline internal nodes; establishing a left line, a right line and a heating power line for each node again to obtain a pipeline dynamic simulation model; finally, connecting the simulation models by connecting points;
the station dynamic simulation model, the connection point dynamic simulation model and the pipeline dynamic simulation model are three models, and each model can perform parallel calculation; without waiting and communication, directly picking up new tasks until the calculation of the station and the connection point is completed; after core calculation of all connection points and stations is completed, pipeline core calculation is carried out; the core calculation of the internal nodes in the pipeline dynamic simulation model is also mutually independent, and the internal nodes of the pipeline are calculated in parallel when the pipeline is calculated.
The dynamic simulation model of the connection point is used for connecting two devices, and the state space of the connection point is { P, T, m } i ,m j The dynamic simulation model of the connecting point comprises a node mass conservation equation and a characteristic line equation of the node connected with the pipeline, wherein i+2 equations forming the node model are included, if the equipment connected with the node is the pipeline, the equation set of the node is closed, so that the node can be independently solved and is not influenced by other nodes; otherwise, further simultaneous solving with other equipment equations is needed;
Figure GDA0004139013920000031
wherein:
m i is the flow of the pipeline connected with the node;
m j traffic for devices connected to the node;
p is the pressure at the connection point;
t is the temperature of the connection point;
j is the j-th device;
i is the i-th pipeline.
The dynamic simulation model of the station yard is used for describing a real pipeline station yard, the station yard comprises equipment such as an air source, a user, a valve, a compressor and the like, the station yard is connected in a station, and the characteristic space of the station yard is { x } 1 ,x 2 ,…,x i ,y 1 ,y 2 ,…,y j The site model comprises a connection point model and a device model, and the equation set is closed by combining a control equation of the equipment in the site, namely, the site model can independently solve:
Figure GDA0004139013920000041
wherein:
X i a state space for the i-th connection point;
Y j a state space for the j-th device;
F i a simulation model for the ith connection point;
G j a simulation model for the j-th device;
the equipment simulation models in the station yard comprise a user, an air source simulation model, a compression simulation model, a pump simulation model and a valve simulation model, and the unified equipment simulation model is shown in the following formula:
G(y)=0
wherein:
y is the feature space of the device;
g is a simulation model of the equipment;
the system is closed by combining a unified simulation model formula of the equipment and a dynamic simulation model equation of a connection point connected with the equipment, and can independently solve:
Q-C=0
wherein:
q is a control parameter;
c is a constant.
The pipeline dynamic simulation model is composed of 3 equations according to a characteristic line algorithm, wherein the state space of each internal node is { P, T, m }, and 3 elements are also included, so that the equation set of the internal nodes of the pipeline is closed, and the equation set of the internal nodes of the pipeline can be independently solved:
f i (P,T,m)=0
wherein:
p is the pressure of the node;
t is the pressure of the node;
m is the mass flow of the node;
f i for the left row line, right row line and thermal force line at the node, i is 1,2,3.
Compared with the prior art, the invention has the following advantages:
for a station yard, a connection point, a pipeline and an equipment model in a pipe network system, no restriction on flow exists, and the approach degree of the simulation model and an actual element is guaranteed to the greatest extent;
the method is applicable to single pipeline, branch pipe network, annular pipe network and complex pipe network systems;
the method is applicable to a gas pipe network system and a liquid pipe network system without limitation of fluid;
the method is applicable to simple in-station processes and complex in-station processes;
for a station yard, a connection point and a pipeline model in a pipe network system, not only can parallel computation be realized by using multithreading, but also the method can be applied to multiprocessing, GPU technology and even computer cluster to realize parallel computation, so that the computation and hardware resources are fully utilized, and the simulation computation speed is improved.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a schematic diagram of a piping network with connection points for connection to simulation models according to the present invention.
FIG. 3 is a diagram of a dynamic and on-line simulated parallel computing scheme of internal nodes of the pipeline dynamic simulation model.
FIG. 4 is a schematic view of the station flow of the on-line simulation parallel computing method of the station dynamic simulation model of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and the detailed description.
As shown in FIG. 1, a dynamic and online simulation modeling method for a pipe network system for parallel computation is used for respectively establishing models for a station yard, an off-station connection point and a pipeline in the pipe network system, and connecting the station yard and the pipeline as well as the pipeline and the pipeline by the connection point; the method comprises the following steps: firstly, establishing a connection point dynamic simulation model and a station dynamic simulation model; secondly, performing space dispersion on all pipelines to obtain uniformly distributed pipeline internal nodes, and assigning initial values to pipeline system elements, wherein the initial values can be obtained by static simulation or online simulation; and (5) parallelly calculating the site and the off-site connection point in the pipe network system again, and then parallelly calculating the pipeline until the operation is finished.
The station dynamic simulation model, the connection point dynamic simulation model and the pipeline dynamic simulation model are three models, and each model can perform parallel calculation; without waiting and communication, directly picking up new tasks until the calculation of the station and the connection point is completed; after core calculation of all connection points and stations is completed, pipeline core calculation is carried out; the core calculation of the internal nodes in the pipeline dynamic simulation model is also mutually independent, and when the pipeline is calculated, the internal connection points of the pipeline are calculated in parallel.
The dynamic simulation model of the connection point is used for connecting two devices, as shown in FIG. 2, the state space of the node is { P, T, m } i ,m j The dynamic simulation model of the connecting point comprises a node mass conservation equation and a characteristic line equation of the node connected with the pipeline, wherein i+2 equations forming the node model are included, if the equipment connected with the node is the pipeline, the equation set of the node is closed, so that the node can be independently solved and is not influenced by other nodes; otherwise, further simultaneous solving with other equipment equations is needed;
Figure GDA0004139013920000071
wherein:
m i is the flow of the pipeline end connected with the node;
m j traffic for devices connected to the node;
p is the pressure at the connection point;
t is the temperature of the connection point;
j is the j-th device;
i is the i-th pipeline.
The station yard dynamic simulation model is used for describing a real pipeline station yard,the site contains equipment such as air sources, users, valves, compressors, etc., and in-site connections as shown in fig. 4. The characteristic space of the station yard is { x } 1 ,x 2 ,…,x i ,y 1 ,y 2 ,…,y j The site model comprises a connection point model and a device model, and the equation set is closed by combining a control equation of the equipment in the site, namely, the site model can independently solve:
Figure GDA0004139013920000081
wherein:
X i a state space for the i-th connection point;
Y j a state space for the j-th device;
F i a simulation model for the ith connection point;
G j a simulation model for the j-th device;
the common equipment simulation models in the station yard comprise a user simulation model, an air source simulation model, a compression simulation model, a pump simulation model and a valve simulation model, and the unified equipment simulation model is shown in the following formula:
G(y)=0
wherein:
y is the feature space of the device;
g is a simulation model of the device.
The system is closed by combining a unified simulation model formula of the equipment and a dynamic simulation model equation of a connection point connected with the equipment, and can independently solve:
Q-C=0
wherein:
q is a control parameter;
c is a constant.
As shown in FIG. 3, the pipeline dynamic simulation model is composed of 3 equations according to a characteristic line algorithm, wherein the state space of each internal node is { P, T, m }, and 3 elements are also included, so that the equation set of the internal nodes of the pipeline is closed, and can be independently solved:
f i (P,T,m)=0
wherein:
p is the pressure of the node;
t is the pressure of the node;
m is the mass flow of the node;
f i for the left row line, right row line and thermal force line at the node, i is 1,2,3.
From the above formula, it can be seen that:
the off-site connection point simulation model is irrelevant to other connection point equations, and the equation sets are independent;
the pipeline internal node simulation model is independent of other equipment element equations, and the equation sets are independent;
the site simulation model is independent of the off-site equipment elements, and the equation set is independent.

Claims (4)

1. A dynamic and online simulation modeling method for a pipe network system for parallel computation is characterized in that simulation models are respectively built for a station yard, an off-station connection point and a pipeline in the pipe network system, and the station yard and the pipeline as well as the pipeline and the pipeline are connected through the connection points; the method comprises the following steps: firstly, establishing a connection point dynamic simulation model and a station dynamic simulation model; secondly, performing space dispersion on all the pipelines to obtain uniformly distributed pipeline internal nodes; establishing a left line, a right line and a heating power line for each node again to obtain a pipeline dynamic simulation model; finally, connecting the simulation models by connecting points;
the station dynamic simulation model, the connection point dynamic simulation model and the pipeline dynamic simulation model are three models, and each model can perform parallel calculation; without waiting and communication, directly picking up new tasks until the calculation of the station and the connection point is completed; after core calculation of all connection points and stations is completed, pipeline core calculation is carried out; the core calculation of the internal nodes in the pipeline dynamic simulation model is also mutually independent, and the internal nodes of the pipeline are calculated in parallel when the pipeline is calculated.
2. A method according to claim 1 for parallel computingThe dynamic and on-line simulation modeling method of the pipe network system is characterized in that the dynamic simulation model of the connecting point is used for connecting two devices, and the state space of the connecting point is { P, T, m i ,m j The dynamic simulation model of the connecting point comprises a node mass conservation equation and a characteristic line equation of the node connected with the pipeline, wherein i+2 equations forming the node model are included, if the equipment connected with the node is the pipeline, the equation set of the node is closed, so that the node can be independently solved and is not influenced by other nodes; otherwise, further simultaneous solving with other equipment equations is needed;
Figure FDA0002374593910000021
wherein:
m i is the flow of the pipeline connected with the node;
m j traffic for devices connected to the node;
p is the pressure at the connection point;
t is the temperature of the connection point;
j is the j-th device;
i is the i-th pipeline.
3. The method for dynamic and on-line simulation modeling of pipe network system for parallel computing according to claim 1, wherein the dynamic simulation model of the station is used for describing a real pipeline station, the station comprises equipment such as air source, user, valve, compressor and the like and in-station connection, and the characteristic space of the station is { x } 1 ,x 2 ,…,x i ,y 1 ,y 2 ,…,y j The site model comprises a connection point model and a device model, and the equation set is closed by combining a control equation of the equipment in the site, namely, the site model can independently solve:
Figure FDA0002374593910000022
wherein:
X i a state space for the i-th connection point;
Y j a state space for the j-th device;
F i a simulation model for the ith connection point;
G j a simulation model for the j-th device;
the equipment simulation models in the station yard comprise a user, an air source simulation model, a compression simulation model, a pump simulation model and a valve simulation model, and the unified equipment simulation model is shown in the following formula;
G(y)=0
wherein:
y is the feature space of the device;
g is a simulation model of the equipment;
the system is closed by combining a unified simulation model formula of the equipment and a dynamic simulation model equation of a connection point connected with the equipment, and can independently solve:
Q-C=0
wherein:
q is a control parameter;
c is a constant.
4. The method for dynamic and on-line simulation modeling of a pipe network system for parallel computing according to claim 1, wherein the pipe dynamic simulation model is composed of 3 equations according to a characteristic line algorithm, as shown in the following formula, and the state space of each internal node is { P, T, m }, and also has 3 elements, so that the equation set of the internal nodes of the pipe is closed, and can be solved independently:
f i (P,T,m)=0
wherein:
p is the pressure of the node;
t is the pressure of the node;
m is the mass flow of the node;
f i for the left row line, right row line and thermal force line at the node, i is 1,2,3.
CN202010061318.6A 2020-01-19 2020-01-19 Dynamic and online simulation modeling method for pipe network system for parallel computing Active CN111428320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010061318.6A CN111428320B (en) 2020-01-19 2020-01-19 Dynamic and online simulation modeling method for pipe network system for parallel computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010061318.6A CN111428320B (en) 2020-01-19 2020-01-19 Dynamic and online simulation modeling method for pipe network system for parallel computing

Publications (2)

Publication Number Publication Date
CN111428320A CN111428320A (en) 2020-07-17
CN111428320B true CN111428320B (en) 2023-06-02

Family

ID=71547113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010061318.6A Active CN111428320B (en) 2020-01-19 2020-01-19 Dynamic and online simulation modeling method for pipe network system for parallel computing

Country Status (1)

Country Link
CN (1) CN111428320B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902205A (en) * 2012-10-18 2013-01-30 中煤科工集团武汉设计研究院 Long-distance coal transporting pipeline DMS (Distribution Management System) network simulation system (SimS) (Seamless Integration of Multisource Spatialdata)
CN106844814A (en) * 2016-09-30 2017-06-13 西安石油大学 A kind of large complicated gas distributing system system leak detection method
CN109344436A (en) * 2018-08-28 2019-02-15 中国石油化工股份有限公司天然气分公司 A kind of large complicated gas distributing system system in-circuit emulation method
WO2019113508A1 (en) * 2017-12-07 2019-06-13 Fractal Industries, Inc. A system and methods for multi-language abstract model creation for digital environment simulations

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902205A (en) * 2012-10-18 2013-01-30 中煤科工集团武汉设计研究院 Long-distance coal transporting pipeline DMS (Distribution Management System) network simulation system (SimS) (Seamless Integration of Multisource Spatialdata)
CN106844814A (en) * 2016-09-30 2017-06-13 西安石油大学 A kind of large complicated gas distributing system system leak detection method
WO2019113508A1 (en) * 2017-12-07 2019-06-13 Fractal Industries, Inc. A system and methods for multi-language abstract model creation for digital environment simulations
CN109344436A (en) * 2018-08-28 2019-02-15 中国石油化工股份有限公司天然气分公司 A kind of large complicated gas distributing system system in-circuit emulation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Hadoop的分布式管网仿真平台的设计;尹飞等;《计算机与应用化学》;20160628(第06期);全文 *
机坪供油管网水力学仿真研究;晁智明等;《石化技术》;20151128(第11期);全文 *

Also Published As

Publication number Publication date
CN111428320A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN109344436B (en) Online simulation method for large complex natural gas pipe network system
CN107886182B (en) Optimal design method and device for oil field gathering and transportation system
CN101187967B (en) Gas dynamic simulation system for steel enterprise
CN107784189A (en) Assembly process model method for building up based on object-oriented hierarchically timed Petri net
Bermúdez et al. Simulation and optimization models of steady-state gas transmission networks
CN109635501A (en) A kind of reduction water supply network leakage loss method based on hydraulic model
Gama et al. Water distribution network model building, case study: Milano, Italy
CN110826188B (en) GPU acceleration-based natural gas pipe network hydraulic parameter simulation method
CN112113146A (en) Synchronous self-adaptive check method for roughness coefficient and node water demand of water supply pipe network pipeline
Jiang et al. Building a water distribution network hydraulic model by using WaterGEMS
CN111428320B (en) Dynamic and online simulation modeling method for pipe network system for parallel computing
CN114936742A (en) Water supply system scheduling agent decision method
CN103294847B (en) Water supply network model Fuzzy Identification based on waterpower adjustment
CN111695269A (en) Multi-time-interval electricity-gas comprehensive energy system state estimation method, system and device
CN110309539B (en) BIM-based industrial building environment fluid dynamics simulation platform creation method
CN115374527B (en) Construction method of regional electricity-heat-cold comprehensive energy dynamic simulation system
WO2023000124A1 (en) Efficient three-dimensional wind field simulation method based on delay effect
CN115079592A (en) Pipe network simulation method for thermodynamic system of ship nuclear power device
CN112182905B (en) Heat supply pipe network simulation method and device for comprehensive energy system
Hensen et al. A simulation approach to the evaluation of coupled heat and mass transfer in building
Gao et al. Analysis Model of Physical Leakage Flow Based on Blind Source Separation Theory
Shu et al. Water distribution system modeling and simulation
Zhang et al. Research on hydraulic model establishment of water supply network
CN107885747B (en) Semantic relation generation method and equipment
Shang et al. Biologically inspired optimization of building district heating networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant