CN117313430A - Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network - Google Patents

Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network Download PDF

Info

Publication number
CN117313430A
CN117313430A CN202311600270.1A CN202311600270A CN117313430A CN 117313430 A CN117313430 A CN 117313430A CN 202311600270 A CN202311600270 A CN 202311600270A CN 117313430 A CN117313430 A CN 117313430A
Authority
CN
China
Prior art keywords
simulation
gas
data
pipe network
time
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.)
Pending
Application number
CN202311600270.1A
Other languages
Chinese (zh)
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.)
Shanghai Three Zero Four Zero Technology Co ltd
Original Assignee
Shanghai Three Zero Four Zero Technology Co ltd
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 Shanghai Three Zero Four Zero Technology Co ltd filed Critical Shanghai Three Zero Four Zero Technology Co ltd
Priority to CN202311600270.1A priority Critical patent/CN117313430A/en
Publication of CN117313430A publication Critical patent/CN117313430A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/28Design optimisation, verification or simulation using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/08Fluids
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Algebra (AREA)
  • Computing Systems (AREA)
  • Fluid Mechanics (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a system, equipment and a chip for starting, stopping and backtracking transient simulation of a gas pipe network, wherein the method comprises the following steps: acquiring gas quantity data of a natural gas pipe network at a certain moment; based on the gas quantity data, simulating the instant flowing state of the natural gas in the pipe network to generate an instant simulation result; the simulation can be suspended at any time, the gas quantity data at any time before the time is modified, and the simulation is carried out again based on the modified gas quantity data; and acquiring the gas quantity data at the next moment and continuing simulation. The method can adjust calculated input parameters in real time in the calculation process, so that the method is suitable for processing a complex natural gas pipeline system, and can carry out calculation operations of pause and backtracking in transient calculation.

Description

Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network
Technical Field
The application belongs to the technical field of gas pipe network data information, relates to a simulation method, and in particular relates to a method, a system, equipment and a chip for starting, stopping and backtracking transient simulation of a gas pipe network.
Background
In recent years, along with the adjustment of Chinese energy structures and the development of clean energy, the application range of the natural gas pipe network simulation technology is also wider and wider. Besides the traditional natural gas transmission and distribution pipe network simulation, the simulation design and optimization in the fields of urban gas pipe networks, industrial gas pipe networks and the like are also involved. Meanwhile, with the development of digital and intelligent technologies, the natural gas network simulation technology is also continuously upgraded and innovated, and the application and development of new technologies such as digital simulation, intelligent optimization and the like are realized.
The natural gas pipe network transient simulation technology can be divided into the following steps: transient simulation techniques based on physical models, transient simulation techniques based on statistical models, transient simulation techniques based on rule models, and transient simulation techniques based on hybrid models.
However, offline transient calculations currently suffer from drawbacks, in that, on the one hand, offline transient calculations are difficult to handle for complex natural gas pipeline systems, such as the presence of multiple branches, multiple pump stations, multiple valves, etc. On the other hand, offline transient calculation is difficult to monitor in real time, and problems in a natural gas pipeline system cannot be found and handled in time. Thus, offline transient calculations present some problems in handling large-scale natural gas pipeline systems.
Disclosure of Invention
The application provides a method, a system, equipment and a chip for starting, stopping and backtracking transient simulation of a gas pipe network, which are used for solving the problem of how to monitor and process a complex natural gas pipeline system in real time.
In a first aspect, the present application provides a method for transient simulation start-stop and backtracking of a gas pipe network, where the method includes: acquiring gas quantity data of a natural gas pipe network at a certain moment; based on the gas quantity data, simulating the instant flowing state of the natural gas in the pipe network to generate an instant simulation result; the simulation can be suspended at any time, the gas quantity data at any time before the time is modified, and the simulation is carried out again based on the modified gas quantity data; and acquiring gas quantity data of the natural gas pipe network at the next moment, and continuing simulation.
In an implementation manner of the first aspect, the step of acquiring gas volume data of the natural gas pipeline network at a certain moment includes: determining the topological structure of a natural gas pipe network; and acquiring gas quantity data at monitoring points in the topological structure at the moment.
In an implementation manner of the first aspect, the simulation may be paused at any time, and the gas volume data at any time before the time is modified, and the step of re-performing the simulation based on the modified gas volume data includes: updating the gas volume data at the time based on the modified gas volume data; and carrying out simulation again based on the updated gas quantity data.
In one implementation of the first aspect, the gas volume data includes: flow, pressure, temperature and gas composition; the instant simulation result comprises the pressure, flow speed, density, hua Bai number and heat value of any node and pipe section of the natural gas pipe network.
In an implementation manner of the first aspect, the simulation may be paused at any time, and the gas volume data at any time before the time is modified, and before the step of re-performing the simulation based on the modified gas volume data, the method further includes: defining an event monitor, and monitoring a touch event which is simulated to be suspended through the event monitor; and responding to the occurrence of the touch event, and suspending the simulation.
In one implementation manner of the first aspect, the step of modifying the gas amount data includes: and modifying the air quantity data in response to a parameter modification instruction of the operation page.
In an implementation manner of the first aspect, after the step of acquiring the gas volume data of the natural gas pipe network at the next moment in time for performing simulation, the method further includes: judging whether the gas quantity data at all moments are simulated; if yes, ending the simulation process; if not, continuously acquiring the gas flow data of the natural gas pipe network at the next moment to simulate.
In a second aspect, the present application provides a simulation system for a natural gas pipeline network, the system comprising: the data acquisition module is configured to acquire gas volume data of the natural gas pipeline network at a certain moment; the current simulation module is configured to simulate the instant flowing state of the natural gas in the pipe network based on the gas quantity data, and generate an instant simulation result; the data adjustment module is configured to pause the simulation at any time, modify the gas volume data at any time before the time and re-simulate the simulation based on the modified gas volume data; and the subsequent simulation module is configured to acquire the gas volume data of the natural gas pipeline network at the next moment to continue simulation.
In a third aspect, the present application provides an electronic device, including: a processor and a memory; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory so as to enable the electronic device to execute the method.
In a fourth aspect, the present application provides a chip having stored thereon a computer program, the computer program being packaged within the chip to implement the method.
As described above, the method, system, equipment and chip for starting, stopping and backtracking the transient simulation of the gas pipe network have the following beneficial effects:
(1) The offline transient dynamic calculation of the natural gas pipe network simulation can allow a user to flexibly control the calculation process.
(2) According to the method and the device for off-line transient dynamic calculation of the natural gas pipe network simulation, after the off-line transient dynamic calculation of the natural gas pipe network simulation is completed at each moment, simulation results at the current moment can be timely returned and displayed on the page in real time, and the user can observe conveniently.
(3) During the suspension calculation of the offline transient dynamic calculation, the user can modify the gas quantity data at any moment, and the calculation mode of data modification can ensure that the instantaneous calculation can calculate the result expected by the user.
Drawings
Fig. 1 is a schematic diagram of an application scenario of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application.
Fig. 3 shows a data acquisition flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application.
Fig. 4 shows a data adjustment flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application.
Fig. 5 shows a flow chart of all data simulation of the method for starting, stopping and backtracking transient simulation of a gas pipe network according to the embodiment of the present application.
Fig. 6 shows a schematic structural diagram of a system for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application.
Fig. 7 is a schematic diagram showing structural connection of an electronic device according to an embodiment of the present application.
Description of element reference numerals
6-a gas pipe network transient simulation start-stop and backtracking system; 61-a data acquisition module; 62-current simulation module; 63-a data adjustment module; 64-a subsequent simulation module; 7-an electronic device; 71-a processor; 72-memory; 73-a communication interface; 74-a system bus; S21-S24-step; S211-S212; S231-S232.
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the present disclosure, when the following description of the embodiments is taken in conjunction with the accompanying drawings. The present application may be embodied or carried out in other specific embodiments, and the details of the present application may be modified or changed from various points of view and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that, the illustrations provided in the following embodiments merely illustrate the basic concepts of the application by way of illustration, and only the components related to the application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complex.
The following embodiments of the present application provide a method, a system, a device, and a chip for starting, stopping, and backtracking transient simulation of a gas pipe network, which are applied to a terminal, but not limited to, a user operating through a terminal page, and will be described below by taking the application scenario as an example.
Fig. 1 is a schematic diagram of an application scenario of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application. As shown in fig. 1, the method for transient simulation start-stop and backtracking of a gas pipe network in this embodiment is executed in a terminal, the page presents gas volume data of the natural gas pipe network, the gas volume data can be modified, a user clicks a pause button on an interface, the simulation process is paused, the user modifies the gas volume data through a modification inlet of the corresponding gas volume data, then after the gas volume data is updated, the user clicks an execution button on the interface, the simulation process is continued, and in practical application, for example, the switching of triangles and double vertical lines in circles represents icons for execution and pause. The simulation of the method is that in the offline transient calculation process, a dynamic calculation mode is adopted, the calculation operation is allowed to be suspended when the air quantity data at each moment participates in the instant calculation, and meanwhile, during the calculation suspension period, a user can modify the air quantity data at any moment so as to achieve a simulation result expected by the user.
The following describes the technical solutions in the embodiments of the present application in detail with reference to the drawings in the embodiments of the present application.
Referring to fig. 2, a schematic flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application is shown. As shown in fig. 2, the embodiment provides a method for starting, stopping and backtracking transient simulation of a gas pipe network, which specifically includes the following steps:
s21, acquiring gas volume data of the natural gas pipeline network at a certain moment.
Referring to fig. 3, a data acquisition flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application is shown. As shown in fig. 3, in an embodiment, step S21 specifically includes:
s211, determining the topological structure of the natural gas pipe network.
The topological structure of the natural gas pipe network mainly comprises nodes (including gas sources, users, pressure regulating equipment, two-way pipes, three-way pipes and the like) in the pipe network and pipe sections between the connecting nodes. Specifically, the topology of natural gas networks includes the following types:
tree topology: tree topology is the most common form in natural gas networks, which presents a distinct tree structure, with each node having only one parent node and one or more child nodes, which is the most common in urban gas networks.
Ring topology: in a ring topology, each node has two or more adjacent nodes, which is common in large gas line networks.
Mesh topology: the network topology is the most complex structural form in the natural gas pipe network, and presents an irregular network structure, the connection relationship between the nodes and the pipe sections is complex, and the structure is usually found in a large-scale urban gas pipe network.
The topology structures in different forms have different characteristics and application ranges, when the natural gas pipeline network design is carried out, the proper topology structure is required to be selected according to actual conditions, and simulation and optimization are carried out by utilizing a computer technology.
And S212, acquiring gas quantity data at monitoring points in the topological structure at the moment.
In one embodiment, the gas volume data comprises: flow, pressure, temperature and gas composition.
The gas quantity data of the natural gas pipe network refer to the collection of parameters such as flow rate, pressure, temperature and the like of the natural gas flowing in the pipe network. The data can be collected and monitored by measuring instruments and monitoring systems at monitoring points in the natural gas pipe network, and are used for analyzing and optimizing the supply and dispatching of the natural gas, performing off-line transient simulation calculation and the like.
In particular, the gas volume data of the natural gas pipeline network may include the following parameters:
flow rate: refers to the rate at which natural gas flows in a pipeline and is typically measured in cubic meters per hour or cubic meters per day.
Pressure: refers to the pressure of natural gas in a pipeline, typically measured in megapascals.
Temperature: refers to the temperature of natural gas in a pipeline, typically measured in degrees celsius.
The gas composition comprises: refers to the content of various gases in natural gas, and is usually measured in volume percent or mass percent.
The parameters can be used for off-line transient calculation of a natural gas pipe network, and can also be used for calculating energy and heat value of natural gas, evaluating quality and quality of the natural gas, monitoring safety and reliability of a pipeline, optimizing dispatching and supply of the natural gas and the like.
The method uses the gas quantity data table structure of the table 3 to store the gas quantity data, the gas quantity data can be obtained through a collector, the collected data can be stored in a database every 5 minutes, and the historical gas quantity data can be obtained through reading the database through offline transient dynamic calculation. For convenience in describing the gas volume parameters, a time sequence [ data_1, data_2, ], data_n ] is used for the gas volume data at different times, where data_i represents the gas volume data at the i-th time, and an example of a set of gas volume data containing 24 times is given in table 4.
S22, based on the gas quantity data, simulating the instant flowing state of the natural gas in the pipe network, and generating an instant simulation result.
In one embodiment, the real-time simulation results include the pressure, flow rate, density, hua Bai and heating value of any node of the natural gas network and the pipe section.
Transient calculation of a natural gas pipe network during simulation refers to a process of simulating the change of the flowing state of natural gas in the pipe network along with time by using a mathematical model and a computer program. This process involves a number of parameters of the natural gas flow, such as pressure, density, velocity, temperature, etc., as well as the topology and physical characteristics of the natural gas network.
Transient calculations may be used to analyze and optimize the design, operation, and management of natural gas pipe networks. By simulating the natural gas flowing states under different conditions, the performance and the behavior of the natural gas pipe network can be predicted, the safety and the reliability of the pipe network can be evaluated, and the dispatching and the distribution of the natural gas can be optimized. In addition, the transient state calculation of the natural gas pipe network can be used for guiding emergency response and repair decision, so that the safety and reliability of the pipeline system are improved.
The input parameters for transient calculation are a set of gas volume data at any moment, i.e. gas volume data data_i, while the input parameters for offline transient dynamic calculation are a set of gas volume data at multiple moments, i.e. time series [ data_1, data_2, ], data_n ].
Specifically, after the air quantity data at the time t participates in the offline transient simulation calculation, a simulation result at the time t is returned in real time, wherein the simulation result comprises information such as pressure, flow velocity, density, hua Bai number, heat value and the like of any node of the natural gas pipe network and pipe sections, and the simulation result is stored through a structural table shown in table 5.
The flow value obtained through offline transient dynamic calculation can have a negative flow condition, because natural gas can flow from the end point to the starting point of the pipe section in the flow direction of the pipe, and for the correct display of the front page, the flow value needs to be corrected, and meanwhile, the starting point and the end point number of the pipe are interacted.
In practical application, simulation calculation results can be displayed on the front-end page, and display contents comprise total air inlet, total air outlet and total pipe storage. The display content also comprises imported data of parameters such as pressure, flow, density and Hua Bai number and simulation data to be compared.
S23, the simulation can be suspended at any time, the gas volume data at any time before the time is modified, and the simulation is carried out again based on the modified gas volume data. Thus, the method and the device can carry out calculation operation of pause and backtracking in transient calculation.
Referring to fig. 4, a data adjustment flow chart of a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application is shown. As shown in fig. 4, in an embodiment, step S23 specifically includes:
and S231, updating the air quantity data at the moment based on the modified air quantity data.
S232, carrying out simulation again based on the updated gas quantity data.
In one embodiment, before the step of re-simulating based on the modified gas volume data in response to the simulation suspension and the gas volume data having been modified, the method further comprises:
defining an event monitor, and monitoring a touch event which is simulated to be suspended through the event monitor; and responding to the occurrence of the touch event, and suspending the simulation. Specifically, the touch event may be a click event or an input action event corresponding to when other users interact with the terminal interface.
The offline transient dynamic calculation can sequentially calculate the air volume data of the time sequences [ data_1, data_2, data_n ], and when the air volume data data_i at the ith moment is subjected to transient calculation, the offline transient dynamic calculation is stopped in a mode of temporarily calling the transient calculation, and a pause button is added to a front-end page in a specific embodiment, the method comprises the following specific implementation steps:
(1) A pause button is added in the front page, an event monitor can be defined, and clicking events of the button are monitored.
(2) When the button is clicked, an asynchronous request is sent to the front end, and the execution state of the back end program is transferred to the back end program.
(3) After the back-end program receives the request, it is determined whether to suspend the execution of the program according to the status value in the request.
(4) If the back-end program needs to be suspended, a judging statement can be added at the key position of the program to judge whether the current state is a suspended state, and if so, the execution of the program is suspended.
(5) When the back-end program needs to resume execution, the state value in the front-end page may be updated by sending an asynchronous request to the front-end so that the front-end page can correctly display the state of the program.
In the actual implementation process, the method and the device can fully consider the problems in the aspects of user experience, interactive design and the like, and ensure that a user can conveniently use a pause button to control the execution of the program.
In one embodiment, the step of modifying the gas volume data includes: and modifying the air quantity data in response to a parameter modification instruction of the operation page.
During the suspension period of offline transient dynamic calculation, a user can judge whether the result of the offline transient simulation of the current time gas quantity data reaches the target expected by the user, if the user considers that the offline transient simulation result can be better by modifying any time and any plurality of groups of gas quantity data, the front-end page can be used for modifying the gas quantity parameters, and the modified parameters can be the pressure value, the flow value, the temperature value and the calculation type in the gas quantity data.
Therefore, the natural gas pipe network simulation offline transient dynamic calculation can stop calculation and restart calculation operation at any time in the calculation process of a plurality of times, after calculation is stopped, the calculated input parameters are allowed to be revised again, and the revised parameters comprise the pressure and flow of the natural gas pipe network nodes at any time, namely, the gas flow data. The method and the device can solve the problem that the complex natural gas pipeline system is difficult to calculate.
S24, acquiring gas volume data of the natural gas pipe network at the next moment, and continuing simulation.
In one embodiment, after step S24, the method further comprises:
judging whether the gas quantity data at all moments are simulated; if yes, ending the simulation process; if not, continuously acquiring the gas flow data of the natural gas pipe network at the next moment to simulate.
Therefore, the natural gas pipe network simulation offline transient dynamic calculation can timely feed back the calculation result at the current moment after the calculation is completed at each moment, and dynamically display the calculation result, so that a real-time monitoring pipe network system is formed.
Referring to fig. 5, a flow chart of all data simulation is shown for a method for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application. As shown in fig. 5, a flow of performing simulation transient calculation on all gas amount data of the natural gas pipe network is presented. Acquiring the air quantity data at the moment t according to the topological structure data, performing transient calculation on the air quantity data, returning to a simulation calculation result at the moment t, judging whether a calculation suspension instruction is received, judging whether to modify the air quantity data at the moment m if suspension is performed, and performing transient calculation again after updating the air quantity data at the moment m if modification is performed; if not, let t=t+1, obtain the air volume data at time t+1. If not, judging whether the simulation calculation is completed at all moments, if so, ending the simulation process; if not, let t=t+1, obtain the air volume data of time t+1.
The protection scope of the method for starting, stopping and backtracking the transient simulation of the gas pipe network in the embodiment of the application is not limited to the execution sequence of the steps listed in the embodiment, and all the schemes realized by increasing or decreasing the steps and replacing the steps according to the prior art made by the principle of the application are included in the protection scope of the application.
The embodiment of the application also provides a simulation system of a natural gas pipe network, which can realize the method for starting, stopping and backtracking the transient simulation of the gas pipe network, but the realization device of the method for starting, stopping and backtracking the transient simulation of the gas pipe network comprises but is not limited to the structure of the simulation system of the natural gas pipe network listed in the embodiment, and all the structural deformation and replacement of the prior art according to the principles of the application are included in the protection scope of the application.
Referring to fig. 6, a schematic structural diagram of a system for transient simulation start-stop and backtracking of a gas pipe network according to an embodiment of the present application is shown. As shown in fig. 6, the simulation system 6 of the natural gas pipe network according to the present embodiment includes: a data acquisition module 61, a current simulation module 62, a data adjustment module 63 and a subsequent simulation module 64.
The data acquisition module 61 is configured to acquire gas volume data for a natural gas network at a certain moment in time.
In one embodiment, the data acquisition module 61 is specifically configured to determine a topology of a natural gas network; and acquiring gas quantity data at monitoring points in the topological structure at the moment.
The current simulation module 62 is configured to simulate an instant flow state of natural gas in the pipe network based on the gas volume data, and generate an instant simulation result.
The data adjustment module 63 is configured to pause the simulation at any time and modify the gas volume data at any time before that time, and to re-simulate the simulation based on the modified gas volume data.
In one embodiment, the data adjustment module 63 is specifically configured to update the air volume data at the time based on the modified air volume data; and carrying out simulation again based on the updated gas quantity data.
The subsequent simulation module 64 is configured to acquire gas volume data at a next time of the natural gas network to continue simulation.
In the several embodiments provided in this application, it should be understood that the disclosed system or method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of modules/units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple modules or units may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules or units, which may be in electrical, mechanical or other forms.
The modules/units illustrated as separate components may or may not be physically separate, and components shown as modules/units may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules/units may be selected according to actual needs to achieve the purposes of the embodiments of the present application. For example, functional modules/units in various embodiments of the present application may be integrated into one processing module, or each module/unit may exist alone physically, or two or more modules/units may be integrated into one module/unit.
Those of ordinary skill would further appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The application provides an electronic device, the electronic device includes: a processor and a memory; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory so as to enable the electronic device to execute the method.
Fig. 7 is a schematic structural connection diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device 7 of the present application includes: a processor 71, a memory 72, a communication interface 73, or/and a system bus 74. The memory 72 and the communication interface 73 are connected with the processor 71 through the system bus 74 and complete communication with each other, the memory 72 is used for storing a computer program, the communication interface 73 is used for communicating with other devices, and the processor 71 is used for running the computer program to enable the electronic device 7 to execute the steps of the method for starting, stopping and backtracking the transient simulation of the gas pipe network.
The processor 71 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field programmable gate arrays (Field Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The memory 72 may include a random access memory (Random Access Memory, simply referred to as RAM), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.
The system bus 74 mentioned above may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The system bus 74 may be categorized as an address bus, a data bus, a control bus, or the like. The communication interface is used for realizing communication between the database access device and other devices (such as a client, a read-write library and a read-only library).
The embodiment of the application also provides a chip, and a computer program is stored on the chip, and the computer program is packaged in the chip to realize the method. The method comprises the following steps: acquiring gas quantity data of a natural gas pipe network at a certain moment; based on the gas quantity data, simulating the instant flowing state of the natural gas in the pipe network to generate an instant simulation result; the simulation can be suspended at any time, the gas quantity data at any time before the time is modified, and the simulation is carried out again based on the modified gas quantity data; and acquiring gas quantity data of the natural gas pipe network at the next moment, and continuing simulation.
The descriptions of the processes or structures corresponding to the drawings have emphasis, and the descriptions of other processes or structures may be referred to for the parts of a certain process or structure that are not described in detail.
The foregoing embodiments are merely illustrative of the principles of the present application and their effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those of ordinary skill in the art without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications and variations which may be accomplished by persons skilled in the art without departing from the spirit and technical spirit of the disclosure be covered by the claims of this application.

Claims (10)

1. A method for transient simulation start-stop and backtracking of a gas pipe network, the method comprising:
acquiring gas quantity data of a natural gas pipe network at a certain moment;
based on the gas quantity data, simulating the instant flowing state of the natural gas in the pipe network to generate an instant simulation result;
the simulation can be suspended at any time, the gas quantity data at any time before the time is modified, and the simulation is carried out again based on the modified gas quantity data; and acquiring gas quantity data of the natural gas pipe network at the next moment, and continuing simulation.
2. The method of claim 1, wherein the step of obtaining gas volume data for a time of the natural gas network comprises:
determining the topological structure of a natural gas pipe network;
and acquiring gas quantity data at monitoring points in the topological structure at the moment.
3. The method of claim 1, wherein the simulation is paused at any time and the gas volume data at any time prior to that time is modified, the step of re-simulating based on the modified gas volume data comprising:
updating the gas volume data at the time based on the modified gas volume data;
and carrying out simulation again based on the updated gas quantity data.
4. The method according to claim 1, characterized in that:
the gas volume data includes: flow, pressure, temperature and gas composition;
the instant simulation result comprises the pressure, flow speed, density, hua Bai number and heat value of any node and pipe section of the natural gas pipe network.
5. The method of claim 1, wherein the simulation is paused at any time and the gas volume data at any time prior to that time is modified, the method further comprising, prior to the step of re-simulating based on the modified gas volume data:
defining an event monitor, and monitoring a touch event which is simulated to be suspended through the event monitor;
and responding to the occurrence of the touch event, and suspending the simulation.
6. The method of claim 1, wherein the step of modifying the gas volume data comprises:
and modifying the air quantity data in response to a parameter modification instruction of the operation page.
7. The method of claim 1, wherein after the step of simulating the acquisition of gas volume data for a next time of the natural gas network, the method further comprises:
judging whether the gas quantity data at all moments are simulated;
if yes, ending the simulation process; if not, continuously acquiring the gas flow data of the natural gas pipe network at the next moment to simulate.
8. A system for transient simulation start-stop and backtracking of a gas pipe network, the system comprising:
the data acquisition module is configured to acquire gas volume data of the natural gas pipeline network at a certain moment;
the current simulation module is configured to simulate the instant flowing state of the natural gas in the pipe network based on the gas quantity data, and generate an instant simulation result;
the data adjustment module is configured to pause the simulation at any time, modify the gas volume data at any time before the time and re-simulate the simulation based on the modified gas volume data;
and the subsequent simulation module is configured to acquire the gas volume data of the natural gas pipeline network at the next moment to continue simulation.
9. An electronic device, the electronic device comprising: a processor and a memory;
the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, to cause the electronic device to perform the method according to any one of claims 1 to 7.
10. A chip on which a computer program is stored, characterized in that the computer program is packaged in said chip for implementing the method of claims 1 to 7.
CN202311600270.1A 2023-11-28 2023-11-28 Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network Pending CN117313430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311600270.1A CN117313430A (en) 2023-11-28 2023-11-28 Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311600270.1A CN117313430A (en) 2023-11-28 2023-11-28 Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network

Publications (1)

Publication Number Publication Date
CN117313430A true CN117313430A (en) 2023-12-29

Family

ID=89255624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311600270.1A Pending CN117313430A (en) 2023-11-28 2023-11-28 Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network

Country Status (1)

Country Link
CN (1) CN117313430A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903268A (en) * 2012-08-23 2013-01-30 上海国际化建工程咨询公司 Dynamic simulation training system for synthesis gas chemical engineering and petrochemical engineering production processes
CN109344436A (en) * 2018-08-28 2019-02-15 中国石油化工股份有限公司天然气分公司 A kind of large complicated gas distributing system system in-circuit emulation method
CN112241924A (en) * 2020-09-22 2021-01-19 四川九门科技股份有限公司 Wisdom gas system
CN113239645A (en) * 2021-05-25 2021-08-10 中海石油气电集团有限责任公司 System and method for dynamically tracking and calculating natural gas components in natural gas pipe network in real time
CN114021378A (en) * 2021-11-18 2022-02-08 北京索为系统技术股份有限公司 Model simulation method and device, electronic equipment and storage medium
CN115809531A (en) * 2022-12-07 2023-03-17 国家石油天然气管网集团有限公司 Simulation method and system for natural gas pipe network, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903268A (en) * 2012-08-23 2013-01-30 上海国际化建工程咨询公司 Dynamic simulation training system for synthesis gas chemical engineering and petrochemical engineering production processes
CN109344436A (en) * 2018-08-28 2019-02-15 中国石油化工股份有限公司天然气分公司 A kind of large complicated gas distributing system system in-circuit emulation method
CN112241924A (en) * 2020-09-22 2021-01-19 四川九门科技股份有限公司 Wisdom gas system
CN113239645A (en) * 2021-05-25 2021-08-10 中海石油气电集团有限责任公司 System and method for dynamically tracking and calculating natural gas components in natural gas pipe network in real time
CN114021378A (en) * 2021-11-18 2022-02-08 北京索为系统技术股份有限公司 Model simulation method and device, electronic equipment and storage medium
CN115809531A (en) * 2022-12-07 2023-03-17 国家石油天然气管网集团有限公司 Simulation method and system for natural gas pipe network, storage medium and electronic equipment

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘建武等: "TGNET和SPS在甬台温输气管道设计中的比较", 油气储运, pages 689 - 691 *
李娟: "基于负荷预测的燃气管网仿真模拟", 中国优秀博硕士学位论文全文数据库(硕士), pages 53 - 78 *
焦文玲等: "基于DEPSO算法的城镇燃气管网阻力辨识", 煤气与热力, pages 1 - 8 *
罗林杰等: "川西复杂天然气管网仿真模拟与优化", 中外能源, pages 58 - 64 *
郑建国;陈国群;艾慕阳;赵佳丽;: "大型天然气管网动态仿真研究与实现", 计算机仿真, no. 07, pages 354 - 357 *

Similar Documents

Publication Publication Date Title
EP1817700B1 (en) Method and system for transferring data between a discrete event environment and an external environment
CN111177899A (en) Multidisciplinary collaborative simulation method and system based on cloud platform
CN108600009B (en) Network alarm root positioning method based on alarm data analysis
CN103605662B (en) Distributed computation frame parameter optimizing method, device and system
US8677310B2 (en) Industry template abstracting and creation for use in industrial automation and information solutions
CN109634728A (en) Job scheduling method, device, terminal device and readable storage medium storing program for executing
Ranjan Modeling and simulation in performance optimization of big data processing frameworks
CN108536972B (en) Complex system reliability simulation method and system based on self-adaptive agent
CN105701277A (en) AADL modeling based avionics system architecture real-time performance analysis method
CN101878457A (en) The system and method that is used for the integrated information collection of SCADA application and simulation application or network calculations application
Eklund et al. Using a digital twin as the objective function for evolutionary algorithm applications in large scale industrial processes
CN109255189A (en) The parallel real-time mode recognizing method of voltage dip based on streaming computing
CN117454560A (en) Method and system for accelerating transient simulation speed of natural gas pipe network
Mikov et al. Program tools and language for Network simulation and analysis
CN117313430A (en) Method, system, equipment and chip for starting, stopping and backtracking transient simulation of gas pipe network
Wang et al. A digital twin simulator for real time energy saving control of serial manufacturing system
Manacero et al. iSPD: an iconic-based modeling simulator for distributed grids.
Chen et al. A high performance computational framework for dynamic security assessment under uncertainty
Zhou et al. Time control method on full-process dynamic real-time simulation of power system with parallel-in-time-space
Lv et al. A simulation approach of complex repairable system based on stateflow
Gkoulis et al. A Hybrid Simulation Platform for quality-aware evaluation of complex events in an IoT environment
CN116561393B (en) Ten thousand yuan GDP water consumption visualization system and method based on water consumption factors
CN113189943B (en) Industrial control system field measuring point simulation data generation method and system
CN103152224B (en) A kind of method and system of real-time dynamic monitoring analog network
An et al. Resource Demand Forecasting Approach Based on Generic Cloud Workload Model

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20231229

RJ01 Rejection of invention patent application after publication