Substation secondary circuit design method based on device function area and template matching

CN116029069BActive Publication Date: 2026-07-03NR ELECTRIC CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NR ELECTRIC CO LTD
Filing Date
2022-12-02
Publication Date
2026-07-03

Smart Images

  • Figure CN116029069B_ABST
    Figure CN116029069B_ABST
Patent Text Reader

Abstract

This invention discloses a substation secondary circuit design method based on equipment functional areas and template matching. The method includes assigning descriptions to secondary equipment based on voltage level or bay; constructing secondary circuit data templates; matching the data template library based on the connection relationships of local equipment functional areas within a bay; extracting functional area connection information through a typical template information flow table; and converting the functional area connection information into actual equipment terminal connections to complete the substation secondary circuit design. This invention mutually converts the functional areas of secondary equipment with the design of secondary circuits, constructing data templates for substation secondary circuits. By improving the VF2 graphical matching algorithm, it achieves digital storage of data templates and rapid matching of complete bay information using local information from data templates. After matching, the functional area connections of the data templates are reverse-converted into equipment terminal connections, realizing automatic secondary circuit design and improving the digital design level of secondary systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a substation secondary circuit design method based on equipment functional areas and template matching, belonging to the field of substation design technology. Background Technology

[0002] Currently, the design of secondary system circuits in substations primarily relies on the electrical CAD schematics of the cabinets provided by secondary equipment manufacturers to create electrical secondary circuit schematics and wiring diagrams. However, compared to the primary system, the secondary system of a substation has numerous and complex circuits. There is currently no unified standard to guide the design of secondary circuits, requiring designers to rely on their own experience to implement the functions of various circuits and cable laying for the entire secondary system. The design process mainly involves manual drawing, which leads to problems such as low design efficiency, high error rates, and time-consuming and laborious verification of drawings.

[0003] Secondary circuit design has its unique aspects, such as circuit complexity and numerous signal devices; however, it also shares commonalities, such as the bay design across different projects and the shared design areas between different functions within a bay. Therefore, secondary circuit design can utilize templates. Currently, some applications rely on graphical templates, mostly using typical CAD bay drawings from one project as templates for application and modification in other projects. However, because templates are stored as CAD drawings, several limitations exist: first, the internal connection relationships cannot be represented through structured data, failing to reflect differences between templates; second, matching graphical templates manually becomes inaccurate over time; and third, because the drawing templates remain graphical and do not structure the connection data, advanced application development such as automated connection design is limited.

[0004] Therefore, with the continuous improvement of the digitalization level of power systems, based on the characteristics of secondary circuit design and the current application status, it is essential to propose a new secondary circuit design template and template matching design method, thereby laying the foundation for the automatic design of secondary circuits and improving the digital design level of secondary equipment. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a substation secondary circuit design method based on equipment functional area and template matching. It can quickly match complete data templates through local design information and finally extract interval connection information through typical template information flow table to complete automatic design. This solves the problem of digitization of secondary design templates and improves the level of digital design of secondary equipment.

[0006] To achieve the above objectives, this invention provides a substation secondary circuit design method based on equipment functional areas and data template matching, comprising:

[0007] Describe secondary equipment based on voltage level or interval;

[0008] Secondary equipment is distinguished according to the secondary equipment allocation description, and secondary circuit data templates are constructed based on the distinguished secondary equipment, and a data template library is established;

[0009] Based on the connection relationship matching data template library of functional areas of local equipment in the bay, the connection information is extracted through the typical template information flow table to complete the substation secondary circuit design.

[0010] Furthermore, the construction of the secondary circuit data template based on the distinguished secondary equipment includes:

[0011] The device logic functions of the secondary equipment are divided into several functional areas and labeled accordingly.

[0012] Based on the loop connection relationship of the interval secondary loop design, the functional areas involved in the interval design are extracted, and the loop connection relationship in the secondary loop design is transformed into the connection relationship of the functional areas.

[0013] The connection relationships of functional areas are converted into topological graphs, the topological graph information is calculated and stored, and a secondary loop data template is constructed.

[0014] The division of the functional areas is based on location name, voltage level, and main line type.

[0015] Furthermore, the functional areas involved in the partition design include:

[0016] The secondary circuit design template includes the equipment involved and the functional areas used by all equipment in the secondary circuit design template.

[0017] Furthermore, when converting the loop connection relationship in the secondary loop design into the connection relationship of functional areas, a connection between functional areas of different secondary equipment is recorded as a functional area connection if there is at least one connection between them.

[0018] Furthermore, the conversion of the connection relationships of functional areas into a topological graph includes:

[0019] Secondary devices are considered nodes, the functional areas of secondary devices are considered ports of the nodes, and the connections between the functional areas of secondary devices are considered boundaries.

[0020] Based on the connection relationships of functional areas, the topology is constructed by connecting the ports of the nodes at the boundaries.

[0021] Furthermore, the topological graph information is calculated and stored, and a secondary loop data template is constructed, including:

[0022] The secondary devices are instantiated according to the names of the actual intervals, and Table 1 is constructed based on the information of the instantiated secondary devices. Table 1 includes the name of the secondary device, the description of the secondary device, and the attributes of the secondary device.

[0023] Construct a main table to store information about the current secondary circuit data template, including a list of secondary devices, a list of connections between functional areas of secondary devices, a description of the secondary devices, and a unique hash value for the current secondary circuit data template. The hash value is obtained using the VF2 graph matching algorithm.

[0024] Based on the labeling information of functional areas and the description information of secondary devices, the connection relationship of functional areas is abstracted into nodes and ports, where functional areas are represented as ports and nodes are secondary devices. The connection information of ports and nodes is stored and constructed from Table 2; the connection information of nodes includes the starting node and ending node of the node connection, as well as the port of the node connection.

[0025] Extract the loop connection relationships of the interval secondary loop design to construct an information flow database; the information flow database includes the starting functional area code, the starting secondary equipment code, the ending functional area code, the ending secondary equipment code, the information type, and the information requirements.

[0026] Furthermore, the connection relationship matching data template library based on the functional regions of interval local devices includes:

[0027] After establishing the data template library, the improved graph matching algorithm VF2 is used to match the subgraphs of the secondary loop data templates with the data template library.

[0028] Furthermore, the matching of subgraphs of the secondary loop data template with the data template library using the improved graph matching algorithm VF2 includes:

[0029] When using the same nodes, if the boundary of the parent graph exists but the boundary of the child graph does not exist, the parent graph and the child graph are classified as the same type of graph, and the boundary of the parent graph is cleared before matching.

[0030] If there are two nodes with multiple edges, after traversing and matching, if the boundary node of the parent graph can accommodate the subgraph, then the boundary corresponding to that node is considered to be replaceable as the boundary of the subgraph.

[0031] The topological graph is input into the improved graph matching algorithm to determine whether the connection relationship of the functional areas of the interval local devices is isomorphic to the parent graph. If it is isomorphic, it is matched with the data template library.

[0032] Furthermore, the step of extracting connection information through a typical template information flow table to complete the substation secondary circuit design includes:

[0033] After matching the actual interval data template, the device functional areas are matched with the data template, and the functional area connections are converted back into connections between device terminals, thus completing the design of the secondary circuit.

[0034] Furthermore, the functional area connections are re-converted into connections between device terminals, including:

[0035] Based on the logic of converting different functional modules of the equipment into functional areas, the connection between functional areas is converted into the connection between the terminal blocks of the equipment, and the connection between functional areas is mapped to the connection between actual terminal blocks.

[0036] The beneficial effects achieved by this invention are as follows:

[0037] This invention provides a substation secondary circuit design method based on equipment functional areas and template matching. By converting the functional areas of secondary equipment with the design of secondary circuits, a data template for the substation secondary circuit is constructed. By improving the graphic matching algorithm VF2, the digital storage of the data template and the rapid matching of complete interval information through local information of the data template are realized.

[0038] By reversing the connection of the functional areas of the matched data template into the connection between the device terminals, the automatic design of the secondary circuit is realized. This solves the problems of low efficiency and high error rate in the design of the secondary system in the current substation from the source, and improves the digital design level of the secondary system. Attached Figure Description

[0039] Figure 1 This is a flowchart of a substation secondary circuit design method based on equipment functional areas and template matching provided in an embodiment of the present invention;

[0040] Figure 2 This is a connection example diagram of the functional areas in the substation secondary circuit design method based on equipment functional areas and template matching provided in the embodiments of the present invention;

[0041] Figure 3 This is an example diagram of the abstracted topology in the substation secondary circuit design method based on equipment functional areas and template matching provided in this embodiment of the invention;

[0042] Figure 4 This is an example diagram of the partial connection of the bay in the substation secondary circuit design method based on equipment functional areas and template matching provided in the embodiments of the present invention;

[0043] Figure 5 This is a topological example diagram of the local information of the bay in the substation secondary circuit design method based on equipment functional areas and template matching provided in the embodiments of the present invention. Detailed Implementation

[0044] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.

[0045] The embodiments of the present invention provide a substation secondary circuit design method based on equipment functional areas and template matching. By converting the functional areas of secondary equipment with the design of secondary circuits, a data template for substation secondary circuits is constructed. By improving the graphic matching algorithm VF2, the digital storage of the data template is realized, and the complete information of the interval is quickly matched through the local information of the data template. After matching, the functional area connection of the data template is reversed to the connection between the equipment terminals, realizing the automatic design of secondary circuits. Thus, the problem of low efficiency and high error rate in the current substation secondary system design is solved from the source when designing secondary cabinets, and the digital design level of the secondary system is improved.

[0046] This invention provides a substation secondary circuit design method based on equipment functional areas and template matching, such as... Figures 1 to 5 As shown, the specific steps include the following:

[0047] Step 1: Based on the functional characteristics of the secondary equipment and the design requirements of the secondary circuit, the secondary equipment is described using "component codes", and the equipment logic functions of the secondary equipment are divided into several functional areas, which are then identified using unique codes.

[0048] First, based on the logical functions and secondary circuit design characteristics of the secondary equipment, the naming rule of "location name + voltage level (optional) + main wiring form (optional)" is adopted. The logical circuits of the secondary equipment are divided into functional areas such as trip output - 220kV - double busbar, remote signaling, current circuit, control circuit, voltage circuit, DC power supply, input circuit, circuit breaker disconnector position - 220kV - double busbar, voltage transformer output, current transformer output, etc., and each functional area is assigned a unique code for identification. The database stores the functional area as the port number of the equipment. The functional area codes are shown in Table 1. To improve template diversity, custom functional areas can be set, such as "Jiangsu region: trip output - 220kV - double busbar" as a custom area. Its corresponding connection method is different from "trip output". Custom functional areas require a unique functional area code.

[0049] Table 1 Functional Area Codes:

[0050]

[0051] Secondly, a unique description is assigned to secondary equipment at different voltage levels or intervals as the basis for distinguishing secondary equipment, as shown in Table 2. The "component code" of secondary equipment is unique within the library, named using the structure of equipment code + serial number + description (optional). Component description names cannot be duplicated, but equipment names can have different instance names. Secondary equipment includes, but is not limited to, protection equipment; switch cabinets, terminal boxes, etc., are also applicable to this method.

[0052] Table 2 Secondary Equipment Codes

[0053]

[0054] Step 2: Based on the loop connection relationship of the secondary loop design, extract the functional areas involved in the secondary loop design and convert the loop connection relationship of the secondary loop design into the connection of the functional areas.

[0055] Based on the loop connection relationship designed for the secondary circuits with intervals, the connection relationship between secondary equipment is transformed into the connection relationship between different functional areas, as follows: Figure 2 The diagram shown is a typical schematic of the functional area connection of a 110kV line bay. Figure 2 In this diagram, the connection between "Line Protection: Current Loop" and "Current Transformer Terminal Box: Current Loop" indicates a connection between corresponding functional areas of secondary equipment. "Line Measurement and Control: Input" has two connection relationships with "Line Protection: Remote Signaling" and "Circuit Breaker Mechanism Box: Remote Signaling," meaning that the remote signaling of both secondary devices is connected to the input of the line measurement and control system. When there is at least one connection between functional areas of different secondary equipment, it is recorded as one functional area connection. Multiple connections within the same functional area between secondary equipment are recorded only once. Figure 2 The functional area connection relationships of the line bays shown correspond to the connection relationships in the actual secondary circuit design.

[0056] Step 3: Abstract the connection of functional areas into a topological graph with boundaries and nodes, calculate the hash value using the graph matching algorithm VF2, store the topological graph information, and establish a secondary loop data template.

[0057] After determining the functional area connection relationship of the interval in step 1, as shown in Table 3, the secondary equipment is first instantiated according to the actual interval's secondary equipment name. The information of the instantiated secondary equipment is stored in Table 1. The data in "Table 1" stores the device instantiation code and component code, including the name of the secondary equipment, the component code of the secondary equipment, and the secondary equipment's remarks attributes.

[0058] Table 3 Device Codes (Database from Table 1)

[0059]

[0060] Secondly, as shown in Table 4, a master table is created to store the information of the current data template. The master table includes a list of secondary equipment, a connection list of the functional areas of the secondary equipment, a description of the secondary equipment, and a unique hash value for the current secondary loop data template. The secondary equipment list contains all the secondary equipment included in the interval secondary loop design. The connection list of the functional areas of the secondary equipment only represents the connection relationship between the equipment. The hash value is a unique value in the database and can be used as a mark to determine whether two intervals are consistent.

[0061] Table 4 Database Main Table

[0062]

[0063] Then, according to the functional area codes shown in Table 1 and the device codes in Table 3, the connection information of the secondary device functional areas is abstracted into nodes and ports. The functional area is represented by a port, and the node is the secondary device. If two secondary devices have connections to multiple functional areas, when there are two or more functional area connections between secondary devices, they are represented by {X1, X2, ...} and {F1, F2, ...}. X1, X2, F1, and F2 represent specific functional area codes, X1~F1 and X2~F2 represent connections between two functional areas, and so on. As shown in Table 5, ports 3 and 2 of A2 are connected to ports 3 and 6 of N2, respectively.

[0064] Table 5 Node and Port Information (Database from Table 2)

[0065] node port node port A1 4 N1 4 A1 2 N3 2 A1 0 N4 0 A1 1 N2 6 A2 {3,1} N2 {3,6} A2 0 N4 0 DC1 5 A1 5 DC1 5 N2 5 N2 3 N4 3

[0066] After obtaining the connection and port information from Table 5, ports of the same device are plotted on a single node, and connections between two ports are made using connecting lines. The final graph is shown below. Figure 3 As shown. Each circular node represents a secondary device, and each edge connects to... Figure 2 The port and function area code correspond to the information in the function area.

[0067] After determining the topology, the VF2 graph matching algorithm can be used to calculate a unique hash value for the topology, as shown in the code example below. Finally, the calculated hash value is stored in the database as the hash attribute of the main table. When the hash values ​​of two topologies formed by abstracting two interval information are exactly the same, it indicates that the two graphs are isomorphic and can be considered as the same quadratic loop data template.

[0068] Example of calculating hash value:

[0069] First, a new graph is drawn. Then, the graph's boundaries, nodes, and node attributes are added. Next, all nodes, node types, and relationships between node edges are added to the graph. Based on the constructed boundary and node attributes, the graph's hash value is calculated using the `weisfeiler_lehman_graph_hash` method. The specific code implementation includes:

[0070] G12 = nx.Graph() #5x5 grid / / First, draw a new graph, then add the graph's boundaries and nodes, as well as node attributes;

[0071] G12.add_node('A1',type='XL_01_110')

[0072] G12.add_node('A2',type='DL_01_110')

[0073] G12.add_node('N1',type='PT_01_110')

[0074] G12.add_node('N2',type='CK_01_110')

[0075] G12.add_node('N3',type='CT_01_110')

[0076] G12.add_node('N4',type='CZX_110')

[0077] G12.add_node('DC1',type='DC_01') / / Add all nodes and node types to the graph;

[0078] G12.add_edges_from([("A1","N1",{"Area1":"4","Area2":"4"}),("A1","N3",{"Ar ea1":"2","Area2":"2"}),("A1","N4",{"Area1":"0","Area2":"0"}),("A1","N2",{"Area1":"1","Area2":"6"}),("A2","N2",{"Area1":{"3","1"},"Area2":{"3","6"}}),("A2","N4",{"Area1":"0","Area2":"0"}),("DC1","A1",{"Area1":"5","Area2":"5"}),("DC1","N2",{"Area1":"5","Area2":"5"}),("N2","N4",{"Area1":"3","Area2":"3"})]) / / Add the relationships between all node edges into the graph;

[0079] Hash = weisfeiler_lehman_graph_hash(G12, edge_attr = "Area1,Area2", node_attr = 'type'); / / Finally, based on the constructed boundary attributes Area1, Area2 and node type attribute, the hash value of the graph is calculated using the weisfeiler_lehman_graph_hash method;

[0080] The interval connection information of secondary equipment is extracted and stored in the database as an information flow table. The information flow table includes the following attributes: StartCode (starting functional area code), StartDevice (starting device code), EndCode (ending functional area code), EndDevice (ending device code), InfoType (information type), and InfoRequirement (information requirement). See Table 6 below. StartCode and StartDevice, EndCode and EndDevice represent the starting and ending functional areas and the devices within those areas involved in the information flow. InfoType represents a specific information type, which has different enumeration values ​​in different functional area groups. The same signal may have different functional partitions between different devices; for example, a device interlock (line protection) signal is issued by the remote signaling of the line protection device, but should be an input signal in the measurement and control device. InfoRequirement is the information filling attribute, with M indicating mandatory and O indicating optional.

[0081] Table 6 Information Flow Table

[0082]

[0083] At this point, the main table, sub-table 1, sub-table 2, and information flow table data are stored in the database as a complete secondary loop data template, and a typical design template is established.

[0084] Step 4: After establishing the data template library, the VF2 graph matching algorithm is improved to match the subgraphs of the secondary circuit data template with the data template. That is, the data template library is quickly matched by the connection relationship of the functional areas of the interval local equipment. Finally, the interval connection information is extracted by the typical template information flow table, and the functional area connection is reversed to the connection between the equipment terminals, thereby completing the automatic design.

[0085] Currently, the VF2 subgraph isomorphic graph matching algorithm cannot solve two problems: one is... Figure 3 When matching a subgraph with multiple boundaries from A2 to N2, if the number of boundaries between nodes in the subgraph is less than that in the parent graph, the algorithm considers it to be non-homogeneous. However, the problem studied in this method considers the subgraph to be a subgraph with template intervals. Secondly, when the subgraph is a part of the parent graph and the parent graph forms a cycle, it is impossible to match the main graph. Figure 3 After nodes N1, A2, and N4 form a loop, the graph of N1 A2 will no longer match the attached graph.

[0086] To address the above issues, two methods were introduced to improve the original graph matching algorithm VF2. For issue 1, when using the same node, if the boundary of the parent graph exists but the boundary of the child graph does not, it is still considered to belong to the same type of graph. During matching, the boundary of the parent graph is actively cleared before matching.

[0087] Example of VF2 boundary matching optimization algorithm for graph matching:

[0088] For all parent and subgraphs that need to be processed, match the boundaries in the subgraph and the parent graph according to the node types of the boundary start and end points, and remove any subgraph boundaries that do not exist in the parent graph. This avoids judging the graphs as non-homogeneous when matching the parent graph because the subgraph does not contain the parent graph's boundaries. The specific code implementation includes:

[0089]

[0090]

[0091] Each node removes all boundaries that exist in the parent graph but not in the child graph.

[0092] return G11

[0093] Regarding question 2, if two nodes have multiple edges, after traversing and matching, if the boundary node of the parent graph can accommodate the subgraph, then the boundary corresponding to that node can be replaced with the boundary of the subgraph without affecting the matching result. The code for this method is shown below.

[0094] Example of VF2 subgraph cycle matching optimization algorithm:

[0095] Based on node type, the boundaries of the parent and subgraphs are matched. If a node within a cycle appears in the parent graph but not in the subgraph, it is determined that the node has no impact on the matching of the subgraph and parent graph, and the node is deleted. The cycle in the parent graph is then broken, and the subgraph completes the matching when the parent graph forms a cycle. The specific code includes:

[0096]

[0097]

[0098] After the algorithm was improved, in practical applications, designers only need to connect information using interval functional areas with fewer secondary devices, such as... Figure 4 As shown. Then, following the method shown in step 3, the connections between functional areas are transformed into a new topology graph, as follows. Figure 5 As shown.

[0099] Finally, the improved VF2 graph matching algorithm was used to match the graphs in the data template library with the local interval information. It is worth noting that multiple data templates may contain this local interval connection information; the more local interval information configured, the more accurate the matching result. The final matching results are shown below, confirming the feasibility of the matching algorithm.

[0100] The result of whether the subgraph is isomorphic is: True

[0101] Matching result: {'A1':'Q1','N4':'Q2','N2':'Q3','N3':'Q4'}

[0102] Example: Improved VF2 algorithm matching code:

[0103] First, a template graph is constructed based on a typical quadratic interval, creating its nodes, node types, boundaries, and boundary attributes. Then, based on the actual application, a subgraph is constructed using minimal connection information, creating its nodes, node types, boundaries, and boundary attributes. Finally, the graph within the template and the subgraph are checked for a match; if they match, the matching result is output. The specific code includes:

[0104] G12 = nx.Graph() #5x5 grid / / Create a template graph;

[0105] G12.add_node('A1',type='XL_01_110')

[0106] G12.add_node('A2',type='DL_01_110')

[0107] G12.add_node('N1',type='PT_01_110')

[0108] G12.add_node('N2',type='CK_01_110')

[0109] G12.add_node('N3',type='CT_01_110')

[0110] G12.add_node('N4',type='CZX_110')

[0111] G12.add_node('DC1',type='DC_01') / / Creates all nodes and node types of the graph respectively;

[0112] G12.add_edges_from([("A1","N1",{"Area1":"4","Area2":"4"}),("A1","N3",{"Ar ea1":"2","Area2":"2"}),("A1","N4",{"Area1":"0","Area2":"0"}),("A1","N2",{"Area1":"1","Area2":"6"}),("A2","N2",{"Area1":{"3","1"},"Area2":{"3","6"}}),("A2","N4",{"Area1":"0","Area2":"0"}),("DC1","A1",{"Area1":"5","Area2":"5"}),("DC1","N2",{"Area1":"5","Area2":"5"}),("N2","N4",{"Area1":"3","Area2":"3"})]) / / Create all boundaries and boundary properties of the graphic respectively;

[0113] G13 = nx.Graph() #5x5 grid / / Create a subgraph;

[0114] G13.add_node('Q1',type='XL_01_110')

[0115] G13.add_node('Q2',type='CZX_110')

[0116] G13.add_node('Q3',type='CK_01_110')

[0117] G13.add_node('Q4',type='CT_01_110')

[0118] G13.add_node('Q5',type='DL_01_110') / / Creates all nodes and node types of the subgraph respectively;

[0119] G13.add_edges_from([("Q1","Q4",{"Area1":"2","Area2":"2"}),("Q1","Q3",{"Area1":"1","Area2":"6"}),("Q2","Q1",{"Area1":"0","Area2":"0"}),("Q5","Q3",{"Area1":"1","Area2":"6"})]) / / Creates all boundaries and boundary attributes of the subgraph respectively;

[0120] GM1 = isomorphism.GraphMatcher(G12, G13, node_match = lambda n1, n2: n1['type'] == n2['type'], edge_match = lambda e1, e2: e1['Area1'] == e2['Area1'] and e1['Area2'] == e2['Area2']); / / The result of whether the subgraph isomorphic is True.

[0121] / / Matching result: {'A1':'Q1','N4':'Q2','N2':'Q3','N3':'Q4'}

[0122] / / Using the isomorphism.GraphMatcher method provided by the VF2 algorithm, we calculate whether two graphs are isomorphic, and the matching result is displayed as a subgraph isomorphism. The node matching results between the two graphs are also given: / / {'A1':'Q1','N4':'Q2','N2':'Q3','N3':'Q4'}.

[0123] After the matching is completed, all information flow table data of the data template is extracted. The information flow table stores the specific connection relationship between specific functional areas. The functional area connection is reversed to the connection between the device wiring terminals. Then, the connection points of the actual secondary device terminals are calculated to realize the automatic design of the secondary circuit.

[0124] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0126] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0127] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0128] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A substation secondary circuit design method based on equipment functional areas and template matching, characterized in that: Includes the following steps: Describe secondary equipment based on voltage level or interval; Secondary equipment is distinguished according to the secondary equipment allocation description, and secondary circuit data templates are constructed based on the distinguished secondary equipment, and a data template library is established; Based on the connection relationship matching data template library of the functional areas of local equipment in the interval, the connection information is extracted through the typical template information flow table to complete the substation secondary circuit design; The construction of the secondary circuit data template based on the distinguished secondary equipment includes: The device logic functions of the secondary equipment are divided into several functional areas and labeled accordingly. Based on the loop connection relationship of the interval secondary loop design, the functional areas involved in the interval design are extracted, and the loop connection relationship in the secondary loop design is transformed into the connection relationship of the functional areas. The connection relationships of functional areas are converted into topological graphs, the topological graph information is calculated and stored, and a secondary loop data template is constructed. The division of the functional areas is based on location name, voltage level, and main line type. The connection relationship matching data template library based on the functional regions of interval local devices includes: After establishing the data template library, the improved graph matching algorithm VF2 is used to match the subgraphs of the secondary loop data templates with the data template library, including: When using the same nodes, if the boundary of the parent graph exists but the boundary of the child graph does not exist, the parent graph and the child graph are classified as the same type of graph, and the boundary of the parent graph is cleared before matching. If there are two nodes with multiple edges, after traversing and matching, if the boundary node of the parent graph can accommodate the subgraph, then the boundary corresponding to that node is considered to be replaceable as the boundary of the subgraph. The topological graph is input into the improved graph matching algorithm to determine whether the connection relationship of the functional areas of the interval local devices is isomorphic to the parent graph. If it is isomorphic, it is matched with the data template library.

2. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 1, characterized in that: The functional areas involved in the partition design include: The secondary circuit design template includes the equipment involved and the functional areas used by all equipment in the secondary circuit design template.

3. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 1, characterized in that: When converting the loop connection relationship in the secondary loop design into the connection relationship of functional areas, a connection between functional areas of different secondary equipment is recorded as a functional area connection if there is at least one connection between them.

4. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 1, characterized in that: The process of converting the connection relationships of functional areas into a topological graph includes: Secondary devices are considered nodes, the functional areas of secondary devices are considered ports of the nodes, and the connections between the functional areas of secondary devices are considered boundaries. Based on the connection relationships of functional areas, the topology is constructed by connecting the ports of the nodes at the boundaries.

5. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 4, characterized in that: Calculate and store topological graph information, and construct a secondary loop data template, including: The secondary devices are instantiated according to the names of the actual intervals, and Table 1 is constructed based on the information of the instantiated secondary devices. Table 1 includes the name of the secondary device, the description of the secondary device, and the attributes of the secondary device. Construct a main table to store information about the current secondary circuit data template, including a list of secondary devices, a list of connections between functional areas of secondary devices, a description of the secondary devices, and a unique hash value for the current secondary circuit data template. The hash value is obtained using the VF2 graph matching algorithm. Based on the labeling information of functional areas and the description information of secondary devices, the connection relationship of functional areas is abstracted into nodes and ports, where functional areas are represented as ports and nodes are secondary devices. The connection information of ports and nodes is stored and constructed from Table 2; the connection information of nodes includes the starting node and ending node of the node connection, as well as the port of the node connection. Extract the loop connection relationships of the interval secondary loop design to construct an information flow database; the information flow database includes the starting functional area code, the starting secondary equipment code, the ending functional area code, the ending secondary equipment code, the information type, and the information requirements.

6. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 1, characterized in that: The process of extracting connection information from a typical template information flow table to complete the substation secondary circuit design includes: After matching the actual interval data template, the device functional areas are matched with the data template, and the functional area connections are converted back into connections between device terminals, thus completing the design of the secondary circuit.

7. The substation secondary circuit design method based on equipment functional areas and template matching according to claim 6, characterized in that: Functional area connections have been reclassified as connections between device terminals, including: Based on the logic of converting different functional modules of the equipment into functional areas, the connection between functional areas is converted into the connection between the terminal blocks of the equipment, and the connection between functional areas is mapped to the connection between actual terminal blocks.