A method for diagnosing and treating the degree and flow direction of a gas pipe network
Patent Information
- Application Number
- CN202311753416.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-12-18
AI Technical Summary
[0004]本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种燃气管网度数与流向的诊断与治理方法,旨在解决现有技术中主要采用人工方式对拓扑流向进行检查和修复,导致治理成本较高且治理效果不佳的问题
[0037]本发明的有益效果:本发明实施例通过获取燃气管网的管网拓扑数据;根据管网拓扑数据获取燃气管网中各节点分别对应的实际度数,根据各节点的实际度数构建违法度数清单和度数修复方案;根据管网拓扑数据计算各节点的实际流向,根据各节点的实际流向构建非法流向清单和流向修复方案。本发明可以自动对管网拓扑数据进行违法度数检查和非法流向检查,并针对检查出的违法度数节点和非法流向节点进行修复,从而提高管网拓扑数据的正确性和可靠性。
Smart Images

Figure CN117893192B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pipeline network analysis, and more particularly to a method for diagnosing and managing the degree and flow direction of a gas pipeline network. Background Technology
[0002] City gas topology is data describing the basic structure of a city's gas pipeline network. Initially, to address the problem of chaotic topology flow, manual inspection and repair were the only options. However, manual inspection and repair methods struggle to meet the timeliness requirements of data governance in terms of accuracy and efficiency. When the data volume is large, manual inspection and repair are prone to high error rates; when there is excessive redundancy in abnormal data, manual inspection and repair also cannot handle all anomalies. Furthermore, when multiple people collaborate on managing the same area, unclear division of labor can easily lead to duplicate inspections and repair conflicts. With the continuous development of computer technology, ArcGIS systems (the infrastructure for mapping and geographic information) have gradually begun to be used to assist in the manual inspection and repair of chaotic topology flow data. However, when the data volume is very large, the error rate and omission rate of manual repair increase, and it also places higher demands on personnel skills.
[0003] Therefore, existing technologies still need improvement and development. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a method for diagnosing and managing the degree and flow direction of gas pipelines, in order to address the above-mentioned deficiencies of the prior art. This method aims to solve the problem that the prior art mainly uses manual methods to check and repair the topology and flow direction, resulting in high management costs and poor management effects.
[0005] The technical solution adopted by this invention to solve the problem is as follows:
[0006] In a first aspect, embodiments of the present invention provide a method for diagnosing and managing the degree and flow direction of a gas pipeline network, the method comprising:
[0007] Obtain the network topology data of the gas pipeline network;
[0008] Based on the pipeline topology data, the actual degree corresponding to each node in the gas pipeline network is obtained, and a list of illegal degrees and degree repair schemes are constructed based on the actual degree of each node.
[0009] The actual flow direction of each node is calculated based on the pipeline topology data, and an illegal flow direction list and flow direction repair plan are constructed based on the actual flow direction of each node.
[0010] In one embodiment, acquiring the pipeline topology data of the gas pipeline network includes:
[0011] Read the point table data and line table data of the gas pipeline network;
[0012] The pipeline topology data is obtained based on the point table data and the line table data.
[0013] In one implementation, the method for constructing the violation index includes:
[0014] For each node, the valid degree corresponding to the node is determined according to the node type, and the node is judged to meet the degree requirement based on the actual degree and the valid degree.
[0015] If the degree does not meet the requirements, the node will be entered into the list of illegal degrees.
[0016] In one embodiment, the method for constructing the degree correction scheme includes:
[0017] For each node in the illegality score list, if the actual score of the node is less than the legal score, then ordinary nodes in the illegality score list whose actual score is less than the legal score are selected as nodes to be filtered.
[0018] A scanning range is constructed with the node as the center and a preset radius, and the nodes to be screened within the scanning range are taken as candidate connection nodes;
[0019] The corresponding connection node is determined based on the missing degree of the node and each of the candidate connection nodes, and a pipeline is established based on the node and the connection node to achieve degree repair of the node.
[0020] In one embodiment, the method for constructing the degree correction scheme further includes:
[0021] For each node in the illegal degree list, if the actual degree of the node is greater than the legal degree, then obtain all connected nodes of the node and the node type of each connected node;
[0022] For each of the connected nodes, determine whether the connected node exists in the illegal degree list and whether the actual degree is greater than the legal degree;
[0023] If so, delete the connected pipes to restore the degree of the node;
[0024] If not, determine whether the adjacent node is a normal node whose actual degree is equal to the legal degree; if so, delete the connected pipe to restore the degree of the node.
[0025] In one implementation, the actual flow direction is the actual number of entries and exits, and the method for constructing the illegal flow list includes:
[0026] Based on the start and end points of each pipeline in the pipeline network topology data, calculate the actual number of inflows and outflows corresponding to each node;
[0027] For each node, the number of legal entries and exits corresponding to that node is determined according to the node type, and whether the node meets the flow requirements is determined based on the actual number of entries and exits and the number of legal entries and exits.
[0028] If the flow direction does not meet the requirements, the node will be added to the list of illegal flows.
[0029] In one embodiment, the method for constructing the flow direction repair scheme includes:
[0030] For each node in the list of illegal flow directions, the starting and ending nodes of the pipeline corresponding to that node are swapped to restore the flow direction of that node.
[0031] Secondly, embodiments of the present invention also provide a diagnostic and treatment device for gas pipeline network degree and flow direction, the device comprising:
[0032] The data acquisition module is used to acquire the pipeline topology data of the gas pipeline network;
[0033] The degree processing module is used to obtain the actual degree corresponding to each node in the gas pipeline network according to the pipeline network topology data, and to construct a list of illegal degrees and a degree repair plan based on the actual degree of each node.
[0034] The flow direction processing module is used to calculate the actual flow direction of each node based on the pipeline topology data, and to construct an illegal flow direction list and a flow direction repair plan based on the actual flow direction of each node.
[0035] Thirdly, embodiments of the present invention also provide a terminal, the terminal including a memory and one or more processors; the memory stores one or more programs; the programs include instructions for executing the diagnostic and treatment methods for gas pipeline temperature and flow direction as described above; the processor is used to execute the programs.
[0036] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a plurality of instructions, which are adapted to be loaded and executed by a processor to implement the steps of any of the above-described methods for diagnosing and managing the gas pipeline network temperature and flow direction.
[0037] The beneficial effects of this invention are as follows: This invention acquires the topology data of a gas pipeline network; obtains the actual degree values corresponding to each node in the gas pipeline network based on the topology data; constructs a list of illegal degrees and degree correction schemes based on the actual degrees of each node; calculates the actual flow direction of each node based on the topology data; and constructs a list of illegal flow directions and flow correction schemes based on the actual flow directions of each node. This invention can automatically check the pipeline topology data for illegal degrees and illegal flow directions, and correct the identified illegal degree and illegal flow direction nodes, thereby improving the accuracy and reliability of the pipeline topology data. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating the method for diagnosing and managing the degree and flow direction of gas pipelines provided in this embodiment of the invention.
[0040] Figure 2 This is a schematic diagram of the illegality degree check process provided in an embodiment of the present invention.
[0041] Figure 3 This is a schematic diagram of the process for repairing illegal degree provided in an embodiment of the present invention.
[0042] Figure 4 This is a schematic diagram of the illegal flow inspection process provided in an embodiment of the present invention.
[0043] Figure 5 This is a schematic diagram of the illegal flow repair process provided in an embodiment of the present invention.
[0044] Figure 6 This is a schematic diagram of the module of the gas pipeline network degree and flow direction diagnosis and treatment device provided in the embodiment of the present invention.
[0045] Figure 7 This is a schematic diagram of the terminal provided in the embodiment of the present invention. Detailed Implementation
[0046] This invention discloses a method for diagnosing and managing the degree and flow direction of gas pipeline networks. To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention.
[0047] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the term “comprising” as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we say an element is “connected” or “coupled” to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements. Furthermore, “connected” or “coupled” as used herein can include wireless connections or wireless coupling. The term “and / or” as used herein includes all or any units and all combinations of one or more associated listed items.
[0048] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.
[0049] To address the aforementioned deficiencies in existing technologies, this invention provides a method for diagnosing and managing the degree and flow direction of gas pipeline networks, such as... Figure 1 As shown, the method includes:
[0050] Step S100: Obtain the gas pipeline network topology data.
[0051] Specifically, the gas pipeline network topology data contains tens of thousands of nodes of various types, including gas sources, users, and pressure regulating stations. The safety and concealment requirements of gas pipeline networks and their ancillary facilities further increase the complexity of the network topology data. In practical applications, to achieve automatic inspection and repair of the network topology data, this embodiment needs to acquire the actual current gas pipeline topology data and analyze and process it.
[0052] In one implementation, obtaining the gas pipeline network topology data includes:
[0053] Read the point table data and line table data of the gas pipeline network;
[0054] The pipeline topology data is obtained based on the point table data and the line table data.
[0055] Specifically, pipeline topology data is generally composed of point table data and line table data. Point table data reflects node information, such as the various types of nodes in the topology and the attribute information of each node, including its ID, location name, type, coordinates, material, flow direction, and degree. Line table data reflects pipeline information, such as the pipelines connecting the nodes and the attribute information of each pipeline, including its ID, length, diameter, wall thickness, coordinates, inlet endpoint, and outlet endpoint. In point table data, the flow direction and degree attributes are closely related to the type and location of the nodes, and can better reflect the different functions of different types of nodes in the pipeline topology, as shown in Tables 1, 2, 3, 4, and 5 below.
[0056] Table 1. Overview of Flow Direction and Degree of Urban Gas Pipeline Network Nodes
[0057]
[0058]
[0059] Table 2. Overview of Point Table Fields
[0060]
[0061] Table 3. Example of dot table data
[0062]
[0063] Table 4. Overview of Line Table Fields
[0064]
[0065]
[0066] Table 5. Example of line table data
[0067]
[0068] like Figure 1 As shown, the method further includes:
[0069] Step S200: Obtain the actual degree corresponding to each node in the gas pipeline network according to the pipeline network topology data, and construct a list of illegal degrees and degree repair schemes based on the actual degree of each node.
[0070] Specifically, illegal degrees refer to a mismatch between the actual degree of a node in the pipeline network topology data and its legal degree. This indicates that in the data-driven operation of urban gas pipeline networks, there may be situations where too many pipelines are connected to nodes such as gas sources, users, pressure regulating stations, valves, and ordinary nodes, or too few connections are made. In practical applications, the first step is to check all nodes for illegal degrees to identify those with abnormal degrees. A list of these abnormal nodes is then compiled, resulting in the illegal degree list. Subsequently, a corresponding degree correction plan is developed for each node in the illegal degree list to correct the abnormal degree.
[0071] In one implementation, node categories include gas source, user, pressure regulating station, valve, and ordinary node.
[0072] In one implementation, the method for constructing the violation index includes:
[0073] For each node, the valid degree corresponding to the node is determined according to the node type, and the node is judged to meet the degree requirement based on the actual degree and the valid degree.
[0074] If the degree does not meet the requirements, the node will be entered into the list of illegal degrees.
[0075] Specifically, different types of nodes have different degrees of legitimacy. Therefore, when checking the degree of illegality for each node, it is first necessary to determine the node type, and then determine the corresponding degree of legitimacy based on the node type. Then, the actual degree of the node is compared with the legitimate degree to determine whether the node meets the degree requirements. Nodes that do not meet the degree requirements are entered into the illegal degree list. It should be noted that different node categories can first establish their own corresponding illegal degree lists, and then the multiple lists are combined to obtain the final illegal degree list.
[0076] For example, such as Figure 2 As shown, by using data from the point table and the two endpoints of the line table, the illegality degree of nodes in the pipeline topology data is checked from two aspects: ID identification and node type. Specifically, before performing pipeline simulation, an undirected topology of the gas pipeline network is first constructed based on the start-end ID and end-end ID of the line table, thereby obtaining the actual degree of all nodes in the pipeline topology. Then, the IDs of all nodes for gas sources, users, pressure regulating stations, valves, and ordinary nodes are counted using the point table data, and illegality degree checks are performed on nodes of different categories separately.
[0077] For gas source nodes, determine whether the degree of the gas source node is 1. If it is 1, it means that the gas source degree requirement is met and the original data record is retained; otherwise, it is an illegal gas source degree and the gas source node ID identification information is entered into the list of illegal gas source degrees.
[0078] For each user node, determine whether its degree is 1. If it is 1, it means that the user degree requirement is met, and the original data record is retained; otherwise, it is an illegal user degree, and the user node ID information is entered into the list of illegal user degrees.
[0079] For each pressure regulating station node, determine whether the pressure regulating station node's degree is 2. If it is 2, it means that the pressure regulating station degree requirement is met, and the original data record is retained; otherwise, it is an illegal pressure regulating station degree, and the pressure regulating station node ID identification information is entered into the list of illegal pressure regulating stations.
[0080] For each valve node, determine whether its degree is 2. If it is 2, it means that the valve degree requirement is met, and the original data record is retained; otherwise, it is an illegal valve degree, and the valve node ID information is entered into the list of illegal valve degrees.
[0081] For ordinary nodes, determine whether the degree of the ordinary node is greater than 3. If it is not greater than 3, it means that it meets the degree requirements of ordinary nodes and the original data record is retained; otherwise, it is an illegal ordinary node degree and the node ID identification information of the ordinary node is entered into the list of illegal degrees of ordinary nodes.
[0082] Finally, create a list and save it.
[0083] In one implementation, the method for constructing the degree repair scheme includes:
[0084] For each node in the illegality score list, if the actual score of the node is less than the legal score, then ordinary nodes in the illegality score list whose actual score is less than the legal score are selected as nodes to be filtered.
[0085] A scanning range is constructed with the node as the center and a preset radius, and the nodes to be screened within the scanning range are taken as candidate connection nodes;
[0086] The corresponding connection node is determined based on the missing degree of the node and each of the candidate connection nodes, and a pipeline is established based on the node and the connection node to achieve degree repair of the node.
[0087] The degree repair principles for each node in the illegal degree list are similar, so this embodiment uses one node as an example for explanation. First, a node in the illegal degree list is read. If the actual degree of this node is less than its corresponding legal degree, then the node has a degree deficiency, and degree repair is performed by adding connecting pipes. Specifically, ordinary nodes with a degree less than 3 in the illegal degree list are selected as nodes to be screened. A scanning range is constructed with this node as the center and a preset radius. The intersection of all nodes to be screened with all nodes within the scanning range yields multiple candidate connection nodes. These candidate connection nodes can be sorted from closest to furthest in distance. Each candidate connection node is then checked to see if it meets the node's deficiency requirements. If it does, the candidate connection node is used as a connection node, and a pipe is established between this node and the connecting node, thus completing the degree repair for this node.
[0088] In one implementation, the method for constructing the degree repair scheme further includes:
[0089] For each node in the illegal degree list, if the actual degree of the node is greater than the legal degree, then obtain all connected nodes of the node and the node type of each connected node;
[0090] For each of the connected nodes, determine whether the connected node exists in the illegal degree list and whether the actual degree is greater than the legal degree;
[0091] If so, delete the connected pipes to restore the degree of the node;
[0092] If not, determine whether the adjacent node is a normal node whose actual degree is equal to the legal degree; if so, delete the connected pipe to restore the degree of the node.
[0093] If the actual degree of a node read from the list of illegal degrees is greater than its corresponding legal degree, it indicates that the node has redundant connected pipes. In this case, it's necessary to determine whether the degrees of all nodes connected by adjacent pipes meet the legal requirements. If not, the pipes are deleted. Specifically, all connected nodes of the node are retrieved. For each connected node, it's determined whether it exists in the list of illegal degrees and whether its actual degree is greater than the legal degree. If so, the connected pipe is deleted. Otherwise, it's determined whether the adjacent node is a normal node with an actual degree equal to the legal degree (i.e., a normal node with a degree of 3). If so, the connected pipe is deleted. This reduces the number of redundant connected pipes for the node, thus completing the degree correction for that node.
[0094] For example, such as Figure 3As shown, the pipeline topology data contains a wide variety and a large number of nodes, each with its own corresponding degree restrictions. For example, a gas source node, acting as an outlet, can only have a degree of 1. However, in actual pipeline topology data, due to human error or missing data exported from the SCADA system, its degree may differ from reality. Therefore, it is necessary to delete or add pipelines to make it meet the basic node requirements. A user node, also acting as an outlet, can only have a degree of 1. A valve, a direct-connected pipeline, should have a default degree of 2. A pressure regulating station regulating gas from high pressure to sub-high pressure should also have a degree of 2. Other nodes connecting pipelines in the pipeline topology data are ordinary nodes (nodes located in the middle part of the pipeline topology data, excluding boundary nodes and valves), and their degree must be less than or equal to 3 according to actual operating conditions. To address the data problems of different types of nodes, a classification-based strong rule processing method is used to correct the degree based on the results of illegal degree checks, as follows:
[0095] 1. Read data from the point table and line table;
[0096] 2. Read the list of illegal degrees sequentially;
[0097] 3. For each node in the list of illegal degrees, determine the node type, determine the legal degree of the node based on the node type, and determine whether the actual degree of the node is less than the legal degree.
[0098] 4. If the degree is less than the legal degree, obtain the node ID of the ordinary node with a degree less than 3 in the list of illegal degrees; simultaneously, using this node as the root node, obtain the node IDs and coordinates of the nodes after three layers through depth-first traversal; based on the coordinates of two points and the Euclidean distance formula, calculate the maximum distance from this node to any node in the third layer as the scanning radius, and construct the scanning range with this node as the center and the scanning radius; by taking the intersection of all obtained ordinary node IDs and the IDs in the scanning range, obtain all ordinary nodes that can be connected to this node, and sort them from closest to furthest distance; find ordinary nodes whose degree meets the missing requirement (must be greater than the missing degree) according to the missing degree of this node and connect them, that is, establish a pipeline between ordinary nodes and this node; if there are no ordinary nodes that can be connected within the scanning range, expand the scanning radius (for example, increase the scanning radius by a preset value)
[0099] 5. If the degree is greater than the legal value, check if the degree of all nodes connected to adjacent pipes meets the requirement of being greater than the legal value. If not, delete the pipe; otherwise, manually review the process diagram. Specifically, obtain the IDs and types of all connected nodes of the current node; for each connected node, check if the connected node exists in the list of illegal degrees and is greater than the legal value. If so, delete the connected pipe; otherwise, check if the adjacent node is a normal node with a degree of 3. If so, delete the connected pipe; otherwise, do nothing.
[0100] 6. Save the modified data into the database.
[0101] like Figure 1 As shown, the method further includes:
[0102] Step S300: Calculate the actual flow direction of each node based on the pipeline topology data, and construct an illegal flow direction list and flow direction repair plan based on the actual flow direction of each node.
[0103] Specifically, illegal flow refers to a mismatch between the actual flow direction passing through a node in the pipeline topology data and the flow direction of the corresponding node type. This indicates that in the data-driven operation of the urban gas pipeline network, there may be reversed flow directions or excessive or insufficient inflow and outflow among gas sources, users, and pressure regulating stations. In addition to checking for illegal flow degrees, this embodiment also checks different nodes in the pipeline topology data for illegal flow to identify nodes with abnormal flow. Several nodes with abnormal flow are then listed in a list, resulting in an illegal flow list. Subsequently, a corresponding flow correction plan is developed for each node in the illegal flow list to correct the abnormal flow.
[0104] In one implementation, the actual flow direction refers to the actual number of entries and exits, and the method for constructing the illegal flow list includes:
[0105] Based on the start and end points of each pipeline in the pipeline network topology data, calculate the actual number of inflows and outflows corresponding to each node;
[0106] For each node, the number of legal entries and exits corresponding to that node is determined according to the node type, and whether the node meets the flow requirements is determined based on the actual number of entries and exits and the number of legal entries and exits.
[0107] If the flow direction does not meet the requirements, the node will be added to the list of illegal flows.
[0108] Specifically, the flow direction of a node is related to its incoming and outgoing data. Different types of nodes have different numbers of legal incoming and outgoing data. Therefore, when checking for illegal flow directions for each node in the pipeline topology data, it is first necessary to determine the node type, and then determine the number of legal incoming and outgoing data for that node based on the node type. By comparing the actual number of incoming and outgoing data for that node with its corresponding legal number of incoming and outgoing data, it can be determined whether the node meets the flow direction requirements, and nodes that do not meet the requirements are entered into the illegal flow direction list. It should be noted that different node categories can establish their own corresponding illegal flow direction lists, and then the multiple lists are summarized to obtain the final illegal flow direction list.
[0109] For example, such as Figure 4 As shown, illegal flow direction detection is based on the point type in the point table and the start-end ID and end-end ID in the line table to identify nodes with abnormal flow directions in the pipeline topology data. Specifically, before performing pipeline simulation, the number of different node IDs at both ends of the pipeline is first counted based on the start-end ID and end-end ID information in the line table. For each node, the number of times the node ID is entered is determined by querying the number of times the node ID is entered at the start end, and the number of times the node ID is exited is determined by querying the number of times the node ID is entered at the end end, thus obtaining the actual flow direction of the node. Then, illegal flow direction detection is performed on nodes of different categories separately:
[0110] For each gas source node, determine whether the gas flow direction of the gas source node is 0 in and 1 out. If so, keep it; otherwise, count all nodes that do not conform to the gas source flow direction.
[0111] For each user node, determine whether its flow direction is 1 in and 0 out. If so, retain it; otherwise, count all nodes that do not conform to the user flow direction.
[0112] For each voltage regulator station node, determine whether the flow direction of the voltage regulator station node is 1 in and 1 out. If so, keep it; otherwise, count all nodes that do not conform to the flow direction of the voltage regulator station.
[0113] Finally, a list is compiled and saved to facilitate users in adding, deleting, or moving pipeline flows to these nodes based on the illegal flow direction inspection results, either automatically or manually, to repair illegal flow directions.
[0114] In one implementation, the method for constructing the flow repair scheme includes:
[0115] For each node in the list of illegal flow directions, the starting and ending nodes of the pipeline corresponding to that node are swapped to restore the flow direction of that node.
[0116] The actual flow direction of a node in the illegal flow list differs from its corresponding legal flow direction. Therefore, the flow direction of the node needs to be adjusted to achieve flow direction repair. The flow direction repair principle is similar for each node, so this embodiment uses one node as an example for explanation. Specifically, first, a node in the illegal flow list is read, and the corresponding number of entries and exits to be repaired is determined based on the actual and legal entries and exits of the node. Then, the pipeline corresponding to the node that meets the repair conditions is determined based on the number of entries and exits to be repaired. For example, endpoints 2 and 3 of pipeline 1, where node 2 is a user and the flow direction is 0 in and 1 out, then this pipeline meets the repair conditions. The positions of the two ends of the pipeline corresponding to the node (starting node source, ending node target) are swapped to achieve flow direction repair for the node.
[0117] For example, due to insufficient personal ability and professional competence of the recorders, errors often occur in judging the attributes of nodes (such as nodes, terminals, equipment, gas sources, users, pressure regulating stations, valves, etc.) and the types of nodes (such as plugs, two-way valves, three-way valves, four-way valves, etc.), leading to deviations in gas flow direction. That is, some pipeline flow directions are incorrect in the point and line table data, thus preventing the city gas pipeline network simulation from proceeding smoothly. For example, the gas source might be 0 inlet and 1 outlet, the pressure regulating station and valves might be 1 inlet and 1 outlet, and the user might be 1 inlet and 0 outlet. Figure 5 As shown, the solution to the problem of illegal flow direction in pipeline network topology data is as follows:
[0118] 1. Read data from the point table and line table;
[0119] 2. Filter out the GIDs of node types: user, gas source, pressure regulating station, and valve;
[0120] 3. Modify the node types that do not conform to the flow direction to the correct flow direction. Correct flow direction: gas source 0 inlet 1 outlet, pressure regulating station and valve 1 inlet 1 outlet, user 1 inlet 0 outlet;
[0121] 4. Save the modified pipeline flow data to the database.
[0122] The advantages of this invention are:
[0123] 1. This invention provides a solution for checking illegal degree values, illegal flow directions, and automatic flow direction repair of GIS topology data;
[0124] 2. This invention can perform violation degree checks on five types of gas sources, users, pressure regulating stations, valves, and ordinary nodes. By combining the characteristics of each type with the pipeline network topology, the abnormal situation of each node can be determined.
[0125] 3. This invention obtains the entry and exit status of each node through the pipeline topology endpoints, and then combines the flow direction characteristics of gas sources, users and pressure regulating stations to check for illegal flow directions;
[0126] 4. The entire GIS pipeline degree flow direction check and flow direction repair logic in this invention has integrity and systematicity.
[0127] Based on the above embodiments, the present invention also provides a diagnostic and treatment device for the degree and flow direction of gas pipeline networks, such as... Figure 6 As shown, the device includes:
[0128] Data acquisition module 01 is used to acquire the pipeline topology data of the gas pipeline network;
[0129] The degree processing module 02 is used to obtain the actual degree corresponding to each node in the gas pipeline network according to the pipeline network topology data, and to construct a list of illegal degrees and a degree repair plan based on the actual degree of each node.
[0130] The flow direction processing module 03 is used to calculate the actual flow direction of each node based on the pipeline topology data, and to construct an illegal flow direction list and a flow direction repair scheme based on the actual flow direction of each node.
[0131] Based on the above embodiments, the present invention also provides a terminal, the principle block diagram of which can be as follows: Figure 7 As shown, the terminal includes a processor, memory, network interface, and display screen connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides the environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When executed by the processor, the computer program implements methods for diagnosing and managing gas pipeline temperature and flow direction. The display screen can be an LCD screen or an e-ink screen.
[0132] Those skilled in the art will understand that Figure 7 The schematic diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the terminal to which the present invention is applied. A specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0133] In one implementation, the terminal's memory stores one or more programs, and these programs are configured to be executed by one or more processors, and include instructions for diagnosing and managing gas pipeline temperature and flow direction.
[0134] 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 above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0135] In summary, this invention discloses a method for diagnosing and managing the degree and flow direction of a gas pipeline network. The method involves acquiring the pipeline topology data of the gas pipeline network; obtaining the actual degree corresponding to each node in the gas pipeline network based on the topology data; constructing a list of illegal degrees and degree repair schemes based on the actual degrees of each node; calculating the actual flow direction of each node based on the topology data; and constructing a list of illegal flow directions and flow direction repair schemes based on the actual flow directions of each node. This invention can automatically check for illegal degrees and illegal flow directions in the pipeline topology data and repair the identified illegal degree and illegal flow direction nodes, thereby improving the accuracy and reliability of the pipeline topology data.
[0136] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A method for diagnosing and managing the degree and flow direction of a gas pipeline network, characterized in that, The method includes: Obtain the network topology data of the gas pipeline network; The actual degree values corresponding to each node in the gas pipeline network are obtained based on the pipeline topology data. A list of illegal degree values and a degree value repair plan are constructed based on the actual degree values of each node. The method for constructing the illegal degree value list includes: for each node, determining the legal degree value corresponding to the node based on its node type, and judging whether the node meets the degree value requirements based on the actual degree value and the legal degree value; if it does not meet the degree value requirements, the node is added to the illegal degree value list. The method for constructing the degree value repair plan includes: for each node in the illegal degree value list, if the actual degree value of the node is less than the legal degree value, ordinary nodes in the illegal degree value list whose actual degree value is less than the legal degree value are selected as nodes to be screened; a scanning range is constructed with the node as the center and a preset radius, and all nodes within the scanning range are... The node to be screened is selected as a candidate connection node; the corresponding connection node is determined based on the missing degree of the node and each of the candidate connection nodes, and a pipeline is established based on the node and the connection node to achieve degree repair of the node; the method for constructing the degree repair scheme further includes: for each node in the illegal degree list, if the actual degree of the node is greater than the legal degree, then all connected nodes of the node and the node type of each connected node are obtained; for each connected node, it is determined whether the connected node exists in the illegal degree list and whether the actual degree is greater than the legal degree; if so, the connected pipeline is deleted to achieve degree repair of the node; if not, it is determined whether the connected node is a normal node whose actual degree is equal to the legal degree; if so, the connected pipeline is deleted to achieve degree repair of the node. The actual flow direction of each node is calculated based on the pipeline topology data, and an illegal flow direction list and flow direction repair plan are constructed based on the actual flow direction of each node.
2. The method for diagnosing and managing the degree and flow direction of gas pipelines according to claim 1, characterized in that, The acquisition of gas pipeline network topology data includes: Read the point table data and line table data of the gas pipeline network; The pipeline topology data is obtained based on the point table data and the line table data.
3. The method for diagnosing and managing the degree and flow direction of gas pipelines according to claim 1, characterized in that, The actual flow direction refers to the actual number of entries and exits, and the method for constructing the illegal flow list includes: Based on the start and end points of each pipeline in the pipeline network topology data, calculate the actual number of inflows and outflows corresponding to each node; For each node, the number of legal entries and exits corresponding to that node is determined according to the node type, and whether the node meets the flow requirements is determined based on the actual number of entries and exits and the number of legal entries and exits. If the flow direction does not meet the requirements, the node will be added to the list of illegal flows.
4. The method for diagnosing and managing the degree and flow direction of gas pipelines according to claim 3, characterized in that, The method for constructing the flow direction repair scheme includes: For each node in the list of illegal flow directions, the starting and ending nodes of the pipeline corresponding to that node are swapped to restore the flow direction of that node.
5. A device for diagnosing and controlling the degree and flow direction of a gas pipeline network, characterized in that, The device includes: The data acquisition module is used to acquire the pipeline topology data of the gas pipeline network; The degree processing module is used to obtain the actual degree corresponding to each node in the gas pipeline network based on the pipeline network topology data, and to construct a list of illegal degrees and a degree repair plan based on the actual degree of each node. The method for constructing the illegal degree list includes: for each node, determining the legal degree corresponding to the node based on the node type, and judging whether the node meets the degree requirements based on the actual degree and the legal degree; if it does not meet the degree requirements, then the node is entered into the list of illegal degrees. The method for constructing the degree repair plan includes: for each node in the list of illegal degrees, if the actual degree of the node is less than the legal degree, then ordinary nodes in the list of illegal degrees whose actual degree is less than the legal degree are selected as nodes to be screened; a scanning range is constructed with the node as the center and a preset radius, and the scanning range is... The nodes to be screened within the range are selected as candidate connection nodes; the connection nodes corresponding to the node are determined based on the missing degree of the node and each of the candidate connection nodes, and a pipeline is established based on the node and the connection nodes to achieve degree repair of the node; the method for constructing the degree repair scheme further includes: for each node in the list of illegal degrees, if the actual degree of the node is greater than the legal degree, then all connected nodes of the node and the node type of each connected node are obtained; for each connected node, it is determined whether the connected node exists in the list of illegal degrees and whether the actual degree is greater than the legal degree; if so, the connected pipeline is deleted to achieve degree repair of the node; if not, it is determined whether the connected node is a normal node whose actual degree is equal to the legal degree; if so, the connected pipeline is deleted to achieve degree repair of the node. The flow direction processing module is used to calculate the actual flow direction of each node based on the pipeline topology data, and to construct an illegal flow direction list and a flow direction repair plan based on the actual flow direction of each node.
6. A terminal, characterized in that, The terminal includes a memory and one or more processors; the memory stores one or more programs; the programs contain instructions for executing the diagnostic and treatment methods for gas pipeline temperature and flow direction as described in any one of claims 1-4; the processor is used to execute the programs.
7. A computer-readable storage medium storing a plurality of instructions thereon, characterized in that, The instructions are applicable to be loaded and executed by a processor to implement the steps of the gas pipeline network degree and flow direction diagnosis and treatment method as described in any one of claims 1-4.
Citation Information
Patent Citations
Method for detecting and repairing abnormal data of drainage pipe network GIS
CN112131690A
GIS (Geographic Information System) data checking method and system
CN115080681A
Repair method, device and system of pipe network topological structure and chip
CN117171935A
