Visualization and optimization layout method and system based on secondary loop model and medium
Through the visualization and optimized layout method based on the secondary circuit model, a complete electrical full-circuit connection diagram of the substation is provided, which solves the problems of secondary circuit misdesign and difficulty in operation and maintenance, and improves operation and maintenance efficiency and safety.
Patent Information
- Application Number
- CN202410923036.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-18
AI Technical Summary
Accidents such as misdesign, miswiring, and miswiring of secondary circuits in substations occur frequently. Existing technologies cannot carry out safety management, control, and equipment operation and maintenance through digital and intelligent means, resulting in difficult operation and maintenance work and unfavorable safe operation.
Using the visualization and optimization layout method based on the secondary circuit model, it provides a complete and clear electrical full-circuit connection relationship by obtaining the full-station secondary circuit model file analysis, identifying parallel links, merging data, replacing graphic elements, and performing layout optimization. picture.
It achieves an accurate visual display of the secondary circuit of the substation, reduces operation and maintenance risks, improves operation and maintenance efficiency and safety, and solves the problems of complex loop search, complicated automatic drawing logic of parallel links, and unsightly layout.
Smart Images

Figure CN118797940A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a substation secondary system, and in particular to a visualization and optimization layout method, system and medium based on a secondary circuit model. Background Art
[0002] The electrical circuits formed by connecting the secondary equipment of the substation according to certain functional requirements are collectively referred to as secondary wiring circuits or secondary circuits. They are an indispensable part of ensuring the safe production, economic operation and reliable power supply of the power system. They are also important circuits for the correct operation of relay protection, isolation of faulty lines and ensuring the safety of the power grid. In recent years, secondary operation accidents caused by secondary misoperations such as misdesign, miswiring, miswiring and missed isolation of the secondary circuit of the substation have occurred frequently. Affected by factors such as the complexity of the electrical secondary principle and the non-intuitive operation object, the construction of the secondary circuit has always been subject to high operation risks and difficult control. There is no systematic research at home and abroad. At present, the secondary system operation and maintenance of the primary and secondary equipment of the substation are highly dependent on secondary drawings. The secondary drawings of various types and manufacturers of equipment in the substation are independent and scattered. There is no signal hierarchy and model association between the drawings, which seriously limits the operation and maintenance personnel to carry out equipment acceptance, regular inspection and troubleshooting, construction review and other operation and maintenance work based on the drawings. At the same time, due to the lack of a complete secondary system model, the safety measures analysis and troubleshooting of the secondary system can only be carried out based on experience, and it is impossible to carry out safety control and equipment operation and maintenance through digital and intelligent means, which is not conducive to the safe operation and efficient operation and maintenance of the power grid.
[0003] Chinese patent publication number CN112688425A discloses a smart substation secondary circuit visualization system based on IEC61850, which includes an SCD file parsing module, a secondary circuit association storage module, a data flow statistics module and an interface display module.
[0004] The Chinese patent with publication number CN114089067A discloses a substation electrical secondary circuit visualization system, including a cable secondary circuit modeling module, a cable secondary circuit visualization display module, a secondary safety ticket automatic generation module, a tripping and closing circuit monitoring module, a mobile inspection module, an RFID smart label generation module and a three-dimensional visualization display module.
[0005] The above patents have not solved the problems of complex and difficult loop search, complex logic of automatic mapping of complex parallel links, and unsightly layout, and the visualization effect is not good. Summary of the invention
[0006] The technical problem to be solved by the present invention is as follows: In view of the above-mentioned problems in the prior art, a visualization and optimization layout method, system and medium based on a secondary circuit model are provided to provide a complete and clear connection relationship diagram of the entire electrical circuit.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0008] A visualization and optimization layout method based on a secondary loop model comprises the following steps:
[0009] S1) obtaining and parsing the secondary circuit model file of the entire station to obtain model elements;
[0010] S2) traverse all cable cores, find the links directly connected and indirectly connected to its two ends according to the model elements of the target cable core, and obtain the information data of the secondary loop link with the target cable core as the search entrance;
[0011] S3) identifying the parallel links in the secondary loop link, and constructing corresponding component templates to replace the parallel links, and merging the data of the secondary loop link according to the replaced parallel links;
[0012] S4) According to a preset primitive mapping relationship, the remaining model elements in the secondary loop link are replaced with corresponding primitives, and the secondary loop link is visualized.
[0013] Further, in step S2, searching for links directly connected to and indirectly connected to both ends of the target cable core according to the model elements of the target cable core includes:
[0014] S21) obtaining terminal information at both ends of the target cable core and LoopFun loop description attributes;
[0015] S22) taking the terminal of the target cable core as the target terminal, searching the line group whose terminal information of the starting terminal or the end terminal matches the target terminal in the standardized physical connection relationship model, selecting the line group containing the LoopFun loop description attribute of the target cable core from the line groups as the target line group, and saving the loop link data of the target line group;
[0016] S23) Taking the terminal of the target wire group as the new target terminal, traversing the standardized physical link relationship model, searching for the wire group whose terminal information of the starting terminal or the ending terminal matches the target terminal, selecting the wire group containing the LoopFun loop description attribute of the target cable core from the wire group as the new target wire group, and saving the loop link data of the new target wire group until the traversal is completed.
[0017] Furthermore, when identifying the parallel link in the secondary loop link in step S3, it includes: traversing each loop data contained in the information data of the secondary loop link, recording the number of connection nodes before and after each node, if the number of adjacent connection nodes after the current node is greater than 1, then the current node is the starting point of the parallel link, if the number of adjacent connection nodes before the current node is greater than 1, then the current node is the intersection of the parallel link.
[0018] Furthermore, when the data of the secondary loop link is merged according to the replaced parallel link in step S3, it includes: reading the parallel link data by column, deduplicating the data in each column and counting the number of nodes, if the number of nodes is greater than 1, replacing the data in the corresponding column with the component number of the corresponding component template, so that each path data of the same parallel link is the same, and merging the same path data in the secondary loop link.
[0019] Furthermore, in step S4, visually displaying the secondary loop link includes:
[0020] Matching a preset layout strategy according to the type of secondary loop link;
[0021] Group the path data of the secondary circuit link according to the panel cabinets;
[0022] Calculate the coordinate values of each node of the secondary circuit link in the panel cabinet;
[0023] The coordinate value of each node is adjusted according to the layout strategy.
[0024] Furthermore, when the path data of the secondary loop link is grouped according to the cabinets, it includes: performing link deflection on the path data of the secondary loop link to obtain link deflection data, grouping the link deflection data according to the cabinets to which the nodes belong, and when the path data of the secondary loop link is link deflected, it includes: performing segmentation processing on the path data of the secondary loop link, the link segmentation is at the end of the cabinet path of the link, the link nodes after the link segmentation node do not belong to the parallel link, and the link nodes on both sides of the link segmentation node do not belong to the same device.
[0025] Furthermore, the calculation of the coordinate values of each node of the secondary circuit link in the panel cabinet includes:
[0026] Accumulate the primitive width value and the characteristic length value of the connecting line corresponding to the node along the X axis to obtain the X attribute of each node position;
[0027] Assign a fixed Y value to each node in the upper link of the cabinet;
[0028] For each node in the lower link of the screen cabinet, calculate the corresponding primitive height, the Y value of the node with the largest height value in the upper link, and the sum of the fixed interval height values as the Y value corresponding to the node.
[0029] The present invention also proposes a visualization and optimization layout system based on a secondary loop model, comprising:
[0030] A secondary circuit model parsing unit is used to obtain and parse the secondary circuit model file of the entire station to obtain model elements;
[0031] A secondary loop search unit is used to traverse all cable cores, search for links directly connected to both ends of the target cable core and indirectly connected to both ends according to the model elements of the target cable core, and obtain secondary loop link information data with the target cable core as the search entry;
[0032] The secondary loop drawing unit is used to identify the parallel links in the secondary loop link, construct a corresponding component template to replace the parallel links, and merge the data of the secondary loop link according to the replaced parallel links; it is also used to replace the remaining model elements in the secondary loop link with corresponding primitives according to a preset primitive mapping relationship, and visualize the secondary loop link.
[0033] The present invention also proposes a visualization and optimization layout system based on a secondary loop model, including a computer device, wherein the computer device is programmed or configured to execute any of the visualization and optimization layout methods based on a secondary loop model.
[0034] The present invention also provides a computer-readable storage medium, in which a computer program programmed or configured to execute any of the visualization and optimization layout methods based on a secondary loop model is stored.
[0035] Compared with the prior art, the present invention has the following advantages:
[0036] The present invention establishes a mapping relationship between physical model elements and corresponding primitives, and a mapping relationship between the physical connection relationship model and the characteristic value configuration of the cable display, so as to realize the conversion of model data to graphic primitives. The present invention uses the cable core as the entrance to find the full circuit and adopts a path search algorithm to search and find. In the search process, accurate electrical circuit link data is obtained by matching component characteristic attributes and connection relationship attributes, and then the parallel sub-circuit is identified for component modeling, and the secondary circuit path data is simplified. Finally, the electrical circuit is mapped according to the mapping relationship of the primitives in the preset template, and the layout drawing calculation is performed, and then the layout is adjusted according to the composition characteristics of the primitives in the special circuit. Provide a complete and clear connection relationship diagram of the electrical full circuit for the maintenance and operation personnel of the smart substation, so that they can quickly understand the connection relationship of the electrical full circuit of the required equipment, and assist in the rapid operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of an embodiment of the present invention.
[0038] Figure 2 This is an example diagram of a simplified process of loop path search provided by an embodiment of the present invention.
[0039] Figure 3 This is an example diagram of an open-in loop according to an embodiment of the present invention.
[0040] Figure 4 This is an example diagram of an AC voltage circuit according to an embodiment of the present invention.
[0041] Figure 5 An example diagram of a component template constructed for an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The present invention is further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.
[0043] Before introducing the specific solution of this embodiment, the relevant concepts are introduced first:
[0044] The substation secondary circuit model file is a file that follows the XML format specification. It includes information model analysis of the substation SubStation element, small room Region element, panel cabinet Cubicle element, terminal block TerminalBlock element, device Unit element, device board Board element, terminal block terminal CTerminal element, device terminal DTerminal element, air switch AirSwitch element, pressure plate Strap element, change switch ChangeSwitch element, universal button ResetButton element, etc.; the standardized physical connection relationship model includes cable Cable element, cable core Wire element, and in-cabinet cable InWIre element analysis.
[0045] Among them, the Unit element represents the device, which means the device described by the device loop model file. The Board element represents the board model, and the board contains multiple DTerminal board terminal elements. The AirSwitch element represents the air switch model. The Strap element represents the pressure plate model. The ChangeSwitch element represents the transfer switch model. The ResetButton element represents the button model. The Relay element represents the relay model. The Component element represents other components in the panel cabinet or device. The Inwire element represents the cable connection line in the panel cabinet.
[0046] The Cable element describes the connection relationship between Cubicles and contains multiple Wire cable core elements. The Wire cable core element describes the connection relationship between the terminals of the inter-cabinet terminal block and contains the information data of the terminal blocks on both sides, the start terminal description StartTerminalName and the end terminal description EndTerminal, the loopType loop type, and the loopFun description attribute of the current loop. The InWire inter-cabinet cable element describes the connection relationship between the component terminals between the cabinets and contains the information data of the terminals on both sides and the loopFun loop attribute of the loop description.
[0047] Embodiment 1
[0048] This embodiment proposes a visualization and optimization layout method based on a secondary loop model, such as Figure 1 As shown, the following steps are included:
[0049] S1) obtaining and parsing the secondary circuit model file of the entire station to obtain model elements;
[0050] S2) traverse all cable cores, find the links directly connected and indirectly connected to its two ends according to the model elements of the target cable core, and obtain the information data of the secondary loop link with the target cable core as the search entrance;
[0051] S3) identifying the parallel links in the secondary loop link, and constructing corresponding component templates to replace the parallel links, and merging the data of the secondary loop link according to the replaced parallel links;
[0052] S4) According to a preset primitive mapping relationship, the remaining model elements in the secondary loop link are replaced with corresponding primitives, and the secondary loop link is visualized.
[0053] Step S1 of this embodiment extracts the physical model data and physical connection model data of the secondary model by parsing the model file. Specifically, the elements contained in the secondary circuit model file are parsed, grouped, and stored. When the secondary circuit model file of the entire station is obtained and parsed, the secondary circuit model file is first parsed, the elements contained in the file are identified and translated into object data that can be directly used by the program, and then the object data is grouped, and the object data is classified into two categories: standardized physical model and standardized physical connection model, and the model object data is output, and the model object data is stored in a readable area for subsequent use.
[0054] In step S2 of this embodiment, based on the physical model data and physical connection relationship model data obtained after the above analysis, path search and rule matching are integrated to perform secondary loop extraction. Specifically, Figure 2As shown in the figure, when searching for the links directly connected to both ends of the target cable core and indirectly connected to the target cable core according to the model elements of the target cable core, the following steps are included:
[0055] S21) obtaining terminal information at both ends of the target cable core and LoopFun loop description attributes, specifically, obtaining model object data in the readable area, and obtaining target terminal data and LoopFun loop description attributes on both sides of the target cable core according to the target cable core;
[0056] like Figure 3 As shown, in this embodiment, the A650 cable core is selected as the entry, and the A650 cable core Wire information data corresponding to the physical connection relationship is obtained in the above object set, the loopFun loop description attribute of the A650 cable core Wire and the data of the starting terminal and the end terminal on both sides are obtained, and the terminals on both sides of the A650 cable core Wire are obtained as the left cabinet terminal block terminal 1D.4 and the right cabinet terminal block terminal UD.1, and the LoopFun loop description attribute in the A650 cable core Wire is obtained as ["open-in loop"];
[0057] S22) taking the terminal of the target cable core as the target terminal, searching the line group whose terminal information of the starting terminal or the end terminal matches the target terminal in the standardized physical connection relationship model, selecting the line group containing the LoopFun loop description attribute of the target cable core from the line groups as the target line group, and saving the loop link data of the target line group;
[0058] In this embodiment, step S22 uses a path search algorithm to search for access path data. During the search process, the standardized physical connection relationship model data containing the target terminal is searched through the start terminal StartTermial, the end terminal EndTerminal and the loop description attribute loopFun contained in the standardized physical connection relationship model data, and the loop description attribute loopFun is used to filter and filter the standardized physical connection relationship model data containing the loop description attribute loopFun, and the standardized physical model data corresponding to the start terminal and the end terminal contained therein are obtained;
[0059] S23) taking the terminal of the target wire group as the new target terminal, traversing the standardized physical link relationship model, searching for the wire group whose terminal information of the starting terminal or the ending terminal matches the target terminal, selecting the wire group containing the LoopFun loop description attribute of the target cable core from the wire group as the new target wire group, and saving the loop link data of the new target wire group until the traversal is completed. In this embodiment, the standardized physical link relationship model is traversed to obtain the terminal StartTermial, the ending terminal EndTerminal and the loop description attribute loopFun, and recursively perform terminal matching and loop description attribute filtering. When there is no corresponding physical connection model data in the link search result, the branch path search is terminated;
[0060] S24) extracting the connection paths of the secondary circuits related to the terminals on both sides of the target cable core, and combining them to obtain complete secondary circuit path data including the circuit type.
[0061] like Figure 3 As shown in the figure, after obtaining the target terminal data on both sides of the A650 cable core and the LoopFun loop description attributes, the path search process is as follows:
[0062] 1. Take the obtained terminal as the target terminal and search for the wire group that has a connection relationship with it in the standardized physical connection relationship model InWire, Wire. By comparing the above obtained LoopFun loop description attribute with the LoopFun loop description attribute matched to the inter-cabinet cable wire group, if the LoopFun attribute of the wire group contains the LoopFun attribute of the target cable core, then preferably filter out the obtained loop link array containing the current InWire cable and the components at both ends of the cable;
[0063] 2. If the length of the loop link array obtained by the above search is 0, store the loop link data related to the current terminal and connecting line into the link information data, return the currently stored link information data and end the current search branch; if the length of the loop link array obtained by the above search is greater than 0, proceed to the next step.
[0064] 3. Traverse the obtained loop link array, store the link information data of each loop link during traversal, obtain the opposite terminal information of the loop link respectively, and proceed to step 2 to continue searching until the link connection node and line group data are found, and then the path search is ended.
[0065] Through the above path search steps, such as Figure 4As shown, link information data including but not limited to terminal information can be obtained respectively, that is, the starting terminal corresponds to: [[1D.4]]; the end terminal corresponds to: [[UD.1, 3ZKK1.1, 3ZKK1.2, 3UD.17, 3n.B10.1a.12, 3n.B10.1a.9, 3UD.39, 3UD.40, UD.6, 1D.5]], and the obtained links on both sides are integrated to obtain the secondary circuit link information data with the target cable core as the search entrance, that is, [[1D.4, UD.1, 3ZKK1.1, 3ZKK1.2, 3UD.17, 3n.B10.1a.12, 3n.B10.1a.9, 3UD.39, 3UD.40, UD.6, 1D.5]].
[0066] The node objects contained in the above secondary loop link information data include the name of the cabinet to which it belongs, cubicleName, the device name, deviceName, the current node name, subdeviceName, the current node element type, and the node unique id.
[0067] Through the above steps, step S2 of this embodiment uses the cable core as the entrance to search the entire loop, and uses the terminal information on both sides of the cable core as the starting point for searching. During the search process, the LoopFun loop description attribute in the physical connection relationship model is used to perform inclusion relationship judgment, thereby effectively screening the searched loop path, solving the problem of complex and difficult loop search.
[0068] Step S3 of this embodiment performs secondary loop component modeling for typical topology pattern matching on secondary loop link data, including the following steps:
[0069] S31) identifying the parallel links in the secondary loop link, specifically, analyzing the topological structure of the secondary loop parallel link, identifying the typical parallel sub-loop mode, including: traversing each loop data contained in the information data of the secondary loop link, recording the number of connection nodes before and after each node, if the number of adjacent connection nodes after the current node is greater than 1, then the current node is the starting point of the parallel link, if the number of adjacent connection nodes before the current node is greater than 1, then the current node is the intersection of the parallel link;
[0070] S32) constructing a component template, specifically, constructing a model component template by identifying a typical parallel sub-circuit pattern, wherein the component template element is composed of a component template element type and component template data. The template element type number definition rule is composed of an identifier "C", a separator "_" and an ordered corresponding column containing the number of component nodes N;
[0071] S33) replacing the parallel link with the component template, merging the data of the secondary loop link according to the replaced parallel link, matching and replacing the actual secondary loop parallel link with the model component template, and merging the data to realize the componentization and simplification of the complex secondary loop, and obtaining the secondary loop path data after the complex parallel link is componentized, and merging the data of the secondary loop link according to the replaced parallel link, including: reading the parallel link data by column, deduplicating the data of each column and counting the number of nodes, if the number of nodes is greater than 1, replacing the data of the corresponding column with the component number of the corresponding component template, so that each path data of the same parallel link is the same, and merging the same path data in the secondary loop link.
[0072] by Figure 4 For example, Figure 4 The secondary loop link information data is described as [
[0074] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,4N.9.13TJQ,4N.9.249,4LD.7,3QD .18,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2],
[0075] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,4N.9.13TJR,4N.9.249,4LD.7,3QD .18,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2],
[0076] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,4N.9.13TJF,4N.9.249,4LD.7,3QD .18,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2] ];
[0078] Through step S31, the topological structure of the secondary loop parallel link is analyzed, and the typical parallel sub-loop mode is identified. By traversing each loop data contained in the secondary loop link information data, the number of connection nodes before and after each node is recorded. According to whether the number of adjacent connection nodes is greater than 1, the parallel link starting point 4N.9.242 and the parallel link intersection 4N.9.249 are judged, thereby obtaining the parallel sub-link data: [
[0079] [4N.9.242,4N.9.13TJQ,4N.9.249],
[0080] [4N.9.242,4N.9.13TJR,4N.9.249],
[0081] [4N.9.242,4N.9.13TJF,4N.9.249] ]
[0083] Through step S32, the node data of the parallel sub-link data except the first and last columns are parsed to obtain the second column of data [4N.9.13TJQ, 4N.9.13TJR, 4N.9.13TJF], obtain the standardized physical model data corresponding to each node in the data, and build a component template according to the C_3 number, such as Figure 5 As shown, its number "C_3" indicates that it is a component template type element. The number "3" appears in the sequence number 1, indicating that there are 3 parallel branch nodes in the first column of the template except for the first and last intersections. The component template data contains the data describing the node of the secondary loop link of the combined template. The specific data storage structure is a two-dimensional array. The available data description is: [
[0085] [null,4N.9.13TJQ,null],
[0086] [null,4N.9.13TJR,null],
[0087] [4N.9.242,4N.9.13TJF,4N.9.249] ]
[0089] Here, null is a placeholder for an empty value, and the position of each node in the two-dimensional array represents the relative position of the corresponding node component when it is specifically instantiated and drawn.
[0090] Through step S33, the above-mentioned parallel sub-link data is read by column, and the first column data [4N.9.242, 4N.9.242, 4N.9.242], the second column data [4N.9.13TJQ, 4N.9.13TJR, 4N.9.13TJF], and the third column data [4N.9.249, 4N.9.249, 4N.9.249] are obtained respectively. The data in each column are deduplicated and the number of nodes is counted, that is, the number of nodes in the first column is 1, the number of nodes in the second column is 3, and the number of nodes in the third column is 1. After removing the statistical data of the last column, the number of parallel branches is 3, which is recorded as the component number C_3, and a template node is constructed to replace the above-mentioned parallel sub-link data, and the replaced data is output: [
[0091] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,C_3,4N.9.249,4LD.7,3QD.18, 3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2],
[0092] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,C_3,4N.9.249,4LD.7,3QD.18, 3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2],
[0093] [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,C_3,4N.9.249,4LD.7,3QD.18 ,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2]
[0094] ]; after merging, the componentized secondary circuit path data is: [1K.1,1D.4,1ZD.1,3K.1,3QD.1,1K.16L,4LD.2,4N.9.242,C_3,4N.9.249,4LD.7,3QD.18,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2].
[0095] Through the above steps, step S3 of this embodiment identifies a typical parallel sub-loop pattern, builds a model component by identifying the typical parallel sub-loop pattern, uses the model component to match and replace the actual secondary loop parallel link, and merges the data to realize the componentization and simplification of complex secondary loops, solving the problem of complex logic of automatic drawing of complex parallel links.
[0096] Step S4 of this embodiment includes the following steps:
[0097] S41) mapping the relationship between the secondary circuit model and the graphic element library;
[0098] This embodiment prefabricates corresponding graphic elements based on the model elements in the secondary circuit of the substation, and preconfigures the display characteristic value configuration for the physical connection relationship model. The graphic element mapping relationship is shown in Table 1. The corresponding graphic elements are preset for standard physical models such as terminal block terminal CTerminal, device terminal DTerminal, air switch AirSwitch, pressure plate Strap, change switch ChangeSwitch, universal button ResetButton, etc. in the secondary circuit model file, and the characteristic value configuration of the preset drawing display is configured for physical connection models such as cable Cable, cable core Wire, and cable InWIre in the cabinet. The characteristic value configuration includes: line width, line color, etc. Thus, the mapping relationship between the physical model elements and the corresponding graphic elements, and the mapping relationship between the physical connection relationship model and the characteristic value configuration of the cable display are established, realizing the conversion of model data to graphic elements.
[0099] Table 1 Comparison table of some models and graphics elements
[0100]
[0101]
[0102] Furthermore, in this embodiment, the component template of the parallel link can also be preset in the graphic element library. Correspondingly, the secondary loop link information data obtained in step S2 also includes component template data cellGroup, which contains node data describing the combined template secondary loop link, and the specific data storage structure is a two-dimensional array. Thus, step S3 omits the process of constructing the component template.
[0103] S42) matching a preset layout strategy according to the type of the secondary loop link;
[0104] For example, when the secondary circuit link is an open-in circuit, the panel cabinet is laid out horizontally, and the circuit link adopts an upper and lower horizontal distribution layout strategy.
[0105] S43) grouping the path data of the secondary loop link according to the panel cabinets;
[0106] Specifically, the secondary loop data path is grouped according to the screen cabinet, the arrangement order of the screen cabinets in the loop is recorded, and the screen cabinet unit instance CubicleEntity is initialized; taking the componentized secondary loop path data [1K.1, 1D.4, 1ZD.1, 3K.1, 3QD.1, 1K.16L, 4LD.2, 4N.9.242, C_3, 4N.9.249, 4LD.7, 3QD.18, 3QD.17, 3N.B10.1031, 3N.B10.L, 3N.B10.1032, 3QD.39, 3QD.40, 3K.2, 1ZD.6, 1D.5, 1K.2] in step S3 as an example, the following steps are included:
[0107] S401, performing link deflection on the path data of the secondary loop link to obtain link deflection data;
[0108] First, the secondary loop path data is segmented. The link segmentation follows the following principles: 1. The link segmentation is at the end of the link cabinet path. 2. The link node after the link segmentation node should not belong to the parallel link; 3. The link nodes on both sides of the link segmentation node do not belong to the same device. After the segmentation is completed, the upper link path data [1K.1, 1D.4, 1ZD.1, 3K.1, 3QD.1, 1K.16L, 4LD.2, 4N.9.242, C_3, 4N.9.249] are obtained respectively.
[0109] Lower link path data:
[0110] [4LD.7,3QD.18,3QD.17,3N.B10.1031,3N.B10.L,3N.B10.1032,3QD.39,3QD.40,3K.2,1ZD.6,1D.5,1K.2]
[0111] Then, the lower link path data is reversed to obtain: [1K.2, 1D.5, 1ZD.6, 3K.2, 3QD.40, 3QD.39, 3N.B10.1032, 3N.B10.L, 3N.B10.1031, 3QD.17, 3QD.18, 4LD.7];
[0112] Finally, the upper link path data [1K.1, 1D.4, 1ZD.1, 3K.1, 3QD.1, 1K.16L, 4LD.2, 4N.9.242, C_3, 4N.9.249] and the lower link path data [1K.2, 1D.5, 1ZD.6, 3K.2, 3QD.40, 3QD.39, 3N.B10.1032, 3N.B10.L, 3N.B10.1031, 3QD.17, 3QD.18, 4LD.7] are output and recorded as link deflection data, completing the link deflection;
[0113] S402, group the link deflection data according to the cabinet to which the node belongs, such as grouping according to the cabinet name cubicleName, device name deviceName, current node name subdeviceName, current node element type type, node unique ID and other information in the node object, and obtain the cabinet node data after grouping, {66P:{topChain:[1K.1,1D.4],bottomChain:[1K.2,1D.5],order:1},114P:{topChai n:[1ZD.1,3K.1,3QD.1,1K.16L],bottomChain:[1ZD.6,3K.2,3QD.40,3QD.39,3N.B10.1032,3N.B10.L,3N.B10.1031, 3QD.17,3QD.18],order:2},117P:{topChain:[4LD.2,4N.9.242,C_3,4N.9.249],bottomChain:[4LD.7],order:3}};
[0114] S403, instantiate the screen cabinet node data obtained in step S402 according to the screen cabinets respectively, and output a data set with the screen cabinet as a unit.
[0115] S44) Calculate the coordinate values of each node of the secondary circuit link in the panel cabinet;
[0116] Specifically, the coordinate values of the physical models of each node in the secondary circuit link in the cabinet are calculated and processed, instantiated and stored in the node instance Nodes in the corresponding cabinet unit instance CubicleEntity, following the following principles:
[0117] 1. Accumulate the width value of the corresponding primitive and the characteristic length value of the connection line along the X axis, calculate the X attribute of each node position, and assign and store it in NodeEntity. For templated component nodes, such as component template element type "C_3", instantiate them according to the horizontal and vertical accumulation of node data contained in the corresponding component template data;
[0118] 2. Assign a fixed Y value to each node instance in the TopChain link in the current cabinet CubicleEntity;
[0119] 3. The Y value of each node instance in the BottomChain link in the current screen cabinet CubicleEntity is assigned the Y value of the node with the largest corresponding height value in the TopChain link data + element height + fixed interval height value.
[0120] S45) calculating and arranging the position attributes of the screen cabinet;
[0121] How to calculate the location attributes of the arranged screen cabinets is well known to those skilled in the art. This solution does not make any improvements to the specific calculation process, and the specific calculation process will not be repeated here.
[0122] S46) adjusting the coordinate value of each node according to the layout strategy;
[0123] For some special circuits, such as open circuits, AC voltage circuits, etc., it is also necessary to adjust the position attributes and wiring methods of the relevant graphics in the panel cabinet graphics group. Therefore, the circuit type is read and the layout strategy of the corresponding circuit is selected to adjust the element layout position attributes. Specifically, according to the circuit type, the corresponding layout algorithm is selected and applied to optimize the layout coordinate attributes of each node. For example, if the circuit type is an AC voltage circuit and the layout feature is a horizontal layout of the panel cabinet, the circuit link adopts a layout strategy of horizontal distribution from top to bottom, that is, it needs to be arranged from left to right in a positive direction according to the order value of the panel cabinet instance CubicleEntity, and its X-axis coordinates are accumulated to realize the layout arrangement of the panel cabinet. By adjusting the position of the panel cabinet, the position of the internal node of the panel cabinet is adjusted to achieve the adjustment of the panel cabinet and the position of the node in the panel cabinet.
[0124] S47) calculating physical connection line attributes;
[0125] Specifically, the secondary loop path data is traversed, and the wiring information between two physical models is stored in the wiring unit instance list Edges.
[0126] S48) is drawn into a graph.
[0127] Specifically, initialize the SVG canvas, traverse and parse the cabinet unit instance CubicleEntity and its internal node instance Nodes and wiring unit instance list Edges, draw the cabinet, elements and connecting lines according to their attributes, and add necessary text description content. When the drawing is completed, the secondary circuit is visualized and the corresponding secondary full circuit diagram is obtained.
[0128] Through the above steps, step S4 of this embodiment pre-configures the layout strategy according to the loop type, groups the secondary loop data path by screen cabinet, records the arrangement order of the screen cabinets in the loop, calculates and processes the coordinate values of the physical models of each node in the secondary loop link in the screen cabinet, calculates the position attributes of the arranged screen cabinets, reads the loop type, and selects the corresponding loop layout strategy to adjust the element layout position attributes, thereby solving the problem of unsightly layout.
[0129] Embodiment 2
[0130] This embodiment proposes a visualization and optimization layout system based on a secondary loop model, including:
[0131] A secondary circuit model parsing unit is used to obtain and parse the secondary circuit model file of the entire station to obtain model elements;
[0132] A secondary loop search unit is used to traverse all cable cores, search for links directly connected to both ends of the target cable core and indirectly connected to both ends of the target cable core according to the model elements of the target cable core, and obtain information data of the secondary loop link with the target cable core as the search entry;
[0133] The secondary loop drawing unit is used to identify the parallel links in the secondary loop link, construct a corresponding component template to replace the parallel links, and merge the data of the secondary loop link according to the replaced parallel links; it is also used to replace the remaining model elements in the secondary loop link with corresponding primitives according to a preset primitive mapping relationship, and visualize the secondary loop link.
[0134] This embodiment further proposes a visualization and optimization layout system based on a secondary loop model, including a computer device, wherein the computer device is programmed or configured to execute the visualization and optimization layout method based on a secondary loop model described in the first embodiment.
[0135] This embodiment further provides a computer-readable storage medium, in which a computer program programmed or configured to execute the visualization and optimization layout method based on the secondary loop model described in the first embodiment is stored.
[0136] In summary, the present invention carries out the analysis of standardized secondary circuit models, the mapping of secondary equipment models and standard secondary graphic primitive libraries, integrates path search and rule matching to extract secondary circuit path data, completes the component construction of typical parallel sub-links based on secondary circuits, and intelligent layout optimization considering the characteristics of secondary circuits, thereby realizing the circuit search and drawing display of secondary circuit models, solving the problems of complex and difficult circuit search, complex automatic drawing logic of complex parallel links, and unsightly layout in the visualization process of secondary circuit layout models. The present invention can quickly, completely and clearly draw a connection relationship diagram of the entire electrical circuit, which is convenient for it to quickly understand the connection relationship of the entire electrical circuit of the required equipment, and assist in the rapid operation and maintenance and repair work.
[0137] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the scope of protection of the technical solution of the present invention.
Claims
1. A visualization and optimization layout method based on secondary loop model, It is characterized in that The following steps are involved: S1) obtaining and parsing the secondary circuit model file of the entire station to obtain model elements; S2) traverse all cable cores, find the links directly connected and indirectly connected to its two ends according to the model elements of the target cable core, and obtain the information data of the secondary loop link with the target cable core as the search entrance; S3) identifying the parallel links in the secondary loop link, and constructing corresponding component templates to replace the parallel links, and merging the data of the secondary loop link according to the replaced parallel links; S4) According to a preset primitive mapping relationship, the remaining model elements in the secondary loop link are replaced with corresponding primitives, and the secondary loop link is visualized.
2. The visualization and optimization layout method based on the secondary circuit model according to claim 1, It is characterized in that In step S2, searching for links directly connected to and indirectly connected to both ends of the target cable core according to the model elements of the target cable core includes: S21) obtaining terminal information at both ends of the target cable core and LoopFun loop description attributes; S22) taking the terminal of the target cable core as the target terminal, searching the line group whose terminal information of the starting terminal or the end terminal matches the target terminal in the standardized physical connection relationship model, selecting the line group containing the LoopFun loop description attribute of the target cable core from the line groups as the target line group, and saving the loop link data of the target line group; S23) Taking the terminal of the target wire group as the new target terminal, traversing the standardized physical link relationship model, searching for the wire group whose terminal information of the starting terminal or the ending terminal matches the target terminal, selecting the wire group containing the LoopFun loop description attribute of the target cable core from the wire group as the new target wire group, and saving the loop link data of the new target wire group until the traversal is completed.
3. The visualization and optimization layout method based on the secondary circuit model according to claim 1, It is characterized in that When identifying the parallel link in the secondary loop link in step S3, it includes: traversing each loop data contained in the information data of the secondary loop link, recording the number of connection nodes before and after each node, if the number of adjacent connection nodes after the current node is greater than 1, then the current node is the starting point of the parallel link, if the number of adjacent connection nodes before the current node is greater than 1, then the current node is the intersection of the parallel link.
4. The visualization and optimization layout method based on the secondary circuit model according to claim 1, It is characterized in that When merging the data of the secondary loop link according to the replaced parallel link in step S3, it includes: reading the parallel link data by column, deduplicating the data in each column and counting the number of nodes, if the number of nodes is greater than 1, replacing the data in the corresponding column with the component number of the corresponding component template, so that each path data of the same parallel link is the same, and merging the same path data in the secondary loop link.
5. The visualization and optimization layout method based on the secondary circuit model according to claim 1, It is characterized in that When visually displaying the secondary loop link in step S4, it includes: Matching a preset layout strategy according to the type of secondary loop link; Group the path data of the secondary circuit link according to the panel cabinets; Calculate the coordinate values of each node of the secondary circuit link in the panel cabinet; The coordinate value of each node is adjusted according to the layout strategy.
6. The visualization and optimization layout method based on the secondary circuit model according to claim 5, It is characterized in that When the path data of the secondary loop link is grouped according to the cabinets, it includes: performing link deflection on the path data of the secondary loop link to obtain link deflection data, grouping the link deflection data according to the cabinets to which the nodes belong, and performing link deflection on the path data of the secondary loop link, it includes: performing segmentation processing on the path data of the secondary loop link, the link segmentation is at the end of the cabinet path of the link, the link nodes after the link segmentation node do not belong to the parallel link, and the link nodes on both sides of the link segmentation node do not belong to the same device.
7. The visualization and optimization layout method based on the secondary circuit model according to claim 5, It is characterized in that Calculation of coordinate values of each node of the secondary circuit link in the panel cabinet includes: Accumulate the primitive width value and the characteristic length value of the connecting line corresponding to the node along the X axis to obtain the X attribute of each node position; Assign a fixed Y value to each node in the upper link of the cabinet; For each node in the lower link of the screen cabinet, calculate the corresponding primitive height, the Y value of the node with the largest height value in the upper link, and the sum of the fixed interval height values as the Y value corresponding to the node.
8. A visualization and optimization layout system based on secondary loop model, It is characterized in that include: A secondary circuit model parsing unit is used to obtain and parse the secondary circuit model file of the entire station to obtain model elements; A secondary loop search unit is used to traverse all cable cores, search for links directly connected to both ends of the target cable core and indirectly connected to both ends of the target cable core according to the model elements of the target cable core, and obtain information data of the secondary loop link with the target cable core as the search entry; The secondary loop drawing unit is used to identify the parallel links in the secondary loop link, construct a corresponding component template to replace the parallel links, and merge the data of the secondary loop link according to the replaced parallel links; it is also used to replace the remaining model elements in the secondary loop link with corresponding primitives according to a preset primitive mapping relationship, and visualize the secondary loop link.
9. A visualization and optimization layout system based on a secondary loop model, comprising a computer device, It is characterized in that The computer device is programmed or configured to execute the visualization and optimization layout method based on the secondary loop model according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program programmed or configured to execute the visualization and optimization layout method based on the secondary circuit model according to any one of claims 1 to 7.
Citation Information
Cited By
Processing method and device for simulation configuration file in EnergyPlus, equipment and medium
CN119646931A
Method and system for searching data of power grid protection device
CN120780773A
