Method and device for automatically arranging main wiring diagram of transformer substation
By automatically processing the topological structure data of the power grid equipment, calculating the connection relationship lines of the bus equipment, the automatic layout and optimization of the main wiring diagram of the substation is solved, and the problem of inefficient drawing in the existing technology is improved and the efficiency and accuracy of graphics drawing are improved.
Patent Information
- Application Number
- CN202510043167.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, the drawing efficiency of the main wiring diagram of the substation is inefficient, and because the drawing personnel are not professional in power, abnormal problems are prone to occur.
By automatically processing the topological structure data of the power grid equipment, the transformer parameters are quickly and accurately obtained, and the connection relationship lines of the bus equipment are calculated based on these parameters, so as to realize the automatic layout and optimization of the main wiring diagram of the substation.
It improves the efficiency and accuracy of the main wiring diagram drawing of the substation, reduces manual errors, ensures data accuracy, and lays a solid foundation for subsequent layout and optimization work.
Smart Images

Figure CN119939835A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of line diagram drawing, and more specifically, relates to a method and device for automatic layout of a main wiring diagram of a substation. Background Art
[0002] The main wiring diagram of a substation is a graphical display of the main structure of the high-voltage and high-current electrical parts of a substation or power plant, and the topological relationship and belonging relationship of the transformer, busbar, load and other equipment. It can be used in various power grid application systems such as production planning and real-time scheduling. In the Grid GIS System, the topological description of power equipment is associated as a node. The related power equipment includes busbars, transformers, towers, switches, knife switches, grounding, current transformers, voltage transformers, etc. The relationship between the equipment is connected by lines. The related power equipment includes connecting lines, overhead lines, cables, etc., thus forming a diagram with node-line as the basic topological description. However, the manual drawing of drawings is very labor-intensive and requires a lot of repetitive work. In addition, because the drawing personnel are not power professionals, there are many abnormal problems in the drawing, and the drawing efficiency is low. Summary of the invention
[0003] The purpose of the present disclosure is to provide a method and device for automatically laying out a main wiring diagram of a substation, so as to solve the problem of low efficiency in drawing the main wiring diagram of a substation in the prior art.
[0004] A first aspect of an embodiment of the present disclosure provides a method for automatically laying out a main wiring diagram of a substation, comprising: Processing the first data to obtain transformer parameters, wherein the first data is power grid equipment topology data; Determine a plurality of busbars and a busbar device corresponding to each busbar, and calculate a first connection relationship line starting from the busbar device based on the transformer parameters, the busbar device and each node; The busbar equipment and the load equipment are laid out based on the first connection relationship line to obtain a first main wiring diagram; and the first main wiring diagram is optimized based on the first data to obtain a target main wiring diagram.
[0005] A second aspect of the embodiments of the present disclosure provides a device for automatically laying out a main wiring diagram of a substation, comprising: A data processing module, used for processing first data to obtain transformer parameters, wherein the first data is power grid equipment topology data; A path calculation module, used to determine a plurality of buses and a bus device corresponding to each bus, and calculate a first connection relationship line starting from the bus device based on the transformer parameters, the bus device and each node; The circuit drawing module is used to lay out the busbar equipment and the load equipment based on the first connection relationship circuit to obtain a first main wiring diagram; and optimize the first main wiring diagram based on the first data to obtain a target main wiring diagram.
[0006] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned method for automatic layout of a main wiring diagram of a substation when executing the computer program.
[0007] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for automatic layout of a main wiring diagram of a substation are implemented.
[0008] The beneficial effects of the method and device for automatic layout of the main wiring diagram of a substation provided by the embodiments of the present disclosure are: The disclosed embodiment automatically processes the topological structure data of power grid equipment to quickly and accurately obtain transformer parameters, thereby effectively improving work efficiency. At the same time, by verifying the transformer parameters, the accuracy of the data is ensured, laying a solid foundation for subsequent layout and optimization work. During the layout process, the disclosed embodiment formulates a standardized definition for the substation line data, calculates the positioning layout based on the transformer-bus-line model distribution topology, analyzes the node deployment design, and realizes the automatic generation of the substation main wiring diagram. The disclosed embodiment takes into account the actual system user needs, and uses the State Grid system CAD drawing drawing as a reference to realize an automatic layout implementation method for the substation main wiring diagram, which improves the efficiency of graphics drawing, enriches the display effect of drawing results, and provides support for the actual business system. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A schematic diagram of a flow chart of a method for automatic layout of a main wiring diagram of a substation provided by an embodiment of the present disclosure; Figure 2 A schematic diagram of connection relationship circuits provided for an embodiment of the present disclosure; Figure 3 A flowchart of automatic layout of a main wiring diagram of a substation provided by an embodiment of the present disclosure; Figure 4A schematic diagram of the layout effect of a main wiring diagram of a substation provided by an embodiment of the present disclosure; Figure 5 A schematic diagram of the layout effect of a main wiring diagram of a substation provided by another embodiment of the present disclosure; Figure 6 A structural block diagram of a device for automatically laying out a main wiring diagram of a substation provided by an embodiment of the present disclosure; Figure 7 A schematic block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0011] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0012] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0013] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for automatic layout of a main wiring diagram of a substation provided by an embodiment of the present disclosure, the method comprising: S101: Process first data to obtain transformer parameters, where the first data is topological structure data of power grid equipment.
[0014] In this embodiment, the first data is the topological structure relationship data of the power grid equipment, which can be obtained by parsing the CIME (Common Information Model for Electricity) file. The CIME file is a commonly used data structure in the power system, which needs to be parsed to adapt to the automatic layout system data specification definition, read various types of equipment such as transformer equipment, busbar equipment, switch and knife switch equipment, load equipment, etc., parse the topological relationship business data specification, and generate JSON structure data.
[0015] The first data contains information such as the connection relationship, location, type, etc. of various devices in the power grid, among which substation information is very important. By screening the first data, transformer-related parameters such as transformer capacity, rated voltage, current, impedance, cooling method, tap position, etc. are obtained.
[0016] S102: Determine a plurality of busbars and a busbar device corresponding to each busbar, and calculate a first connection relationship line starting from the busbar device based on transformer parameters, the busbar device, and each node.
[0017] In this embodiment, the transformer is one of the core devices in the power system, and its parameters directly affect the stability and safety of the power system. If the transformer parameters are incorrect, it will cause problems such as transformer overload and overheating, thereby accelerating the aging of the equipment and even causing equipment failure. By verifying the transformer parameters, these problems can be discovered and corrected in a timely manner, thereby extending the service life of the equipment. In the automatic layout process of the substation main wiring diagram, the transformer is an important equipment node, and the accuracy of its parameters directly affects the accuracy and efficiency of the layout results. If the transformer parameters are incorrect, it may cause deviations in the layout results, or even fail to generate an effective layout plan. Therefore, verifying the transformer parameters is a key step to improve the accuracy and efficiency of automatic layout. When the verification result of the transformer parameters is correct, the connection relationship lines can be calculated. The specific process is as follows: Determine the busbar and the busbar equipment corresponding to the busbar (i.e. the auxiliary mounting equipment of the busbar). The mounting equipment of the busbar may include grounding switch, circuit breaker, protector, disconnector, etc.
[0018] The voltage levels of the high, medium and low voltage sides of the transformer are obtained according to the transformer parameter information, the busbars and the corresponding auxiliary hanging equipment of each busbar are grouped according to the voltage level, and the associated busbars and other equipment are grouped according to the voltage area. In this way, the busbars and equipment with the same voltage can be at the same voltage level, which is convenient for the analysis and calculation of the power connection relationship.
[0019] Each node refers to each connection point in the power system, which can be the connection point of the bus, equipment or other electrical components. According to the topological structure of the power system, starting from the bus equipment, connecting each node to obtain all connection paths between the starting point and the end point, these connection paths are the first connection relationship lines.
[0020] S103: Based on the first connection relationship line, the busbar equipment and the load equipment are laid out to obtain a first main wiring diagram; based on the first data, the first main wiring diagram is optimized to obtain a target main wiring diagram.
[0021] In this embodiment, first, the buses of each voltage level are grouped and their types are determined based on the first connection relationship line, and different bus types have different layout methods. Secondly, after the bus is grouped and the type is determined, the bus equipment and load equipment need to be laid out to obtain the first main wiring diagram. The specific process is as follows: a. Determine the initial busbar location, calculate the busbar length, determine the busbar connection points, and realize the busbar location layout; b. Busbar interconnection line layout, used for busbar segmentation and busbar bypass, to achieve equipment positioning layout between two busbars; c. Plan the connection lines and equipment layout between the busbar and the transformer, and realize the equipment positioning layout between the busbar and the transformer; d. Location and layout of busbar connection lines, loads and other equipment; e. Calculation of layout of other ancillary equipment.
[0022] According to the above layout method, the equipment layout is completed to obtain the first main wiring diagram. Because the first main wiring diagram has not been defined by the graphic element specification, the online substation main wiring diagram cannot be generated. Therefore, it is necessary to optimize the first main wiring diagram according to the graphic element specification definition, such as code generation, adding animation, etc., to obtain the final substation main wiring diagram, that is, the target main wiring diagram.
[0023] It can be concluded from the above that the embodiment of the present disclosure can quickly and accurately obtain transformer parameters by automatically processing the topological structure data of power grid equipment, thereby effectively improving work efficiency. At the same time, by verifying the transformer parameters, the accuracy of the data is ensured, laying a solid foundation for subsequent layout and optimization work. During the layout process, the present disclosure formulates a standardized definition for the substation line data, calculates the positioning layout based on the transformer-bus-line model distribution topology, analyzes the node deployment design, and realizes the automatic generation of the substation main connection diagram. The present disclosure takes into account the actual system user needs, and uses the State Grid system CAD drawing drawing as a reference to realize a method for automatic layout of the substation main connection diagram, which improves the efficiency of graphics drawing, enriches the display effect of drawing results, and provides support for the actual business system.
[0024] In one embodiment of the present disclosure, a first connection relationship line starting from the bus device is calculated based on transformer parameters, bus devices and each node, including: Determine a first node among the nodes, and calculate a connection path between the starting point and the first node as a first connection relationship line; The first node is a node without subsequent connected nodes.
[0025] The connection path between the calculation starting point and the first node is calculated as a first connection relationship line, including: The starting point is taken as the second node, and the second node is the visited node; Determine a plurality of third nodes adjacent to the second node, where the third nodes are unvisited nodes; Recursively call the depth-first traversal algorithm for each third node and use the third node as the second node; When the first node is the second node, the connection path between the calculation starting point and the first node is the first connection relationship line.
[0026] In this embodiment, the connection relationship line path is calculated based on the depth-first search algorithm of the topological structure. The line path information associated with the node is calculated, the line path is merged and sorted, and short lines are removed to obtain the node connection path.
[0027] The depth-first search algorithm is an algorithm for traversing or searching a tree or graph. The principle is: starting from the starting node (select some arbitrary nodes as the starting node in the case of a graph, and usually the root node in the case of a tree), search as deeply as possible along each branch until the target node is reached or it is impossible to continue, then backtrack to the nearest unexplored node and continue exploring. The core idea of the algorithm is backtracking and pruning, that is, when a path reaches the end, it will backtrack to the previous node and try other unexplored paths.
[0028] refer to Figure 2 ,The specific implementation of the line path calculation method is: take the branches and other nodes contained in the node as a tree with the node as the root, and use the depth-first search method to find all the paths from its root to the end node (the first node), that is: Select a bus device as the starting point, use the starting point as the current node, and mark the current node as visited (that is, if the current node has been visited, it becomes the second node). Traverse all unvisited adjacent nodes of the current node; for each unvisited adjacent node (third node), recursively call the depth-first search algorithm and use the node as the new current node; When all adjacent nodes have been visited, return to the previous layer for recursive calls.
[0029] The paths are sorted by length, and according to the relationship contained in the lines, the corresponding short lines are removed and sorted again, and all the connection paths between the starting point and the end node are calculated for the longest main line determination and the end point branch line determination. All these connection paths are the first connection relationship lines.
[0030] It can be concluded from the above that this embodiment uses a depth-first traversal algorithm to accurately calculate the connection path between the busbar device and the first node without subsequent connection nodes, that is, the first connection relationship line. This method ensures the integrity and accuracy of the layout and effectively avoids omissions or incorrect connections. At the same time, recursively calling the depth-first traversal algorithm improves the layout efficiency, making the automatic layout of the substation main wiring diagram faster and more reliable.
[0031] In one embodiment of the present disclosure, a first main wiring diagram is obtained by laying out busbar equipment and load equipment based on a first connection relationship line, including: If the first connection relationship line includes medium voltage parameters, the busbar equipment is laid out based on the layout mode on the right side of the medium voltage side of the transformer, and the load equipment is laid out to obtain a first main connection diagram; If the first connection relationship line does not include the medium voltage parameter, the busbar equipment is laid out based on the first connection relationship line, and the load equipment is laid out to obtain the first main connection diagram.
[0032] Load equipment includes branch equipment; branch equipment is equipment on branch lines, and branch lines are connected to busbars; The first main connection diagram obtained by arranging the load equipment based on the layout mode on the right side of the medium voltage side of the transformer includes: The branch equipment is laid out based on the layout on the right side of the medium voltage side of the transformer.
[0033] In this embodiment, if the first connection relationship line includes medium voltage parameters, the busbar equipment and load equipment are laid out according to the layout method of vertical layout of high voltage parameter equipment and low voltage parameter equipment and horizontal layout of medium voltage parameter equipment to obtain the first main connection diagram.
[0034] First of all, because different bus types have different layout methods, it is necessary to group and type the buses of each voltage level according to the first connection relationship line, and distinguish the different connection types of single bus, single bus segment, single bus segment with bypass, double bus, double bus segment, double bus segment with bypass, and 3 / 2 connection.
[0035] The judgment rules are as follows: ① Calculate the number of busbars. One busbar is considered a single busbar. The number of busbars = |busbar set|.
[0036] ② In the case of multiple busbars, according to the connection relationship between all busbars and transformers, if the busbars are connected to a transformer at the same time, it is judged as a double busbar, otherwise it proceeds to the subsequent judgment.
[0037] Connection relationship = busbar set ∩ transformer connected busbar set ③Bypass bus determination: according to the interconnection line between buses, if there is a topological connection between buses and the transformer equipment cannot be topologically connected, it is determined to be a bypass bus; otherwise, it is determined to be a single bus segmented line.
[0038] Number of interconnection lines = |Set of interconnection lines between busbars| Number of topological connections = busbar interconnection line set ∩ transformer connection line set ④ Other special types of connections are determined by referring to the corresponding fields of line attributes.
[0039] The busbar equipment and the load equipment are laid out based on the first connection relationship line to obtain the first main wiring diagram, and the process is as follows: ① Calculate all busbars including branch line paths, including: busbar to transformer path, busbar to other busbar paths, and busbar to load equipment path; ②Layout the position of the first high-voltage bus, draw the horizontal extension of the high-voltage bus, calculate the number of bus-to-load paths, set it as the bus length, and the bus interval is the equipment connection interval; Busbar length calculation formula: TotalLength=(busbarToOutLineCount+1)*nodeStep+(busbarCount-1)*nodeStep Among them, TotalLength is the total length of the busbar, busbarToOutLineCount is the number of external connection paths connected to the busbar, busbarCount is the number of busbars, and nodeStep is the preset unit spacing length.
[0040] ③ Draw the path from the busbar to the load equipment upwards. The path interval is the equipment connection interval. Draw the busbar interconnection line and set the angle of each device according to the direction. ④ Draw the path from the busbar to the transformer equipment downward, with the starting point being the center point of the busbar line; ⑤ Repeat the high-voltage side busbar drawing method and continue to draw busbars of other voltage levels, with the low-voltage side drawn downward and the medium-voltage side drawn to the right.
[0041] After the layout of the bus and the equipment corresponding to the bus is completed, you can layout the branch equipment, loop the branch equipment list, search for the main equipment to which it belongs, calculate the branch equipment location and connection direction based on the main equipment location and surrounding occupancy, and set the layout location information.
[0042] In one embodiment of the present disclosure, optimizing the first main wiring diagram based on the first data to obtain a target main wiring diagram includes: Determine a graphic element specification definition based on the first data; The first main wiring diagram is optimized based on the graphic element specification definition to obtain the target main wiring diagram.
[0043] In this embodiment, the first data is the topological structure relationship data of the power grid equipment. The automatic layout rules of the substation main wiring diagram are based on the topological structure relationship data of the power grid equipment. In order to facilitate the normalization of business data and data analysis and processing, it is necessary to formulate the automatic layout system data specification definition in advance. The topological structure relationship data of the power grid equipment includes the graphic element specification definition and the graphic specification definition. The graphic element specification definition refers to the standardized description of the basic elements in the topological structure of the power grid equipment, such as busbars, substations, circuit breakers, disconnectors and other power grid equipment. In addition, the graphic element specification definition also includes the coding of equipment such as substations and connecting lines, graphic style definition, business-related data definition, etc. See Table 1 for details.
[0044] Table 1 Definition of graphic element specifications
[0045] Graphic specification definition refers to the rules and standards for drawing the topological structure diagram of power grid equipment. The content of graphic specification definition may include: Graphical symbols: Assign a unique graphic symbol to each device type for easy identification in the topology diagram. Layout rules: Specify how the devices are laid out in the topology diagram, such as the busbar is usually arranged horizontally or vertically, and generators and transformers are usually placed near the busbar. Color and line type: Assign specific colors and line types to different types of devices and connecting lines for easy distinction and identification. Annotation rules: Specify how to annotate in the topology diagram, such as the name, number, and operating status of the device.
[0046] In addition, the graphic specification definition also includes: point-type power equipment, line-type equipment, and drawing business-related data definitions. Point-type power equipment in the graphic specification definition usually refers to various node devices in the power grid; line-type equipment in the topological structure of power grid equipment mainly refers to various types of connecting lines, such as overhead lines and cables. Drawing business-related data definitions refer to business data and information related to the topological structure diagram of power grid equipment.
[0047] Business data is divided into two types: node and connection relationship. The node type corresponds to node information, and the connection relationship type corresponds to connection information.
[0048] Node information is device information, including device type, associated device information, device number, device name and other extended information (such as device tag information, business attribute information, etc.).
[0049] Connection information is used to identify the connection relationship between devices, that is, node information is device information, including type, associated device information, including number, name and other extended information (such as device tag information, business attribute information, etc.).
[0050] The example format of business data is as follows: { "nodes": [ / / Device information { "type": "Point graphic primitive type, corresponding to the unified point primitive encoding", "devId": "Corresponding ledger device id", "name": "Device name", / / Extended information (other business-related extended information) "extra": {}, }, ], "links": [ / / Connection relationship { "type": "Connection line type", "source": { "id": "Starting point device ID", "port": "The point graphic anchor point connected by the starting point", }, "target": { "id": "Destination device ID", "port": "The point graphic anchor point of the end point connection", }, "devId": "Corresponding ledger device id", "name": "Device name", / / Extended information (other business-related extended information) "extra": {}, }, ] } The first main wiring diagram is optimized based on the graphic element specification definition to obtain a target main wiring diagram, including: The scalable vector graphics code corresponding to each device in the first main wiring diagram is obtained based on the graphic element specification definition, and each device in the first main wiring diagram is optimized based on the scalable vector graphics code to obtain the target main wiring diagram.
[0051] In this embodiment, the location information of each device is obtained according to the first main wiring diagram. The identification method of each device in Scalable Vector Graphics (SVG) is determined based on the graphic element specification definition, and the corresponding SVG code fragment is generated for each device according to the device type and location information and the graphic element specification definition. These code fragments may include <rect> 、 <circle> 、 <line>SVG elements such as , are used to represent the shape and outline of the device. Add <style>元素,定义各种样式规则,如颜色、填充、边框等,这些样式可以呈现设备的外观。使用SVG的动画功能为设备添加动画效果。将所有设备的SVG代码片段、样式定义和动画效果整合到一个完整的SVG文件中。使用SVG验证工具检查生成的SVG文件是否符合SVG标准,确保文件在浏览器中能够正确显示。在前端页面中,使用标签、<object>标签或<iframe>标签等方式引入SVG文件,得到目标主接线图。
[0052] 由上可以得出,本实施例通过制定图元规范定义和图形规范定义,实现了电网设备拓扑结构关系数据的规范化处理,为自动布局系统提供了统一的数据解析标准。同时,利用SVG技术对第一主接线图进行优化,提高了主接线图的绘制效率和准确性,使得目标主接线图更加清晰、直观,便于运维人员快速理解电网设备的连接关系和运行状态。
[0053] 参考图3,图3为本公开一实施例提供的变电站主接线图自动布局的流程图,即整个布局流程可以简述为布局开始,先采集电网设备拓扑结构数据,根据采集到的电网设备拓扑结构数据开始计算母线连接线路路径。首先,分析母线类型,确定母线分类,根据不同母线类型计算母线长度以及边界,布局母线。其次,母线布局完成后,根据变压器参数对母线设备进行高压低压上下布局。最后,判断是否存在中压参数数据,若有,则需要将母线设备在中压侧右侧布局,若没有则进行下一步骤。母线设备布局完成后,布局变压器相关设备、布局间隔设备、最后布局与母线连接的各个分支线路上的分路设备。全部设备布局完成后,变电站主接线图即完成布局。
[0054] 图4、图5为变电站主接线图的布局效果示意图。图中图形设备位置不是实际位置,主要表示连接关系。整个图形以变压器为中心,包含高中低三个电压等级,高压部分在左上方,低压部分在左下方,中压部分在右侧。每个电压等级包含1条或多条母线,母线上连接多条分支线路,分支线路由断路器、刀闸、进出线、负荷、接地等设备组成,母线连接类型包括:单母线、单母线分段、双母线、双母线分段、旁路母线等多种连接方式,母线和变压器之间有包含断路器及刀闸设备的联络线连接。设备包含电压等级、规划状态等信息,需要根据相关的配置设置不同的显示样式。例如,图5中中间最粗的线表示110kVI母线和110kVII母线,两个圆交错在一起的设备为主变压器,与母线连接的三个圆交错在一起的设备为母线电压互感器等,110kVI母线左下侧第二条分支线路,从下到上依次为电容器、断路器、隔离开关。
[0055] 对应于上文实施例的变电站主接线图自动布局的方法,图6为本公开一实施例提供的变电站主接线图自动布局的装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参考图6,该变电站主接线图自动布局的装置20包括:数据处理模块21、路径计算模块22和线路绘制模块23。
[0056] 其中,数据处理模块21,用于对第一数据进行处理得到变压器参数,第一数据为电网设备拓扑结构数据;路径计算模块22,用于若变压器参数的校验结果为正确,则基于所确定多条母线和每条母线对应的母线设备,基于变压器参数、母线设备和各个节点计算以母线设备为起点的第一连接关系线路;线路绘制模块23,用于基于第一连接关系线路对母线设备和负荷设备进行布局得到第一主接线图;基于第一数据对第一主接线图进行优化得到目标主接线图。
[0057] 在本公开的一种实施例中,路径计算模块22具体用于:确定各个节点中的第一节点,计算起点与第一节点之间的连接路径为第一连接关系线路;其中,第一节点为无后续连接节点的节点。
[0058] 在本公开的一种实施例中,路径计算模块22具体用于:将起点作为第二节点,第二节点为已访问的节点;确定第二节点相邻的多个第三节点,第三节点为未访问的节点;对每个第三节点递归调用深度优先遍历算法,并将第三节点作为第二节点;当第一节点为第二节点时,计算起点与第一节点之间的连接路径为第一连接关系线路。
[0059] 在本公开的一种实施例中,线路绘制模块23具体用于:若第一连接关系线路中包含中压参数,则基于变压器中压侧右侧的布局方式对母线设备进行布局,对负荷设备进行布局得到第一主接线图;若第一连接关系线路中不包含中压参数,则基于第一连接关系线路对母线设备进行布局,对负荷设备进行布局得到第一主接线图。
[0060] 在本公开的一种实施例中,负荷设备包括分路设备;分路设备为分支线路上的设备,分支线路连接母线;线路绘制模块23具体用于:基于变压器中压侧右侧的布局方式对分路设备进行布局。
[0061] 在本公开的一种实施例中,线路绘制模块23具体用于:基于第一数据确定图元规范定义;基于图元规范定义对第一主接线图进行优化得到目标主接线图。
[0062] 在本公开的一种实施例中,线路绘制模块23具体用于:基于图元规范定义获取第一主接线图中各个设备对应的可缩放矢量图形代码,基于可缩放矢量图形代码对第一主接线图中的各个设备进行优化,得到目标主接线图。
[0063] 参见图7,图7为本公开一实施例提供的电子设备的示意框图。如图7所示的本实施例中的电子设备300可以包括:一个或多个处理器301、一个或多个输入设备302、一个或多个输出设备303及一个或多个存储器304。上述处理器301、输入设备302、输出设备303及存储器304通过通信总线305完成相互间的通信。存储器304用于存储计算机程序,计算机程序包括程序指令。处理器301用于执行存储器304存储的程序指令。其中,处理器301被配置用于调用程序指令执行上述各装置实施例中各模块 / 单元的功能,例如图6所示模块21至23的功能。
[0064] 应当理解,在本公开实施例中,所称处理器301可以是中央处理单元 (CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (DigitalSignal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
[0065] 输入设备302可以包括触控板、指纹采集传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备303可以包括显示器(LCD等)、扬声器等。
[0066] 该存储器304可以包括只读存储器和随机存取存储器,并向处理器301 提供指令和数据。存储器304的一部分还可以包括非易失性随机存取存储器。例如,存储器304还可以存储设备类型的信息。
[0067] 具体实现中,本公开实施例中所描述的处理器301、输入设备302、输出设备303可执行本公开实施例提供的变电站主接线图自动布局的方法的第一实施例和第二实施例中所描述的实现方式,也可执行本公开实施例所描述的电子设备的实现方式,在此不再赘述。
[0068] 在本公开的另一实施例中提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令被处理器执行时实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。
[0069] 计算机可读存储介质可以是前述任一实施例的电子设备的内部存储单元,例如电子设备的硬盘或内存。计算机可读存储介质也可以是电子设备的外部存储设备,例如电子设备上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(SecureDigital, SD)卡,闪存卡(Flash Card)等。进一步地,计算机可读存储介质还可以既包括电子设备的内部存储单元也包括外部存储设备。计算机可读存储介质用于存储计算机程序及电子设备所需的其他程序和数据。计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
[0070] 本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
[0071] 所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的电子设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
[0072] 在本申请所提供的几个实施例中,应该理解到,所揭露的电子设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
[0073] 作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本公开实施例方案的目的。
[0074] 另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
[0075] 以上,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。< / style> < / line> < / circle> < / rect>
Claims
1. A method for automatic layout of a substation main wiring diagram, characterized in that: include: Processing the first data to obtain transformer parameters, wherein the first data is power grid equipment topology data; Determine a plurality of busbars and a busbar device corresponding to each busbar, and calculate a first connection relationship line starting from the busbar device based on the transformer parameters, the busbar device and each node; The busbar equipment and the load equipment are laid out based on the first connection relationship line to obtain a first main wiring diagram; and the first main wiring diagram is optimized based on the first data to obtain a target main wiring diagram.
2. The method for automatic layout of the main wiring diagram of a substation according to claim 1, characterized in that: The calculating, based on the bus device and each node, a first connection relationship line with the bus device as a starting point comprises: Determine a first node among the nodes, and calculate a connection path between the starting point and the first node as a first connection relationship line; The first node is a node without subsequent connected nodes.
3. The method for automatic layout of the main wiring diagram of a substation according to claim 2, characterized in that: The calculating a connection path between the starting point and the first node as a first connection relationship line includes: Taking the starting point as a second node, the second node is a visited node; Determine a plurality of third nodes adjacent to the second node, wherein the third nodes are unvisited nodes; Recursively call the depth-first traversal algorithm for each third node and use the third node as the second node; When the first node is the second node, the connection path between the starting point and the first node is calculated as a first connection relationship line.
4. The method for automatic layout of the main wiring diagram of a substation according to claim 1, characterized in that: The first main wiring diagram is obtained by arranging the busbar equipment and the load equipment based on the first connection relationship line, including: If the first connection relationship line includes medium voltage parameters, the busbar equipment is laid out based on the layout mode on the right side of the medium voltage side of the transformer, and the load equipment is laid out to obtain a first main connection diagram; If the first connection relationship line does not include medium voltage parameters, the busbar equipment is laid out based on the first connection relationship line, and the load equipment is laid out to obtain a first main connection diagram.
5. The method for automatic layout of the main wiring diagram of a substation according to claim 4, characterized in that: The load device includes a branch device; the branch device is a device on a branch line, and the branch line is connected to a busbar; The layout of the load equipment based on the layout mode on the right side of the medium voltage side of the transformer includes: The branch equipment is laid out based on the layout on the right side of the medium voltage side of the transformer.
6. The method for automatic layout of the main wiring diagram of a substation according to claim 1, characterized in that: The step of optimizing the first main wiring diagram based on the first data to obtain a target main wiring diagram includes: Determine a graphic element specification definition based on the first data; The first main wiring diagram is optimized based on the graphic element specification definition to obtain a target main wiring diagram.
7. The method for automatic layout of the main wiring diagram of a substation according to claim 6, characterized in that: The step of optimizing the first main wiring diagram based on the graphic element specification definition to obtain a target main wiring diagram includes: The scalable vector graphics code corresponding to each device in the first main wiring diagram is obtained based on the graphic element specification definition, and each device in the first main wiring diagram is optimized based on the scalable vector graphics code to obtain a target main wiring diagram.
8. A device for automatically laying out the main wiring diagram of a substation, characterized in that: include: A data processing module, used for processing first data to obtain transformer parameters, wherein the first data is power grid equipment topology data; A path calculation module, for determining a plurality of buses and a bus device corresponding to each bus if the verification result of the transformer parameter is correct, and calculating a first connection relationship line with the bus device as a starting point based on the transformer parameter, the bus device and each node; The circuit drawing module is used to lay out the busbar equipment and the load equipment based on the first connection relationship circuit to obtain a first main wiring diagram; and optimize the first main wiring diagram based on the first data to obtain a target main wiring diagram.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: 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 storing a computer program, 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.
Citation Information
Cited By
Transformer substation main wiring space layout topology model construction method and system
CN121167956A