Method for generating substation bay protection configuration diagram based on model file

CN122947664APending Publication Date: 2026-10-20WUHAN KAIMO SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611441800.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

[0004]为了弥补现有技术的不足,本发明提出的基于模型文件的变电站间隔保护配置图生成方法,主要用于解决一般的变电站间隔保护配置图生成方法往往仅着眼于一次设备拓扑的单线图绘制,或仅将二次装置作为简单图元摆放的问题

Benefits of technology

[0015]根据本发明提供的基于模型文件的变电站间隔保护配置图生成方法,执行正交连线路径规划的步骤包括:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This invention belongs to the field of substation protection technology, specifically a method for generating substation bay protection configuration diagrams based on model files. The method includes: constructing a topology diagram of all primary equipment in the substation; dividing bays and identifying the standard bay type for each bay; pre-setting an expandable protection configuration template; semantically matching and instantiating abstract protection device nodes with actual IED devices to generate an actual protection configuration logic diagram structure; calculating the coordinate positions of all device elements; performing orthogonal connection path planning to generate virtual terminal connection lines between devices and eliminate crossovers; and outputting the substation bay protection configuration diagram. This invention achieves fully automated, highly consistent generation from model to drawing by constructing a primary topology and dividing bay types, instantiating actual IEDs and virtual terminal connections using protection configuration templates and semantic matching, and then generating SVG format bay protection configuration diagrams through automatic layout and wiring. This significantly reduces manual drawing and adapts to different engineering needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of substation protection technology, specifically a method for generating substation bay protection configuration diagrams based on model files. Background Technology

[0002] Substation bay protection configuration diagrams are core engineering drawings in relay protection design, commissioning, and operation and maintenance. They visually demonstrate the logical connections between virtual terminals of intelligent electronic devices (IEDs) such as protection devices, measurement and control devices, merging units, and intelligent terminals within each bay, as well as the relationships between these IEDs and primary equipment (such as circuit breakers, disconnectors, and instrument transformers). With the widespread adoption of smart substations based on the IEC 61850 standard, the Substation System Configuration Description (SCD) file has become a standardized data source for the functions of the entire substation's secondary systems, containing models, logical nodes, virtual terminal signals, and primary equipment topology information for all IEDs. However, automatically generating clear, standardized, and accurate bay protection configuration diagrams from SCD files remains a pressing problem to be solved in practical engineering.

[0003] Typical methods for generating substation bay protection configuration diagrams often focus only on drawing a single-line diagram of the primary equipment topology, or simply placing secondary devices as basic graphic elements, failing to fully map the protection configuration logic into the diagram. Some methods attempt template-based device matching, but the matching method is crude and lacks semantic-level verification of virtual terminal signal sets and board port capabilities, resulting in the generation results requiring extensive manual verification and adjustment. Other methods fail to fully consider the hierarchical signal flow within the bay and the representation of cross-bay wiring during automatic layout and wiring, resulting in poor graphic readability, severe wiring overlap, and difficulty in direct delivery to engineering applications. Summary of the Invention

[0004] To overcome the shortcomings of existing technologies, the substation bay protection configuration diagram generation method proposed in this invention is mainly used to solve the problem that general substation bay protection configuration diagram generation methods often only focus on drawing a single-line diagram of the primary equipment topology, or only place secondary devices as simple graphic elements.

[0005] The technical solution adopted by this invention to solve its technical problem is:

[0006] A method for generating substation bay protection configuration diagrams based on model files includes: Parse the substation model file and construct a topology diagram of primary equipment and an index linking secondary equipment to the entire substation. Based on the connectivity analysis and voltage levels of the primary equipment topology of the entire station, the bays are divided and the standard bay type of each bay is identified. Based on the standard bay type for each bay, a pre-set, expandable protection configuration template is provided; The abstract protection device node in the protection configuration template is semantically matched and instantiated with the actual IED device to generate the actual protection configuration logic diagram structure for this interval. Using intervals as the basic mapping unit, calculate the coordinate positions of all equipment elements; Based on the equipment layout, orthogonal connection path planning is performed to generate virtual terminal connection lines between equipment and eliminate crossovers; output a substation bay protection configuration diagram in scalable vector graphic format.

[0007] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the steps of constructing the primary equipment topology diagram and secondary equipment association index of the entire station include: The system specification description file (SSD) and the substation configuration description file (SCD) are analyzed. Primary equipment objects and their conductive connections are extracted from the SSD, and a topology diagram of the entire substation primary equipment is constructed with conductive nodes as vertices and equipment as edges. Extract the identifier, type, and virtual terminal connection information of all intelligent electronic devices (IEDs) from the SCD; Based on the primary device reference path associated with the IED name or logical node, establish a bidirectional association index between the IED and the device objects in the primary device topology diagram.

[0008] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the step of identifying the standard bay type of each bay includes: In the primary equipment topology diagram of the entire station, the breaks of circuit breakers and disconnectors are regarded as cutable edges, and the connected subgraphs enclosed by the cutable edges are searched as the initial interval units. Extract the voltage level attributes of the associated busbars in the bay to determine the bay voltage level; Based on the combination of primary equipment types contained in the bay and the topological connection characteristics with the busbar and transformer, the standard bay type is inferred from the pre-set rule base using a decision tree classifier.

[0009] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the preset scalable protection configuration template is defined as follows: a protection configuration template is defined for each type of standard bay. The protection configuration template includes device node type and quantity constraints, a directed edge list of virtual terminal connection relationships between nodes, and a reference range of the relative position of each node on the graphic canvas; and supports optional configuration of device nodes and replacement definition of alternative device types.

[0010] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the implementation steps for defining the optional configuration of device nodes and the replacement of alternative device types include: In the structured key-value pair file, set optional flags and a list of alternative device types for each device node; When performing instantiation replacement, the primary device type is selected first for semantic matching. If the matching fails, the matching is attempted in order of priority from the list of alternative device types. If there is no matching item among the alternative types, the node will be retained as a placeholder to be configured or removed from the protection configuration logic diagram structure, depending on the optional flag.

[0011] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the semantic matching step using three-level filtering includes: Whether the functional types of the first-level comparator are consistent; The second level compares whether the list of virtual terminal signals satisfies the minimum set of input and output signals defined in the template. The third level checks whether the number of ports on the board matches; Take the actual IED with the highest matching degree as the matching result; For nodes that fail to match completely, enable the preset alternative device types in the template to match again, or generate placeholders to be configured and output a difference report.

[0012] The method for generating substation bay protection configuration diagrams based on model files provided by the present invention includes the following steps for selecting the actual IED with the highest matching degree as the matching result: Assign weight coefficients to the three levels of filtering respectively; Calculate the weighted matching score of the candidate IEDs, and select the IED with the highest score that is higher than the preset threshold as the matching result; If all candidate IED scores are below the preset threshold, placeholders to be configured will be generated directly and marked in the difference report.

[0013] The method for generating substation bay protection configuration diagrams based on model files according to the present invention includes the following steps for generating the actual protection configuration logic diagram structure: Replace the abstract device nodes in the template with the actual IEDs selected through semantic matching; Based on the actual output signal of the instantiated device node, the virtual connection relationship in the template is precisely matched to the corresponding specific virtual terminal connection path in the SCD file; A protection configuration logic diagram structure is formed, consisting of actual equipment element nodes and directed connection edges.

[0014] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the step of calculating the coordinate positions of all equipment elements includes: The device nodes in the protection configuration logic diagram are divided into primary equipment layer, protection device layer, measurement and control unit layer and bus protection association layer according to functional hierarchy, and the vertical order of each layer is set. Initialize the horizontal position of each node within its respective hierarchy; Define the repulsive force between nodes, the spring attraction between connected nodes, the hierarchical constraint force of nodes in the same level pointing to their preset vertical coordinate, and the repulsive force between different intervals of the whole. Force-guided iterative simulations are performed until the system kinetic energy is lower than a preset threshold. Then, the node coordinates are fine-tuned by mesh snapping and minimum spacing to obtain the final layout coordinates.

[0015] According to the substation bay protection configuration diagram generation method based on model files provided by the present invention, the steps of performing orthogonal connection path planning include: Based on the port exit points of each device element, a bi-line orthogonal routing algorithm based on obstacle avoidance is used for each virtual connection line to generate a polyline path composed of vertical and horizontal segments; After all the connections are generated, the intersections are eliminated by adjusting the order of the inflection points in the middle of the polyline or by adding shared path segments, and parallel lines in the same direction are merged into a bundle of lines. The connections are distinguished by different colors and line types according to the signal type, and virtual terminal labels are automatically marked at both ends of the connection.

[0016] This invention constructs a full-site topology map with conductive nodes as vertices and primary equipment as edges by parsing the SSD and SCD model files of the substation, and establishes a bidirectional association index between IEDs and primary equipment. Based on the connectivity analysis of cutable edges, the substation is divided into bays, and a decision tree classifier is used to automatically identify standard bay types such as lines, main transformer sides, bus couplers, and bus PTs. For each bay, a preset protection configuration template is invoked, and a three-level weighted semantic matching based on function type, virtual terminal signal set, and number of board ports is used to instantiate the abstract device nodes in the template into actual IEDs in the SCD, accurately mapping the virtual terminal connection paths to form a protection configuration logic diagram. Then, a hierarchical repulsion-attraction layout algorithm is used to automatically calculate the coordinates of equipment elements, and orthogonal wiring is used to eliminate intersections and generate bundle representations. Finally, an SVG format bay protection configuration diagram is output. This achieves fully automatic generation from model to drawing, ensuring high consistency and real-time synchronization between the protection configuration diagram and the SCD file, significantly reducing the workload of manual drawing and verification. Furthermore, the template is expandable and the equipment is replaceable, adapting to the needs of different substation projects and significantly improving the design efficiency and drawing quality of the relay protection profession. Attached Figure Description

[0017] The invention will now be further described with reference to the accompanying drawings.

[0018] Figure 1This is a flowchart of the method for generating substation bay protection configuration diagrams based on model files in an embodiment of the present invention; Figure 2 This is a flowchart illustrating the semantic matching process using three-level filtering in this embodiment of the invention. Figure 3 This is a flowchart for calculating the coordinate positions of all device elements in an embodiment of the present invention. Detailed Implementation

[0019] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.

[0020] Example: like Figures 1 to 3 As shown, this embodiment provides a method for generating substation bay protection configuration diagrams based on model files, including: The steps for parsing the substation model file and constructing a topology diagram of the primary equipment and an index linking the secondary equipment to the entire substation include: This paper analyzes the Substation System Specification Description File (SSD) and Substation Configuration Description File (SCD), extracts primary equipment objects and their conductive connections from the SSD, and constructs a substation primary equipment topology graph with conductive nodes as vertices and equipment as edges. The substation primary equipment topology graph is defined as an undirected graph Gtopo=(V,E), where the vertex set V={v1,v2,…,vn} represents all conductive nodes, such as connection points and bus nodes; the edge set E={e1,e2,…,em} represents primary equipment, such as circuit breakers, disconnectors, transformers, and lines; each edge ek associates two vertices and is appended with equipment type attributes and an SSD reference identifier. Graph construction is achieved by analyzing the SSD... <conductingequipment>and <terminal>The connection relationship between elements is implemented.

[0021] Extract the identifier, type, and virtual terminal connection information of all intelligent electronic devices (IEDs) from the SCD; model each IED as an object IED={id,type,logicNodes,vTerminals}, where id is the unique identifier of the IED, type is the device type of the IED, logicNodes is the set of logical nodes contained in the IED, and vTerminals is a set of input or output virtual terminals, each virtual terminal containing attributes such as signal name, direction, and data type.

[0022] Based on the primary device reference path associated with the IED name or logical node, establish a bidirectional association index between the IED and the device objects in the primary device topology diagram. The bidirectional association index is represented by the mapping function φ(IED)→2. E and ψ(e)→2 IED Here, φ(IED) returns the set of primary device edges associated with the IED, and ψ(e) returns the set of all IEDs associated with device edge e; during index construction, the IED logical nodes are parsed... <doi>The referenced primary device path is used to locate the corresponding device edge in the topology graph.

[0023] Based on connectivity analysis of the primary equipment topology diagram of the entire station and voltage levels, bays are divided, and the standard bay type of each bay is identified. The steps include: In the primary equipment topology diagram of the entire station, the breaks of circuit breakers and disconnectors are considered as cutable edges. A connected subgraph enclosed by these cutable edges is searched as the initial interval unit; the set of cutable edges, Ecut, is defined. E contains the edges corresponding to all circuit breakers and disconnectors; after removing Ecut from Gtopo, the graph is split into several connected components {G'1,G'2,…,G'k}, which are the connected subgraphs after removing Ecut, and each connected component corresponds to an initial interval unit; the search algorithm can use disjoint-set data structure or breadth-first traversal.

[0024] Extract the voltage level attribute of the associated bus in the bay to determine the bay voltage level; for each initial bay unit, check the bus nodes adjacent to its boundary, read the voltage level attribute of the bus defined in SSD, and assign the bay voltage level.

[0025] Based on the combination of primary equipment types within a bay and its topological connections to the busbars and transformers, a decision tree classifier infers the standard bay type from a pre-built rule base. Standard bay types include line bays, main transformer side bays, bus tie bays, and bus voltage transformer bays. Decision tree rule examples: If a bay unit contains transformer equipment and has a circuit breaker in the outgoing line direction, it is determined to be a main transformer side bay; if there is only one outgoing line and no transformer, it is a line bay; if it is a circuit breaker bay connecting two different busbars, it is a bus tie bay; if it only contains bus voltage transformers, it is a bus PT bay. The rule base is stored in 'if-then' format, and the decision tree determines the type level by level based on the features.

[0026] Based on the standard bay type for each bay, a pre-defined, expandable protection configuration template is provided. This template defines the typical protection device topology, virtual terminal logical connections, and graphical constraints in a primitive-relationship diagram format. The pre-defined, expandable protection configuration template is implemented by defining a protection configuration template for each type of standard bay. This template includes constraints on the type and quantity of device nodes, a list of directed edges representing the virtual terminal connections between nodes, and a reference range for the relative positions of each node on the graphical canvas. It also supports optional configurations of device nodes and the replacement of alternative device types. The implementation steps include: In the structured key-value pair file, set optional flags and a list of alternative device types for each device node; for example, define the node structure using YAML or JSON, including the fields optional (boolean value) and altTypes (string array), such as: optional:true, altTypes:["LineProt_TypeA", "LineProt_TypeB"].

[0027] When performing instantiation replacement, the primary device type is selected first for semantic matching. If the matching fails, the matching is attempted in order of priority of the alternative device type list. The primary device type is the default type specified in the template, and the alternative types are tried in descending order of the list.

[0028] If no matching option is found among the alternative types, the node is either retained as a placeholder for configuration or removed from the protection configuration logic diagram structure based on the optional flag. If optional is true, the placeholder is retained and a message indicating missing optional configuration is displayed in the difference report; if false, the node is removed and a warning is output.

[0029] The abstract protection device node in the protection configuration template is semantically matched and instantiated with the actual IED device to generate the actual protection configuration logic diagram structure for this interval. The steps for semantic matching using three-level filtering include: Whether the functional types of the first-level comparator are consistent; The second level compares whether the list of virtual terminal signals satisfies the minimum set of input and output signals defined in the template. The third level checks whether the number of ports on the board matches; The matching result is the actual IED with the highest matching degree. The steps include: Weight coefficients are assigned to the three levels of filtering, with the weight of consistent functional types being higher than that of signal set satisfaction, and the weight of signal set satisfaction being higher than that of matching number of board ports. The weighted matching score of candidate IEDs is calculated using the following formula:

[0030] In the formula, The weighted matching score for candidate IEDs. Candidate IED; These are the weighting coefficients for function type, signal set satisfaction, and port quantity matching, respectively. and ; The function type matching degree is set to 1 if the function type of the IED device matches the template requirements, and 0 otherwise. Let the virtual terminal signal set satisfaction be denoted as follows: The minimum set of input and output signals required by the template. For the actual virtual terminal signal set of the candidate IED, if but =1, otherwise 0; To ensure the compatibility of the number of board ports, let... The number of ports required for the template. Define the number of available board ports for the candidate IED. The preset threshold is θ. The device with the highest score is selected when the device is selected; otherwise, it is determined that there is no suitable device.

[0031] Select the IED with the highest score that is above the preset threshold as the matching result; If all candidate IED scores are below the preset threshold, a placeholder to be configured is generated directly and marked as "no suitable device to match" in the difference report, while listing the closest candidate and its shortcomings.

[0032] For nodes that fail to match completely, enable the preset alternative device types in the template to match again, or generate placeholders to be configured and output a difference report.

[0033] The steps for generating the actual protection configuration logic diagram structure include: Replace the abstract device nodes in the template with the actual IEDs selected through semantic matching; Based on the actual output signals of the instantiated device nodes, the virtual connection relationships in the template are precisely matched to the corresponding specific virtual terminal connection paths in the SCD file; the specific matching process is as follows: define the template virtual connection relationship as a set of directed edges. Where sigType is the signal type; for each logical edge, based on the actual IED signal lists of source device u and target device v, a matching virtual terminal connection is searched in the SCD dataset, i.e., if there exists an Inputs node containing an external reference, it is mapped to the actual connection path. ,in, This is the identifier for the IED, corresponding to the sender of the virtual terminal connection; This refers to the output port or output virtual terminal reference on the IED, which is usually the output signal of a data object in a logical node within the IED. The identifier for the target IED, corresponding to the receiver of the virtual terminal connection; This refers to an input port or virtual input terminal reference on the target IED, typically an input data object of a logic node within the IED. If a one-to-many or many-to-one relationship exists, fuzzy matching is performed based on the signal name, with completely identical paths being preferred.

[0034] A protection configuration logic diagram structure is formed, consisting of actual equipment element nodes and directed connection edges.

[0035] Using intervals as the basic mapping unit, a hierarchical repulsion-attraction layout algorithm is employed to automatically calculate the coordinate positions of all device elements. The steps include: The device nodes in the protection configuration logic diagram are divided into primary equipment layer, protection device layer, measurement and control unit layer and bus protection association layer according to functional hierarchy, and the vertical order of each layer is set. Initialize the horizontal position of each node within its respective hierarchy; Define the repulsive force between nodes, the spring attraction between connected nodes, the hierarchical constraint force of nodes within the same level pointing to their preset ordinate, and the repulsive force between different intervals of the whole; the specific form of the force model is as follows: let the position coordinate of node i be p i =(x i ,y i The layer to which this belongs is L(i), and the preset ordinate of this layer is... The Euclidean distance between nodes i and j .

[0036] The repulsive force between nodes is constructed as follows: for all node pairs (i,j), where i≠j, a repulsive force is applied. ,in, Let be the repulsive force vector exerted on node i by node j. It is the repulsive constant. To prevent small quantities, Let be the position coordinates of node j.

[0037] The spring attraction is constructed as follows: for node pairs (i,j) ∈ E with virtual connections... logic Apply gravity ,in, Let j be the gravitational vector exerted on node i, which is connected to node j. The gravitational constant, The spring's natural length can be taken as a constant related to the interlayer spacing and signal type.

[0038] The hierarchical constraint is constructed as follows: to constrain a node to a preset ordinate in the current layer, a vertical constraint is applied. ,in, The hierarchical constraint force acts on node i and only in the y direction; For constraint strength, The y-axis unit vector. The preset ordinate of the level L(i) to which node i belongs.

[0039] The overall repulsive force of the interval is constructed as follows: Define the centroid coordinates C of the interval Q. Q =(X Q ,Y Q For two different intervals Q and R, the repulsive force applied to all nodes i within interval Q is: ,in, Let R be the repulsive force vector acting on all nodes i within interval Q, originating from another interval R. The distance between the centroids, The interval repulsion constant is Let R be the centroid coordinates of the interval R.

[0040] Force-guided iterative simulations are performed until the system kinetic energy is lower than a preset threshold. Then, the node coordinates are fine-tuned by mesh snapping and minimum spacing to obtain the final layout coordinates.

[0041] The iterative simulation uses the velocity Verlet integral method, with nodal mass taken as unit mass m. i =1, velocity v i Due to the resultant force F i Update. Define system kinetic energy. ,in, The dot product of the velocity vector itself, i.e., the square of the velocity magnitude, when The iteration stops when the kinetic energy falls below a preset threshold. Then, mesh snapping is performed on the node coordinates, i.e. g represents the mesh spacing for adsorption; then, a minimum spacing fine-tuning is performed, if the distance between any two nodes is less than d. min Then push along the direction of the line connecting them to d. min d min This represents the minimum allowable spacing between nodes.

[0042] Based on the equipment layout, orthogonal connection path planning is performed to generate virtual terminal connection lines between equipment and eliminate crossovers; output a substation bay protection configuration diagram in scalable vector graphic format.

[0043] The steps for performing orthogonal path planning include: Based on the port exit points of each device element, a bi-line orthogonal routing algorithm based on obstacle avoidance is used for each virtual connection line to generate a polyline path composed of vertical and horizontal segments; the path cost function is expressed as:

[0044] In the formula, Let L(P) be the path cost function, P be the polyline path, L(P) be the total path length, B(P) be the number of bends, and C(P) be the penalty for crossing obstacles. , , For regularization weights.

[0045] After all connections are generated, intersections are eliminated by adjusting the order of the inflection points in the middle of the polylines or by adding shared path segments, and parallel lines in the same direction are merged into a bundle. If two lines have intersection points, their inflection points are swapped or a shared path segment is added to reduce the number of intersections. When merging parallel line segments, if multiple lines are in the same direction on the same path segment and the spacing is less than the bundle threshold, they are represented as a parallel bundle, and the bundle width is dynamically adjusted according to the number of lines.

[0046] The connections are distinguished by different colors and line types according to the signal type, and virtual terminal labels are automatically marked at both ends of the connection. The virtual terminal labels are automatically extracted from the SCD based on the signal path and marked near the graphic lead-out points at both ends of the connection.

[0047] In summary, the substation bay protection configuration diagram generation method based on model files provided by this invention constructs a full-station topology diagram with conductive nodes as vertices and primary equipment as edges by parsing the substation SSD and SCD model files, and establishes a bidirectional association index between IEDs and primary equipment; it divides bays based on the connectivity analysis of cutable edges, and automatically identifies standard bay types such as lines, main transformer sides, bus couplers, and bus PTs using a decision tree classifier; it calls a preset protection configuration template for each bay, and uses three-level weighted semantic matching based on function type, virtual terminal signal set, and number of board ports to instantiate the abstract device nodes in the template into actual IEDs in the SCD, and accurately maps the virtual terminal connection paths to form a protection configuration logic diagram; it then automatically calculates the coordinates of equipment elements using a hierarchical repulsion-attraction layout algorithm, eliminates cross overlaps through orthogonal wiring, and generates bundle representations; finally, it outputs a bay protection configuration diagram in SVG format. This method enables fully automated generation from model to drawings, ensuring high consistency and real-time synchronization between protection configuration diagrams and SCD files. It significantly reduces the workload of manual drawing and verification, and the templates are scalable and the equipment is replaceable, which can adapt to the needs of different substation projects and significantly improve the design efficiency and drawing quality of relay protection.

[0048] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / doi> < / terminal> < / conductingequipment>

Claims

1. A method for generating substation bay protection configuration diagrams based on model files, characterized in that, include: Parse the substation model file and construct a topology diagram of primary equipment and an index linking secondary equipment to the entire substation. Based on the connectivity analysis and voltage levels of the primary equipment topology diagram of the entire station, the intervals are divided, and the standard interval type of each interval is identified. Based on the standard interval type for each interval, a pre-defined, scalable protection configuration template is provided; The abstract protection device node in the protection configuration template is semantically matched and instantiated with the actual IED device to generate the actual protection configuration logic diagram structure for this interval. Using the interval as the basic mapping unit, calculate the coordinate positions of all equipment elements; Based on the equipment layout, orthogonal connection path planning is performed to generate virtual terminal connection lines between equipment and eliminate crossovers; Output substation bay protection configuration diagrams in scalable vector graphics format.

2. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps for constructing a site-wide primary equipment topology map and a secondary equipment association index include: The system specification description file (SSD) and the substation configuration description file (SCD) are analyzed. Primary equipment objects and their conductive connections are extracted from the SSD, and a topology diagram of the entire substation primary equipment is constructed with conductive nodes as vertices and equipment as edges. Extract the identifier, type, and virtual terminal connection information of all intelligent electronic devices (IEDs) from the SCD; Based on the primary device reference path associated in the IED name or logical node, establish a bidirectional association index between the IED and the device objects in the primary device topology diagram.

3. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps to identify the standard interval type for each interval include: In the primary equipment topology diagram of the entire station, the breaks of circuit breakers and disconnectors are regarded as cutable edges, and the connected subgraphs enclosed by the cutable edges are searched as the initial interval units. Extract the voltage level attributes of the associated busbars in the bay to determine the bay voltage level; Based on the combination of primary equipment types contained in the bay and the topological connection characteristics with the busbar and transformer, the standard bay type is inferred from the pre-set rule base using a decision tree classifier.

4. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The method of pre-setting an extensible protection configuration template is as follows: a protection configuration template is defined for each type of standard interval. The protection configuration template includes device node type and quantity constraints, a list of directed edges for virtual terminal connection relationships between nodes, and a reference range for the relative position of each node on the graphic canvas. It also supports optional configuration of device nodes and replacement definitions of alternative device types.

5. The method for generating substation bay protection configuration diagrams based on model files according to claim 4, characterized in that, The implementation steps for defining the optional configurations of device nodes and the replacement of alternative device types include: In the structured key-value pair file, set optional flags and a list of alternative device types for each device node; When performing instantiation replacement, the primary device type is selected first for semantic matching. If the matching fails, the matching is attempted in order of priority according to the list of alternative device types. If there is no matching item among the alternative types, the node will be retained as a placeholder to be configured or removed from the protection configuration logic diagram structure, depending on the optional flag.

6. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps for semantic matching using three-level filtering include: Whether the functional types of the first-level comparator are consistent; The second level compares whether the list of virtual terminal signals satisfies the minimum set of input and output signals defined in the template. The third level checks whether the number of ports on the board matches; Take the actual IED with the highest matching degree as the matching result; For nodes that fail to match completely, enable the preset alternative device types in the template to match again, or generate placeholders to be configured and output a difference report.

7. The method for generating substation bay protection configuration diagrams based on model files according to claim 6, characterized in that, The steps for selecting the actual IED with the highest matching degree as the matching result include: Assign weight coefficients to the three levels of filtering respectively; Calculate the weighted matching score of the candidate IEDs, and select the IED with the highest score that is higher than the preset threshold as the matching result; If all candidate IED scores are lower than the preset threshold, a placeholder to be configured is generated directly and marked in the difference report.

8. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps for generating the actual protection configuration logic diagram structure include: Replace the abstract device nodes in the template with the actual IEDs selected through semantic matching; Based on the actual output signal of the instantiated device node, the virtual connection relationship in the template is precisely matched to the corresponding specific virtual terminal connection path in the SCD file; A protection configuration logic diagram structure is formed, consisting of actual equipment element nodes and directed connection edges.

9. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps for calculating the coordinate positions of all device elements include: The device nodes in the protection configuration logic diagram are divided into primary equipment layer, protection device layer, measurement and control unit layer and bus protection association layer according to functional hierarchy, and the vertical order of each layer is set. Initialize the horizontal position of each node within its respective hierarchy; Define the repulsive force between nodes, the spring attraction between connected nodes, the hierarchical constraint force of nodes in the same level pointing to their preset vertical coordinate, and the repulsive force between different intervals of the whole. Force-guided iterative simulations are performed until the system kinetic energy is lower than a preset threshold. Then, the node coordinates are fine-tuned by mesh snapping and minimum spacing to obtain the final layout coordinates.

10. The method for generating substation bay protection configuration diagrams based on model files according to claim 1, characterized in that, The steps for performing orthogonal path planning include: Based on the port exit points of each device element, a bi-line orthogonal routing algorithm based on obstacle avoidance is used for each virtual connection line to generate a polyline path composed of vertical and horizontal segments; After all the connections are generated, the intersections are eliminated by adjusting the order of the inflection points in the middle of the polyline or by adding shared path segments, and parallel lines in the same direction are merged into a bundle of lines. The connections are distinguished by different colors and line types according to the signal type, and virtual terminal labels are automatically marked at both ends of the connection.