Pipe network flow direction display graph generation method and system, storage medium and electronic equipment

By obtaining and processing the information of the management website and generating a pipeline network flow display diagram, the problem of manual input and output in complex pipeline networks is solved, and the rapid, efficient and accurate flow display is achieved, reducing the workload of engineers.

CN119808618APending Publication Date: 2025-04-11PETROCHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311316322.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

When the prior art deals with complex "spider-web-type" or "multi-branch" long-distance pipeline networks, there are many node stations and complex flow directions, resulting in manual input and output being prone to errors and errors, the workload is heavy and repetitive, and the efficiency is inefficient.

Method used

By obtaining station information in the pipeline network, including station name, station pressure and connection pipelines between stations, a pipeline flow display diagram is generated based on this information. The specific steps include determining the location of the station site, displaying the name and pressure of the station site, and using arrows to mark the flow relationship between the station sites to form a clear flow display diagram.

Benefits of technology

It realizes the drawing of the pipeline flow display diagram quickly, efficiently and accurately, which reduces the workload of engineers, ensures the accuracy of the output icons, and displays the name, pressure and flow relationship of the pipeline in a clear and concise form.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119808618A_ABST
    Figure CN119808618A_ABST
Patent Text Reader

Abstract

The invention provides a pipe network flow direction display diagram generation method and system, a computer readable storage medium and electronic equipment, and relates to the technical field of natural gas pipe network analysis, the method comprises the steps that station yard information in a pipe network is acquired, and the station yard information comprises station yard names, station yard pressure and connecting pipelines between station yards; determining a station yard position based on the station yard name; based on the station yard position, the station yard name and the station yard pressure are displayed in a chart; and marking names of the connected stations in the chart by arrows based on connecting pipelines between the stations and the pressure of the stations, so as to form a flow direction display chart. By means of the method, heavy and repeated searching and marking work can be rapidly, efficiently and accurately completed, the name, pressure and flow direction relation of the pipe network is clearly displayed, the workload of engineers is relieved, the accuracy of output icons can be guaranteed, and the pipe network is displayed in a clear and concise mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural gas pipeline network analysis, and in particular to a method, system, computer-readable storage medium and electronic device for generating a pipeline network flow direction display diagram. Background Art

[0002] TGNET is widely used at home and abroad to simulate the flow direction and flow distribution of pipelines in complex pipeline networks. After the simulation is completed, data is usually manually extracted from node stations one by one and then filled into the specified location. However, for "spider-web" and "multi-branch" long-distance pipeline networks, there are many node stations and complex flow directions. When using manual input and output, errors and errors are prone to occur, and the workload is heavy and repetitive. Generally, for a pipeline network with 100 node stations and more than 1,000 km of pipelines, it often takes 1 to 2 days to obtain a working condition simulation diagram of the entire pipeline network using a point-to-point method, which is inefficient. Summary of the invention

[0003] In view of the above problems, the present invention proposes a method, system, computer-readable storage medium and electronic device for generating a pipeline network flow direction display diagram, which can efficiently complete the drawing of the pipeline network flow direction display diagram.

[0004] In a first aspect, a method for generating a pipe network flow direction display diagram is provided, comprising:

[0005] Obtaining station information in the pipe network, the station information including: station name, station pressure, and connecting pipelines between stations;

[0006] Determine the station location based on the station name;

[0007] Based on the station location, displaying the station name and the station pressure in a chart;

[0008] Based on the connecting pipelines between the stations and the station pressures, arrows are used to mark the names of the connected stations in the diagram to form a flow direction display diagram.

[0009] Furthermore, the station name pointed to by at least three arrows is marked as a hub station.

[0010] Furthermore, the station information also includes station output flow and station input flow;

[0011] The method further comprises:

[0012] Based on the station output flow and the station input flow, it is determined whether the flow is balanced.

[0013] Furthermore, when the station name appears repeatedly, the station name is displayed only once.

[0014] Furthermore, when the station name appears repeatedly, multiple station output flows corresponding to the repeated station name are added together to obtain the total output flow of the station.

[0015] Furthermore, the arrow points from the higher pressure side to the lower pressure side.

[0016] In a second aspect, a system for generating a pipe network flow direction display diagram is provided, comprising:

[0017] An acquisition module is used to acquire station information in the pipe network, wherein the station information at least includes: station name, station pressure, and connecting pipelines between stations;

[0018] A determination module, configured to determine a station location based on the station name;

[0019] A display module, used for displaying the station name and station pressure in a chart based on the station location;

[0020] The marking module is used to mark the names of the connected stations with arrows in the diagram based on the connecting pipelines between the stations and the station pressures, so as to form a flow direction display diagram.

[0021] In a third aspect, a computer-readable storage medium is provided, storing a program or instruction. When the program or instruction is executed on a computer, the computer executes the method for generating a pipeline flow direction display diagram as described in any of the above schemes.

[0022] In a fourth aspect, an electronic device is provided, comprising: a processor, the processor being coupled to a memory,

[0023] The processor is used to read and execute the computer program stored in the memory to implement the method for generating the pipeline flow direction display diagram described in any of the above schemes.

[0024] One or more technical solutions provided by this application have at least the following technical effects or advantages:

[0025] This method can quickly, efficiently and accurately complete the heavy and repetitive search and marking work, and clearly display the name, pressure and flow direction of the pipeline network, which can reduce the workload of engineers and ensure the accuracy of the output icons, and display the pipeline network in a clear and concise form.

[0026] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 A schematic diagram of a flow chart of a method for generating a pipe network flow direction display diagram provided by an embodiment of the present invention;

[0029] Figure 2 A schematic diagram of the structure of a system for generating a pipe network flow direction display diagram provided by an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0032] The following operations are all implemented based on Python's GUI automation control program, which mainly uses the Pyautogui library. Pyautogui can simulate mouse and keyboard input by writing scripts, thereby realizing automated control of graphical interface (GUI) software.

[0033] Figure 1 A schematic diagram of a flow chart of a method for generating a pipe network flow direction display diagram provided by an embodiment of the present invention. Figure 1 As shown, the method for generating a pipe network flow direction display diagram according to an embodiment of the present invention specifically includes the following steps:

[0034] S101: Obtain station information in the pipeline network, where the station information includes: station name, station pressure, and connecting pipelines between stations.

[0035] The specific acquisition method is: batch export the pipe network data in TGNET in the data result column of TGNET software.

[0036] There are many station names obtained, each name represents a station, and each station name has a corresponding station pressure.

[0037] When the station name appears repeatedly, the station name is only displayed once. Specifically, in the acquired station information, when the same station name appears repeatedly, the station name that appears multiple times is deduplicated, and the same station name is only displayed once in the end, and other repeated station names are deleted.

[0038] The acquired station information may also include station output flow and station input flow; therefore, the method further includes: judging whether the flow is balanced based on the station output flow and the station input flow.

[0039] Specifically, the station output flow is subtracted from the station input flow. When the result is 0, it means the flow is balanced. If the result is not 0, it means the flow is unbalanced, which means that the TGNET software simulation data is abnormal.

[0040] At this time, since each repeated station name corresponds to a station output flow, the multiple station output flows corresponding to the repeated station names are added together to obtain the total output flow of the station. When the same station name appears repeatedly, the station input flow corresponding to each station name is the same, so you only need to take any station input flow to display.

[0041] S102: Determine the station location based on the station name.

[0042] Since the names of the stations are all named after place names, the coordinate information of the place names can be obtained from Baidu Maps to determine the specific location of the station.

[0043] S103: Based on the station location, the station name and station pressure are displayed in a chart.

[0044] In the chart, the stations are displayed according to their specific locations and directions. The display method is based on the principle of south at the top, north at the bottom, west on the left, and east on the right. For example, station A is located to the east of station B, and station A is displayed to the right of station B in the chart; for another example, station C is located to the northwest of station D, and station C is displayed to the upper left of station D in the chart.

[0045] S104: Based on the connecting pipelines and station pressures between stations, arrows are used to mark the names of the connected stations in the diagram to form a flow direction display diagram.

[0046] If there is a connecting pipeline between the two stations, it is marked by a single arrow along the direction of fluid flow in the pipeline.

[0047] Since each station name corresponds to the station pressure of the station, the flow direction of the fluid in the pipeline is from the side with higher station pressure to the side with lower station pressure, so the single-direction arrow points from the side with higher pressure to the side with lower pressure.

[0048] The station names pointed to by at least three arrows are marked as hub stations. Multiple station names are displayed in the entire display diagram. When a station name has at least three single arrows pointing to it, the station name pointed to by the single arrow is determined to be a hub station, and the hub station is marked with a color to remind it prominently.

[0049] Figure 2 The present invention also provides a system for generating a pipe network flow direction display diagram, such as Figure 2 As shown, the system comprises:

[0050] The acquisition module 201 is used to acquire the station information in the pipeline network, and the station information at least includes: station name, station pressure and connecting pipelines between stations;

[0051] A determination module 202, configured to determine a station location based on the station name;

[0052] The display module 203 is used to display the station location, station name and station pressure in a chart;

[0053] The marking module 204 is used to mark the names of the connected stations with arrows in the diagram based on the connecting pipelines and station pressures between the stations to form a flow direction display diagram.

[0054] It should be noted here that the above-mentioned acquisition module 201, determination module 202, display module 203 and marking module 204 correspond to steps S101 to S104 in the embodiment of the method for generating a pipe network flow direction display diagram, and the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiments.

[0055] The technical solutions in the above embodiments of the present application have at least the following technical effects or advantages:

[0056] This method can quickly, efficiently and accurately complete the heavy and repetitive search and marking work, and clearly display the name, pressure and flow direction of the pipeline network, which can reduce the workload of engineers and ensure the accuracy of the output icons, and display the pipeline network in a clear and concise form.

[0057] An embodiment of the present invention further provides a computer-readable storage medium storing a program or instruction. When the program or instruction is executed on a computer, the computer executes the method for generating a pipe network flow direction display diagram as described in the first embodiment.

[0058] Figure 3 The schematic diagram of the structure of the electronic device provided by the embodiment of the invention. Figure 3 As shown, an embodiment of the present invention further provides an electronic device, comprising: a processor, the processor is coupled to a memory,

[0059] The processor is used to read and execute the computer program stored in the memory to implement the method for generating the pipeline flow direction display diagram as described in the above method embodiment.

[0060] 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 make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a pipe network flow direction display diagram, characterized in that: include: Obtaining station information in the pipe network, the station information including: station name, station pressure, and connecting pipelines between stations; Determine the station location based on the station name; Based on the station location, displaying the station name and the station pressure in a chart; Based on the connecting pipelines between the stations and the station pressures, arrows are used to mark the names of the connected stations in the diagram to form a flow direction display diagram.

2. The method according to claim 1, characterized in that: The station to which at least three arrows point is marked as a hub station.

3. The method according to claim 1, characterized in that: The station information also includes station output flow and station input flow; The method further comprises: Based on the station output flow and the station input flow, it is determined whether the flow is balanced.

4. The method according to claim 1, characterized in that: When the station name appears repeatedly, the station name is displayed only once.

5. The method according to claim 4, characterized in that When the station name appears repeatedly, multiple station output flows corresponding to the repeated station name are added together to obtain the total output flow of the station.

6. The method according to claim 1, characterized in that The arrow points from the higher pressure side to the lower pressure side.

7. A system for generating a pipe network flow direction display diagram, characterized in that: include: An acquisition module is used to acquire station information in the pipe network, wherein the station information at least includes: station name, station pressure, and connecting pipelines between stations; A determination module, configured to determine a station location based on the station name; A display module, used for displaying the station name and station pressure in a chart based on the station location; The marking module is used to mark the names of the connected stations with arrows in the diagram based on the connecting pipelines between the stations and the station pressures, so as to form a flow direction display diagram.

8. The system according to claim 7, characterized in that The marking module is also used to perform the following steps: The station to which at least three arrows point is marked as a hub station.

9. A computer-readable storage medium, characterized in that: A program or instruction is stored, and when the program or instruction is run on a computer, the computer executes the method for generating a pipe network flow direction display diagram as described in any one of claims 1-6.

10. An electronic device, characterized in that: include: a processor coupled to the memory, The processor is used to read and execute the computer program stored in the memory to implement the method for generating a pipe network flow direction display diagram as described in any one of claims 1-6.