Steady-state hydraulic calculation method, system, equipment and medium for oil-gas pipe network
By obtaining the topological structure and geometric parameters of the oil and gas pipeline network and selecting a steady-state hydraulic calculation model according to the node type, the problem of low accuracy of hydraulic calculation results at complex pipeline nodes in the existing technology is solved, and higher calculation accuracy is achieved sex.
Patent Information
- Application Number
- CN202411273692.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-02-14
Smart Images

Figure CN119442942A_ABST
Abstract
Description
Background Art
[0002] Steady-state hydraulic calculation of oil and gas pipeline networks plays an important guiding role in the design, operation and maintenance of oil and gas pipeline networks, and can provide important support for improving the safety, stability and energy efficiency of pipelines. The steady-state hydraulic model is used to calculate the pressure distribution and flow distribution of oil and gas pipeline networks under stable operation. This model does not consider time changes and assumes that flow and pressure are evenly distributed throughout the pipeline network. However, the oil and gas pipeline networks used in reality often have a variety of complex structures, and the connection nodes bear greater pressure and more frequent flow rate changes than the pipelines. When using the existing steady-state hydraulic model, the influence of pipelines, components and other nodes around the nodes is not considered, resulting in a low accuracy rate of hydraulic calculation results at the nodes of complex pipeline networks, and the calculation results are not sufficient to provide accurate reference suggestions.
[0003] Therefore, it is necessary to design a steady-state hydraulic calculation method that can comprehensively consider the complex connection structure around the node and accurately calculate the node pressure value and flow velocity value. Summary of the invention
[0004] In view of the defects of the prior art, the present invention proposes a steady-state hydraulic calculation method, system, device and medium for oil and gas pipeline network. The steady-state hydraulic calculation method for oil and gas pipeline network of the present invention specifically includes the following steps: Step S1, obtaining the topological structure of the oil and gas pipeline network; Step S2, obtaining geometric parameters of each pipeline in the oil and gas pipeline network; Step S3, determining the node type of the node to be tested according to the topological structure, and selecting a steady-state hydraulic calculation model according to the node type; Step S4, solving the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network to obtain the steady-state hydraulic calculation result of the node to be measured.
[0005] Furthermore, the steady-state hydraulic calculation results include: oil and gas pressure, and gas mass flow rate.
[0006] Furthermore, in step S3, the node type of the node to be tested is determined according to the topological structure: according to the number of pipelines N connected to the node GD , the number of elements connected to the node N YJ and the number of nodes connected to the node N JD Determine the node type.
[0007] Further, the node type is: a primary node, a secondary node or a tertiary node, and the node type of the node to be tested is determined specifically as follows: When N YJ =0 and N JD=0, the node type is a primary node; When N YJ =1 and N JD =0, the node type is a secondary node; When N YJ >1, the node type is a third-level node.
[0008] Furthermore, when the node type is a secondary node, the steady-state hydraulic calculation model is: (1) (2) in, P is the oil and gas pressure, c is the oil and gas wave velocity, S is the pipeline flow cross-sectional area, m is the gas mass flow rate, l is the pipeline length variable, f is the pipeline friction coefficient, D is the outer diameter of the gas pipeline, g is the gravity acceleration, is the angle between the pipe and the horizontal plane.
[0009] Furthermore, when the node type is a third-level node, the steady-state hydraulic calculation model is: (3) in, P is the oil and gas pressure, m is the gas mass flow rate, l is the pipeline length variable, is the angle between the pipeline and the horizontal plane, c is the oil and gas wave velocity, and g is the gravitational acceleration.
[0010] A steady-state hydraulic calculation system for an oil and gas pipeline network of the present invention comprises the following modules: Pipeline network topology acquisition module: used to obtain the topology of the oil and gas pipeline network; A geometric parameter acquisition module, connected to the pipeline network topology acquisition module, for acquiring geometric parameters of each pipeline in the oil and gas pipeline network; A node type determination module, connected to the geometric parameter acquisition module, for determining the node type of the node to be tested according to the topological structure; A steady-state hydraulic calculation model determination module, connected to the node type determination module, for selecting a steady-state hydraulic calculation model according to the node type; Output module: connected to the steady-state hydraulic calculation model determination module, used to solve the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network, and obtain the steady-state hydraulic calculation result of the node to be measured.
[0011] Furthermore, the steady-state hydraulic calculation results include: oil and gas pressure, and gas mass flow rate.
[0012] The technical solution of an electronic device of the present invention is as follows: The invention comprises a memory, a processor and a program stored in the memory and running on the processor. When the processor executes the program, the steps of the steady-state hydraulic calculation method for oil and gas pipeline network of the present invention are realized.
[0013] A technical solution of a computer-readable storage medium of the present invention is as follows: Instructions are stored in the computer-readable storage medium. When the computer-readable storage medium reads the instructions, the computer-readable storage medium executes the steps of the steady-state hydraulic calculation method for oil and gas pipeline networks of the present invention.
[0014] Compared with the prior art, the beneficial effects of the present invention are: First, the present invention comprehensively considers the complex connection structure at the node, classifies the nodes according to the different connection structures, designs different stable hydraulic calculation models for different node types, and improves the accuracy of the hydraulic calculation results at the nodes of the complex pipe network; Secondly, when classifying nodes, the present invention classifies them according to the parameter that has the greatest impact on the node pressure, that is, the number of pipes connected to the node N GD , the number of elements connected to the node N YJ and the number of nodes connected to the node, making the classification result more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is a flow chart of the steady-state hydraulic calculation method for oil and gas pipeline network proposed by the present invention; Figure 2 This is a structural diagram of the steady-state hydraulic calculation system for oil and gas pipeline networks proposed by the present invention. DETAILED DESCRIPTION
[0017] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] Those skilled in the art should know that the following specific embodiments or specific implementations are a series of optimized settings listed by the present invention to further explain the specific content of the invention, and these settings can be combined or used in association with each other, unless the present invention clearly states that some or a specific embodiment or implementation cannot be associated or used together with other embodiments or implementations. At the same time, the following specific embodiments or implementations are only used as the most optimized settings, and are not to be understood as limiting the scope of protection of the present invention.
[0019] The specific implementation of the present invention is described below with reference to the accompanying drawings.
[0020] In order to address the problem that the existing stable hydraulic calculation model does not take into account the complex connection structure at the nodes, resulting in low accuracy of the hydraulic calculation results at the nodes of the complex pipe network, the present invention classifies the nodes according to the different connection structures, and designs different stable hydraulic calculation models for different node types, thereby improving the accuracy of the hydraulic calculation results at the nodes of the complex pipe network.
[0021] Example 1 A steady-state hydraulic calculation method for oil and gas pipeline networks, such as Figure 1 As shown, the following steps are included: Step S1, obtaining the topological structure of the oil and gas pipeline network.
[0022] The oil and gas pipeline networks used in reality often have a variety of complex structures. The connection nodes bear greater pressure and more frequent flow rate changes than the pipelines. When using the existing steady-state hydraulic model, the influence of pipelines, components and other nodes around the nodes is not considered, resulting in a low accuracy rate of hydraulic calculation results at the nodes of the complex pipeline network. The present invention performs hydraulic calculations on the pressure and flow of the nodes based on the connection structure at the nodes.
[0023] The topological structure of the oil and gas pipeline network includes the connection mode between each node (such as pumping station, pressure regulating station, valve, etc.) in the oil and gas pipeline network. By obtaining the topological structure, the connection structure at the node can be obtained.
[0024] Step S2, obtaining geometric parameters of each pipeline in the oil and gas pipeline network.
[0025] The geometric parameters of each pipeline that need to be obtained include but are not limited to: pipeline flow cross-sectional area, pipeline friction coefficient, gas pipeline outer diameter, etc. These parameters can be obtained through the pipeline design drawing.
[0026] Step S3, determining the node type of the node to be tested according to the topological structure, and selecting a steady-state hydraulic calculation model according to the node type.
[0027] Determine the type of node to be tested: According to the number of pipes N connected to the node GD , the number of elements connected to the node N YJ and the number of nodes connected to the node N JD Determine the node type, which includes: primary node, secondary node, and tertiary node.
[0028] The pipeline connected to the node refers to the pipeline directly connected to the node to be tested; The node-connected component refers to the component directly connected to the node to be measured; Nodes related to a node refer to nodes that are directly connected to the node to be tested; (1) Primary node and stable hydraulic calculation model A node is usually connected to multiple pipes. When a node is only connected to pipes, that is, when the number of components connected to the node is N YJ = 0 and the number of nodes connected to the node N JD = 0, the node type is a primary node. This is because the node is only connected to the pipeline, and its solution only depends on its own hydraulic characteristics and the characteristic equation of the connected pipeline. The existing stable hydraulic calculation model can obtain accurate results without special design.
[0029] Hydraulics software can be used to establish a hydraulic steady-state model of the oil and gas pipeline network, including flow formulas, flow velocity equations, selection and calculation of friction coefficients, etc.
[0030] (2) Secondary nodes and stable hydraulic calculation model For a complex oil and gas pipeline network, it is inevitable that nodes are connected to components, such as water pumps and valves, water pumps and pools, etc. When such nodes and components are connected, they cannot be solved separately, but the entire connection structure needs to be considered as a whole.
[0031] When there is another component (water pump, valve, etc.) connected to the node besides the pipe (no related nodes), that is, when the number of components connected to the node is N YJ = 1 and the number of nodes connected to the node N JD =0, the node type is a secondary node, which needs to rely on its own hydraulic characteristics and the characteristic equation of the connecting pipe connecting the node.
[0032] The stable hydraulic calculation model determined by the present invention for the secondary node is as follows: (1) (2) When the transmission temperature remains unchanged, the oil-gas wave velocity can be calculated by formula (4): (4) in, P is the oil and gas pressure, c is the oil and gas wave velocity, m / s; S is the pipeline flow cross-sectional area, m is the gas mass flow rate, l is the pipeline length variable, f is the pipeline friction coefficient, D is the outer diameter of the gas pipeline, g is the gravity acceleration, is the angle between the pipeline and the horizontal plane, and ρ is the oil and gas density.
[0033] The model variables only include oil and gas pressure and gas mass flow rate. After substituting various parameters, the pressure and flow rate of the node to be measured can be directly solved.
[0034] The above model takes into account: valves can control the flow direction and flow rate of fluid in the pipeline. When the valve is closed, the node pressure will increase; when the valve is opened, the node pressure will decrease; pump station: the pump station can increase the pressure of the fluid in the pipeline. When the pump station is running, the node pressure will increase accordingly. Compared with the stable hydraulic calculation model of the first-level node, this model fully considers the influence of valves, pump stations and other components on the node pressure, making the calculation results more accurate.
[0035] (3) Level 3 nodes and stable hydraulic calculation model When there are related nodes around the node, or there are more than one element, that is, when the number of elements connected to the node is N YJ When >1, the node type is a level 3 node. Compared with level 1 and level 2 nodes, level 3 nodes have a more complex connection structure and more factors affect their pressure values.
[0036] When the node type is a third-level node, the steady-state hydraulic calculation model is: (3) in, P is the oil and gas pressure, m is the gas mass flow rate, l is the pipeline length variable, is the angle between the pipeline and the horizontal plane, c is the oil and gas wave velocity, and g is the gravitational acceleration.
[0037] The above model takes into account that the relevant nodes will affect the pressure and flow rate of the nodes to be measured, which is mainly reflected in the direction of the pipeline and the change in flow rate. The direction of the pipeline will affect the flow state of the fluid in the pipeline, thereby affecting the node pressure. For example, when the pipeline is tilted upward, the node pressure will increase accordingly; when the pipeline is tilted downward, the node pressure will decrease accordingly. The flow change of the fluid in the pipeline will also affect the node pressure. When the flow rate increases, the node pressure will increase accordingly; when the flow rate decreases, the node pressure will decrease accordingly. Taking the above considerations into account, the steady-state hydraulic calculation results of the node in this model are more accurate.
[0038] Step S4, solving the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network, and obtaining the steady-state hydraulic calculation results of the node to be tested, that is, the pressure and flow rate of the node.
[0039] The geometric parameters of the pipeline refer to the following in formulas (1)-(4): the cross-sectional area of the pipeline S, in m 2 ; Gas mass flow rate m, unit is kg / s; Pipeline length variable l, unit is m; Pipeline friction coefficient f; Gas pipeline outer diameter D, unit is m; Gravitational acceleration g, unit is m / s 2 ; Angle between the pipe and the horizontal plane , unit is rad; ρ is the oil and gas density, unit is: kg / m 3 .
[0040] Furthermore, the steady-state hydraulic calculation results include pressure data and flow data.
[0041] In summary, the present invention comprehensively considers the complex connection structure at the node, classifies the nodes according to the different connection structures, designs different stable hydraulic calculation models for different node types, and improves the accuracy of the hydraulic calculation results at the nodes of the complex pipe network; when classifying the nodes, the nodes are classified according to the parameters that have the greatest impact on the node pressure, that is, the number of pipes N connected to the node GD , the number of elements connected to the node N YJ and the number of nodes connected to the node, making the classification result more accurate.
[0042] Example 2 A steady-state hydraulic calculation system for an oil and gas pipeline network, using the steady-state hydraulic calculation method for an oil and gas pipeline network as described in Example 1, such as Figure 2 As shown, it includes the following modules: Pipeline network topology acquisition module: used to obtain the topology of the oil and gas pipeline network; A geometric parameter acquisition module, connected to the pipeline network topology acquisition module, for acquiring geometric parameters of each pipeline in the oil and gas pipeline network; A node type determination module, connected to the geometric parameter acquisition module, for determining the node type of the node to be tested according to the topological structure; A steady-state hydraulic calculation model determination module, connected to the node type determination module, for selecting a steady-state hydraulic calculation model according to the node type; Output module: connected to the steady-state hydraulic calculation model determination module, used to solve the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network, and obtain the steady-state hydraulic calculation result of the node to be measured.
[0043] Furthermore, the steady-state hydraulic calculation results include: oil and gas pressure, and gas mass flow rate.
[0044] An electronic device according to an embodiment of the present invention includes a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor, so that the electronic device implements any one of the above-mentioned steady-state hydraulic calculation methods for oil and gas pipeline networks, specifically: Electronic devices may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors, so that the electronic device implements any one of the steady-state hydraulic calculation methods for oil and gas pipeline networks provided in the above embodiments. Of course, the electronic device may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the electronic device may also include other components for realizing the functions of the device, which will not be described in detail here.
[0045] A computer-readable storage medium according to an embodiment of the present invention stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements any of the above-mentioned steady-state hydraulic calculation methods for oil and gas pipeline networks.
[0046] Optionally, the computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0047] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any of the above-mentioned steady-state hydraulic calculation methods for an oil and gas pipeline network.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and represent the definition of a specific order or sequence. The order of use of similar objects can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0049] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as "circuit", "module" or "system" herein. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code.
[0050] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0051] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
[0052] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A steady-state hydraulic calculation method for an oil and gas pipeline network, characterized in that: The steps include: Step S1, obtaining the topological structure of the oil and gas pipeline network; Step S2, obtaining geometric parameters of each pipeline in the oil and gas pipeline network; Step S3, determining the node type of the node to be tested according to the topological structure, and selecting a steady-state hydraulic calculation model according to the node type; Step S4, solving the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network to obtain the steady-state hydraulic calculation result of the node to be measured.
2. A steady-state hydraulic calculation method for an oil and gas pipeline network according to claim 1, characterized in that: Steady-state hydraulic calculation results include: oil and gas pressure, gas mass flow rate.
3. A steady-state hydraulic calculation method for an oil and gas pipeline network according to claim 1, characterized in that: In step S3, the node type of the node to be tested is determined according to the topological structure: according to the number of pipelines N connected to the node GD , the number of elements connected to the node N YJ and the number of nodes connected to the node N JD Determine the node type.
4. A steady-state hydraulic calculation method for an oil and gas pipeline network according to claim 3, characterized in that: The node type is: a primary node, a secondary node or a tertiary node. The node type of the node to be tested is determined as follows: When N YJ =0 and N JD =0, the node type is a primary node; When N YJ =1 and N JD =0, the node type is a secondary node; When N YJ >1, the node type is a third-level node.
5. A steady-state hydraulic calculation method for oil and gas pipeline network according to claim 4, characterized in that: When the node type is a secondary node, the steady-state hydraulic calculation model is: (1) (2) in, P is the oil and gas pressure, c is the oil and gas wave velocity, S is the pipeline flow cross-sectional area, m is the gas mass flow rate, l is the pipeline length variable, f is the pipeline friction coefficient, D is the outer diameter of the gas pipeline, g is the gravity acceleration, is the angle between the pipe and the horizontal plane.
6. A steady-state hydraulic calculation method for oil and gas pipeline network according to claim 4, characterized in that: When the node type is a third-level node, the steady-state hydraulic calculation model is: (3) in, P is the oil and gas pressure, m is the gas mass flow rate, l is the pipeline length variable, is the angle between the pipeline and the horizontal plane, c is the oil and gas wave velocity, and g is the gravitational acceleration.
7. A steady-state hydraulic calculation system for oil and gas pipeline network, characterized in that: Includes the following modules: Pipeline network topology acquisition module: used to obtain the topology of the oil and gas pipeline network; A geometric parameter acquisition module, connected to the pipeline network topology acquisition module, for acquiring geometric parameters of each pipeline in the oil and gas pipeline network; A node type determination module, connected to the geometric parameter acquisition module, for determining the node type of the node to be tested according to the topological structure; A steady-state hydraulic calculation model determination module, connected to the node type determination module, for selecting a steady-state hydraulic calculation model according to the node type; Output module: connected to the steady-state hydraulic calculation model determination module, used to solve the steady-state hydraulic calculation model according to the geometric parameters of each pipeline in the oil and gas pipeline network, and obtain the steady-state hydraulic calculation result of the node to be tested.
8. A steady-state hydraulic calculation system for oil and gas pipeline network according to claim 7, characterized in that: Steady-state hydraulic calculation results include: oil and gas pressure, gas mass flow rate.
9. An electronic device, characterized in that: The electronic device includes a processor, the processor is coupled to a memory, at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the steady-state hydraulic calculation method for an oil and gas pipeline network as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the computer-readable storage medium implements the steady-state hydraulic calculation method for an oil and gas pipeline network as described in any one of claims 1 to 6.