Method and system for automatically generating tidal current diagram
By obtaining CIM model data and using depth-first algorithm to output the optimal path, the trend map of the regional power grid is automatically generated, which solves the problems of trend map maintenance difficulties and manual drawing errors in the existing technology, real-time automatic generation and efficient development of trend maps is achieved. maintain.
Patent Information
- Application Number
- CN202411593962.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-25
AI Technical Summary
It is difficult for the existing technology to update and maintain complex regional power grid trend charts in real time, there are missed or wrong drawings, and errors caused by manual painting are inevitable.
By obtaining CIM model data, reconstructing the line correlation model of the factory site, and using the depth-first algorithm to output the optimal path, automatically generating the trend map.
Real-time automatic generation of trend charts is realized, which reduces the working pressure of maintenance staff, avoids errors caused by manual drawings, and improves the work efficiency of dispatching and automation staff.
Smart Images

Figure CN119516041A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tidal flow diagram generation, and in particular to a method and system for automatically generating tidal flow diagrams. Background Art
[0002] As the scale of regional power grids continues to expand, the dispatching automation systems of regional power grids have a large number of interconnection lines, T-connections and π-connections. As the power grid model expands, the existing system only supports manual drawing, and the maintenance and modification workload of dispatching automation is large. There are situations where real-time updates cannot be made, and there are omissions and errors in drawing. At the same time, coupled with the coordinated control of new energy sections, the dispatching and mode professions have higher and higher requirements for the safe section control of the power grid. In daily work, the mode, dispatching and other professions need to pay real-time attention to the regional power grid flow diagram. Based on the existing power grid scale, the flow diagram is huge and extremely complex, which makes maintenance very difficult. Summary of the invention
[0003] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0004] In view of the above existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a method and system for automatically generating a power flow diagram, which can solve the problems mentioned in the background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for automatically generating a power flow diagram, including obtaining various CIM model data and reconstructing a line association model of a plant station;
[0008] Use depth-first algorithm to output all optimal paths;
[0009] Import the target optimal path into the system to generate a power flow diagram
[0010] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, the CIM model data obtained include the substation name and corresponding code, line name and corresponding code, switch name and corresponding code, and knife switch name and corresponding code.
[0011] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, wherein: reconstructing the line association model of the plant station includes constructing a new connection model according to a preset connection relationship.
[0012] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, the preset connection relationship only includes the association relationship between the electrical components, and does not include the endpoint information.
[0013] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, the preset connection relationships include but are not limited to switch-disconnector, disconnector-line, and plant-disconnector.
[0014] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, a depth-first algorithm is used to output all optimal paths including:
[0015] Starting from the selected central site, find out the link relationship of all electrical related plants and stations.
[0016] As a preferred solution of the method for automatically generating a power flow diagram of the present invention, wherein: importing the target optimal path into the system to generate a power flow diagram includes:
[0017] Import the target optimal path into the OCS system to automatically generate a power flow diagram.
[0018] In a second aspect, the present invention provides a system for automatically generating a power flow diagram, including: a construction module for acquiring various CIM model data and reconstructing a line association model of a plant station;
[0019] Output module, used to output all optimal paths using depth-first algorithm;
[0020] The generation module is used to import the target optimal path into the system to automatically generate the power flow diagram.
[0021] In a third aspect, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0022] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when the computer program is executed by a processor.
[0023] Compared with the prior art, the invention has the following beneficial effects: the power grid model can be used in real time to automatically generate the power flow diagram, greatly reducing the work pressure of maintenance staff. Furthermore, errors caused by manual drawing can be avoided, and the timeliness of the picture can be guaranteed, thereby improving the work efficiency of dispatching and automation staff. At the same time, this technology is not limited by the manufacturer and system model of the dispatching automation master station system. As long as the system can export the correct model CIM file, it can be used for work that requires automatic generation of power flow diagrams. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0025] Figure 1 A flowchart of a method for automatically generating a power flow diagram.
[0026] Figure 2 This is a conventional substation wiring diagram (all electrical components).
[0027] Figure 3 This is a schematic diagram of the final trend diagram.
[0028] Figure 4 There are two optimal paths from substation A to substation B.
[0029] Figure 5 A schematic diagram of all the connection relationships of a plant station.
[0030] Figure 6 This is a schematic diagram of the connection relationship between plant and station.
[0031] Figure 7 This is a schematic diagram of the connection relationship between plant-switch-line-switch-plant.
[0032] Figure 8 A schematic diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0034] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0035] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0036] Example 1
[0037] Reference Figure 1 to Figure 7 , which is the first embodiment of the present invention, and provides a method for automatically generating a power flow diagram, which includes:
[0038] S1. Obtain various CIM model data and rebuild the line association model of the plant station.
[0039] It should be noted that obtaining various CIM model data includes parsing out all endpoints involved in the line, among which the bus (plant station) contains multiple endpoints (terminal), the switch and knife switch contain two endpoints (terminal), and the line contains only one endpoint (terminal).
[0040] Furthermore, various CIM model data are obtained including substation name and corresponding code, line name and corresponding code, switch name and corresponding code, and knife switch name and corresponding code.
[0041] Furthermore, reconstructing the line association model of the plant station includes constructing a new connection model according to a preset connection relationship.
[0042] Furthermore, the preset connection relationship only includes the association relationship between the electrical components, and does not include endpoint information.
[0043] Furthermore, the preset connection relationships include but are not limited to switch-disconnector, disconnector-line, and plant-disconnector.
[0044] It should be noted that reconstructing the line association model of the plant station includes constructing busbar (plant station) → switch, switch → switch, switch → line, line → opposite line.
[0045] S2. Use the depth-first algorithm to output all optimal paths.
[0046] It should be noted that the depth-first algorithm is an algorithm for traversing or searching graphs (including trees, which are a special type of graph). It searches along the depth direction of the graph, exploring the path as deep as possible until it cannot continue or reaches the target node, and then backtracks to the previous step to continue exploring other paths.
[0047] Furthermore, the depth-first algorithm is used to output all optimal paths, including:
[0048] Starting from the selected central site, find out the link relationship of all electrical related plants and stations.
[0049] It should be noted that the depth-first algorithm exhaustively enumerates all the electrical equipment connection relationships, selects the central substation in the area where the power flow diagram is drawn, and uses this substation as the starting point to search and match the associated electrical equipment in the adjacent stations. If the terminal station is found, it returns to the upper-level substation and searches for the remaining adjacent equipment until the connection model of all electrical equipment in the area is established. Figure 4 , there are two optimal paths from substation A to substation B.
[0050] Preferably, the depth-first algorithm can systematically traverse the topology of the entire power grid. Further, the depth-first algorithm starts from a starting node and goes deep into each branch of the power grid along the line to ensure that no node and connecting line is missed.
[0051] S3. Import the target optimal path into the system to generate a power flow diagram.
[0052] Furthermore, the target optimal path is imported into the system to generate the power flow diagram, including:
[0053] Import the target optimal path into the OCS system to automatically generate a power flow diagram.
[0054] It should be noted that by exporting the target optimal path according to the unique code (OID) in the CIM model, the power flow diagram can be directly and automatically generated.
[0055] In summary, the beneficial effect of a method for automatically generating a power flow diagram is that the power grid model can be used in real time to automatically generate the power flow diagram, which greatly reduces the work pressure of maintenance personnel. Further, it can avoid errors caused by manual drawing, and can ensure the timeliness of the picture, thereby improving the work efficiency of dispatching and automation personnel. At the same time, this technology is not limited by the manufacturer and system model of the dispatching automation master station system. As long as the system can export the correct model CIM file, it can be used for work that requires automatic generation of power flow diagrams.
[0056] Example 2
[0057] This embodiment provides a system for automatically generating a power flow diagram, which includes a construction module for obtaining various CIM model data and reconstructing a line association model of a plant station;
[0058] Output module, used to output all optimal paths using depth-first algorithm;
[0059] The generation module is used to import the target optimal path into the system to automatically generate the power flow diagram.
[0060] The above-mentioned unit modules may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above-mentioned modules.
[0061] Example 3
[0062] This embodiment provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for automatically generating a tidal flow chart is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0063] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements: obtaining various CIM model data and reconstructing the line association model of the plant station; using a depth-first algorithm to output all optimal paths; and importing the target optimal path into the system to generate a power flow diagram.
[0064] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for automatically generating a power flow diagram, characterized in that: include, Obtain various CIM model data and rebuild the line association model of the plant and station; Use depth-first algorithm to output all optimal paths; Import the target optimal path into the system to generate a power flow diagram.
2. The method for automatically generating a power flow diagram according to claim 1, wherein: The CIM model data obtained include the substation name and corresponding code, the line name and corresponding code, the switch name and corresponding code, and the knife switch name and corresponding code.
3. The method for automatically generating a power flow diagram according to claim 2, characterized in that: The reconstructing of the line association model of the plant station includes constructing a new connection model according to a preset connection relationship.
4. The method for automatically generating a power flow diagram according to claim 3, characterized in that: The preset connection relationship only includes the association relationship between the electrical components, and does not include endpoint information.
5. The method for automatically generating a power flow diagram according to claim 4, characterized in that: The preset connection relationships include but are not limited to switch-knife switch, knife switch-line, and plant-knife switch.
6. The method for automatically generating a power flow diagram according to claim 5, characterized in that: The depth-first algorithm is used to output all optimal paths, including: Starting from the selected central site, find out the link relationship of all electrical related plants and stations.
7. The method for automatically generating a power flow diagram according to any one of claims 1 to 6, characterized in that: The step of importing the target optimal path into the system to generate a power flow diagram includes: Import the target optimal path into the OCS system to automatically generate a power flow diagram.
8. A system for automatically generating a power flow diagram, characterized in that: include: The construction module is used to obtain various CIM model data and rebuild the line association model of the plant station; Output module, used to output all optimal paths using depth-first algorithm; The generation module is used to import the target optimal path into the system to automatically generate the power flow diagram.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.