Method for automatically generating network diagram of power distribution network
By automatically building and displaying distribution network diagrams, the problems of low manual drawing efficiency and erroneous operation are solved, the standardization and consistency of graphics are achieved, and the support efficiency and safety of distribution network scheduling decisions are improved.
Patent Information
- Application Number
- CN202411332990.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-03
AI Technical Summary
The drawing of existing distribution network network graphics relies on manual manual, resulting in low efficiency, frequent errors and untimely updates, resulting in inconsistent graphics and reality.
By obtaining CIM model data, analyzing and constructing topological structure data, forming a distribution network diagram without crossover and overlapping, a standardized network diagram is generated using the automatic layout algorithm, and saved it as a G/XML model file, and finally converted into an SVG file Show it.
It has realized the standardization and standardization of distribution network diagrams, improved the simplicity of graphic display and layout clarity, supported the macro and micro decision-making vision, reduced the information review process in scheduling decisions, and improved safety and efficiency.
Smart Images

Figure CN119249663A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power distribution network diagram generation, and in particular to a method for automatically generating a power distribution network diagram. Background Art
[0002] At present, various power grid companies have realized remote monitoring, data collection, and remote control of power grid equipment in energy management systems (D5000, D5200, OPEN3000, IES, etc.). Among them, for power grid graphics, functions such as graphics drawing, operation simulation, data display, and status display are realized. Power grid graphics have become an important basis for various power grid companies to dispatch, monitor, and operate power grid equipment.
[0003] In the dispatching and monitoring of distribution networks, personnel of various power grid companies rely on distribution network single-line diagrams to carry out related work. However, due to the large number of distribution network equipment and the relatively scattered equipment, the personnel of various power grid companies have gradually increased their reliance on distribution network diagrams. Network diagrams can intuitively display the distribution network equipment in the entire area, and at the same time technically enable the prominent display of important equipment.
[0004] Currently, power grid companies still use the method of manually drawing distribution network diagrams, which has problems such as low drawing efficiency, human drawing errors, and untimely updates leading to inconsistencies between the diagram and reality. Summary of the invention
[0005] The present invention provides a method for automatically generating a distribution network diagram, which realizes the automatic generation of a distribution network diagram and solves a series of problems in manually drawing a network diagram, such as a large workload, low efficiency, manual misoperation, and untimely updating resulting in inconsistency between the diagram and reality.
[0006] The present invention is achieved through the following technical solutions:
[0007] A method for automatically generating a distribution network diagram, comprising:
[0008] Acquire CIM model data of the target power grid, parse the CIM model data, extract and save model object data from the CIM model data, the model object data including object information, belonging relationships between objects, and contact relationships between objects;
[0009] Acquire target object data from the model object data, the target object data including target object nodes at different levels, belonging relationships between different target object nodes, and contact relationships between the target object nodes, and let the target object node at the highest level be the first target object node;
[0010] Respectively constructing topological structure data of a single-line graph formed by taking different first target object nodes as starting points and traversing second target object nodes that have a direct or indirect belonging relationship and contact relationship with the first target object node;
[0011] Based on the principle of no cross-overlapping, the topological structure data of all the single-line diagrams are arranged to form an intermediate topological diagram. Finally, the second target object nodes in the intermediate topological diagram that belong to different first target object nodes but have a contact relationship are connected through contact lines to finally form a distribution network diagram.
[0012] As an optimization, the first target object node is a distribution network substation, and the second target object node includes a substation bus, a bus and feeder connection unit, and a feeder device. In descending order of hierarchy, the target object nodes include a distribution network substation, a substation bus, a bus and feeder connection unit, and a feeder device. The specific process of constructing a single-line topology structure diagram formed by taking the first target object node as the starting point and traversing the second target object nodes that have a direct or indirect belonging relationship and connection relationship with the first target object node is as follows:
[0013] A search is performed according to the hierarchical relationship and the path of the contact relationship of the distribution network substation, substation bus, bus and feeder contact switch, and feeder equipment to construct a single-line topology structure diagram with a tree-like chain structure starting from the distribution network substation.
[0014] As an optimization, the specific process of arranging the topological structure data of all the single-line diagrams on the principle of no cross-overlapping to form an intermediate topological diagram is as follows:
[0015] A1. Draw the topological structure data of each single-line diagram on a blank topological diagram to form single-line topological diagrams corresponding to the topological structure data of the single-line diagram;
[0016] A2. Adjust the corresponding single-line topology diagram according to the relative orientation of each substation and the bus position of the substation to ensure that the first target object node and the second target object node of each single-line topology diagram do not overlap, thereby forming an intermediate topology diagram.
[0017] As an optimization, in A1, corresponding to any one of the topological structure data of the single-line diagram, the topological structure data of the single-line diagram is drawn on a blank topological diagram respectively, and the specific process of forming the single-line topological diagram corresponding to the topological structure data of the single-line diagram is as follows:
[0018] Divide the blank topology map into a plurality of topology areas, the number of the topology areas being greater than the sum of the numbers of the first target object nodes and the second target object nodes of all the single-line topology structure maps, and at the same time, divide the orientation of the blank topology map into a first orientation, a second orientation, a third orientation, and a fourth orientation, the first orientation and the second orientation are arranged opposite to each other, the third orientation and the fourth orientation are arranged opposite to each other, and a first straight line from the first orientation to the second orientation is arranged perpendicular to a second straight line from the third orientation to the fourth orientation;
[0019] The first target object node in the single-line topology structure diagram is randomly placed as a parent node in the topology area located at the first orientation, and the first target object node or the second target object node located at a higher level in the adjacent levels is regarded as a parent node, the second target object node located at a lower level is regarded as a child node, and the child nodes located at the same level and having the same parent node are regarded as brother nodes;
[0020] The child nodes are placed in the blank topological map on the principle that the child nodes with the largest number of levels are placed on the first straight line including the parent node, and the child nodes with the largest number of levels are placed gradually extending to the third direction or the fourth direction. When a child node is placed in the topological area, if the topological area already has a second target object node, it is determined whether the child node and the second target object node are brother nodes. If so, the child node is moved and placed in a direction away from the first straight line. If not, all the first target object nodes and the second target object nodes that have been placed except the child node are moved as a whole to a direction away from the child node, and then the child node is placed.
[0021] After the placement of child nodes at each level is completed, the upper parent node is searched according to the contact relationship between the first target object node and the second target object node or the contact relationship between the second target object node and the second target object node, and the position of the parent node is adjusted to the first straight line to the nearest child node, finally forming a single-line topology graph corresponding to the topological structure data of the single-line graph.
[0022] As an optimization, the specific process of A2 is:
[0023] Each single-line topology diagram is arranged on the same blank topology diagram according to the substation topology area, and the position of the single-line topology diagram is fine-tuned, and it is ensured that the topology areas of the first target object nodes and the second target object nodes have no intersection or overlap, thereby forming an intermediate topology diagram.
[0024] As an optimization, the topological area is identified with a variable array data structure, and the topological area where the first target object node or the second target object node is placed is identified as 1, and the topological area where the first target object node or the second target object node is not placed is identified as 0, or, the topological area where the first target object node or the second target object node is placed is identified as 0, and the topological area where the first target object node or the second target object node is not placed is identified as 1.
[0025] As an optimization, one of the first target object nodes or one of the second target object nodes corresponds to one topological area.
[0026] As an optimization, it also includes saving the information of all first target object nodes, second target object nodes, connections between the first target object nodes and the second target object nodes, connections between the second target object nodes and the second target object nodes, and topological areas corresponding to the first target object nodes and the second target object nodes as a G / XML model file after the distribution network diagram is generated.
[0027] As an optimization, the G / XML model file is converted into an SVG file and transmitted to a graphic presentation tool for presentation.
[0028] As an optimization, in the distribution network diagram, the second target object nodes and the connecting lines belonging to the same first target object node are marked with the same color.
[0029] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0030] Through the method of the present invention, it is possible to achieve standardization and normalization of various graphics of the distribution network, ensure the consistency of the graphics and the power grid model, and the drawing effect is concise and clear, with a clear layout, providing a graphical support for the distribution network dispatching decision that integrates macro and micro decision-making perspectives, facilitating the dispatching and operation personnel to understand the distribution network operation status, improving the efficiency of distribution network dispatching decision support, reducing the intermediate process of reading various system-related information, and improving the security of distribution network dispatching decisions. It solves a series of problems such as the large workload of manually drawing network diagrams, low efficiency, manual misoperation, and untimely updates that lead to inconsistencies between network diagrams and actual conditions.
[0031] The distribution network diagram drawn by the method of the present invention supports the setting of the relative position of substations and the layout direction of feeders, and is more in line with the actual work requirements of distribution network dispatching and monitoring personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0033] Figure 1 A flow chart of a method for automatically generating a distribution network diagram according to the present invention;
[0034] Figure 2 This is an example of a distribution network diagram.
[0035] Figure 3 This is another example of a distribution network diagram. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0037] This embodiment 1 provides a method for automatically generating a distribution network diagram, and the general implementation process is: CIM / XML model file parsing (step S1), SVG / CIM modeling (step S2), automatic layout algorithm (steps S3, S4) and generating a G file (step S5), converting the G file into an SVG file and transmitting it to the front end for display and realizing its interactivity and interoperability (step S6). The graphics system uses the SVG / CIM modeling method to establish an SVG primitive library, and the SVG primitive library is instantiated into specific SVG primitives according to the parsed CIM model. After the SVG primitives are automatically laid out, the SVG file export interface is used to export graphic files that meet the SVG standard, and Web applications are implemented.
[0038] Next, the implementation process of the present invention is specifically introduced.
[0039] S1. Acquire CIM model data of a target power grid, parse the CIM model data, extract and save model object data from the CIM model data, wherein the model object data includes object information, belonging relationships between objects, and contact relationships between objects;
[0040] CIM / XML file parsing: CIM / XML files are exported from the CIM model of the SCADA system, which covers object models such as power system resources, equipment, equipment container, conductive equipment, busbar, disconnector, circuit breaker, and power transformer in CIM. Parse the CIM / XML file data, extract object information, belonging relationships, and contact relationships, and store them in the database for system query and extraction of required model object data. The required model object data is the target object data.
[0041] SCADA (Supervisory Control And Data Acquisition) system, namely, data acquisition and monitoring control system. SCADA system is a computer-based DCS and power automation monitoring system; it has a wide range of applications, and can be applied to data acquisition and monitoring control and process control in the fields of power, metallurgy, petroleum, chemical industry, gas, railway, etc.
[0042] In the power system, SCADA system is the most widely used and the technology is the most mature. It occupies an important position in the telecontrol system and can monitor and control the operating equipment on site to realize various functions such as data collection, equipment control, measurement, parameter adjustment and various signal alarms. It plays a very important role in the construction of comprehensive automation of substations today.
[0043] S2, acquiring target object data from the model object data, the target object data including target object nodes at different levels, belonging relationships between different target object nodes, and contact relationships between the target object nodes, and setting the target object node at the highest level as the first target object node;
[0044] In some embodiments, the first target object node is a distribution substation, and the second target object node includes a substation bus, a bus and feeder connection unit, and a feeder device. In descending order of hierarchy, the target object nodes include a distribution substation, a substation bus, a bus and feeder connection unit, and a feeder device.
[0045] Next, the automatic step diagram algorithm of the present invention is specifically introduced.
[0046] The network distribution target devices (target object nodes) and device connection relationships (the relationships and contact relationships between target object nodes) obtained by CIM generate corresponding nodes and connection relationships between all nodes, and determine the initial topology map according to the relationship between each type of equipment and the connection relationship between all nodes.
[0047] Under normal circumstances, the power source of a device A is device B. When the circuit between devices A and B fails or device B fails, the power source of device A can be switched to device C. At this time, there is an ownership relationship between devices A and B, that is, device A belongs to device B, and there is a liaison relationship between devices A and B. Devices A and B are powered by the same substation. There is no ownership relationship between devices A and C, but there is a liaison relationship.
[0048] S3, constructing topological structure data of a single-line graph respectively starting from different first target object nodes and traversing second target object nodes that have a direct or indirect belonging relationship and contact relationship with the first target object node;
[0049] Here, the second target object node that has a direct belonging relationship and contact relationship with the first target object node refers to the second target object node that is directly connected to the first target object node, that is, if the topological structure is A→B→C→D, A is the first target object node, B, C, and D are the second target object nodes, B is the second target object node that has a direct belonging relationship and contact relationship with A, and C and D are the second target object nodes that have an indirect belonging relationship and contact relationship with A.
[0050] The specific process of constructing a single-line topology structure diagram formed by taking the first target object node as the starting point and traversing the second target object nodes that have a direct or indirect belonging relationship and contact relationship with the first target object node is:
[0051] A search is performed according to the hierarchical relationship and the path of the contact relationship of the distribution network substation, substation bus, bus and feeder contact switch, and feeder equipment to construct a single-line topology structure diagram with a tree-like chain structure starting from the distribution network substation.
[0052] 1. Select the substations and distribution network feeders required in the distribution network diagram.
[0053] Here, the first target object node (substation) and distribution network feeder need to be determined. When drawing a distribution network diagram of a certain area, the substation and distribution network feeder of the area will be found first to determine the objects required for the distribution network diagram.
[0054] 2. Set the relative position (relative orientation) of each substation and the direction of the feeder layout (left or right).
[0055] 3. According to the selected substation and its feeder, obtain the grid model data (target object data), and search and read the equipment at all levels according to the topological structure.
[0056] 4. According to the hierarchical relationship of distribution network substation -> substation bus -> bus and feeder interconnection switch -> feeder equipment, search according to the relationship path of its connection points (i_node, j_node), thereby constructing the topological structure of all nodes of a single feeder.
[0057] The connection points here are the devices corresponding to each level, that is, the first target object node and the second target object node.
[0058] A level may have multiple second target object nodes. On a certain path, the more second target object nodes there are, the more levels there are.
[0059] 5. In the feeder equipment or busbar and feeder interconnection switch, the ring main unit, switch station, distribution room, branch box and other equipment are regarded as a separate unit node, and all its equipment are subordinate nodes of the unit. The subordinate equipment nodes of the unit equipment only display the topology and interconnection relationship, and do not participate in the overall layout.
[0060] 6. After all the relationship paths are searched, all the nodes and their connection relationships finally stored are formed into a tree-like chain structure, which is determined as the topological structure data of the single-line diagram.
[0061] 7. Analyze the topological structure data of the single-line diagram and layout the nodes hierarchically according to the set layout direction.
[0062] S4. Arrange the topological structure data of all the single-line diagrams on the principle of no cross-overlapping to form an intermediate topological diagram, and finally connect the second target object nodes in the intermediate topological diagram that belong to different first target object nodes but have a contact relationship through contact lines to finally form a distribution network diagram.
[0063] In some embodiments, the specific process of arranging the topological structure data of all the single-line diagrams on the principle of no cross-overlapping to form an intermediate topological diagram is as follows:
[0064] A1. Draw the topological structure data of each single-line diagram on a blank topological diagram to form single-line topological diagrams corresponding to the topological structure data of the single-line diagram;
[0065] In some embodiments, corresponding to any one of the topological structure data of the single-line diagram, the topological structure data of the single-line diagram is drawn on a blank topological diagram respectively, and the specific process of forming the single-line topological diagram corresponding to the topological structure data of the single-line diagram is as follows:
[0066] The blank topology map is divided into a plurality of topology regions, the number of which is greater than the sum of the number of the first target object nodes and the second target object nodes of all the single-line topology structure maps. In this embodiment, one of the first target object nodes or one of the second target object nodes corresponds to one topology region. The topology regions are identified by a variable array data structure, the topology region where the first target object node or the second target object node is placed is identified as 1, and the topology region where the first target object node or the second target object node is not placed is identified as 0, or the topology region where the first target object node or the second target object node is placed is identified as 0, and the topology region where the first target object node or the second target object node is not placed is identified as 1.
[0067] 8. Divide the blank topology map into multiple topology areas (unit grids), wherein the number of the topology areas is greater than the number of all the nodes; all the nodes here refer to the first target object node and the second target object node of the topology structure data of all single-line diagrams of the network diagram.
[0068] At the same time, the orientation of the blank topological map is divided into a first orientation, a second orientation, a third orientation, and a fourth orientation, the first orientation and the second orientation are arranged opposite to each other, the third orientation and the fourth orientation are arranged opposite to each other, and a first straight line from the first orientation to the second orientation is arranged perpendicular to a second straight line from the third orientation to the fourth orientation;
[0069] For example, the first direction is up, the second direction is down, the third direction is left, and the fourth direction is right. The first straight line is the vertical line, and the second straight line is the horizontal line.
[0070] 9. The topological structure data of the single-line diagram of the tree-chain structure is layered by level, and each node in the level is assigned to the topological area to determine the initial position of the node, wherein each of the nodes corresponds to one topological area.
[0071] 10. Each level of topological area is identified by a variable array data structure. The array cells correspond to their topological grids and are marked as occupied or empty by 1 or 0.
[0072] The first target object node in the single-line topology structure diagram is randomly placed as a parent node in the topology area located at the first orientation, and the first target object node or the second target object node located at a higher level in the adjacent levels is regarded as a parent node, the second target object node located at a lower level is regarded as a child node, and the child nodes located at the same level and having the same parent node are regarded as brother nodes;
[0073] The child nodes are placed in the blank topology map on the principle that the child node with the largest number of levels is placed on the first straight line including the parent node, and the child nodes with the largest number of levels are gradually extended to the third direction or the fourth direction. When a child node is placed in the topology area, if there is a second target object node in the topology area, it is determined whether the child node and the second target object node are brother nodes. If so, the child node is moved and placed in a direction away from the first straight line. If not, all the first target object nodes and second target object nodes that have been placed except the child node are moved as a whole to a direction away from the child node, and then the child node is placed.
[0074] The topological structure data of the single-line diagram is a tree structure, so there will be multiple branches. All the lines from the first target object node to one of the second target object nodes at the end are a feeder, and on the same feeder, the lines between the two target object nodes are the same. The child node with the largest number of levels is the device with the largest number on the feeder, that is, the device with the largest number is placed on the first straight line passing through the parent node. There can be multiple first straight lines (such as vertical lines), and there is only one first straight line passing through the parent node. In this embodiment, for example, the first straight line is a vertical line, located on both sides of the vertical line (left and right sides). The closer to the vertical line, the greater the number of devices on the feeder.
[0075] After the placement of child nodes at each level is completed, the upper parent node is searched according to the contact relationship between the first target object node and the second target object node or the contact relationship between the second target object node and the second target object node, and the position of the parent node is adjusted to the first straight line to the nearest child node, finally forming a single-line topology graph corresponding to the topological structure data of the single-line graph.
[0076] Specifically, the process is as follows:
[0077] 11. Set the direction of each node and line, marked with 0 (right), 1 (bottom), 2 (left), and 3 (top).
[0078] 12. First, layout is performed according to the connection relationship between the devices at different levels. The child nodes are placed close to the upper parent node and are arranged in the center in sequence according to the length of the line segment (relative to the upper parent node).
[0079] 13. When arranging nodes, if an occupied position (marked as 1) is encountered, if it is a brother node (the parent node is the same), the position will be moved outward to continue the arrangement; if it is not a brother node, all nodes outside its position will be moved outward as a whole, leaving a blank area for the node to be placed.
[0080] 14. After each level of nodes is placed, search for the parent node according to the device connection relationship, and adjust the parent node position to be adjacent (with the shortest distance) to the child node topology area.
[0081] The purpose of adjusting the position of the parent node is to shorten the contact distance between the parent and child nodes and avoid bending of the contact line. Of course, the parent node can also be located between the two child nodes.
[0082] 15. Node devices at each level are arranged centrally from the inside to the outside according to the number of line segment levels (line segment length, feeder length) to which they belong.
[0083] 16. According to the node density of the topological area, with the goal of avoiding the overlap of the topological areas of the nodes and reducing the crossing of the line segments, the topological position or orientation of the nodes and line segments is adjusted to finally obtain the final position of each node.
[0084] A2. Adjust the corresponding single-line topology diagram according to the relative orientation of each substation and the bus position of the substation to ensure that the first target object node and the second target object node of each single-line topology diagram do not overlap, thereby forming an intermediate topology diagram.
[0085] 17. Generate a single-line topology diagram based on the final positions of all the nodes and the connection relationship between all the nodes, perform coordinate positioning based on the substation bus position, and determine the coordinate positions of all node devices on the single line.
[0086] In some embodiments, the specific process of A2 is:
[0087] Each single-line topology diagram is arranged on the same blank topology diagram according to the substation topology area, and the position of the single-line topology diagram is fine-tuned, and it is ensured that the topology areas of the first target object nodes and the second target object nodes have no intersection or overlap, thereby forming an intermediate topology diagram.
[0088] The substation topology area here is the topology area placed on the blank topology map according to the relative position of the substation, that is, the position determined in step 2 (setting the relative position (relative position) of each substation and the feeder layout direction (left or right direction)).
[0089] The blank topology map for drawing a single-line topology map and the blank topology map for drawing an intermediate topology map may be the same or different. That is, if the same blank topology map is used for drawing, then each single-line topology map is drawn in the blank area on the blank topology map. At this time, the blank topology map becomes a preliminary grid topology map, and then each single-line topology map is adjusted in the preliminary grid topology map to become an intermediate topology map.
[0090] If different blank topology maps are used, then after drawing each single-line topology map on the first blank topology map, move the drawn single-line topology maps to another blank topology map.
[0091] That is, 18. After the single-line topology diagram of the selected line of each substation is generated, it is arranged according to the substation topology area based on the size of its single-line topology diagram, and it is ensured that the topology area of each node equipment has no intersection or overlap.
[0092] 19. After completing the topological layout of a single substation, arrange them according to the relative positions of each substation, and ensure that the node equipment of each substation has no intersection or overlap.
[0093] Finally, the second target object nodes in the intermediate topology graph that belong to different first target object nodes but have a contact relationship are connected through contact lines to finally form a distribution network diagram.
[0094] Here, if there are substation one and substation two, the devices that have affiliation and contact relationship with substation one are A1, B1, and C1, and the devices that have affiliation and contact relationship with substation two are A2, B2, and C2, among which the direct power supply source of C2 is B2, but after B2 fails, C2 can be powered by B1. Therefore, C2 and B1 are the first target object nodes with different affiliation but second target object nodes with a contact relationship.
[0095] 20. Get the communication devices in each single-line device, and search in the network topology whether there are other communication devices with corresponding contact points. If so, add the connection lines between the devices.
[0096] In some embodiments, it also includes, S5, after the distribution network diagram is generated, saving all first target object nodes, second target object nodes, connections between the first target object nodes and the second target object nodes, connections between the second target object nodes and the second target object nodes, and information on the topological areas corresponding to the first target object nodes and the second target object nodes as a G / XML model file.
[0097] 21. After the network topology is generated, save all structured data such as node devices, connection lines, topological location information, etc., and generate and save them as G / XML model files;
[0098] In some embodiments, it also includes, S6, converting the G / XML model file into an SVG file and transmitting it to a graphic presentation tool for presentation.
[0099] G file->SVG file is converted to the front-end for display and its interactivity and interoperability are realized: the device node unit is converted in the form of graphic elements, and the SVG file is generated according to the public graphic interaction rules that comply with the power SVG, and transmitted to the web front-end or other SVG graphic display tools to display the SVG graphics, providing functions such as node device position adjustment, status attribute modification, and new equipment investment change processing.
[0100] In some embodiments, in the power distribution network diagram, second target object nodes and connecting lines belonging to the same first target object node are marked with the same color.
[0101] In this way, it is very clear which equipment belongs to which substation and provides convenience for the staff to monitor the distribution network. Figure 2 and Figure 3 As shown, different colors correspond to different substations.
[0102] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for automatically generating a distribution network diagram, characterized in that: include: Acquire CIM model data of the target power grid, parse the CIM model data, extract and save model object data from the CIM model data, the model object data including object information, belonging relationships between objects, and contact relationships between objects; Acquire target object data from the model object data, the target object data including target object nodes at different levels, belonging relationships between different target object nodes, and contact relationships between the target object nodes, and let the target object node at the highest level be the first target object node; Respectively constructing topological structure data of a single-line graph formed by taking different first target object nodes as starting points and traversing second target object nodes that have a direct or indirect belonging relationship and contact relationship with the first target object node; Based on the principle of no cross-overlapping, the topological structure data of all the single-line diagrams are arranged to form an intermediate topological diagram. Finally, the second target object nodes in the intermediate topological diagram that belong to different first target object nodes but have a contact relationship are connected through contact lines to finally form a distribution network diagram.
2. A method for automatically generating a distribution network diagram according to claim 1, characterized in that: The first target object node is a distribution network substation, and the second target object node includes a substation bus, a bus and feeder connection unit, and a feeder device. In descending order of hierarchy, the target object nodes include a distribution network substation, a substation bus, a bus and feeder connection unit, and a feeder device. The specific process of constructing a single-line topology structure diagram formed by taking the first target object node as the starting point and traversing the second target object nodes that have a direct or indirect belonging relationship and connection relationship with the first target object node is as follows: A search is performed according to the hierarchical relationship and the path of the contact relationship of the distribution network substation, substation bus, bus and feeder contact switch, and feeder equipment to construct a single-line topology structure diagram with a tree-like chain structure starting from the distribution network substation.
3. A method for automatically generating a distribution network diagram according to claim 2, characterized in that: The specific process of arranging the topological structure data of all the single-line diagrams on the principle of no cross-overlapping to form an intermediate topological diagram is as follows: A1. Draw the topological structure data of each single-line diagram on a blank topological diagram to form single-line topological diagrams corresponding to the topological structure data of the single-line diagram; A2. Adjust the corresponding single-line topology diagram according to the relative orientation of each substation and the bus position of the substation to ensure that the first target object node and the second target object node of each single-line topology diagram do not overlap, thereby forming an intermediate topology diagram.
4. A method for automatically generating a distribution network diagram according to claim 3, characterized in that: In A1, corresponding to any one of the topological structure data of the single-line diagram, the topological structure data of the single-line diagram is drawn on a blank topological diagram respectively, and the specific process of forming the single-line topological diagram corresponding to the topological structure data of the single-line diagram is as follows: Divide the blank topology map into a plurality of topology areas, the number of the topology areas being greater than the sum of the numbers of the first target object nodes and the second target object nodes of all the single-line topology structure maps, and at the same time, divide the orientation of the blank topology map into a first orientation, a second orientation, a third orientation, and a fourth orientation, the first orientation and the second orientation are arranged opposite to each other, the third orientation and the fourth orientation are arranged opposite to each other, and a first straight line from the first orientation to the second orientation is arranged perpendicular to a second straight line from the third orientation to the fourth orientation; The first target object node in the single-line topology structure diagram is randomly placed as a parent node in the topology area located at the first orientation, and the first target object node or the second target object node located at a higher level in the adjacent levels is regarded as a parent node, the second target object node located at a lower level is regarded as a child node, and the child nodes located at the same level and having the same parent node are regarded as brother nodes; The child nodes are placed in the blank topological map on the principle that the child nodes with the largest number of levels are placed on the first straight line including the parent node, and the child nodes with the largest number of levels are placed gradually extending to the third direction or the fourth direction. When a child node is placed in the topological area, if the topological area already has a second target object node, it is determined whether the child node and the second target object node are brother nodes. If so, the child node is moved and placed in a direction away from the first straight line. If not, all the first target object nodes and the second target object nodes that have been placed except the child node are moved as a whole to a direction away from the child node, and then the child node is placed. After the placement of child nodes at each level is completed, the upper parent node is searched according to the contact relationship between the first target object node and the second target object node or the contact relationship between the second target object node and the second target object node, and the position of the parent node is adjusted to the first straight line to the nearest child node, finally forming a single-line topology graph corresponding to the topological structure data of the single-line graph.
5. A method for automatically generating a distribution network diagram according to claim 4, characterized in that: The specific process of A2 is: Each single-line topology diagram is arranged on the same blank topology diagram according to the substation topology area, and the position of the single-line topology diagram is fine-tuned, and it is ensured that the topology areas of the first target object nodes and the second target object nodes have no intersection or overlap, thereby forming an intermediate topology diagram.
6. A method for automatically generating a distribution network diagram according to claim 4, characterized in that: The topological area is identified by a variable array data structure, the topological area where the first target object node or the second target object node is placed is identified as 1, and the topological area where the first target object node or the second target object node is not placed is identified as 0, or, the topological area where the first target object node or the second target object node is placed is identified as 0, and the topological area where the first target object node or the second target object node is not placed is identified as 1.
7. A method for automatically generating a distribution network diagram according to any one of claims 4 to 6, characterized in that: One of the first target object nodes or one of the second target object nodes corresponds to one topological area.
8. The method for automatically generating a distribution network diagram according to claim 1, characterized in that: It also includes, after the distribution network diagram is generated, saving information on all first target object nodes, second target object nodes, connections between the first target object nodes and the second target object nodes, connections between the second target object nodes and the second target object nodes, and topological areas corresponding to the first target object nodes and the second target object nodes as a G / XML model file.
9. A method for automatically generating a distribution network diagram according to claim 8, characterized in that: The method also includes converting the G / XML model file into an SVG file and transmitting the file to a graphic display tool for display.
10. The method for automatically generating a distribution network diagram according to claim 1, characterized in that: In the power distribution network diagram, the second target object nodes and the connecting lines belonging to the same first target object node are marked with the same color.
Citation Information
Cited By
Mobile terminal calling method and system based on power distribution network single line diagram incremental diagram
CN119670311A
A method and system for retrieving incremental maps of single-line distribution networks on mobile devices
CN119670311B
Transformer area diagram generation method and device, low-voltage power supply system and storage medium
CN119864952A
Transformer Area Map Generation Method, Device, Low-Voltage Power Supply System, and Storage Medium
CN119864952B
Method and system for realizing process dynamic visual view under final assembly link of manufacturing industry
CN119888002A