Background
Along with the improvement of scientific technology and the improvement of living standard, people have higher and higher requirements on power supply reliability, the application of an intelligent power grid operation inspection and dispatching control system is further deepened, a power grid graph is a safe and stable operation foundation of a power grid, higher requirements are provided for the quality of the power grid graph, and the power grid basic data are required to have comprehensiveness, accuracy and normalization. However, in the process of building the electrical equipment information system, a strict management system and a powerful safeguard means are lacked, so that the data is incomplete, inaccurate and irregular, the advantages of the GIS are not fully utilized, and the practicability of the system function and the convenience of operation need to be further improved. As is well known, an accurate and reliable drawing is not only the basis for basic team and team personnel to carry out work, but also the basic guarantee for safe and stable operation of a power grid. Every station room is a picture in station, there are countless pictures in station among the current electric wire netting operation system, these pictures in station are all drawn through the manual, because every draftsman's custom and operation mode are different, and the equipment is arranged unevenly on the picture in station, and some figures are mixed and disorderly even, and manual adjustment process is numerous and inefficient and can't guarantee that the figure walks the unanimity of neat overall arrangement and style, and the practicality and the aesthetic property of figure are serious not enough, influence basic unit team's work efficiency and operating quality.
Disclosure of Invention
The invention solves the problems that graphs of the in-station graphs in the power grid operation system are arranged unevenly, the manual adjustment process is complicated and inefficient, and the consistency of the orderly layout and style of the graph routing cannot be ensured, so that the practicability of the graphs is poor, and provides the automatic graph adjustment method based on the topology and the grid, so that the automatic arrangement function of the in-station graphs is realized, the in-station graphs can be generated instantly according to the graph drawing standard only by pressing an arrangement button, the functional workload of manual maintenance and graph adjustment is greatly reduced, and the practical requirement of field work of teams and groups is met.
In order to realize the purpose, the following technical scheme is provided:
a graph automatic adjustment method based on topology and grid comprises the following steps:
s1, acquiring basic data of the power grid equipment model graphic data set in the station, wherein the basic data comprises spatial information, topological information and service information;
s2, establishing a graph drawing panel, setting a background grid on the graph drawing panel according to the size of the equipment primitive, and displaying the equipment graph on the graph drawing panel;
s3, dynamically calculating the initial position of bus placement according to basic data;
s4, moving the equipment on the main connecting line connected with the bus to a large grid and arranging the equipment according to the distance;
s5, adjusting the positions of other devices on the bypass on each main connecting line, and moving the positions of other devices on the bypass to positions away from the main connecting lines by a specified distance;
s6, uniformly aligning each main connecting line and the head and tail end equipment on the bypass;
s7, arranging other devices on the main connecting line and the bypass according to the drawing rule in the connecting line direction;
and S8, integrally optimizing the position of the equipment in the station and automatically adjusting the routing.
The distribution network data is used as the implementation sample data, the graphs meeting the service specifications can be instantly arranged into the standard power grid station interior graph, the same type of primitives have the same size, the whole graph is neat and standard, and the style is consistent, so that the automation level of a power grid can be obviously improved, the workload of manual graph maintenance is reduced, and the maintenance efficiency of the power grid graph is improved. Meanwhile, the invention makes a universal mapping rule during design, and is also suitable for the in-station mapping arrangement of the main network and the low-voltage station house.
Preferably, the step S3 specifically includes the following steps: and dynamically calculating the number scale of the current graphic equipment, calculating the initial position for placing the bus according to the acquired information of the number scale of the equipment, and placing the bus on the large grid line of the drawing panel.
Preferably, the number scale of the equipment comprises the number of the bus bars, the number of the intervals and the number of the equipment in the intervals.
Preferably, the step S4 specifically includes the following steps: and taking each bus as a grouping unit, obtaining a main connecting line directly connected with the bus through topological analysis, moving equipment on the main connecting line under each bus to a large grid and vertical buses, and arranging the buses according to a distance set by a specification according to the in-station diagram drawing specification.
Preferably, the step S6 specifically includes the following steps: the equipment closest to the bus on the main connecting line is used as head end equipment, the equipment farthest from the bus on the main connecting line is used as tail end equipment, the distance between the head end equipment and the bus is determined, and the head end equipment on each connection is aligned according to the standard distance; and aligning the terminal equipment on all the main connecting lines and the bypasses by taking the position of the terminal equipment of the equipment farthest from the bus as a reference.
Preferably, the step S8 specifically includes the following steps: optimizing the length and the position of the bus of the equipment, checking whether the equipment is overlapped by using a collision detection algorithm, and performing secondary optimization arrangement adjustment on other equipment. And then automatically adjusting the wiring between the devices.
The invention has the beneficial effects that: the distribution network data is used as the implementation sample data, the graphs meeting the service specification can be instantly arranged into the standard power grid station interior graph, the same type of primitives have the same size, the graphs are neat and standard, and the style is consistent, so that the automation level of a power grid can be obviously improved, the workload of manual graph maintenance is reduced, and the maintenance efficiency of the power grid graphs is improved. Meanwhile, the invention makes a universal mapping rule during design, and is also suitable for the in-station mapping arrangement of the main network and the low-voltage station house.
Detailed Description
Example (b):
the embodiment provides a method for automatically adjusting a graph based on topology and mesh, referring to fig. 1, which includes the following steps:
s1, acquiring basic data of the power grid equipment model graphic data set in the station, wherein the basic data comprises spatial information, topological information and service information;
s2, establishing a graph drawing panel, setting a background grid on the graph drawing panel according to the size of the equipment primitive, and displaying the equipment graph on the graph drawing panel;
s3, dynamically calculating the initial position of bus placement according to basic data; step S3 specifically includes the following steps: and dynamically calculating the number scale of the current graphic equipment, calculating the initial position for placing the bus according to the acquired information of the number scale of the equipment, and placing the bus on the large grid line of the drawing panel. The equipment number scale comprises the number of buses, the number of intervals and the number of equipment in the intervals.
S4, moving the equipment on the main connecting line connected with the bus to a large grid and arranging the equipment according to the distance; step S4 specifically includes the following steps: and taking each bus as a grouping unit, obtaining a main connecting line directly connected with the bus through topological analysis, moving equipment on the main connecting line under each bus to a large grid and vertical buses, and arranging the buses according to a distance set by a specification according to the in-station diagram drawing specification.
S5, adjusting the positions of other devices on the bypass on each main connecting line, and moving the positions of other devices on the bypass to positions away from the main connecting lines by a specified distance;
s6, uniformly aligning each main connecting line and the head and tail end equipment on the bypass; step S6 specifically includes the following steps: the equipment closest to the bus on the main connecting line is used as head end equipment, the equipment farthest from the bus on the main connecting line is used as tail end equipment, the distance between the head end equipment and the bus is determined, and the head end equipment on each connection is aligned according to the standard distance; and aligning the terminal equipment on all the main connecting lines and the bypasses by taking the position of the terminal equipment of the equipment farthest from the bus as a reference.
S7, arranging other devices on the main connecting line and the bypass according to the drawing rule in the connecting line direction;
s8, integrally optimizing the position of the equipment in the station and automatically adjusting the routing, wherein the step S8 specifically comprises the following steps: optimizing the length and the position of the bus of the equipment, and performing secondary optimization arrangement adjustment on other equipment by using whether collision detection algorithm equipment is overlapped. And then automatically adjusting the wiring between the devices.
The distribution network data is used as the implementation sample data, the graphs meeting the service specification can be instantly arranged into the standard power grid station interior graph, the same type of primitives have the same size, the graphs are neat and standard, and the style is consistent, so that the automation level of a power grid can be obviously improved, the workload of manual graph maintenance is reduced, and the maintenance efficiency of the power grid graphs is improved. Meanwhile, the invention makes a universal mapping rule during design, and is also suitable for the in-station mapping arrangement of the main network and the low-voltage station house. In the existing GIS system, more than forty thousand distribution network in-station diagrams exist in Zhejiang province, under the condition that other functions of the system are efficient and good to use, if 2 hours are probably needed for manually adjusting one in-station diagram with medium-scale equipment data volume, 80 ten thousand hours are at least needed for one person to adjust the diagrams into the standard in-station diagram, and the time of nearly 300 years is probably needed for calculating according to 8 hours of work every day.