A medium-pressure pipe network breakpoint analysis method based on a pipe network topology
By simplifying the pipeline topology and calculating the comprehensive ranking of plugs and pressure regulating stations, the complexity and high cost of analyzing medium-pressure pipeline network breaks in existing technologies are solved, enabling rapid and accurate break location.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN GAS CORP
- Filing Date
- 2023-07-26
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies for modeling the location of breakpoints in medium-pressure pipelines require numerous input parameters and complex model building, demanding high levels of expertise from technical personnel. Furthermore, they cannot quickly analyze pipeline breakpoints when pipeline user information is incomplete or pipeline end-pressure monitoring data is inadequate.
By simplifying the pipeline network topology and retaining only feature points such as plugs, pressure regulating stations, and pipelines, the ID and location information of these objects are obtained, their comprehensive ranking is calculated, and the degree of risk of discontinuity in the medium-pressure pipeline network is determined.
It enables rapid analysis and accurate location of pipeline network breaks even when pipeline user information is incomplete or pipeline end pressure monitoring data is imperfect, reducing technical costs and professional knowledge requirements.
Smart Images

Figure CN117251963B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pipeline safety management technology, and in particular to a method for analyzing the breakpoints in medium-pressure pipeline networks based on pipeline topology. Background Technology
[0002] Natural gas, as one of the city's basic energy sources, flows to thousands of households through gas pipelines. With the continuous expansion of gas users and the ongoing laying of new medium-pressure pipelines, the pipelines between residential areas are gradually being connected, forming a large network. Through this network, users at the end of the pipeline can receive gas from various pressure regulating stations. Because natural gas flows in the pipeline network according to fluid dynamics principles, the farther the end of the pipeline is from the pressure regulating station, the more bends and straight sections its gas pipeline passes through, making gas pressure more prone to fluctuations during peak consumption periods. Furthermore, the pipeline network contains numerous "discontinuities," meaning that the main gas pipelines laid as part of road construction have not formed effective loops. When users connect to such pipelines, the network's gas supply capacity can easily become insufficient.
[0003] In existing technologies, connecting "disconnected" pipelines to the main pipeline network closer to the gas source can significantly improve the gas supply capacity and ensure safe and stable operation of the pipeline network. For example, gas companies can use pipeline simulation software combined with monitoring data to simulate the operation of the pipeline network and analyze existing pipeline disconnection problems. This technology relies on three elements and processes: establishing hydraulic and thermodynamic relationships in the pipeline system based on physical principles; establishing a pipeline flow simulation model using mathematical methods; and developing computer software using computer technology to form the core technology of pipeline simulation. However, this modeling technology for analyzing pipeline disconnection locations requires numerous input parameters, complex model building, and a high level of technical expertise. When using small-to-medium-sized gas simulation software to analyze the location of medium-pressure pipeline disconnections, it often incurs high technical costs. Furthermore, this modeling technology cannot quickly analyze pipeline disconnections when user information is incomplete or pipeline end-pressure monitoring data is incomplete.
[0004] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention
[0005] The technical problem this invention aims to solve is to provide a method for analyzing medium-pressure pipeline network breakpoints based on pipeline network topology, addressing the aforementioned deficiencies of existing technologies. This method addresses the issues of existing modeling techniques for analyzing pipeline breakpoint locations requiring numerous input parameters, complex model building, and high levels of technical expertise. Furthermore, using small-to-medium-sized gas simulation software to analyze medium-pressure pipeline breakpoint locations often incurs high technical costs. Additionally, this modeling technique cannot quickly analyze pipeline breakpoints when user information is incomplete or pipeline end-pressure monitoring data is inadequate.
[0006] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, the present invention provides a method for analyzing the breakpoints in a medium-pressure pipeline network based on the network topology, wherein the method includes:
[0008] Simplify the first pipeline topology diagram, obtain the object to be analyzed in the simplified first pipeline topology diagram, and construct the second pipeline topology diagram based on the object to be analyzed.
[0009] Obtain the ID and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking objects based on the ID and location information;
[0010] Based on the comprehensive ranking, the degree of risk of breakpoints in the medium-pressure pipeline network is determined.
[0011] In one implementation, the second pipeline topology includes pressure regulating stations, pipe sections, virtual connection points, tees, and plugs.
[0012] In one implementation, obtaining the ID and location information of the object to be analyzed, and calculating a comprehensive ranking of several blocking devices based on the ID and location information, includes:
[0013] Obtain the ID and location information of the sealing material and the pipe segment, and determine the first ranking of the sealing materials based on the ID and location information of the sealing material and the pipe segment;
[0014] Obtain the ID and location information of the pressure regulating station, and determine the second ranking of the plurality of blocking objects based on the ID and location information of the blocking objects and the pressure regulating station;
[0015] Based on the first ranking and the second ranking, a comprehensive ranking of the blockades is determined.
[0016] In one implementation, obtaining the ID and location information of the plug and the pipe segment, and determining the first ranking of the plurality of plugs based on the ID and location information of the plug and the pipe segment, includes:
[0017] Obtain the ID and location information of each sealing object and pipe segment. Based on the location information of each sealing object and pipe segment, iterate and calculate the shortest straight-line distance from each sealing object to the pipe segment.
[0018] Arrange the shortest straight-line distances in ascending order to obtain the first ranking.
[0019] In one implementation, obtaining the ID and location information of each voltage regulating station, and determining a second ranking of the plurality of blocking objects based on the ID and location information of the blocking objects and the voltage regulating stations, includes:
[0020] Obtain the ID and location information of each plug and pressure regulating station. Based on the location information of each plug and pressure regulating station, iterate and calculate the shortest pipeline path length from each plug to the pressure regulating station.
[0021] Arrange the shortest pipeline path lengths in ascending order to obtain the second ranking.
[0022] In one implementation, determining the comprehensive ranking of the plurality of blocking structures based on the first ranking and the second ranking includes:
[0023] Calculate the average ranking of the plurality of blocking objects based on the first ranking and the second ranking, and use the average ranking as the comprehensive ranking of the plurality of blocking objects.
[0024] In one implementation, after determining the degree of fault risk in the medium-pressure pipeline network based on the comprehensive ranking, the process includes:
[0025] The risk level of each blockage location is obtained, and the repair sequence of the medium-pressure pipeline network breaks is determined based on the risk level of the breaks, wherein the repair sequence is proportional to the risk level of the breaks at the location of the blockage.
[0026] Secondly, embodiments of the present invention also provide a medium-pressure pipeline network breakpoint analysis device based on pipeline network topology, wherein the device includes:
[0027] The pipeline topology construction module is used to simplify the first pipeline topology diagram, determine the object to be analyzed in the simplified first pipeline topology diagram, and construct the second pipeline topology diagram based on the object to be analyzed.
[0028] The comprehensive ranking calculation module is used to obtain the ID information and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking objects based on the ID information and location information;
[0029] The fault risk level determination module is used to determine the fault risk level of the medium-pressure pipeline network based on the comprehensive ranking.
[0030] Thirdly, embodiments of the present invention also provide a terminal device, wherein the terminal device includes a memory, a processor, and a medium-pressure pipeline network breakpoint analysis program based on pipeline network topology stored in the memory and executable on the processor. When the processor executes the medium-pressure pipeline network breakpoint analysis program based on pipeline network topology, it implements the steps of the medium-pressure pipeline network breakpoint analysis method based on pipeline network topology as described in any of the above schemes.
[0031] Fourthly, embodiments of the present invention also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a medium-pressure pipeline network breakpoint analysis program based on pipeline network topology, and when the medium-pressure pipeline network breakpoint analysis program based on pipeline network topology is executed by a processor, it implements the steps of the medium-pressure pipeline network breakpoint analysis method based on pipeline network topology as described in any of the above schemes.
[0032] Beneficial Effects: Compared with existing technologies, this invention provides a method for analyzing the breakpoints in medium-pressure pipelines based on pipeline topology. First, a simplified first pipeline topology diagram is used to obtain the objects to be analyzed. A second pipeline topology diagram is then constructed based on these objects. Next, the ID and location information of the objects to be analyzed are obtained. Based on this information, a comprehensive ranking of several blockages is calculated. Finally, the degree of breakpoint risk in the medium-pressure pipeline is determined based on the comprehensive ranking. On one hand, this invention simplifies the objects to be analyzed in the original pipeline topology diagram, retaining only characteristic points such as blockages, pressure regulating stations, and pipelines as the objects to be analyzed. This constructs a new pipeline topology diagram. Then, by obtaining the distance ranking between objects with different IDs in the new topology diagram, the degree of breakpoint risk at the location of the medium-pressure pipeline is determined. This method provides a rapid way to analyze and locate pipeline breakpoints even when pipeline user information is incomplete or pipeline end-pressure monitoring data is incomplete. On the other hand, in this invention, each different ID of the object to be analyzed in the new pipeline network topology diagram is assigned a location information. Therefore, after determining the degree of risk of a break in the location of the medium-pressure pipeline network, the specific location of the original pipeline network break can be accurately located based on the ID information and location information of the object to be analyzed. Therefore, the medium-pressure pipeline network break analysis method based on pipeline network topology provided by this invention can achieve rapid analysis and location of pipeline network break risks. Attached Figure Description
[0033] Figure 1 A flowchart illustrating a specific implementation of the medium-pressure pipeline network breakpoint analysis method based on pipeline network topology provided in this invention.
[0034] Figure 2 The second pipeline topology diagram provided for an embodiment of the present invention.
[0035] Figure 3 This is a schematic diagram of the shortest straight-line distance D1 from the sealing material to the pipe section provided in an embodiment of the present invention.
[0036] Figure 4 This is a schematic diagram of the shortest pipeline path length D2 from the sealing material to the pressure regulating station provided in an embodiment of the present invention.
[0037] Figure 5 The functional principle diagram of the medium-pressure pipeline network breakpoint analysis device based on pipeline network topology provided in the embodiments of the present invention is shown.
[0038] Figure 6 A schematic diagram of a terminal device provided in an embodiment of the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0040] This embodiment provides a method for analyzing the breakpoints in medium-pressure pipelines based on pipeline topology. Specifically, a first simplified pipeline topology diagram is first used to identify the objects to be analyzed within the simplified diagram. A second pipeline topology diagram is then constructed based on these objects. Next, the ID and location information of the objects to be analyzed are obtained. Based on the ID and location information, a comprehensive ranking of several blockages is calculated. Finally, the degree of breakpoint risk in the medium-pressure pipeline is determined based on the comprehensive ranking. On one hand, this embodiment simplifies the objects to be analyzed in the original pipeline topology diagram, retaining only characteristic points such as blockages, pressure regulating stations, and pipelines as the objects to be analyzed. This constructs a new pipeline topology diagram. Then, by obtaining the distance ranking between objects with different IDs in the new topology diagram, the degree of breakpoint risk at the location of the medium-pressure pipeline is determined. This method provides a rapid way to analyze and locate pipeline breakpoints even when pipeline user information is incomplete or pipeline end-pressure monitoring data is incomplete. On the other hand, in this embodiment, each different ID of the object to be analyzed in the new pipeline topology diagram is assigned a location information. Therefore, after determining the degree of risk of the break point at the location of the medium-pressure pipeline, the specific location of the original pipeline break point can be accurately located based on the ID information and location information of the object to be analyzed. Therefore, the medium-pressure pipeline break point analysis method based on the pipeline topology structure provided in this embodiment can achieve rapid analysis and location of pipeline break point risks.
[0041] For example, in this embodiment, each object to be analyzed is assigned its own corresponding ID and location information in the newly constructed pipeline topology map. When this embodiment calculates the comprehensive ranking of several plugs, it obtains the ID and location information of the objects to be analyzed in advance, such as the ID and location information of each plug, pipe segment, and pressure regulating station. Then, it further determines the ranking of the shortest straight-line distance D1 from the plug to the pipe segment, the ranking of the shortest pipeline path length D2 from the plug to the pressure regulating station, and the comprehensive ranking of the D1 and D2 rankings. The comprehensive ranking is used as the basis for determining the degree of risk of the breakpoint. When this embodiment uses the comprehensive ranking derived from distance relationships to determine the degree of risk of the breakpoint, it realizes the problem of quickly analyzing pipeline breakpoints when the number of pipeline user information is unclear and the pressure monitoring data at the end of the pipeline is incomplete. Finally, after determining the risk level of the break point in the medium-pressure pipeline network based on the comprehensive ranking, this embodiment can also quickly and accurately locate the specific location of the original pipeline network break point by using the pre-allocated location information corresponding to each object to be analyzed. For example, the location information corresponding to the sealing object is coordinates (X0, Y0), and the starting coordinates of the location information corresponding to each pipe segment are (X1, Y1) and the ending coordinates are (X2, Y2).
[0042] Exemplary methods
[0043] The medium-pressure pipeline network breakpoint analysis method based on pipeline topology in this embodiment can be applied to terminal devices, which can be intelligent product terminals such as mobile phones, tablets, and computers. In this embodiment, the terminal device can be an external device connected to the medium-pressure pipeline network breakpoint analysis device based on pipeline topology, or it can be a device built into the medium-pressure pipeline network breakpoint analysis device based on pipeline topology. Figure 1 As shown in the figure, the medium-pressure pipeline network discontinuity analysis method based on pipeline network topology in this embodiment includes the following steps:
[0044] Step S100: Simplify the first pipeline network topology diagram, obtain the object to be analyzed in the simplified first pipeline network topology diagram, and construct the second pipeline network topology diagram based on the object to be analyzed.
[0045] In the specific implementation process, the first pipeline topology map is a common urban gas pipeline topology map, and the second pipeline topology map is a newly constructed gas pipeline topology map.
[0046] Since common urban gas pipeline networks are mainly composed of pipes and pipe nodes, which mainly include valves, tees, reducers, straight sections, bends, and plugs (pipe ends), the pipeline topology diagram formed by these pipe nodes and pipe segments often involves too many elements, making it difficult to analyze the location of pipeline breaks. Therefore, this embodiment simplifies the first pipeline topology diagram, determines the object to be analyzed, and constructs a second pipeline topology diagram with appropriate elements. Specifically, the pipe segments are divided into segments with different diameters, such as 110mm, 160mm, 200mm, and 260mm, due to their different diameters. In this embodiment, the pipe diameter to be analyzed is first determined, and then the pipe network composed of pipe segments smaller than the pipe diameter to be analyzed is removed, that is, the interfering pipe segments are removed in advance. Virtual connection points are used to replace the pipe network composed of the pipe diameter to be analyzed. The pipe nodes are further simplified, and only tees, plugs, and pressure regulating stations are retained. Therefore, the objects to be analyzed in the first pipe network topology diagram also include pipe segments, virtual connection points, tees, plugs, and pressure regulating stations. Finally, these objects to be analyzed are merged to construct the second pipe network topology diagram.
[0047] Therefore, as Figure 2 As shown in the diagram, the second pipeline topology diagram of this embodiment includes a pressure regulating station, pipe sections, virtual connection points, tees, and plugs.
[0048] Step S200: Obtain the ID information and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking objects based on the ID information and location information.
[0049] Specifically, each object to be analyzed in the second pipeline network topology diagram has its own corresponding ID information. For example, each plug has its corresponding ID number, each pressure regulating station has its corresponding ID number, each pipe segment, and each virtual connection point also have their corresponding ID number. Furthermore, this embodiment assigns corresponding location information to each object to be analyzed. For example, the location information corresponding to each plug is coordinates (X0, Y0), and the starting coordinates of the location information corresponding to each pipe segment are (X1, Y1), and the ending coordinates are (X2, Y2).
[0050] Preferably, this embodiment combines the coordinates of pipe segments and nodes with the topology, so that the analysis results do not require secondary conversion. The specific location of the pipeline break can be quickly located in subsequent steps using the ID number and coordinates of the blockage.
[0051] In one implementation, this embodiment obtains the ID information and location information of the object to be analyzed, and calculates the comprehensive ranking of several blocking devices based on the ID information and location information, including the following steps:
[0052] Step S201: Obtain the ID information and location information of the sealing material and the pipe segment; determine the first ranking of the sealing materials based on the ID information and location information of the sealing material and the pipe segment.
[0053] Step S202: Obtain the ID information and location information of the pressure regulating station, and determine the second ranking of the plurality of blocking objects based on the ID information and location information of the blocking objects and the pressure regulating station;
[0054] Step S203: Based on the first ranking and the second ranking, determine the comprehensive ranking of the plurality of blocking objects.
[0055] In the specific implementation process, by using the location information between the sealing objects and pipe segments of each ID, the distance between the location of each sealing object and the on-site excavation distance of the "breakpoint repair connection" can be determined. By using the location information between the sealing objects and the pressure regulating station of each ID, the gas pressure and flow velocity at the location of each sealing object can be determined. Then, by comprehensively considering the gas pressure and flow velocity at the location of each sealing object and its distance from the on-site excavation distance of the "breakpoint repair connection", the degree of breakpoint repair of each sealing object can be comprehensively judged.
[0056] In one implementation, step S201 of this embodiment specifically includes:
[0057] Step S211: Obtain the ID information and location information of each sealing object and pipe segment. Based on the location information of each sealing object and pipe segment, iterate and calculate the shortest straight-line distance from each sealing object to the pipe segment.
[0058] Step S212: Arrange the shortest straight-line distances in ascending order to obtain the first ranking.
[0059] like Figure 3 As shown, in this embodiment, a rectangular coordinate system is constructed with the coordinate position (X0, Y0) of the plug as the origin. A circle is drawn with (X0, Y0) as the center and a specified radius until the drawn circle intersects with any pipe segment. The ID information and position information of the pipe segment are recorded to determine the straight-line distance D1 from the plug to the nearest pipe. Then, the radius is expanded until the drawn circle intersects with all pipe segments. The ID information and position information of all pipe segments are recorded. The position information of each pipe segment includes the starting coordinate position (X1, Y1) and the ending coordinate position (X2, Y2). Then, the mathematical formula of the shortest distance from a point to a line segment in the rectangular coordinate system is used to calculate the shortest straight-line distance D1 from each plug to the pipe segment. The shortest straight-line distance D1 represents the on-site excavation distance from the location of each plug to the "breakpoint repair connection". The smaller the value of D1, the shorter the on-site excavation distance and the lower the corresponding excavation cost.
[0060] For example, firstly, after traversing the calculations, if the distance from the first ID blockage to the first ID pipe segment is found to be 35m, the distance from the first ID blockage to the second ID pipe segment is 60m, and the distance from the first ID blockage to the third ID pipe segment is 72m, then since 35m < 60m < 72m, the distance of 60m from the first ID blockage to the first ID pipe segment is determined to be the shortest straight-line distance for the first ID blockage. Then, the shortest straight-line distances for the second ID blockage, the third ID blockage, and the fourth ID blockage are calculated, i.e., the shortest straight-line distance from each blockage to the pipe segment is calculated traversally.
[0061] Furthermore, in this embodiment, several shortest straight-line distances are arranged in ascending order to obtain a first ranking. For example, when the shortest straight-line distance of the first ID blockade is 60m, the shortest straight-line distance of the second ID blockade is 40m, and the shortest straight-line distance of the third ID blockade is 55m, since 40m < 55m < 60m, the first ranking order is: second ID blockade, third ID blockade, and first ID blockade.
[0062] In one implementation, step S202 of this embodiment specifically includes:
[0063] Step S221: Obtain the ID information and location information of each plug and pressure regulating station. Based on the location information of each plug and pressure regulating station, traverse and calculate the shortest pipeline path length from each plug to the pressure regulating station.
[0064] Step S222: Arrange the shortest pipeline path lengths in ascending order to obtain the second ranking.
[0065] like Figure 4 As shown in the figure, the bold line segment represents the shortest pipeline path length D2 from the plug to the pressure regulating station. The shortest pipeline path length D2 indicates the gas pressure and flow velocity at the location of each plug. According to fluid mechanics principles, the longer the path of gas flowing from the gas source, the lower the flow velocity and pressure at the destination, and the greater the pressure loss along the way.
[0066] Specifically, this embodiment first obtains the ID and location information of each plug and pressure regulating station. Then, starting from the location of the plug, it calculates the shortest path from each plug to the pressure regulating station using shortest path solving algorithms, such as Dijkstra's algorithm, Bellman-Ford algorithm, SPFA algorithm, and Floyd algorithm. Finally, it iterates through the network to calculate the shortest pipeline path length from each plug to the pressure regulating station. The path length is the sum of the lengths of all pipe segments along the path. If the path from the plug to a pressure regulating station is blocked, the pipeline path length from the plug to that pressure regulating station is infinite. For example, after iterative calculation, the shortest pipeline path length for the plug with the first ID is 110m, for the plug with the second ID it is 82m, and for the plug with the third ID it is 55m.
[0067] Furthermore, in this embodiment, several shortest pipeline path lengths are arranged in ascending order to obtain a second ranking. For example, when the shortest pipeline path length of the first ID blockade is 110m, the shortest pipeline path length of the second ID blockade is 82m, and the shortest pipeline path length of the third ID blockade is 55m, since 55m < 82m < 110m, the second ranking order is: third ID blockade, second ID blockade, first ID blockade.
[0068] In one implementation, step S203 of this embodiment specifically includes:
[0069] Step S231: Calculate the average ranking of the plurality of blocking objects based on the first ranking and the second ranking, and use the average ranking as the comprehensive ranking of the plurality of blocking objects.
[0070] Since the first ranking represents the distance of each sealing element from the on-site excavation of the "breakpoint repair connection," and the second ranking represents the gas pressure and flow velocity at the location of each sealing element, this embodiment uses the average of the first and second rankings as the comprehensive ranking. This not only comprehensively considers the gas pressure and flow velocity at the location of each sealing element, as well as its distance from the on-site excavation of the "breakpoint repair connection," but also enables a more accurate assessment of the breakpoint risk level of each sealing element in subsequent steps.
[0071] Preferably, this embodiment can also superimpose or replace other considerations on the basis of the straight-line distance from the blockage to the nearest pipeline and the shortest pipeline path length from the blockage to the pressure regulating station. For example, the number of users carried in the pipeline area can be superimposed or replaced, thereby achieving good scalability in the content of the analysis method.
[0072] Step S300: Determine the degree of risk of breakpoints in the medium-pressure pipeline network based on the comprehensive ranking.
[0073] Specifically, in this embodiment, the ranking of the blocking object is determined based on the order of the overall ranking. The higher the ranking of the blocking object, the higher the risk level of the breakpoint at the location of the blocking object; the lower the ranking of the blocking object, the lower the risk level of the breakpoint at the location of the blocking object.
[0074] In one implementation, after step S300, this embodiment includes the following steps:
[0075] Step S400: Obtain the risk level of the break point at the location of each plug, and determine the repair sequence of the medium-pressure pipeline break point location based on the risk level of the break point, wherein the repair sequence is proportional to the risk level of the break point at the location of the plug.
[0076] Specifically, if the risk of a break at the location of the blockage is higher, priority should be given to repairing the break at that location and optimizing the pipeline structure.
[0077] In summary, this embodiment provides a method for analyzing the breakpoints in medium-pressure pipelines based on pipeline topology. Specifically, it first simplifies a first pipeline topology diagram, then obtains the objects to be analyzed from the simplified diagram, constructs a second pipeline topology diagram based on these objects, and then obtains the ID and location information of the objects. Based on the ID and location information, it calculates a comprehensive ranking of several blockages, and finally determines the degree of breakpoint risk in the medium-pressure pipeline based on the comprehensive ranking. On one hand, this embodiment simplifies the objects to be analyzed in the original pipeline topology diagram, retaining only characteristic points such as blockages, pressure regulating stations, and pipelines as the objects to be analyzed, thus constructing a new pipeline topology diagram. Then, by obtaining the distance ranking between objects with different IDs in the new topology diagram, it determines the degree of breakpoint risk at the location of the medium-pressure pipeline. This method provides a rapid way to analyze and locate pipeline breakpoints even when pipeline user information is incomplete or pipeline end-pressure monitoring data is incomplete. On the other hand, in this embodiment, each different ID of the object to be analyzed in the new pipeline topology diagram is assigned a location information. Therefore, after determining the degree of risk of the break point at the location of the medium-pressure pipeline, the specific location of the original pipeline break point can be accurately located based on the ID information and location information of the object to be analyzed. Therefore, the medium-pressure pipeline break point analysis method based on the pipeline topology structure provided in this embodiment can achieve rapid analysis and location of pipeline break point risks.
[0078] Exemplary device
[0079] Based on the above embodiments, the present invention also provides a medium-pressure pipeline network breakpoint analysis device based on pipeline network topology, such as... Figure 5As shown, the medium-pressure pipeline network breakpoint analysis device based on pipeline topology includes: a pipeline topology map construction module 201, a comprehensive ranking calculation module 202, and a breakpoint risk degree determination module 203. Specifically, the pipeline topology map construction module 201 is used to simplify a first pipeline topology map, determine the object to be analyzed in the simplified first pipeline topology map, and construct a second pipeline topology map based on the object to be analyzed. The comprehensive ranking calculation module 202 is used to obtain the ID information and location information of the object to be analyzed, and calculate the comprehensive ranking of several blockages based on the ID information and location information. The breakpoint risk degree determination module 203 is used to determine the breakpoint risk degree of the medium-pressure pipeline network based on the comprehensive ranking.
[0080] In one implementation, the pipeline topology construction module 201 includes:
[0081] The second pipeline topology diagram consists of units including pressure regulating stations, pipe sections, virtual connection points, tees, and plugs.
[0082] In one implementation, the comprehensive ranking calculation module 202 includes:
[0083] The first ranking determination unit is used to obtain the ID information and location information of the sealing object and the pipe segment, and determine the first ranking of the plurality of sealing objects based on the ID information and location information of the sealing object and the pipe segment;
[0084] The second ranking determination unit is used to obtain the ID information and location information of the pressure regulating station, and determine the second ranking of the plurality of blocking objects based on the ID information and location information of the blocking objects and the pressure regulating station;
[0085] The comprehensive ranking determination unit is used to determine the comprehensive ranking of the plurality of blocking objects based on the first ranking and the second ranking.
[0086] In one implementation, the first ranking determination unit includes:
[0087] The shortest straight-line distance calculation unit is used to obtain the ID information and location information of each sealing object and pipe segment, and to calculate the shortest straight-line distance from each sealing object to the pipe segment based on the location information of each sealing object and pipe segment.
[0088] The shortest straight-line distance ranking unit is used to arrange the several shortest straight-line distances in ascending order to obtain the first ranking.
[0089] In one implementation, the second ranking determination unit includes:
[0090] The shortest pipeline path length calculation unit is used to obtain the ID information and location information of each plug and pressure regulating station, and to calculate the shortest pipeline path length from each plug to the pressure regulating station based on the location information of each plug and pressure regulating station.
[0091] The shortest pipeline path length ranking unit is used to arrange the shortest pipeline path lengths in ascending order to obtain the second ranking.
[0092] In one implementation, the comprehensive ranking determination unit includes:
[0093] An average ranking calculation unit is used to calculate the average ranking of the plurality of blocking objects based on the first ranking and the second ranking, and to use the average ranking as the comprehensive ranking of the plurality of blocking objects.
[0094] In one implementation, the medium-pressure pipeline network breakpoint analysis device based on pipeline network topology further includes:
[0095] The breakpoint risk repair module is used to obtain the breakpoint risk level of each blockage location and determine the repair sequence of the medium-pressure pipeline breakpoint locations based on the breakpoint risk level, wherein the repair sequence is proportional to the breakpoint risk level of the blockage location.
[0096] The working principle of each module in the medium-pressure pipeline network breakpoint analysis device based on pipeline network topology in this embodiment is the same as the principle of each step in the above method embodiment, and will not be repeated here.
[0097] Based on the above embodiments, the present invention also provides a terminal device, the schematic diagram of which can be as follows: Figure 6 As shown. The terminal device may include one or more processors 100 ( Figure 6 (Only one is shown in the image), a memory 101, and a computer program 102 stored in the memory 101 and executable on one or more processors 100, such as a program for medium-pressure pipeline network breakpoint analysis based on pipeline network topology. When one or more processors 100 execute the computer program 102, they can implement the various steps in the embodiment of the method for medium-pressure pipeline network breakpoint analysis based on pipeline network topology. Alternatively, when one or more processors 100 execute the computer program 102, they can implement the functions of each module / unit in the embodiment of the device for medium-pressure pipeline network breakpoint analysis based on pipeline network topology, which is not limited here.
[0098] In one embodiment, the processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0099] In one embodiment, memory 101 may be an internal storage unit of an electronic device, such as a hard drive or RAM. Memory 101 may also be an external storage device of the electronic device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Furthermore, memory 101 may include both internal and external storage units. Memory 101 is used to store computer programs and other programs and data required by the terminal device. Memory 101 can also be used to temporarily store data that has been output or will be output.
[0100] Those skilled in the art will understand that Figure 6 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal device to which the present invention is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0101] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the methods described above. Any references to memory, storage, operational databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual operating data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0102] In summary, this invention discloses a method for analyzing breakpoints in medium-pressure pipeline networks based on pipeline topology. The method includes: simplifying a first pipeline topology diagram; obtaining objects to be analyzed in the simplified first pipeline topology diagram; constructing a second pipeline topology diagram based on the objects to be analyzed; obtaining the ID and location information of the objects to be analyzed; calculating a comprehensive ranking of several blocking objects based on the ID and location information; and determining the degree of breakpoint risk in the medium-pressure pipeline network based on the comprehensive ranking. This invention constructs a new pipeline topology diagram by simplifying the objects to be analyzed in the original pipeline topology diagram, and assigns location information to each object to be analyzed in the new pipeline topology diagram. This allows for the calculation of a comprehensive ranking for each blocking object, thereby determining the degree of breakpoint risk at the location of the blocking object, achieving rapid analysis and location of breakpoints in medium-pressure pipeline networks.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for analyzing the discontinuities in a medium-pressure pipeline network based on its topology, characterized in that, The method includes: Simplify the first pipeline topology diagram, obtain the object to be analyzed in the simplified first pipeline topology diagram, and construct the second pipeline topology diagram based on the object to be analyzed. Obtain the ID and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking objects based on the ID and location information; Based on the comprehensive ranking, the degree of risk of breakpoints in the medium-pressure pipeline network is determined; Obtain the ID and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking devices based on the ID and location information, including: Obtain the ID and location information of each sealing object and pipe segment. Based on the location information of each sealing object and pipe segment, iterate and calculate the shortest straight-line distance from each sealing object to the pipe segment. Arrange the shortest straight-line distances in ascending order to obtain the first ranking; Obtain the ID and location information of each plug and pressure regulating station. Based on the location information of each plug and pressure regulating station, iterate and calculate the shortest pipeline path length from each plug to the pressure regulating station. Arrange the shortest pipeline path lengths in ascending order to obtain the second ranking; Based on the first ranking and the second ranking, a comprehensive ranking of the blockades is determined.
2. The method for analyzing the discontinuity of a medium-pressure pipeline network based on its topology, as described in claim 1, is characterized in that... The second pipeline topology diagram includes pressure regulating stations, pipe sections, virtual connection points, tees, and plugs.
3. The method for analyzing the discontinuity of a medium-pressure pipeline network based on its topology, as described in claim 1, is characterized in that... The determination of the comprehensive ranking of the plurality of blocking structures based on the first ranking and the second ranking includes: Calculate the average ranking of the plurality of blocking objects based on the first ranking and the second ranking, and use the average ranking as the comprehensive ranking of the plurality of blocking objects.
4. The method for analyzing the discontinuity of a medium-pressure pipeline network based on its topology, as described in claim 1, is characterized in that... After determining the degree of risk of discontinuity in the medium-pressure pipeline network based on the comprehensive ranking, the process includes: The risk level of each blockage location is obtained, and the repair sequence of the medium-pressure pipeline network breaks is determined based on the risk level of the breaks, wherein the repair sequence is proportional to the risk level of the breaks at the location of the blockage.
5. A medium-pressure pipeline network discontinuity analysis device based on pipeline network topology, characterized in that, The apparatus, used to implement the method for analyzing the discontinuity of a medium-pressure pipeline network based on the pipeline network topology as described in any one of claims 1-4, comprises: The pipeline topology construction module is used to simplify the first pipeline topology diagram, determine the object to be analyzed in the simplified first pipeline topology diagram, and construct the second pipeline topology diagram based on the object to be analyzed. The comprehensive ranking calculation module is used to obtain the ID information and location information of the object to be analyzed, and calculate the comprehensive ranking of several blocking objects based on the ID information and location information; The fault risk level determination module is used to determine the fault risk level of the medium-pressure pipeline network based on the comprehensive ranking.
6. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a medium-pressure pipeline network breakpoint analysis program based on the pipeline network topology stored in the memory and executable on the processor. When the processor executes the medium-pressure pipeline network breakpoint analysis program based on the pipeline network topology, it implements the steps of the medium-pressure pipeline network breakpoint analysis method based on the pipeline network topology as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a medium-pressure pipeline network breakpoint analysis program based on the pipeline network topology. When the medium-pressure pipeline network breakpoint analysis program based on the pipeline network topology is executed by the processor, it implements the steps of the medium-pressure pipeline network breakpoint analysis method based on the pipeline network topology as described in any one of claims 1-4.