A method for generating thematic maps of electrical single-line diagrams based on the panoramic power grid diagram data model

The method leverages a panoramic power grid data model and depth-first traversal to efficiently generate electrical single-line diagram thematic maps, overcoming complexity issues and enhancing drawing accuracy and reliability.

CN117315081BActive Publication Date: 2024-12-27GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311516284.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2024-12-27
Estimated Expiration
2043-11-14

AI Technical Summary

Technical Problem

The complex topological structure of urban power grids leads to low efficiency in generating electrical single-line diagram thematic maps, which are crucial for power system operation and maintenance.

Method used

A method utilizing a panoramic power grid diagram data model, combined with single-line diagram extraction rules and depth-first traversal algorithms, to automatically generate electrical single-line diagram thematic maps, incorporating equipment information and switch position changes, and ensuring data accuracy through verification and correction.

Benefits of technology

This approach enables rapid and accurate generation of electrical single-line diagram thematic maps, addressing computational bottlenecks and improving drawing efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117315081B_ABST
    Figure CN117315081B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electric power information technology, and discloses a method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model, the method comprising: obtaining a panoramic power grid diagram data model and a single-line diagram extraction rule; generating a basic electrical topology map of a target area based on the panoramic power grid diagram data model using the single-line diagram extraction rule; acquiring device information corresponding to the basic electrical topology map based on the panoramic power grid diagram data model using a depth-first traversal algorithm; and generating an electrical single-line diagram thematic map based on the basic electrical topology map and the device information. The present invention achieves the purpose of automatically and efficiently generating an electrical single-line diagram thematic map by configuring the single-line diagram extraction rule and using a graph traversal algorithm, and solves the problem in the related art that the generation efficiency of the electrical single-line diagram thematic map is low due to the complex topological structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power information technology, and in particular to a method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model. Background Art

[0002] The electrical single-line diagram is a diagram that describes the relationship between various electrical equipment, lines, switches, etc. in the power system, and is one of the important tools for the operation and maintenance of the power system. In the process of urbanization, the number of nodes and equipment in the urban power grid continues to increase, the network structure becomes more complex, and the difficulty and time spent on generating electrical single-line diagrams also increase accordingly. The panoramic power grid diagram data model is a data model that describes the relationship between various nodes, equipment and lines in the power system, and can provide basic data support for the automatic generation of electrical single-line diagrams. However, the topological structure of the panoramic power grid diagram data model is complex. How to associate the equipment and quickly generate thematic maps that meet the needs of single-line diagram analysis is an urgent problem to be solved. Therefore, there is a problem in the prior art that the complex topological structure of the power grid leads to low efficiency in generating thematic maps of electrical single-line diagrams. Summary of the invention

[0003] In view of this, the present invention provides a method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model, so as to solve the problem of low efficiency in generating electrical single-line diagram thematic maps due to the complex power grid topology.

[0004] In a first aspect, the present invention provides a method for generating an electrical single-line diagram thematic map based on a panoramic power grid map data model, comprising: obtaining a panoramic power grid map data model and a single-line diagram extraction rule; generating a basic electrical topology map of a target area based on the panoramic power grid map data model using the single-line diagram extraction rule; acquiring equipment information corresponding to the basic electrical topology map based on the panoramic power grid map data model using a depth-first traversal algorithm; and generating an electrical single-line diagram thematic map based on the basic electrical topology map and the equipment information.

[0005] In an embodiment of the present invention, the required information is extracted from the panoramic power grid diagram data model through the single-line diagram extraction rule to generate the basic electrical topology diagram of the target area, and the panoramic power grid diagram data model is traversed by the depth-first traversal algorithm to obtain the equipment information corresponding to the basic electrical topology diagram. Since the single-line diagram extraction rule can realize automatic extraction and construction of equipment associations, the depth-first traversal algorithm can achieve the purpose of quickly calculating complex power grid topology structures, thereby achieving the purpose of automatically and efficiently generating electrical single-line diagram thematic maps, and solving the problem of low efficiency in generating electrical single-line diagram thematic maps due to complex topological structures existing in related technologies.

[0006] In an optional implementation, the method further includes: obtaining a single-line diagram display rule; and displaying the electrical single-line diagram thematic map in multiple scales and multiple levels using a visualization display tool based on the single-line diagram display rule.

[0007] In the embodiment of the present invention, the electrical single-line diagram thematic map is automatically drawn and displayed in a multi-scale and multi-map-level manner according to the single-line diagram display rules, thereby achieving the effect of improving the drawing efficiency and accuracy of the electrical single-line diagram thematic map.

[0008] In an optional embodiment, the single-line diagram extraction rules include: data extraction source, data extraction method and data extraction structure, and the single-line diagram extraction rules are used to generate a basic electrical topology map of the target area based on the panoramic power grid diagram data model, including: establishing a data interface and an extraction function; using the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure; checking the graphic data, and using the checked graphic data to generate a basic electrical topology map of the target area.

[0009] In an embodiment of the present invention, by establishing a data interface and an extraction function, the purpose of facilitating the calling of extracted data is achieved. By extracting data using a single-line diagram extraction rule and checking the extracted data, the effect of ensuring the quality and accuracy of the extracted data is achieved.

[0010] In an optional embodiment, the graphic data includes an electrical connection relationship, and a depth-first traversal algorithm is used to obtain device information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model, including: selecting a preset node in the panoramic power grid diagram data model as the current traversal node; obtaining device information of the current traversal node; determining the next traversal node based on the electrical connection relationship; using the next traversal node as the current traversal node, and repeating the steps of obtaining device information of the current traversal node, determining the next traversal node based on the electrical connection relationship, and using the next traversal node as the current traversal node until the preset query conditions are met.

[0011] In the embodiment of the present invention, the fast calculation advantage of the depth-first traversal algorithm is utilized to solve the calculation bottleneck problem of automatic generation of electrical single-line diagram thematic diagrams due to complex power grid topology.

[0012] In an optional implementation, after obtaining the device information of the currently traversed node, the method further includes: obtaining the switch position change information of the currently traversed node; and verifying the basic electrical topology diagram using the switch position change information.

[0013] In an embodiment of the present invention, during the depth-first traversal process, the basic electrical topology diagram is verified using switch displacement information, thereby achieving the purpose of quickly clipping and correcting the basic electrical topology diagram, thereby achieving the effect of improving the reliability and accuracy of generating the electrical single-line diagram thematic diagrams.

[0014] In an optional implementation, generating an electrical single-line diagram thematic map according to the basic electrical topology map and the equipment information includes: generating the electrical single-line diagram thematic map using a breadth-first search algorithm based on the basic electrical topology map and the equipment information.

[0015] In the embodiment of the present invention, the connectivity of equipment in the basic electrical topology is queried through a breadth-first search algorithm, and the basic electrical topology is superimposed with equipment information, thereby achieving the purpose of automatically generating an electrical single-line diagram thematic map.

[0016] In an optional embodiment, the one-line diagram display rules include data loading rules and display specifications. After the electrical one-line diagram thematic map is displayed in multiple scales and multiple levels using a visualization tool based on the one-line diagram display rules, the method further includes: if the electrical one-line diagram thematic map does not meet the display specifications, the data loading rules are revised; and the electrical one-line diagram thematic map is re-visualized according to the revised data loading rules.

[0017] In the embodiment of the present invention, the generated electrical single-line diagram thematic map is corrected by using the single-line diagram display rule, thereby achieving the effect of ensuring the display integrity and availability of the electrical single-line diagram thematic map.

[0018] In the second aspect, the present invention provides an electrical single-line diagram thematic map generation device based on a panoramic power grid map data model, including: a model and rule acquisition module, used to acquire the panoramic power grid map data model and the single-line diagram extraction rules; a topology map generation module, used to generate a basic electrical topology map of a target area based on the panoramic power grid map data model using the single-line diagram extraction rules; an equipment information acquisition module, used to acquire equipment information corresponding to the basic electrical topology map based on the panoramic power grid map data model using a depth-first traversal algorithm; a single-line diagram generation module, used to generate an electrical single-line diagram thematic map based on the basic electrical topology map and equipment information.

[0019] In an optional embodiment, the device also includes: a display rule acquisition module for acquiring the single-line diagram display rules; a display module for performing multi-scale and multi-level display of the electrical single-line diagram thematic map using a visualization display tool based on the single-line diagram display rules.

[0020] In an optional embodiment, the single-line diagram extraction rules include: data extraction source, data extraction method and data extraction structure, and the topology map generation module includes: an interface unit, used to establish a data interface and an extraction function; an extraction unit, used to use the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure; a generation unit, used to check the graphic data and use the checked graphic data to generate a basic electrical topology map of the target area.

[0021] In an optional embodiment, the graphic data includes an electrical connection relationship, and the device information acquisition module includes: a node selection unit, used to select a preset node in the panoramic power grid diagram data model as the current traversal node; a next node determination unit, used to obtain the device information of the current traversal node; determine the next traversal node according to the electrical connection relationship; an iteration unit, used to take the next traversal node as the current traversal node, and repeatedly execute the steps of obtaining the device information of the current traversal node, determining the next traversal node according to the electrical connection relationship, and taking the next traversal node as the current traversal node until the preset query conditions are met.

[0022] In an optional embodiment, the device further includes: a switch position information acquisition module, used to obtain the switch position information of the currently traversed node; and a topology diagram verification module, used to verify the basic electrical topology diagram using the switch position information.

[0023] In an optional implementation, the one-line diagram generation module includes: a one-line diagram generation unit, which is used to generate an electrical one-line diagram thematic map based on a basic electrical topology map and equipment information by using a breadth-first search algorithm.

[0024] In an optional embodiment, the single-line diagram display rules include data loading rules and display specifications, and the device also includes: a correction module, which is used to correct the data loading rules if the electrical single-line diagram thematic map does not meet the display specifications; a re-display module, which is used to re-visualize the electrical single-line diagram thematic map according to the corrected data loading rules.

[0025] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to the first aspect or any corresponding embodiment thereof.

[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0028] Figure 1 It is a flow chart of a method for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention;

[0029] Figure 2 It is a flowchart of another method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to an embodiment of the present invention;

[0030] Figure 3 It is a schematic diagram of the overall framework of a method for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention;

[0031] Figure 4 is a schematic diagram of the overall framework of another method for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention;

[0032] Figure 5 It is a structural block diagram of an electrical single-line diagram thematic map generating device based on a panoramic power grid diagram data model according to an embodiment of the present invention;

[0033] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0035] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, it can be indirectly connected through an intermediate medium, it can also be the internal communication of two elements, it can be a wireless connection, or it can be a wired connection. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific circumstances.

[0036] The electrical "single-line diagram" is a diagram that describes the relationship between various electrical equipment, lines, switches, etc. in the power system. It is one of the important tools for the operation and maintenance of the power system. In order to solve the problem of difficulty and time-consuming generation of electrical single-line diagram thematic maps, it is necessary to use digital and intelligent technologies. Among them, the panoramic power grid diagram data model is a data model that can describe the relationship between various nodes, equipment and lines in the power system, and can provide basic data support for the automatic generation of electrical single-line diagrams. Automatically generating electrical single-line diagram thematic maps using the panoramic power grid diagram data model can avoid tedious manual drawing and reduce the probability of human errors. In addition, it can also provide support for power supply reliability, load density analysis, and equipment failure analysis, which helps to quickly discover and solve problems in the operation of the power system, and is of great significance to ensuring the safe and stable operation of the power system. The method for generating electrical single-line diagram thematic maps based on the panoramic power grid diagram data model mainly has the following two problems:

[0037] (1) How to build a rule base for equipment association and topology simplification, superimpose switch position information on the topology of power grid equipment, and meet the needs of rapid generation of electrical single-line diagram thematic maps.

[0038] (2) How to solve the computational bottleneck problems such as the extraction, analysis, and automatic generation of electrical single-line diagrams due to complex power grid topology.

[0039] According to an embodiment of the present invention, an embodiment of a method for generating an electrical single-line diagram thematic diagram based on a panoramic power grid diagram data model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0040] In this embodiment, a method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model is provided, which can be used in the above-mentioned mobile terminal, such as a central processing unit, a server, etc. Figure 1 is a flow chart of a method for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention, such as Figure 1 As shown, the process includes the following steps:

[0041] Step S101, obtaining a panoramic power grid diagram data model and a single-line diagram extraction rule. Optionally, the extraction rule specifies how to extract data from the panoramic power grid diagram data model, what data to extract, the extracted data range, the extracted data format, etc. The extracted data can be used to generate an electrical single-line diagram thematic map. It is understandable that the single-line diagram extraction rule can be customized according to specific needs.

[0042] Step S102, using the single-line diagram extraction rule to generate a basic electrical topology diagram of the target area based on the panoramic power grid diagram data model. Optionally, the single-line diagram extraction rule defined in step S101 is used to extract the required data from the panoramic power grid diagram data model, and then the extracted data is used to generate the basic electrical topology diagram of the target area.

[0043] Step S103, using a depth-first traversal algorithm to obtain device information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model. Optionally, according to the connection relationship between the devices in the basic electrical topology diagram, a depth-first traversal algorithm is used to traverse the panoramic power grid diagram data model to obtain device information corresponding to each device in the basic electrical topology diagram, such as basic equipment ledger information, equipment nameplate information, equipment acquisition coordinate information, etc.

[0044] Step S104, generating an electrical single-line diagram thematic map based on the basic electrical topology map and the equipment information. Optionally, the equipment information obtained in step S103 is superimposed on the basic electrical topology map of the target area generated in step S102 to achieve the purpose of automatically generating an electrical single-line diagram thematic map.

[0045] In an embodiment of the present invention, the required information is extracted from the panoramic power grid diagram data model through the single-line diagram extraction rule to generate the basic electrical topology diagram of the target area, and the panoramic power grid diagram data model is traversed by the depth-first traversal algorithm to obtain the equipment information corresponding to the basic electrical topology diagram. Since the single-line diagram extraction rule can realize automatic extraction and construction of equipment associations, the depth-first traversal algorithm can achieve the purpose of quickly calculating complex power grid topology structures, thereby achieving the purpose of automatically and efficiently generating electrical single-line diagram thematic maps, and solving the problem of low efficiency in generating electrical single-line diagram thematic maps due to complex topological structures existing in related technologies.

[0046] In this embodiment, a method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model is provided, which can be used in the above-mentioned mobile terminal, such as a central processing unit, a server, etc. Figure 2 is a flow chart of another method for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:

[0047] Step S201, obtain the panoramic power grid diagram data model and the single line diagram extraction rules. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0048] Step S202, using the single-line diagram extraction rules to generate a basic electrical topology diagram of the target area based on the panoramic power grid diagram data model. In an optional embodiment, the single-line diagram extraction rules include: data extraction source, data extraction method and data extraction structure, wherein the data extraction source is the data source of the electrical single-line diagram thematic map (hereinafter referred to as the single-line diagram), for example, whether the data model can be extracted from the CAD drawing or from the GIS system in addition to the panoramic power grid diagram data model; the data extraction method specifies the data extraction scope and method, the extraction scope is, for example, the wires, switches, transformers, etc. in the target area, the extraction method is related to the data extraction source, and manual selection or automatic recognition technology can be used. For example, when the data extraction source includes a CAD drawing, a selective extraction method based on layers, colors or line types can be used. When the data extraction source includes a GIS system, a selective extraction method based on attributes or geometric positions can be used in the GIS system; the data extraction structure includes data format and data relationship, the data format specifies the type and format of the extracted data, for example, for wires, it is necessary to extract the length, voltage and other attributes of the wires. For different types of data, it is necessary to determine the relationship between them, such as the connection relationship between switches and wires, and the transformer connection relationship between transformers and wires. It should be noted that the data extracted using the above-mentioned single-line diagram extraction rules can be stored in the database in the form of an association diagram or a relationship table. Specifically, the above-mentioned step S202 includes:

[0049] Step a1, establish a data interface and an extraction function. Specifically, the data interface and the extraction function are used to extract the data required to generate a single-line diagram from the panoramic power grid diagram data model, wherein the data interface can be established in a RESTful, API, or other manner so that other programs can call the data extracted by the extraction function. Optionally, after establishing the data interface and the extraction function, the extraction function and the data interface can also be tested to check whether the data can be correctly extracted and returned to ensure that the interface can be called normally. In addition, the extracted data can be stored as a file in a specified format or a returned data structure, such as in a format such as JSON, CSV, etc., so as to be provided to other programs for calling.

[0050] Step a2, using the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure. Optionally, the data interface and extraction function established in step a1 are used to obtain graphic data from the panoramic power grid diagram data model according to the above-mentioned single-line diagram extraction rules (including data extraction source, data extraction method and data extraction structure). Among them, the graphic data is used to represent information such as power grid structure, equipment location and electrical connection status. As an example, the graphic data includes: equipment symbols and icons: graphic symbols used to represent various electrical equipment (such as generators, transformers, switches, cables, etc.), and to display the power system topology on the graphical interface; connecting lines and line segments: graphic symbols used to connect various electrical equipment, indicating electrical connection relationships, including wires, cables, busbars, etc.; equipment location and topology information: used to record the geographical location of the equipment, the topological location in the power grid, and the connection relationship between the equipment.

[0051] Step a3, check the graphic data, and use the checked graphic data to generate a basic electrical topology diagram of the target area. Optionally, after obtaining the graphic data from the panoramic power grid diagram data model using the single-line diagram extraction rules, the extracted data needs to be verified to ensure that the extracted data is accurate. The verification method can be automated or manual, such as verifying the topological structure and electrical parameters of the data to verify the correctness of the extracted data.

[0052] Step S203, using a depth-first traversal algorithm to obtain the equipment information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model. In an optional implementation, the graphic data includes electrical connection relationships, and the equipment information includes: basic equipment ledger information, equipment nameplate information, and four types of acquisition coordinate information.

[0053] Exemplarily, basic equipment inventory information includes: equipment information, such as equipment model, manufacturer, installation date, factory date, etc.; technical parameter information, such as equipment rated capacity, voltage level, current load, impedance and other technical performance parameters; maintenance and repair record information, such as equipment maintenance history, maintenance plan and maintenance activity records; asset management information, such as equipment asset number, property rights information, depreciation status, etc.

[0054] The equipment nameplate information includes: model, that is, the model or type of the equipment, which describes the technical specifications and performance characteristics of the equipment; rated parameters, such as: rated voltage, rated capacity, rated current, rated frequency and other rated values; manufacturer, such as the manufacturer's name of the equipment; equipment factory date; serial number, that is, the unique serial number of the equipment, which is used to identify the equipment.

[0055] The four types of collected coordinate information include: physical coordinates, which are used to describe the location coordinates of the device between actual power devices, usually relative to a reference point; logical coordinates, which are used to describe the logical location coordinates of the device in the power grid topology map, indicating the topological relationship between the devices. Geographic coordinates, which are the geographic coordinates of the device on the surface of the earth, are used to determine the global location of the device; screen coordinates, which are the screen coordinates of the device on the power grid topology map, are used to visualize the location of the device.

[0056] Optionally, the above step S203 includes:

[0057] Step b1, select a preset node in the panoramic power grid diagram data model as the current traversal node. Specifically, the preset node is the starting node of the traversal, which can be a key node of the power grid or start from a specific device in the basic equipment ledger.

[0058] Step b2, obtain the device information of the currently traversed node. Optionally, obtain the device information of the currently traversed node (such as basic equipment ledger information, equipment nameplate information, and four types of acquisition coordinate information), and the obtained device information can be stored in a database for subsequent use or display. In an optional embodiment, after step b2, it also includes: obtaining the switch displacement information of the currently traversed node; and verifying the basic electrical topology diagram using the switch displacement information. Specifically, when traversing the current node, it can also be compared with the basic electrical topology diagram to check the switch displacement information of the node, that is, the switch state change information to verify the correctness of the grid connection. If erroneous or inconsistent information is found, appropriate measures can be taken to correct it. For example, if redundant or invalid information is found, it can be trimmed, so as to achieve the purpose of simplifying and correcting the basic electrical topology diagram.

[0059] Step b3, determine the next traversal node according to the electrical connection relationship. That is, for the current traversal (device) node, find the device directly adjacent to it according to the electrical connection relationship as the next node to be explored (traversed). Optionally, the search path and the visited devices are recorded by initializing the data structure (recursive call), and the search function is recursively called to continue to explore the next node in depth. When no more unvisited adjacent devices can be selected, the previous node can be traced back and other adjacent devices can be used as the next traversal node.

[0060] Step b4, taking the next traversal node as the current traversal node, repeatedly executing the steps of obtaining the device information of the current traversal node, determining the next traversal node according to the electrical connection relationship, and taking the next traversal node as the current traversal node until the preset query condition is met. Optionally, the above steps are repeated until a specific query condition is met or the complete landscape network diagram data model is traversed. Specifically, after the depth-first search is completed, the queried device information is summarized and stored for subsequent query and analysis.

[0061] Step S204, generating an electrical single-line diagram thematic map based on the basic electrical topology map and the equipment information. Optionally, in an optional implementation, step S204 includes:

[0062] Step c, using a breadth-first search algorithm to generate an electrical single-line diagram thematic map based on the basic electrical topology map and equipment information. Optionally, the basic electrical topology map and equipment information stored in the database can be traversed using a breadth-first search to generate an electrical single-line diagram thematic map that meets specific business needs. The main feature of the breadth-first search algorithm is to traverse the devices layer by layer during the search process, first exploring the neighbor nodes of the current device, then the neighbors of the neighbor nodes, and so on. This ensures that all devices connected to the starting device are found, while avoiding the problem of falling into deep branches. The breadth-first search controls the width of the search during traversal, so that the search does not go too deep too quickly, thereby avoiding the computational bottleneck problem of deep traversal.

[0063] Step S205, obtaining the single-line diagram display rules. Optionally, the single-line diagram display rules include multi-level scales and data loading rules under the multi-level scales, so as to realize the scalable electrical single-line diagram thematic map display at multiple map levels. As an example, the single-line diagram display rules include: multi-level scales, used to determine the multi-level scales according to the geographical location and display requirements of the single-line diagram data, that is, to set different scales (such as city, province, country) according to different geographical locations; map levels, used to determine the corresponding map levels according to the multi-level scales, such as when the scale is large, the map level can be set to a lower level, and when the scale is small, the map level can be set to a higher level; data loading rules, that is, corresponding data loading rules are defined according to the multi-level scales and multiple map levels, such as only loading key equipment and connection relationships at a lower map level, and loading more detailed information (such as equipment name, model, etc.) at a higher map level.

[0064] Step S206, based on the single-line diagram display rules, use visualization display tools to display the electrical single-line diagram thematic map at multiple scales and multiple levels. Optionally, use visualization display tools such as Matplotlib, Plotly, Bokeh, etc. to display the electrical single-line diagram thematic map at multiple scales and multiple levels, and use the Open Layers map library to implement the map zoom function according to different map levels and scales. The following is an example of automatically generating and displaying a single-line diagram based on a breadth-first search algorithm:

[0065] First, it is necessary to obtain the single-line diagram data. For example, the acquisition method is to realize the communication with the system database through the Modbus communication protocol, and call the single-line diagram data from the database, including the basic electrical topology diagram and equipment information. Then, the acquired single-line diagram data is parsed, and the topological relationship between each device is obtained according to the single-line diagram display rules, including the connection method, connection relationship, type and location of the device. Then, the parsed single-line diagram data is converted into a device topology diagram, and the single-line diagram is automatically generated using the breadth-first search algorithm. The specific steps are as follows: select a starting node as the starting point of the search and mark it as visited; initialize a queue (Queue), explore the device connectivity in a breadth-first order, put the starting device node into the queue, if the queue is not empty, the head element of the queue is dequeued, and it is used as the current node, and all its unvisited neighbor nodes are obtained. These neighbor nodes are devices that are electrically connected to the current node, traverse the neighbor nodes, if a neighbor node has not been visited, it is marked as visited, and it is queued, and the above steps are repeated until the queue is empty, so as to realize the traversal of all devices connected to the starting device in a breadth-first manner. After the search is completed, the visited device nodes can be analyzed as needed to determine the connectivity between them, where connectivity checks include finding paths, calculating path lengths, determining whether there are connections, finding key devices, etc. The constructed device topology diagram is then overlaid with device information and converted into a single-line diagram for display, such as using the matplotlib graphics library.

[0066] In an optional implementation, the single-line diagram display rule includes a data loading rule and a display specification. After the above step S206, the method further includes:

[0067] Step d1: If the electrical single-line diagram thematic map does not meet the display specifications, the data loading rules are modified.

[0068] Step d2, re-visualizing the electrical single-line diagram thematic map according to the revised data loading rule.

[0069] Optionally, after the one-line diagram is automatically generated and displayed, the standardization of the one-line diagram display can also be verified. For example, the display standard is whether the one-line diagram is displayed completely. If the one-line diagram is not displayed completely, the one-line diagram can be displayed again by correcting the loading rules. Through the above steps, the one-line diagram data display that supports multi-level scales and map level zooming can be realized, and the integrity and availability of the one-line diagram display can be guaranteed.

[0070] This embodiment is a strategic method, which configures the single-line diagram extraction rules, constructs the equipment association and topology simplification rules, and uses the depth-first traversal algorithm to superimpose the switch displacement information on the basic electrical topology diagram, and performs rapid clipping and correction to meet the rapid generation requirements of the single-line diagram analysis thematic map, and generate a single-line diagram that meets the needs of business analysis. Then, the breadth-first search algorithm is used to query the device connectivity, and the acquired single-line diagram is automatically mapped and displayed according to the single-line diagram display rules. Finally, the data loading rules under multi-level scales are defined to realize the single-line diagram data display that supports multi-level scales and map level zooming, which solves the computational bottleneck problems such as single-line diagram extraction, single-line diagram analysis, and single-line diagram automatic generation caused by complex power grid topology.

[0071] The automatic generation of electrical single-line diagrams is an important supporting technology for the digitalization and intelligence of power systems. Urbanization has led to an increase in the coupling degree of urban power grid nodes and a more complex network structure. The complexity of single-line diagram generation methods has been greatly increased, and the rapid and automatic generation of electrical "single-line diagrams" faces bottleneck problems. This embodiment provides a method for generating a thematic map of an electrical single-line diagram based on a panoramic power grid diagram data model. Figure 3 1 is a schematic diagram of the overall framework of a method for generating a thematic electrical single-line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention. Figure 3 As shown, the panoramic topology of the power grid is a panoramic power grid diagram data model; the target area topology, that is, the basic electrical topology of the target area, is extracted from the panoramic topology of the power grid by using data interfaces and extraction functions; a configuration library manager is established through rule configuration, and the configuration library manager provides the function of customizing single-line diagram extraction rules; the configuration library manager is used to generate a single-line diagram in combination with geographic information; and then a multi-scale and hierarchical display is performed according to the hierarchical strategy (single-line diagram display rules).

[0072] Optionally, the above method can be implemented by a power grid topology extractor, a configuration library manager, a single-line diagram generator, and a single-line diagram presenter. Specifically, the power grid topology extractor includes an interface for acquiring graphic data and ledger data, which can extract the topology of the target area and read the power grid diagram data of the corresponding area, parse the data structure according to the data model, and find the nodes or attributes containing the single-line diagram data to generate the basic topology of the target area; the configuration library manager supports flexible customization of single-line diagram extraction rules to meet data requirements in different scenarios, and can also realize the management and version control of configuration information to ensure the accuracy and reliability of the extraction results. Extracting a single-line diagram is a complex process that requires comprehensive consideration of multiple factors, including data source, data type, data format, data relationship, and data verification, to ensure the quality and accuracy of the extracted data. The single-line diagram generator uses a depth-first search algorithm (DFS) to query and obtain basic equipment ledger information, equipment nameplate information, and four types of acquisition coordinate information to generate a single-line diagram. The single-line diagram displayer uses a breadth-first search algorithm (BFS) to automatically map and display the acquired single-line diagram data, superimpose medium-voltage line switch position information, including switch identification, switch status, switch position time, etc., support graphic detection and correction, and at the same time, set multi-level scales, define data loading rules under multi-level scales, support multi-map level zoom thematic map display, and ensure the complete availability of single-line diagram data display.

[0073] This embodiment reads the power grid map data through the power grid topology map extractor, parses the target area topology map, extracts the graphic data and ledger data therein, and realizes the extraction of graphic data; secondly, a single-line diagram extraction configuration library manager is designed to provide the function of customizing single-line diagram extraction rules and support flexible configuration management; then the device relationship diagram is traversed based on the depth-first traversal algorithm, and the device information that meets the traversal conditions is obtained and stored in the database; finally, the breadth-first search algorithm is used to automatically generate the diagram, and the detection rules and error correction and multi-level display of the generated diagram are defined, which solves the computing bottleneck problems such as single-line diagram extraction, single-line diagram analysis, and automatic generation of single-line diagrams caused by complex power grid topology.

[0074] In an optional embodiment, Figure 4 1 is a schematic diagram of the overall framework of another method for generating a thematic diagram of an electrical single line diagram based on a panoramic power grid diagram data model according to an embodiment of the present invention. Figure 4As shown, first obtain the topological map data of the power grid panorama (panoramic power grid map data model); then extract the graphic data and ledger data of the target area topological map; then check whether the (graphic data and ledger data) can be extracted correctly. If not, re-extract the graphic data and ledger data of the target area topological map. If they can be extracted correctly, determine the data source, data format, data structure, and data relationship. For details, see Figure 2 Step a2 of the illustrated embodiment is not described in detail here; determine whether the data verification is correct; if the data verification is incorrect, redetermine the data source, data format, data structure, and data relationship; if the data verification is correct, construct a basic electrical topology diagram based on the extracted data, wherein the basic electrical topology diagram represents different types of equipment in the form of nodes and connects the relationship between them with edges; then set the traversal condition; use the depth-first traversal algorithm (DFS) to traverse the basic electrical topology diagram and superimpose necessary information, and store the equipment information (single-line diagram data) that meets the traversal condition in the database; then obtain the single-line diagram data and implement it through the Modbus communication protocol Now the devices communicate, obtain the single-line diagram data, parse the single-line diagram data, and obtain the topological relationship between each device, including the connection method, connection relationship, device type, location and other information between the devices. Use the breadth-first search algorithm to access all device topology nodes and query the device connectivity. If the device is connected, generate a single-line diagram based on the parsed information; determine the multi-level scale and define the data loading rules; use matplotlib to display the single-line diagram and verify the standardization of the single-line diagram display. If the single-line diagram is not standardized, correct the loading rules and return to execute the determination of the multi-level scale, definition of the data loading rules and subsequent steps. If the single-line diagram is standardized, end.

[0075] This embodiment is mainly used to solve the bottleneck problem faced by the rapid and automatic generation of electrical single-line diagram thematic maps. Through this embodiment, a device association and topology simplification rule library can be constructed to meet the rapid generation requirements of single-line diagram analysis thematic maps. The rapid computing advantages of graph computing are utilized to solve the computing bottleneck problems such as single-line diagram extraction, single-line diagram analysis, and single-line diagram automatic generation caused by complex power grid topology.

[0076] In this embodiment, a device for generating a thematic diagram of an electrical single-line diagram based on a panoramic power grid diagram data model is also provided. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0077] This embodiment provides a device for generating a thematic diagram of an electrical single line diagram based on a panoramic power grid diagram data model. Figure 5As shown, it includes: a model and rule acquisition module 501, which is used to obtain the panoramic power grid data model and the single-line diagram extraction rules; a topology map generation module 502, which is used to generate the basic electrical topology map of the target area based on the panoramic power grid data model using the single-line diagram extraction rules; an equipment information acquisition module 503, which is used to obtain the equipment information corresponding to the basic electrical topology map based on the panoramic power grid data model using a depth-first traversal algorithm; and a single-line diagram generation module 504, which is used to generate an electrical single-line diagram thematic map based on the basic electrical topology map and the equipment information.

[0078] In an optional embodiment, the device also includes: a display rule acquisition module for acquiring the single-line diagram display rules; a display module for performing multi-scale and multi-level display of the electrical single-line diagram thematic map using a visualization display tool based on the single-line diagram display rules.

[0079] In an optional embodiment, the single-line diagram extraction rules include: data extraction source, data extraction method and data extraction structure, and the topology map generation module includes: an interface unit, used to establish a data interface and an extraction function; an extraction unit, used to use the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure; a generation unit, used to check the graphic data and use the checked graphic data to generate a basic electrical topology map of the target area.

[0080] In an optional embodiment, the graphic data includes an electrical connection relationship, and the device information acquisition module includes: a node selection unit, used to select a preset node in the panoramic power grid diagram data model as the current traversal node; a next node determination unit, used to obtain the device information of the current traversal node; determine the next traversal node according to the electrical connection relationship; an iteration unit, used to take the next traversal node as the current traversal node, and repeatedly execute the steps of obtaining the device information of the current traversal node, determining the next traversal node according to the electrical connection relationship, and taking the next traversal node as the current traversal node until the preset query conditions are met.

[0081] In an optional embodiment, the device further includes: a switch position information acquisition module, used to obtain the switch position information of the currently traversed node; and a topology diagram verification module, used to verify the basic electrical topology diagram using the switch position information.

[0082] In an optional implementation, the one-line diagram generation module includes: a one-line diagram generation unit, which is used to generate an electrical one-line diagram thematic map based on a basic electrical topology map and equipment information by using a breadth-first search algorithm.

[0083] In an optional embodiment, the single-line diagram display rules include data loading rules and display specifications, and the device also includes: a correction module, which is used to correct the data loading rules if the electrical single-line diagram thematic map does not meet the display specifications; a re-display module, which is used to re-visualize the electrical single-line diagram thematic map according to the corrected data loading rules.

[0084] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0085] The electrical single-line diagram thematic map generation device based on the panoramic power grid diagram data model in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0086] The embodiment of the present invention also provides a computer device having the above Figure 5 The electrical single-line diagram thematic map generating device based on the panoramic power grid diagram data model is shown.

[0087] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0088] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0089] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0090] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0091] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0092] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0093] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0094] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model, characterized in that: The method comprises: Obtain the panoramic power grid diagram data model and single-line diagram extraction rules; The basic electrical topology diagram of the target area is generated based on the panoramic power grid data model using the single-line diagram extraction rule; the single-line diagram extraction rule includes: data extraction source, data extraction method and data extraction structure, and the basic electrical topology diagram of the target area is generated based on the panoramic power grid data model using the single-line diagram extraction rule, including: Establish data interface and extract functions; Using the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure; Checking the graphic data, and using the checked graphic data to generate a basic electrical topology diagram of the target area; Using a depth-first traversal algorithm to obtain device information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model; An electrical single-line diagram thematic diagram is generated according to the basic electrical topology diagram and the equipment information.

2. The method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to claim 1, characterized in that: The method further comprises: Get the single-line diagram display rules; Based on the single-line diagram display rules, a visualization display tool is used to display the electrical single-line diagram thematic map in multiple scales and multiple levels.

3. The method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to claim 1, characterized in that: The graphic data includes electrical connection relationships, and the use of a depth-first traversal algorithm to obtain device information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model includes: Selecting a preset node in the panoramic power grid diagram data model as the current traversal node; Obtaining device information of the currently traversed node; Determine the next traversal node according to the electrical connection relationship; The next traversal node is used as the current traversal node, and the steps of obtaining the device information of the current traversal node, determining the next traversal node according to the electrical connection relationship, and using the next traversal node as the current traversal node are repeatedly performed until the preset query condition is met.

4. The method for generating the electrical single-line diagram thematic map based on the panoramic power grid diagram data model according to claim 3 is characterized in that: After obtaining the device information of the currently traversed node, the method further includes: Get the switch position information of the currently traversed node; The switch displacement information is used to verify the basic electrical topology diagram.

5. The method for generating the electrical single-line diagram thematic map based on the panoramic power grid diagram data model according to claim 1, characterized in that: Generating an electrical single-line diagram thematic diagram according to the basic electrical topology diagram and the equipment information includes: Based on the basic electrical topology diagram and the equipment information, a breadth-first search algorithm is adopted to generate an electrical single-line diagram thematic diagram.

6. The method for generating the electrical single-line diagram thematic map based on the panoramic power grid diagram data model according to claim 2, characterized in that: The one-line diagram display rule includes a data loading rule and a display specification. After the electrical one-line diagram thematic map is displayed in multiple scales and multiple levels using a visualization display tool based on the one-line diagram display rule, the method further includes: If the electrical single-line diagram thematic map does not meet the display specifications, the data loading rules are modified; The electrical single-line diagram thematic map is re-visualized according to the revised data loading rules.

7. An electrical single-line diagram thematic map generation device based on a panoramic power grid diagram data model, characterized in that: The device comprises: Model and rule acquisition module, used to obtain the panoramic power grid diagram data model and single-line diagram extraction rules; A topology map generation module is used to generate a basic electrical topology map of a target area based on the panoramic power grid map data model using the single-line map extraction rule; the single-line map extraction rule includes: a data extraction source, a data extraction method, and a data extraction structure. The basic electrical topology map of a target area is generated based on the panoramic power grid map data model using the single-line map extraction rule, including: Establish data interface and extract functions; Using the data interface to call the extraction function to obtain graphic data from the panoramic power grid diagram data model according to the data extraction source, data extraction method and data extraction structure; Checking the graphic data, and using the checked graphic data to generate a basic electrical topology diagram of the target area; A device information acquisition module, used for acquiring device information corresponding to the basic electrical topology diagram based on the panoramic power grid diagram data model by adopting a depth-first traversal algorithm; The single-line diagram generation module is used to generate an electrical single-line diagram thematic map based on the basic electrical topology map and the equipment information.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating an electrical single-line diagram thematic map based on a panoramic power grid diagram data model according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Power grid GIS-based electrical single line diagram forming method and system

    CN106650161A

  • Power distribution network single-line diagram generation system

    CN110427521A

  • Topological data model construction method, system and equipment of power distribution network and medium

    CN114297316A

  • Distribution network contact diagram automatic generation method

    CN115577480A

  • Method and device for generating engineering topology of digital substation

    US20150193558A1