Method and system for automatically generating topological graph of power distribution network

By automatically generating distribution network topology diagrams, equipment object models and connection relationships are used to replace traditional manual drawing, which improves efficiency and accuracy and solves the low efficiency and error-prone problems of traditional drawing methods.

CN118536240APending Publication Date: 2024-08-23STATE GRID WUYI COUNTY POWER SUPPLY CO +2
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410446161.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The drawing of traditional distribution network topology diagrams relies on manual labor, which is inefficient and error-prone. It is difficult to adapt to the complexity and changes of the power grid structure.

Method used

Design a method for automatically generating distribution network topology diagrams. By obtaining equipment object models, layout relationships and connection relationships, traversing electrical connection points, constructing topological relationships between equipment objects, and generating topology diagrams based on preset drawing rules, instead of Manually drawn.

Benefits of technology

It significantly improves the efficiency of drawing distribution network topology diagrams, reduces costs, reduces manual errors, and adapts to complex changes in the grid structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536240A
    Figure CN118536240A
Patent Text Reader

Abstract

The invention provides an automatic generation method and system for a topological graph of a power distribution network, and the method comprises the steps: obtaining equipment objects needed for forming the topological graph, so as to construct an equipment object model; obtaining a layout relationship of each device in the target power distribution network, and obtaining a connection relationship of each device in the target power distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; traversing all the electrical connection points to obtain all equipment object IDs related to the electrical connection points, and constructing a topological relation between the equipment objects according to the equipment object IDs; and generating a topological graph corresponding to the target power distribution network according to the topological relation between the equipment objects and a preset drawing rule corresponding to each equipment object model. The problem that the working efficiency is low due to the fact that the topological graph is drawn manually in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power distribution network, and in particular to a method and system for automatically generating a power distribution network topology diagram. Background Art

[0002] As a key infrastructure of the city, the distribution network is a bridge connecting the power grid and users. The topology diagram of the distribution network can directly reflect the topological state of the power grid and is an indispensable graphic data in the operation and management of the power system.

[0003] Traditional power system topology diagrams are usually drawn manually. A relatively simple distribution network system diagram containing only a few substations usually requires a skilled worker to spend a day or even several days to draw. This method has some disadvantages such as being time-consuming and labor-intensive, prone to errors, and difficult to modify. In addition, the continuous commissioning of new substations, the increase in lines, and the complexity of the power grid structure have made the above problems continue to highlight. The automatic generation of power system topology diagrams has attracted more and more attention from researchers. Automatic topology mapping can not only save the cost of drawing and improve work efficiency, but is also one of the key technologies for realizing intelligent scheduling of smart grids. Therefore, it is very meaningful to study the automatic topology mapping method of distribution networks. Summary of the invention

[0004] Based on this, the purpose of the present invention is to propose a method and system for automatically generating a distribution network topology map, so as to solve the problem of low work efficiency caused by the traditional method of manually drawing a topology map.

[0005] In one aspect, the present invention provides a method for automatically generating a distribution network topology map, which is applied to a distribution network planning platform. The method comprises: Acquire the device objects required to form the topology diagram to construct a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; Acquire the layout relationship of each device in the target distribution network, and acquire the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; Traversing all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topological relationship between device objects according to the device object IDs; A topological map corresponding to the target power distribution network is generated according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model.

[0006] In summary, according to the above-mentioned method for automatically generating a distribution network topology map, a new method of automatically generating a topology map is designed to replace the traditional method of manually drawing a topology map, which greatly improves the efficiency of drawing a distribution network topology map and reduces the drawing cost. Specifically, firstly, the device objects required for drawing a topology map are obtained to define the device object models corresponding to each device object, and then the layout relationship of each device in the target distribution network is obtained, and then the connection relationship between all devices included in the target distribution network is obtained according to the layout relationship, and then the number of electrical connection points and the position of each electrical connection point are determined according to the connection relationship, and then all electrical connection points are traversed to obtain the device object ID, and then the topological relationship between the device objects is constructed, and then the topological map is generated based on the topological relationship and the preset drawing rules, without manual drawing, which solves the problem of low efficiency caused by the traditional method of drawing a topological map.

[0007] Furthermore, the step of acquiring the device objects required to form the topology diagram to construct a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one includes: The busbar model is defined according to the following formula: B={BID,BCode,BType,BVRank,BState,BMP} Among them, B represents the bus model, BID represents the unique identifier of the bus object, BCode represents the bus name or the description of the power industry code, BType represents the type of the bus, BVRank represents the voltage level of the bus, BState represents the current operating status of the bus; BMP represents the management information related to the operation and maintenance of the bus; The line element model is defined according to the following formula: EL={ELID,ELCode,ELType,ELVRank,ELTopo,ELMP} Among them, EL represents the line element model, ELID represents the unique identifier of the line object, ELCode represents the description of the line element name, ELType represents the type of the line element, ELVRank represents the voltage level of the line element, ELTopo represents the topological description information of the line element, and ELMP represents the management information related to the operation and maintenance of the line; The line model is defined according to the following formula: L={LCode, {ELi}, i=1,2,3,…,n} Among them, L represents the line model, and LCode represents the description of the line name; The switch model is defined according to the following formula: BR={BRID, BRCode, BRType, BRState, BRTopo, BRMP} Among them, BR represents the switch model, BRID is the unique identifier of the switch object, BRCode represents the description of the switch name, BRType represents the type of the switch, BRState represents the current operating state of the switch, BRTopo represents the topological description information of the switch, and BRMP represents the management information related to the operation and maintenance of the switch; The transformer model is defined according to the following formula: T={TID, TCode, TType, Tconn, TMP} Among them, T represents the transformer model, TID represents the unique identification code of the transformer object, TCode represents the description of the transformer name, TType represents the type of transformer, Tconn represents the connection method of the primary and secondary windings of the transformer, and TMP represents the management information related to the operation and maintenance of the transformer.

[0008] Furthermore, the step of obtaining the layout relationship of each device in the target distribution network, and obtaining the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship includes: Obtain bus information, line information, switch information, and transformer information in the target distribution network, wherein the bus information, the line information, the switch information, and the transformer information all include the number and type of equipment; The connection relationship between the devices is acquired according to the layout relationship, the number of devices and the device type.

[0009] Furthermore, the step of traversing all electrical connection points to obtain all device object IDs related to the electrical connection points and constructing a topological relationship between device objects according to the device object IDs includes: It is determined whether the device objects have connection properties according to the device object ID. If the device objects have connection properties, the device objects connected to the same electrical connection point are added according to the device object ID.

[0010] Furthermore, after the step of acquiring the connection relationship between the devices according to the layout relationship, the number of devices and the device type, the step further includes: Define a threshold a, use the point buffer analysis function of the GIS platform, and obtain all electrical connection points or other equipment objects located within the buffer a centered on the electrical connection point of the current equipment object by traversing the data set of the entire layer; If the obtained object is an electrical connection point, the device object ID of the electrical interface represented by the electrical connection point is obtained through the spatial query operation provided by the GIS platform to determine whether the device object ID is connected to the obtained object; If the obtained object is a bus or line, determine whether the connection is legal. If legal, move the electrical connection point to it to make it have connection properties; otherwise, disconnect the bus or line from the electrical connection point.

[0011] Furthermore, the step of generating a topological map corresponding to the target distribution network according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model includes: The preset drawing rule corresponding to the busbar model is: A busbar is represented by a busbar graphic element. When a busbar tie switch is added to the busbar graphic element, the busbar is divided into two busbar graphic elements, and the connection relationship with the busbar tie switch is also recorded in the connection attribute of the busbar tie switch. The preset drawing rules corresponding to the line model are: If a new switch element is added to an existing line element, the line element is split into two new line elements and assigned new ID numbers, and the new connection information is recorded in the connection attributes of the line element and the switch, respectively.

[0012] Furthermore, the step of generating a topological map corresponding to the target distribution network according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model includes: The preset drawing rule corresponding to the switch model is: If a line or bus is added to an existing switch, the line or bus is interrupted to form two new objects and the connection relationship between the three is recorded at the same time; It is set that the device objects connected to the switch include two. If there are more than two connected objects or more than two connected objects, it is illegal.

[0013] Another aspect of the present invention provides a method for automatically generating a distribution network topology diagram, the system comprising: A model building module is used to obtain the device objects required to form a topology diagram, so as to build a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; A connection relationship acquisition module, used to acquire the layout relationship of each device in the target distribution network, and acquire the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; A topology relationship acquisition module, used for traversing all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topology relationship between device objects according to the device object IDs; A topology map generating module is used to generate a topology map corresponding to the target power distribution network according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model.

[0014] Another aspect of the present invention further provides a readable storage medium, wherein the readable storage medium stores one or more programs, and when the programs are executed, the method for automatically generating a distribution network topology diagram as described above is implemented.

[0015] Another aspect of the present invention further provides a computer device, the electronic device comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, it implements the above-mentioned method for automatically generating a distribution network topology map.

[0016] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or will be learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flow chart of a method for automatically generating a distribution network topology diagram according to a first embodiment of the present invention; Figure 2 A schematic diagram of electrical connection points proposed in the first embodiment of the present invention; Figure 3 A flowchart of a hierarchical drawing algorithm in a first embodiment of the present invention; Figure 4 The topological diagram of the substation area used as an example in the first embodiment of the present invention; Figure 5 A schematic diagram of the structure of a system for automatically generating a distribution network topology diagram according to a second embodiment of the present invention.

[0018] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0019] In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0021] See also Figure 1 , which is a flow chart of a method for automatically generating a distribution network topology diagram in a first embodiment of the present invention, and is applied to a distribution network planning platform. The method includes steps S01 to S04, wherein: Step S01: acquiring device objects required to form a topology diagram, so as to construct a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; It should be noted that there are various topological relationships between the devices in the low-voltage distribution substation, such as the connection relationship between the line and the switch, the connection relationship between the transformer and the line, etc. These topological relationships and the symbols representing the various electrical components are combined to form a complex "net". This "net" not only contains the logical relationship between the various components, but also should contain a series of attribute data such as the manufacturer of the component, the current operating status, the commissioning date, etc. In this embodiment, the low-voltage distribution substation is defined as follows: In the formula, B, L, BR, T, and ED are all equipment objects, representing busbars, lines, switches, transformers, and other power equipment such as reactors. Busbars can be further divided into power plant busbars, substation busbars, switchgear busbars, and load busbars. Switches can be divided into bus tie switches, outgoing line switches, section switches, and tie switches. Lines can be divided into overhead wires and cables. Transformers can be divided into two-winding transformers and three-winding transformers.

[0022] To establish a general network structure model, it is necessary to have a complete knowledge representation of electrical equipment. Under the support of the class abstract theory of object-oriented technology, in order to further describe the power grid, the electrical equipment model that constitutes the power grid can be uniformly defined as {equipment name, equipment ID, code / name, category, associated attributes, management attributes}.

[0023] The "equipment ID" in the model is a unique identifier in the system assigned to the equipment according to the unified coding rules of the GIS development platform; the "code / name" is an industry identifier assigned to the equipment according to the coding / naming rules of the equipment in the actual power system, such as the circuit breaker code can be 106, the name of a line can be Tung Chung Line or coded as 1046, etc.; the "category" is used to identify the specific instance to which the equipment belongs, for example, whether a bus represents a substation bus or a load bus, etc.; the "association attributes" are used to indicate the logical connection relationship between various components in the power grid; the "management attributes" are mainly used for the operation and maintenance management of the power grid, which can be divided into two categories: installation attributes and operation attributes, which record some equipment characteristic data required for production operation.

[0024] For the busbar model, in the low-voltage distribution area topology diagram, the busbar can be divided into four categories according to the different installation locations, namely power plant busbar, substation busbar, switchgear busbar, and load busbar. Therefore, the busbar model can be defined as: B={BID,BCode,BType,BVRank,BState,BMP} Among them, B represents the bus model, BID represents the unique identifier of the bus object, BCode represents the bus name or the description of the power industry code, BType represents the type of the bus, BVRank represents the voltage level of the bus, BState represents the current operating status of the bus; BMP represents the management information related to the operation and maintenance of the bus; Due to the complexity of the structure of the low-voltage distribution substation itself and the need for convenience of operation personnel, a line in reality is not necessarily represented by a straight line in the drawing space. It may be possible to express a complete line by connecting multiple line segments under the premise of considering the beauty of the graphics, the convenience of viewing the drawings and the actual direction of the line. Therefore, the concept of line element is first defined: EL = {ELID, ELCode, ELType, ELVRank, ELTopo, ELMP} Among them, EL represents the line model, ELID represents the unique identifier of the line object, ELCode represents the description of the line name, ELType represents the type of the line, ELVRank represents the voltage level of the line, ELTopo represents the topological description information of the line element, and ELMP represents the management information related to the operation and maintenance of the line; According to the line element model, the following line model can be obtained: L={LCode, {ELi}, i=1,2,3,…,n} Among them, L represents the line model, and LCode represents the description of the line name; Switches are important equipment in the power grid. The network topology is determined by the switch state. The change in network flow distribution caused by the change in switch state determines the operating constraints of the network. When forming a power grid topology map based on a geographic information system, the switch can be defined as follows: BR={BRID, BRCode, BRType, BRState, BRTopo, BRMP} Among them, BR represents the switch model, BRID is the unique identifier of the switch object, BRCode represents the description of the switch name, BRType represents the type of the switch, BRState represents the current operating state of the switch, BRTopo represents the topological description information of the switch, and BRMP represents the management information related to the operation and maintenance of the switch; The transformer is responsible for electrically connecting several power networks with different voltage levels. Its graphical model can be defined as follows: T={TID, TCode, TType, Tconn, TMP} Wherein, T represents the transformer model, TID represents the unique identification code of the transformer object, TCode represents the description of the transformer name, TType represents the type of the transformer, Tconn represents the connection method of the primary and secondary windings of the transformer, and TMP represents the management information related to the operation and maintenance of the transformer; In addition to the above four main electrical components, there are other electrical equipment such as grounding switches and reactors in the power grid. These equipment can be uniformly defined in the drawing space as follows: ED={EDID, EDCode, EDType, MP} Since these devices are all directly connected to the lines or switches without exception, the connection relationships between them are also stored in the lines or switches connected to them, so there is no need to define the connection relationships between them in their models.

[0025] Step S02: obtaining the layout relationship of each device in the target distribution network, and obtaining the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; Specifically, in this step, bus information, line information, switch information, and transformer information in the target distribution network are obtained, and the bus information, the line information, the switch information, and the transformer information all include the number of devices and the type of devices; The connection relationship between the various devices is obtained according to the layout relationship, the number of devices and the type of devices, and then the number and positions of electrical connection points are determined.

[0026] It should be noted that electrical equipment has electrical interfaces in terms of physical characteristics, and they are connected to the outside world through the electrical interfaces. Therefore, for professional power drawing, it is necessary to define the electrical connection points of each component object appearing in the diagram. Only when the electrical connection points are connected can the devices be considered to be interconnected. When the equipment graphic object is established, its electrical connection points are automatically defined and determined accordingly.

[0027] The number of electrical connection points and the location of each connection point vary from device to device. The electrical connection point of a fixed-port component is defined as the electrical interface of the component. This is achieved on the GIS platform by adding a hidden, invisible point object at the electrical interface, such as Figure 2 For equipment without fixed electrical interfaces such as busbars, the entire entity is defined as an electrical connection point; For graphic objects with fixed electrical connection points, since all electrical equipment is interconnected through logically defined electrical connection points, to determine the connection relationship between components, it is only necessary to determine the relative position relationship between the electrical connection point of the current graphic object and other electrical equipment. Define a threshold a, use the point buffer analysis function of the GIS platform, and traverse the data set of the entire layer to obtain all electrical connection points or other equipment graphic objects located within the buffer a centered on the electrical connection point of the current component object. Depending on the different objects obtained, the corresponding judgment method is also different.

[0028] ① If it is an electrical connection point, the spatial query operation provided by the GIS platform can be used to obtain the device ID of the electrical interface it represents, so as to determine whether the two are connected.

[0029] ② If it is an object such as a busbar or line that can be interrupted in the middle or a connection relationship can be established, determine whether the connection is legal. If it is legal, then according to different error elimination methods and different positional relationships, either move the electrical connection point to it or interrupt the line and other objects from the electrical connection point to form an actual connection or directly fill in the connection attributes.

[0030] For busbar objects without fixed electrical connection points, since they can only be connected to other objects through objects with fixed electrical connection points such as lines and circuit breakers, buffer analysis can only be performed on the entire busbar object to find the electrical connection points that fall within the buffer zone for further processing.

[0031] For line objects that can be interrupted in the middle, such as when the line is T-connected, since the coordinates of the electrical connection points of the objects connected to it are inconsistent with the coordinates of the current electrical connection points of the line, the line objects can only be analyzed by line buffering to obtain the electrical connection points of the adjacent objects for further processing.

[0032] Step S03: traversing all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topological relationship between device objects according to the device object IDs; It should be pointed out that since electrical equipment is interconnected through electrical connection points, the logical relationship between device graphics can be obtained by traversing the connection properties stored in the electrical connection points in the drawing space. Specifically, it is determined whether the device objects have connection properties based on the device object ID. If the device objects have connection properties, the device objects connected to the same electrical connection point are added according to the device object ID, thereby completing the establishment of the topological relationship.

[0033] Step S04: generating a topological map corresponding to the target power distribution network according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model.

[0034] In this step, a hierarchical drawing algorithm is used. For example, in the electrical wiring diagram of the substation, the layers are divided according to the distance between the equipment and the distribution transformer. The substation distribution transformer is the 0th layer, the low-voltage branch box or meter box directly connected to the distribution transformer is the 1st layer, and so on. On the drawing board, the icons of the equipment at the same level are arranged in the vertical direction. In the horizontal direction, the smaller the layer of the equipment, the closer it is to the distribution transformer icon. The algorithm flow of the hierarchical drawing is as follows: Figure 3 shown.

[0035] The attributes of the structure StructEquip are ID, parentID, layer, direction, name, and type; they represent the object's ID, parent node's ID, layer, drawing direction (left or right), name, and type (meter box or low-voltage junction box), respectively. The values ​​of these attributes are initialized from the database records corresponding to the geographic map. The direction of half of the nodes in the first layer is L (indicating drawing to the left), and the direction of the other half of the nodes is R (indicating drawing to the right); the direction of the nodes in the second layer and beyond continues the direction value of their parent nodes.

[0036] Using breadth-first search can ensure that in the equipToDraw array, nodes of the same layer are stored together, nodes of different layers with smaller depths are placed first, and child nodes of nodes of the same layer with smaller depths are placed first.

[0037] The initial parameters include the horizontal distance between the upper left corners of icons on adjacent layers, the vertical distance between the upper left corners of adjacent icons on the same layer, the coordinates of the upper left corner of the transformer icon, how many objects have been drawn, the drawing direction of the previous node, the level of the previous node, how many objects have been drawn on the current layer, and the X and Y coordinates of the object to be drawn.

[0038] Secondly, regarding the generation of graphics elements, specifically: drawing and editing different types of power graphics elements is the most basic and important function of the graphics system. The graphics elements of the power system are composed of several basic graphics such as points, lines, rectangles, circles, and texts. These basic graphics can be used to "assemble" any equipment of the power system standard.

[0039] First, implement the basic graphics class. These graphics have their own properties and data, such as size, shape, position, etc.; they also have their own behaviors, such as drawing, moving, rotating, scaling, copying, deleting, etc. Although the graphics are different, some common basic properties and behaviors can be abstracted from them. Therefore, before representing these graphics, first establish a base class DrawObject for all graphics classes to describe the common properties and behaviors of these graphics, and then derive specific graphics classes (DrawPoint, DrawLine, DrawRectangle, DrawEllepse, DrawText) from the graphics base class according to the characteristics of each graphic and the requirements of the system, using the characteristics of class inheritance and derivation, and define their own unique properties and behaviors as needed. This method encapsulates data and operations together, greatly simplifying the programming process. It should be emphasized that in the system, basic graphics are drawn by their corresponding control points, and the operation of graphics is the operation of these control points. These points are also called path points, and the outline of the graphics is called a path.

[0040] Then, the required electrical equipment is generated from these basic graphics. Consider introducing the intermediate class DrawMergeObject to encapsulate the basic graphics class objects into electrical graphics. This class uses the path merging method to "merge" the basic graphics, and rewrites the basic method to implement the overall function. After merging, the original graphics no longer exist as a single individual. All the path points of the graphics are merged and placed in an array. The whole is an electrical graphics element, and its outline is expressed as a path.

[0041] In addition, for complex power equipment such as ring main units, as an icon, it contains other icons (such as switches and knife switches) inside, and these icons are required to be relatively independent in specific situations, that is, an internal switch or knife switch can be selected separately for operation. At this time, another intermediate class DrawBind Object is introduced to "bind" the basic graphics and icons (DrawMergeObject class). The essence of "binding" is to encapsulate these graphics and icons in a list. All the graphics in the list are assigned an attribute that identifies this binding set, so that these graphics and icons can present different states to the outside world and contain a sign as a "whole". By judging what kind of response the current operation requires this "whole" to make, it is decided whether to ignore this sign. When the whole needs to be moved, this sign is enabled, and clicking any part of the icon will select all internal components; when a certain internal switch is to be operated, this sign is turned off, and only a single component can be selected.

[0042] Furthermore, when equipment is added or deleted, it should be automatically reflected in the electrical wiring diagram of the substation. At this time, the electrical wiring diagram may have been modified on the basis of automatic generation (for example, some annotation information has been added manually, and the relative position of the icon has changed). Therefore, the user hopes to be able to remove the deleted equipment from the diagram and place the newly added equipment in the appropriate position on the diagram without making major changes to the electrical wiring diagram.

[0043] First, you can traverse the electrical wiring diagram of the substation area, find out the equipment that is not on the geographical map of the substation area, and the equipment whose wiring method has changed, delete it from the electrical diagram (and delete the corresponding connecting lines and text at the same time), then change the distribution to the parent node, and perform the following operations to complete the incremental drawing: (1) Find the direct child nodes of the parent node from the connection relationship expressed in the geographic map.

[0044] (2) If you find a device that does not exist on the electrical diagram, add the device icon to the bottom of the child node icon of the parent node on the electrical diagram, and move the nodes on the same level downward to ensure that there is no overlap.

[0045] (3) Take the child node found in step (1) as the parent node, and recursively execute from step (1) until all nodes are traversed.

[0046] (4) After completing the above three steps, all newly added equipment on the geographic map has been drawn on the electrical wiring diagram.

[0047] (5) Then proceed with steps such as adjusting the center alignment of the icon, drawing text, drawing connecting lines, and automatically scaling to full screen display. These steps are similar to the aforementioned automatic drawing method, except that text and connecting lines are only drawn for newly added objects.

[0048] After the above processing, the latest electrical wiring diagram can be automatically drawn with relatively little change to the original electrical wiring diagram.

[0049] In addition, regarding the icon adjustment algorithm, the effect of icon alignment adjustment is to make the set of areas occupied by all child node icons of each parent node horizontally aligned with the center of the parent node icon. The algorithm principles are as follows: (1) Start adjusting from the deeper layer, and then adjust the previous layer after adjusting one layer; but do not adjust the nodes in the last layer for the time being (because the nodes in the last layer only need to follow the parent node to be adjusted in step 3); (2) For nodes on the same layer, adjust the nodes with smaller ordinates first, then adjust the nodes with larger ordinates.

[0050] (3) When adjusting nodes of a certain layer, if a node needs to be moved upward, all nodes of the same layer should be moved upward by the same distance, and when nodes of the same layer whose ordinate is smaller than that of this node are moved, their direct and indirect child nodes should be moved synchronously (because the positions of these child nodes relative to their parent nodes have been adjusted).

[0051] (4) When adjusting nodes at a certain layer, if a node needs to be moved downward, all nodes at the same layer whose vertical coordinates are greater than this node will be moved downward, but their child nodes will not be moved (because the positions of these child nodes relative to their parent nodes have not been adjusted yet).

[0052] The core idea of ​​the above principle is to move the parent node based on the position of the area occupied by the child node; if the relative positions of the parent and child nodes are adjusted, then when moving the parent node, its child nodes must be moved synchronously.

[0053] According to the above topology map generation algorithm, a topology map is drawn for a certain area, and its graph is as follows Figure 4 shown.

[0054] Furthermore, in some optional embodiments of the present invention, when a busbar model is used to construct a topological diagram, the specific rules are as follows: (1) In different types of diagrams, the busbar represents different devices. In a plant wiring diagram, a busbar graphic element can represent a busbar in the real world, but in a distribution network wiring diagram, a busbar can be abstracted into an actual substation or switch station, etc.; (2) If a busbar tie switch is added to an existing busbar graphic element, the system will automatically split the busbar into two busbar graphic elements at the location where the switch is added, and the logical connection relationship with the busbar tie switch will also be automatically recorded in the connection properties of the busbar tie switch; (3) When generating a busbar, the generated busbar is regarded as a line object in the drawing space; (4) Since an indefinite number of outgoing lines can be connected to the same bus, it is not convenient to set the connection attributes that record the connection relationship in the bus model. The connection relationship between the bus and other components to be used in the analysis can be obtained from the outgoing line switch, bus tie switch or line connected to it.

[0055] Furthermore, in some optional embodiments of the present invention, when a topology graph is constructed using line elements, the specific rules are as follows: (1) a line element can represent an actual line or a segment of a line; (2) If a new switch element is added to an existing line element, the system will automatically split the line element into two new line elements and assign new ID numbers. At the same time, the system will record the new connection information in the connection properties of the line element and the switch respectively. (3) It is not allowed for both ends of a line element to be suspended at the same time, because this does not exist in the real world. When this happens, appropriate prompts should be given. It can only happen in four situations: one end is suspended, connected to other line elements, connected to some busbars, or connected to switches.

[0056] Furthermore, in some optional embodiments of the present invention, when forming a topology diagram, the rule for defining switches is: (1) When adding a line or bus to an existing switch, the line or bus is automatically disconnected to form two new objects and the connection relationship between the three is recorded at the same time. The same process is applied when adding a switch to a line or bus object. (2) It is impossible for a switch to be left hanging at one or both ends. Since it is a two-port element, two electrical objects must be connected to it. It is also impossible to connect it to more than two objects. Therefore, when filling in the switch topology relationship, when an illegal situation occurs, it can be detected and an appropriate reminder can be given.

[0057] Further, in some optional embodiments of the present invention, when a transformer is used to form a topology diagram, the specific rules are as follows: (1) the transformer is a two-port or three-port component, and thus can be directly connected to at most three electrical objects; (2) The transformer cannot be directly connected to the busbar and must be connected through a circuit breaker. This is in line with the situation in the real world. Therefore, a legality check should be performed when changing the connection properties of electrical components directly connected to the transformer.

[0058] In summary, according to the above-mentioned method for automatically generating a distribution network topology map, a new method of automatically generating a topology map is designed to replace the traditional method of manually drawing a topology map, which greatly improves the drawing efficiency of the distribution network topology map and reduces the drawing cost. Specifically, firstly, the device objects required for drawing the topology map are obtained to define the device object models corresponding to each device object, and then the layout relationship of each device in the target distribution network is obtained, and then the connection relationship between all devices included in the target distribution network is obtained according to the layout relationship, and then the number of electrical connection points and the position of each electrical connection point are determined according to the connection relationship, and then all electrical connection points are traversed to obtain the device object ID, and then the topological relationship between the device objects is constructed, which is conducive to improving the drawing accuracy, and then the topological map is generated based on the topological relationship and the preset drawing rules, without manual drawing, which solves the problem of low efficiency caused by the traditional method of drawing the topology map.

[0059] See also Figure 5 , which is a schematic diagram of the structure of a system for automatically generating a distribution network topology diagram in a second embodiment of the present invention, the system comprising: The model building module 10 is used to obtain the device objects required to form the topology diagram, so as to build a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; A connection relationship acquisition module 20, used to acquire the layout relationship of each device in the target distribution network, and acquire the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; A topology relationship acquisition module 30, used to traverse all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topology relationship between device objects according to the device object IDs; The topology map generating module 40 is used to generate a topology map corresponding to the target power distribution network according to the topological relationship between the device objects and the preset drawing rules corresponding to each device object model.

[0060] Furthermore, in some optional embodiments of the present invention, the system further includes: The electrical connection point traversal execution module is used to define a threshold a, and utilize the point buffer analysis function of the GIS platform to obtain all electrical connection points or other equipment objects located within the buffer a centered on the electrical connection point of the current equipment object by traversing the data set of the entire layer; A connection relationship detection module is used to obtain the device object ID of the electrical interface represented by the electrical connection point through the spatial query operation provided by the GIS platform if the obtained object is an electrical connection point, so as to determine whether the device object ID is connected to the obtained object; If the obtained object is a bus or line, determine whether the connection is legal. If legal, move the electrical connection point to it to make it have connection properties; otherwise, disconnect the bus or line from the electrical connection point.

[0061] On the other hand, the present invention further provides a readable storage medium on which one or more programs are stored, and when the program is executed by a processor, the method for automatically generating a distribution network topology diagram is implemented.

[0062] Another aspect of the present invention further provides a computer device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned method for automatically generating a distribution network topology map.

[0063] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0064] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0065] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0066] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0067] The above-described embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.

Claims

1. A method for automatically generating a distribution network topology map, applied to a distribution network planning platform, characterized in that: The method comprises: acquiring device objects required to form a topology diagram to construct a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; Acquire the layout relationship of each device in the target distribution network, and acquire the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; Traversing all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topological relationship between device objects according to the device object IDs; A topological map corresponding to the target power distribution network is generated according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model.

2. The method for automatically generating a distribution network topology diagram according to claim 1, characterized in that: The step of acquiring the device objects required to form the topology diagram to construct a bus model, a line model, a switch model, and a transformer model corresponding to the device objects comprises: The busbar model is defined according to the following formula: B={BID,BCode,BType,BVRank,BState,BMP} Among them, B represents the bus model, BID represents the unique identifier of the bus object, BCode represents the bus name or the description of the power industry code, BType represents the type of the bus, BVRank represents the voltage level of the bus, BState represents the current operating status of the bus; BMP represents the management information related to the operation and maintenance of the bus; The line element model is defined according to the following formula: EL={ELID,ELCode,ELType,ELVRank,ELTopo,ELMP} Among them, EL represents the line element model, ELID represents the unique identifier of the line object, ELCode represents the description of the line element name, ELType represents the type of the line element, ELVRank represents the voltage level of the line element, ELTopo represents the topological description information of the line element, and ELMP represents the management information related to the operation and maintenance of the line; The line model is defined according to the following formula: L={LCode, {ELi}, i=1,2,3,…,n} Among them, L represents the line model, and LCode represents the description of the line name; The switch model is defined according to the following formula: BR={BRID, BRCode, BRType, BRState, BRTopo, BRMP} Among them, BR represents the switch model, BRID is the unique identifier of the switch object, BRCode represents the description of the switch name, BRType represents the type of the switch, BRState represents the current operating state of the switch, BRTopo represents the topological description information of the switch, and BRMP represents the management information related to the operation and maintenance of the switch; The transformer model is defined according to the following formula: T={TID, TCode, TType, Tconn, TMP} Among them, T represents the transformer model, TID represents the unique identification code of the transformer object, TCode represents the description of the transformer name, TType represents the type of transformer, Tconn represents the connection method of the primary and secondary windings of the transformer, and TMP represents the management information related to the operation and maintenance of the transformer.

3. The method for automatically generating a distribution network topology diagram according to claim 2, characterized in that: The step of obtaining the layout relationship of each device in the target distribution network, and obtaining the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship includes: Obtain bus information, line information, switch information, and transformer information in the target distribution network, wherein the bus information, the line information, the switch information, and the transformer information all include the number of devices and the type of devices; The connection relationship between the devices is acquired according to the layout relationship, the number of devices and the device type.

4. The method for automatically generating a distribution network topology diagram according to claim 3, characterized in that: The step of traversing all electrical connection points to obtain all device object IDs related to the electrical connection points and constructing a topological relationship between device objects according to the device object IDs includes: It is determined whether the device objects have connection properties according to the device object ID. If the device objects have connection properties, the device objects connected to the same electrical connection point are added according to the device object ID.

5. The method for automatically generating a distribution network topology diagram according to claim 3, characterized in that: After the step of obtaining the connection relationship between the various devices according to the layout relationship, the number of devices and the device type, the method further includes: defining a threshold a, using the point buffer analysis function of the GIS platform, and obtaining all electrical connection points or other device objects located within the buffer a centered on the electrical connection point of the current device object by traversing the data set of the entire layer; If the obtained object is an electrical connection point, the device object ID of the electrical interface represented by the electrical connection point is obtained through the spatial query operation provided by the GIS platform to determine whether the device object ID is connected to the obtained object; If the obtained object is a bus or line, determine whether the connection is legal. If legal, move the electrical connection point to it to make it have connection properties; otherwise, disconnect the bus or line from the electrical connection point.

6. The method for automatically generating a distribution network topology diagram according to claim 4, characterized in that: The step of generating a topological map corresponding to the target distribution network according to the topological relationship between the device objects and the preset drawing rules corresponding to each device object model comprises: The preset drawing rule corresponding to the busbar model is: A busbar is represented by a busbar graphic element. When a busbar tie switch is added to the busbar graphic element, the busbar is divided into two busbar graphic elements, and the connection relationship with the busbar tie switch is also recorded in the connection attribute of the busbar tie switch. The preset drawing rules corresponding to the line model are: If a new switch element is added to an existing line element, the line element is split into two new line elements and assigned new ID numbers, and the new connection information is recorded in the connection attributes of the line element and the switch, respectively.

7. The method for automatically generating a distribution network topology diagram according to claim 4, characterized in that: The step of generating a topological map corresponding to the target distribution network according to the topological relationship between the device objects and the preset drawing rules corresponding to each device object model comprises: The preset drawing rule corresponding to the switch model is: If a line or bus is added to an existing switch, the line or bus is interrupted to form two new objects and the connection relationship between the three is recorded at the same time; It is set that the device objects connected to the switch include two. If there are more than two connected objects or more than two connected objects, it is illegal.

8. A system for automatically generating a distribution network topology diagram, characterized in that: The system comprises: A model building module is used to obtain the device objects required to form a topology diagram, so as to build a bus model, a line model, a switch model, and a transformer model corresponding to the device objects one by one; A connection relationship acquisition module, used to acquire the layout relationship of each device in the target distribution network, and acquire the connection relationship of each device in the target distribution network according to the layout relationship, so as to determine the number of electrical connection points and the position of each electrical connection point according to the connection relationship; A topology relationship acquisition module, used for traversing all electrical connection points to obtain all device object IDs related to the electrical connection points, so as to construct a topology relationship between device objects according to the device object IDs; A topology map generating module is used to generate a topology map corresponding to the target distribution network according to the topological relationship between the device objects and a preset drawing rule corresponding to each device object model.

9. A computer device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in any one of claims 1 to 7.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Power grid line model connection method and device for digital twin power grid platform

    CN119180121A

  • Power grid topological graph determination method and device and electronic equipment

    CN119578002A

  • Power grid topology map determination method and apparatus, and electronic device

    CN119578002B