A method and system for generating a power grid ring network connection diagram
By automatically generating ring network connection diagrams, the problem of using GIS drawings and SCADA ring network diagrams independently has been solved, achieving data unification and real-time updates, which improves the work efficiency of dispatchers and the safety and stability of the power grid.
Patent Information
- Application Number
- CN202210437408.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-04-22
AI Technical Summary
In the current power distribution network dispatching, the independent use of GIS maps and SCADA ring network maps leads to inconsistent data, increases workload and safety risks, and fails to meet the dispatcher's needs for real-time updates and rapid power restoration.
Based on the power grid ledger topology model and diagram information, a ring network interconnection diagram is automatically generated. By acquiring image elements, the diagram is arranged and visualized to form a power grid ring network interconnection view, and the power grid ring network interconnection image file is exported.
It achieves the unification of GIS drawings and SCADA ring network diagrams, making it easier for dispatchers to view the feeder connections between substations, improving dispatching overview capabilities and work efficiency, and meeting the dispatching's practical needs for drawings.
Smart Images

Figure CN114862985B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power distribution in the electric power industry, and in particular to a method and system for generating a power grid ring network connection diagram. Background Art
[0002] The distribution network is a key infrastructure of the city and a key node connecting the power grid and users. It has many points, long lines, wide areas, complex structures, and cross-management links. In the actual business needs of the distribution network dispatch, the distribution network dispatch is often related to the trunk line of the ring network. Therefore, a standardized and practical ring network contact map generated by the ring network switch ledger based on the distribution network automation ledger topology model and GIS map model is needed to improve the work efficiency of dispatchers and improve the safety and stability of the power grid.
[0003] However, the drawings used by the power supply bureau for distribution network dispatching are both paper and electronic, and the format specifications are not unified. Both GIS drawings and SCADA ring network diagrams have their own advantages and disadvantages. GIS drawings have rich station, line, transformer, and user relationship models, complete network topology and equipment ledgers, complete marketing power user attributes, and strict electronic drawing transfer processes; SCADA system ring network diagrams solve the problem of dispatchers not having ring network diagrams to use, and they open quickly, the graphics are concise and clear, and the switch status can be published in quasi-real time. However, the two are independent and have no correlation. Although the combination of the two can meet some of the daily work needs of dispatchers, it is inevitable that the inconsistency in the names or logos of the two parties will cause trouble to the dispatchers and increase the daily workload. For example: two different types of drawings, different data sources, multi-source and multi-terminal maintenance causes the single-line diagram, ring network diagram and on-site equipment information to not correspond, posing great safety hazards; without connection to the business system, the work efficiency of the dispatcher cannot be improved; GIS drawings cannot update the equipment status in real time, and cannot meet the dispatcher's requirements for rapid power restoration during daily fault handling;
[0004] SCADA ring network diagrams are difficult to maintain, drawings are not updated in time, and are independent of business system ledgers. Therefore, a technical solution is needed to automatically generate a ring network connection diagram based on the power grid ledger topology model and diagram information, so that dispatchers can view the interconnection relationship between feeders between substations, improve dispatch overview capabilities, and meet dispatchers' practical needs for drawings and the need to view the overall inter-substation ring network connection drawings. Summary of the invention
[0005] In a first aspect, to achieve the above-mentioned purpose, the present application provides a method for generating a power grid ring network connection diagram, comprising the following steps:
[0006] Obtaining power grid model data, and processing the model data into image elements; wherein the image elements include substations, outgoing line switches, ring network switches, and line segments;
[0007] Arrange the image elements, obtain the position coordinates of the image elements, locate and display the image elements in the drawing according to the position coordinates, and form a power grid ring network connection view;
[0008] Export the power grid ring network connection view and generate the power grid ring network connection image file.
[0009] Among them, typesetting the image elements includes: initializing the display position of the substation and determining the position coordinates for all substations; allocating outgoing line switches to the substations and determining the position coordinates of the outgoing line switches; calculating the line segments between the substations and determining the position coordinates of the line segments; determining whether a ring network switch is configured on the line segment, and if configured, determining the position coordinates of the ring network switch.
[0010] Furthermore, processing the model data into image elements includes: calling the CIM parser to parse the distribution network line module file, generating structured data and storing it in a database table; the database table includes a line substation table and an open-loop point table; performing conditional retrieval from the database table to obtain ring network data; visually abstracting the ring network data and converting it into corresponding image elements; wherein the retrieval conditions include substation conditions and voltage level conditions.
[0011] Furthermore, the ring network data is closed-loop data including the substation and the outgoing line switches, feeders, and open-loop points within the substation. The image element corresponding to the feeder is a line segment, and the image element corresponding to the open-loop point is the ring network switch.
[0012] The process of initializing the display position of the substation includes:
[0013] The location of the central substation is designated as the standard location coordinate; N substations are evenly arranged above the central substation, where N is a natural number; M substations are evenly arranged below the central substation, where M is a natural number; and the location coordinates of all substations are defined.
[0014] Before allocating an outgoing line switch to the substation, the method further includes extracting an association relationship between each substation and the outgoing line switch, adjusting the position coordinates of the substation according to the association relationship, and determining the substation corresponding to the outgoing line switch.
[0015] Calculating the line segments between the substations includes determining the location features between the substations, and the location features include the same horizontal and vertical and one horizontal and one vertical.
[0016] Furthermore, typesetting of image elements also includes size optimization and cross-line processing;
[0017] Among them, size optimization means that after the substation is allocated with outgoing line switches, the size of the substation is recalculated, the location of the relevant substation is adjusted according to the calculation results, and the substation is precisely positioned;
[0018] Cross-line processing refers to recalculating the position coordinates of the line segments after swapping the positions of the switches corresponding to the crossed line segments.
[0019] On the other hand, the present application provides a system for generating a power grid ring network connection diagram, comprising:
[0020] Basic data support module: used to extract model data from the power grid model data source, parse the model data, generate structured data, and store the structured data; wherein the image elements include substations, outgoing line switches, ring network switches, and line segments;
[0021] Automatic drawing module: layout image elements, obtain the position coordinates of image elements, and form a power grid ring network connection view;
[0022] Drawing editing module: used to export the power grid ring network connection view and generate the power grid ring network connection image file;
[0023] The automatic drawing module includes an algorithm controller for realizing the layout of image elements, including:
[0024] Substation initialization unit: used to initialize the location coordinates of the substation;
[0025] Switch layout unit: used to calculate the position coordinates of the outgoing line switch and the loop line switch;
[0026] Line segment layout unit: used to calculate the position coordinates of the connecting line segments between the image elements.
[0027] Furthermore, the basic data support module includes a graphic data access unit, a graphic parsing unit and a data storage module, wherein the graphic data access unit interacts with the power grid model data source, and after obtaining the model file, the graphic parsing module parses the graphic file into structured data and stores it in the data storage unit; wherein the graphic parsing module includes a CIM parser; and the data storage unit includes a line substation table and an open-loop point table.
[0028] Furthermore, the algorithm controller also includes a display optimization unit, which supports location feature optimization, size optimization and cross-line processing between substations:
[0029] Among them, location feature optimization refers to adjusting the substation location, supporting the same horizontal and vertical and one horizontal and one vertical features;
[0030] Size optimization refers to adjusting the size of the substation and the corresponding image elements;
[0031] Cross-line processing refers to recalculating the coordinates of the crossed line segments after swapping the positions of the switches corresponding to the crossed line segments.
[0032] According to the present invention, a ring network connection diagram can be automatically generated based on the power grid ledger topology model and diagram information. Through the ring network connection diagram generated by the present invention, a connection is established between the GIS drawing and the SCADA ring network diagram, so that the ring network diagram and the on-site equipment information are unified, and can be updated according to requirements and conditions to facilitate dispatching personnel to view the mutual connection relationship between feeders between substations, improve the dispatching overview capability, and meet the dispatching needs for the practicality of the drawings and the need to view the overall ring network connection drawings between substations. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a flow chart of a method for generating a power grid ring network connection diagram according to an embodiment of the present invention;
[0034] Figure 2 It is a detailed step diagram combined with a device in a method for generating a power grid ring network connection diagram provided according to an embodiment of the present invention;
[0035] Figure 3 It is a flow chart of a method for typesetting elements in a power grid ring network connection diagram provided in accordance with an embodiment of the present invention;
[0036] Figure 4 This is an example diagram of generating a power grid ring network connection diagram according to an embodiment of the present invention;
[0037] Figure 5 It is a system structure diagram for generating a power grid ring network connection diagram provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention is a method for automatically generating a ring network connection diagram based on a power grid ledger topology model and diagram information, which provides a feeder ring network connection diagram between substations for dispatching personnel, and can facilitate dispatching personnel to view the mutual connection relationship between feeders between substations, improve dispatching overview capabilities, and meet dispatching needs for practical drawings and the need to view the overall substation ring network connection drawings.
[0039] The specific implementation of the present invention is described in detail below with reference to the accompanying drawings.
[0040] The method for generating a power grid ring network connection diagram provided by the present invention is based on the elements in the original power grid data, regenerates the image elements, and then performs typesetting, visualization, and exports drawings. In the process of typesetting, the quality of the drawings is continuously standardized and improved, making the drawings more concise and easy to read:
[0041] Step S100: acquiring power grid model data, and processing the model data into image elements; wherein the image elements include substations, outgoing line switches, ring network switches, and line segments;
[0042] In the specific implementation process, Figure 2As shown, in step S210, the CIM parser is called to parse the distribution network line module file, extract the power grid elements, generate structured data and store them in the database table; the data tables involved in this application mainly include line substation tables and open-loop point tables, wherein the main fields involved in the line substation table include: MRID-line GISID, SOURCESUBST-substation GISID, and the main fields involved in the open-loop point table include: MRID-tie switch GISID, CIRCUIT1-line 1, CIRCUIT1-line 2;
[0043] The grid element information in the line substation and open-loop point table is stored in a structured database, which is convenient for obtaining the required ring network data after retrieval, and supports retrieval based on substation conditions and voltage level conditions. For example, based on the substation entered by the user, the 10kV outgoing line and the opposite side of the line tie switch are queried from the line substation table and the open-loop point table, and the "substation-feeder-open-loop point-feeder-substation" data is further obtained; the closed-loop data of the substation and the outgoing line switches, feeders, and open-loop points in the station constitute the ring network data.
[0044] The “substation-feeder-opening point-feeder-substation” ring network data can be further rendered after being visualized and abstracted. Figure 2 As shown in step S220, the label line components, coloring components, size definition components, etc. in the basic graphic library realize the device visualization, visualize and abstract the elements of the ring network data, and convert them into corresponding image elements; Figure 4 As shown, the substation is represented by a square frame, the outgoing line switch is represented by a small rectangular frame, and the open-loop point is represented by a small rectangular frame and a dotted frame; the image element corresponding to the feeder is a line segment, and the image element corresponding to the open-loop point is a ring network switch.
[0045] Step S120: arranging the image elements, obtaining the position coordinates of the image elements, positioning and displaying the image elements in the drawing according to the position coordinates, and forming a power grid ring network connection view;
[0046] The core of this application is Figure 2 As shown in step S230, the image elements after visualization and abstraction are laid out. The layout implementation process is to calculate the coordinates of the image elements on the drawing, such as Figure 3 As shown, the typesetting process includes the following steps:
[0047] Step S310: Initialize the display position of the substation and determine the position coordinates for all substations;
[0048] The location of the central substation is designated as the standard coordinate, and the index number of the central substation is defined as 0; N substations are arranged evenly above the central substation, and M substations are arranged evenly below the central substation, where N and M are both natural numbers; in this step, the location coordinates of all substations are defined.
[0049] In actual application, the structure of the inter-station ring network diagram is that the central station radiates outwards to the associated stations. In the layout, the central station is fixed in the middle by default, and multiple stations are evenly arranged above the central station, for example, 3 in actual occasions, and multiple stations are evenly arranged below the central station, for example, 3 in actual occasions (such as Figure 4 As shown in the figure, the center index is 0, the upper left index is 1, the upper right index is 2, the lower left index is 3, the lower right index is 4, the upper index is 5, and the lower index is 6; the initial position values of the non-central substations are given in the order of the indexes. In principle, the attribute data and layout relationship of the substation in the distribution line ring network diagram are determined based on the geographical layout map and the internal wiring diagram of the station building in the power grid GIS platform, and are consistent with the single-line diagram and field equipment.
[0050] Extract the association relationship between each substation and the outgoing line switch, adjust the position of the substation according to the association relationship, and determine the substation corresponding to the outgoing line switch. First, count the number of associated stations corresponding to the outgoing line switch of the central station. For example, find the data that one outgoing line switch of the central station corresponds to multiple stations, and place the associated stations in adjacent positions. Figure 4 In the figure, S403 indicates an outgoing line switch from the central station, corresponding to the data of the upper left and lower left stations.
[0051] Step S312: Assign outgoing line switches to substations and determine the location coordinates of the outgoing line switches; in this step, the outgoing line switches included in each substation are collected, and then it is determined on which side of the substation the outgoing line switches are displayed. For the central station, it is necessary to determine according to the relative position of the association (such as Figure 4 As shown in the figure, the upper left station corresponds to the central station, and the outgoing line switch of the central station is on the left). For the associated station, the outgoing line switch has only two positions (upper and lower). The associated station is above the central station, and the outgoing line switch is fixed below the central station, and vice versa.
[0052] Step S313: Calculate the line segments between the substations and determine the position coordinates of the line segments;
[0053] A basic requirement in the generation of ring network diagrams is that the elements are aligned horizontally and vertically, arranged neatly, and the devices in the same row are kept at the same level, forming a clearly defined horizontal layout.
[0054] Therefore, in this application, the position feature is used to determine the position of the line segment, that is, first determine the position feature between the substations: the corresponding relationship between the outgoing line switches in the inter-station ring network diagram is divided into multiple situations, first determine whether the two switches are in the same horizontal and vertical direction, or one horizontal and one vertical. The position feature is determined according to the position coordinates of the image element.
[0055] In the case of one horizontal and one vertical line, the positions of the two line segments are calculated by intersecting the two line segments, such as Figure 4 S402 in;
[0056] In the case of horizontal and vertical, that is, the outgoing switches are both horizontal or both vertical, then they are fixedly connected by three line segments, and the positions of the three line segments are calculated to avoid the problem that the two switches may not be aligned and misaligned, such as Figure 4 S401 in.
[0057] Step S314: Determine whether a ring network switch is configured on the line segment, and if so, determine the position coordinates of the ring network switch. First, determine whether the association between the two outgoing line switches is 1 to 1, 1 to many, or many to 1, then determine on which line segment the ring network switch is located and calculate the coordinate position.
[0058] At the same time, the process of typesetting image elements also includes size optimization, precise switch positioning and cross-line processing;
[0059] Size optimization means that after the substation allocates outgoing line switches, the size of the substation is recalculated, the location of the relevant substation is adjusted according to the calculation results, and the substation is precisely positioned; in this way, it is possible to avoid excessive number of switches and resulting in switch overlap. When the size of the substation is adjusted, the location of the corresponding relevant substation must also be adjusted;
[0060] Precise switch positioning refers to accurately positioning the switch on the line segment based on the average distribution of the line segments between substations;
[0061] Crossing line processing refers to recalculating the line segment coordinates after swapping the positions of the switches corresponding to the crossed line segments. After repeatedly executing step S313 and crossing line processing multiple times, most crossings can be eliminated. Since crossing cannot be completely avoided, step S313 and crossing line processing will be executed with a limited number of times.
[0062] Step S130: exporting the power grid ring network connection view and generating a power grid ring network connection image file;
[0063] Since what is generated in step S120 is a grid ring network view, rather than a real image file, in step 130, the export service of the automatic drawing part is connected, and the SVG file is automatically imported into the drawing editing engine after conversion. The drawing editing engine supports manual adjustment of the drawing layout and adding notes.
[0064] In addition, the present application also provides management for the drawings derived from the image files generated in step S130, providing guarantee for the practical standardization of drawings. This part mainly includes drawing editing authority management, drawing version management, drawing upload and download, publishing and review.
[0065] Figure 5 A system structure diagram for generating a power grid ring network connection diagram for implementing the present application is provided, as shown in the figure, including the following parts:
[0066] Basic data support module: used to extract model data from the power grid model data source, parse the model data, generate structured data, and store the structured data; wherein the image elements include substations, outgoing line switches, ring network switches, and line segments;
[0067] The basic data support module includes a graphic data access unit, a graphic parsing unit and a data storage module, wherein the graphic data access unit interacts with the power grid model data source, and after obtaining the model file, the graphic parsing module parses the graphic file into structured data and stores it in the data storage unit; wherein the graphic parsing module includes a CIM parser;
[0068] The data storage unit includes a line substation table and an open-loop point table, wherein the main fields involved in the line substation table include: MRID-line GISID, SOURCESUBST-substation GISID, and the main fields involved in the open-loop point table include: MRID-tie switch GISID, CIRCUIT1-line 1, CIRCUIT1-line 2.
[0069] Automatic drawing module: layout image elements, obtain the position coordinates of image elements, and form a power grid ring network connection view;
[0070] Drawing editing module: used to export the power grid ring network connection view and generate a power grid ring network connection image file;
[0071] Among them, the automatic drawing module includes an algorithm controller, which is used to realize the layout of image elements, support the calculation of the coordinates of the image elements on the drawing, and realize the position display on the drawing according to the coordinates. The algorithm controller includes:
[0072] Substation initialization unit: used to initialize the location coordinates of the substation and determine the location coordinates for all substations;
[0073] The location of the central substation is designated as the standard coordinate, and the index number of the central substation is defined as 0; N substations are arranged evenly above the central substation, and M substations are arranged evenly below the central substation, where N and M are both natural numbers; the location coordinates of all the substations are defined, and index marks are provided for each substation for subsequent calculations.
[0074] Switch layout unit: used to calculate the position coordinates of the outgoing line switch and the loop line switch;
[0075] The system collects the outgoing line switches contained in each substation and then determines on which side of the substation the outgoing line switches are displayed.
[0076] Line segment layout unit: used to calculate the position coordinates of the connecting line segments between the image elements.
[0077] This system supports the specification of the drawing, such as horizontal and vertical alignment between elements, neat arrangement, and the position of equipment in the same row is kept at the same level, forming a hierarchical horizontal arrangement layout. Therefore, the algorithm controller also includes a display optimization unit, which supports location feature optimization, size optimization and cross-line processing between substations:
[0078] Size optimization refers to adjusting the size of the substation and the corresponding image elements to avoid overlapping due to inappropriate sizes of the elements;
[0079] Crossing line processing refers to recalculating the coordinates of the crossed line segments after swapping the positions of the corresponding switches, so as to minimize the crossing of the line segments and make the view easier to read;
[0080] The use of position feature optimization refers to adjusting the substation location, supporting the same horizontal and vertical features and one horizontal and one vertical features, so as to achieve the effect of horizontal and vertical connection between elements.
[0081] Through the scheme of this application, a targeted inter-substation feeder ring network connection diagram can be provided for the debugging environment of the power grid, which can facilitate dispatchers to view the distribution of inter-substation ring network feeders and the connection relationship between them, improve the dispatch overview ability, meet the dispatcher's practical needs for drawings and the need to view the overall substation location and connection drawings. Providing auxiliary decision-making for dispatchers' daily power supply transfer work is of great significance to effectively ensure the safe and stable operation of the power grid.
[0082] The above disclosures are only several specific embodiments of the present invention; however, the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims
1. A method for generating a power grid ring network connection diagram, It is characterized in that include: Acquire power grid model data, and process the model data into image elements; wherein the image elements include a substation, an outgoing line switch, a ring network switch, and a line segment; Typesetting the image elements, obtaining the position coordinates of the image elements, positioning and displaying the image elements in the drawing according to the position coordinates, and forming a power grid ring network connection view; Exporting the power grid ring network connection view to generate a power grid ring network connection image file; Wherein, typeset the image elements including: Initializing the displayed position of the substation and determining the position coordinates for the substation; Allocating an outgoing line switch to the substation and determining the position coordinates of the outgoing line switch; Calculating the line segments between the substations and determining the position coordinates of the line segments; Determine whether a ring network switch is configured on the line segment, and if configured, determine the position coordinates of the ring network switch; Typesetting the image elements also includes size optimization and cross-line processing; The size optimization refers to recalculating the size of the substation after allocating the outgoing line switch, adjusting the location of the relevant substation according to the calculation result, and finely positioning the substation; The cross-line processing refers to recalculating the position coordinates of the line segments after swapping the positions of switches corresponding to the cross-line segments.
2. The method for generating a power grid ring network connection diagram according to claim 1, It is characterized in that Processing the model data into image elements includes: calling a CIM parser to parse the distribution network line module file, generating structured data and storing it in a database table; the database table includes a line substation table and an open-loop point table; Perform conditional search from the database table to obtain ring network data; Visually abstract the ring network data and convert them into corresponding image elements; Among them, the conditions include substation conditions and voltage level conditions.
3. The method for generating a power grid ring network connection diagram according to claim 2, It is characterized in that The ring network data is closed-loop data including the substation and the outgoing line switches, feeders, and open-loop points within the substation. The image element corresponding to the feeder is a line segment, and the image element corresponding to the open-loop point is a ring network switch.
4. The method for generating a power grid ring network connection diagram according to claim 1, It is characterized in that The display position of the initialization substation includes: Specify the location of the central substation as the standard location coordinates; N substations are evenly arranged above the central substation, where N is a natural number; M substations are arranged evenly below the central substation, where M is a natural number; The location coordinates of the substation are defined.
5. The method for generating a power grid ring network connection diagram according to claim 1, It is characterized in that Before allocating an outgoing line switch to the substation, the method further includes extracting an association relationship between each substation and the outgoing line switch, adjusting the position coordinates of the substation according to the association relationship, and determining the substation corresponding to the outgoing line switch.
6. The method for generating a power grid ring network connection diagram according to claim 1, It is characterized in that Calculating the line segments between the substations includes determining the position features between the substations, where the position features include the same horizontal and vertical positions and one horizontal and one vertical position.
7. A system for generating a power grid ring network connection diagram, It is characterized in that include: Basic data support module: used to extract model data from the power grid model data source, parse the model data, generate structured data, and store the structured data; wherein the image elements include substations, outgoing line switches, ring network switches, and line segments; Automatic drawing module: typeset the image elements, obtain the position coordinates of the image elements, and form a power grid ring network connection view; Drawing editing module: used to export the power grid ring network connection view and generate a power grid ring network connection image file; The automatic drawing module includes an algorithm controller for realizing the layout of image elements, including: Substation initialization unit: used to initialize the location coordinates of the substation; Switch layout unit: used to calculate the position coordinates of the outgoing line switch and the loop line switch; Line segment layout unit: used to calculate the position coordinates of the connecting line segments between the image elements; The algorithm controller also includes a display optimization unit, which supports location feature optimization, size optimization and cross-line processing between substations: The location feature optimization refers to adjusting the substation location to support the same horizontal and vertical and one horizontal and one vertical features; The size optimization refers to adjusting the size of the substation and the corresponding image elements; The cross-line processing refers to recalculating the line segment coordinates after swapping the positions of switches corresponding to the cross-line segments.
8. The system for generating a power grid ring network connection diagram according to claim 7, It is characterized in that The basic data support module includes a graphic data access unit, a graphic parsing unit and a data storage module, wherein the graphic data access unit interacts with the power grid model data source, and after obtaining the model file, the graphic parsing unit parses the graphic file into structured data and stores it in the data storage unit; wherein the graphic parsing unit includes a CIM parser; The data storage unit includes a line substation table and an open-loop point table.
