Method and device for modifying power system secondary circuit model file and electronic equipment

CN116720299BActive Publication Date: 2026-10-23CHINA SOUTHERN POWER GRID COMPANY +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310736438.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2026-10-23
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

[0005]本发明实施例提供了一种电力系统二次回路模型文件的修正方法、装置及电子设备,以解决依靠人工对电力系统二次回路模型文件进行修正,准确率差的问题

Benefits of technology

[0062]本发明实施例提供一种电力系统二次回路模型文件的修正方法、装置及电子设备,通过获取待修正的目标电力系统的二次回路模型文件;建立预设的标准化图元库与目标电力系统的二次回路模型文件的数据映射关系;根据数据映射关系,将二次回路模型文件正向生成设计图;获取现场的改线数据,并根据现场的改线数据修正设计图中的数据;对修正的设计图中的数据进行重构,根据重构后的数据反向生成修正后的二次回路模型文件。本发明遵从以现场实际数据为基础的准则,通过在图上自动修正,降低了维护电力系统二次回路模型文件的难度,修正结果受主观因素影响小,修正准确率高,经修正后的目标电力系统二次回路模型文件与现场实际数据保持一致,有效保障电力系统二次回路模型文件数据的正确性,实现电网自动化数据的安全,稳定,标准,高效的运维。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116720299B_ABST
    Figure CN116720299B_ABST
Patent Text Reader

Abstract

The application provides a kind of power system secondary circuit model file revision method, device and electronic equipment.The method comprises: obtaining the secondary circuit model file of target power system to be revised;Establish the data mapping relationship between the preset standardization graphic element library and the secondary circuit model file of target power system;According to the data mapping relationship, the secondary circuit model file is forward generated design drawing;Obtain the data of on-site line change, and revise the data in design drawing according to the data of on-site line change;The data in the revised design drawing is reconstructed, and the revised secondary circuit model file is reversely generated according to the reconstructed data.The application can reduce the difficulty of maintaining power system secondary circuit model file, and the revision accuracy is high, which effectively guarantees the correctness of power system secondary circuit model file data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of power system digitization, and in particular to a method, apparatus, electronic device, and storage medium for correcting power system secondary circuit model files. Background Technology

[0002] As the intelligence level of power systems gradually improves and their digitalization level significantly increases, the digitization of secondary circuit information in power systems is an inevitable requirement for the construction of digital grids, against the backdrop of new technologies such as the Internet of Things, artificial intelligence, and digital twins.

[0003] The secondary circuit model file of the power system is created in the early stage of the power system on-site construction and is mainly generated by integration tools. However, there are situations where the on-site wiring needs to be modified during the later stage of power system construction. In order to ensure that the on-site power system secondary circuit model file is always consistent with the actual wiring, it is necessary to modify and maintain the power system secondary circuit model file. The power system secondary circuit model file is in Extensible Markup Language (XML) format. The number of lines in a single substation XML file can exceed 100,000 lines. It is very difficult to modify manually and there is a possibility of errors and security risks, which brings risks to the subsequent digital operation and maintenance of the power system.

[0004] Traditional methods of manually correcting power system secondary circuit model files based on model text are difficult, inaccurate, and inefficient. Summary of the Invention

[0005] This invention provides a method, apparatus, and electronic device for correcting secondary circuit model files of power systems, in order to solve the problem of poor accuracy when relying on manual correction of secondary circuit model files of power systems.

[0006] In a first aspect, embodiments of the present invention provide a method for correcting a power system secondary circuit model file, comprising:

[0007] Obtain the secondary loop model file of the target power system to be corrected;

[0008] Establish a data mapping relationship between a pre-defined standardized primitive library and the secondary loop model file of the target power system;

[0009] Based on the data mapping relationship, the design drawing is generated from the secondary loop model file in a forward manner;

[0010] Obtain the on-site rerouting data and correct the data in the design drawings based on the on-site rerouting data;

[0011] Based on the corrected design drawing, a corrected secondary loop model file is generated in reverse.

[0012] In one possible implementation, correcting the data in the design drawings based on the on-site rerouting data includes:

[0013] Based on the on-site rerouting data, at least one of the following corrections should be made to the data of the graphic elements in the design drawings:

[0014] Correcting text within graphic elements;

[0015] Delete the graphic elements;

[0016] Add new elements to the graphic.

[0017] In one possible implementation, before obtaining the secondary loop model file of the target power system to be corrected, the method further includes: establishing the preset standardized primitive library;

[0018] The preset standardized graphic element library is grouped according to the image rendering effect to obtain multiple graphic element libraries. Each of the multiple graphic element libraries includes at least one graphic element. The multiple graphic element libraries include at least a small room screen layout graphic element library, a cabinet layout graphic element library, a cabinet component graphic element library, a device back panel graphic element library, a terminal block graphic element library, and a secondary principle graphic element library.

[0019] In one possible implementation, the text correction in the graphic element includes one or more of the following:

[0020] The depth and width dimensions of the cabinet elements in the small room cabinet layout element library are corrected.

[0021] The height and width dimensions of the front and rear cabinet elements in the cabinet layout element library are corrected.

[0022] The number, model, and manufacturer of the table elements in the material table element library are corrected;

[0023] The numbering, description, component terminal number, and terminal connection terminal number of each component in the component library inside the cabinet are corrected;

[0024] The numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library are corrected;

[0025] The numbering and description of the terminal block elements and terminal block terminal elements included in the terminal block element library are corrected;

[0026] The numbering and connection relationships of each electronic component module included in the secondary schematic library are corrected.

[0027] In one possible implementation, the step of generating a corrected secondary loop model file from the design drawing after data correction includes:

[0028] Extract the uncorrected data and the corrected data from the design drawing to obtain a data set;

[0029] The data set is classified according to the design diagram to obtain the classified data set;

[0030] The categorized data set is saved to the database using code written in a computer programming language, and the data set is organized according to the data mapping relationship.

[0031] Based on the underlying script written by the computer program and the organized data set, the corrected secondary loop model file is generated in reverse according to the hierarchical structure of the secondary loop model file.

[0032] In one possible implementation, after generating the corrected secondary loop model file based on the data-corrected design drawing, the method further includes:

[0033] Establish a data mapping relationship between the standardized primitive library and the modified quadratic loop model file;

[0034] Based on the data mapping relationship, the corrected secondary loop model file is used to generate the corrected design drawing in a forward manner;

[0035] Verify the revised design drawings against the actual on-site rerouting conditions.

[0036] If the revised design drawing is consistent with the actual rerouting situation on site, then the above revision steps are completed.

[0037] In one possible implementation, establishing a data mapping relationship based on a pre-defined standardized primitive library and the secondary loop model file of the target power system includes:

[0038] Obtain the element information of the standard element library;

[0039] Obtain the elements of the secondary loop model file of the target power system, wherein the elements include the attributes of the elements;

[0040] Based on the primitive information and the elements, the data mapping relationship is established;

[0041] The step of establishing the data mapping relationship based on the primitive information and the elements includes:

[0042] Establish a data mapping relationship between the number, depth, and width dimensions of the cabinet elements in the cabinet layout element library and the cabinet number, depth, and width attributes of the cabinet elements in the secondary circuit model file of the target power system;

[0043] Establish a data mapping relationship between the cabinet height and width dimensions of the front and rear cabinet elements in the cabinet layout element library and the cabinet height and width attributes of the cabinet elements in the secondary circuit model file of the target power system;

[0044] Establish a data mapping relationship between the number, model, and manufacturer of the table elements in the material table element library and the equipment or component elements in the secondary circuit model file of the target power system, namely, the equipment or component number attribute, equipment or component model attribute, and equipment manufacturer attribute within the cabinet;

[0045] Establish a data mapping relationship between the number, description, component terminal number, and terminal opposite connection terminal number of each component in the component element library in the cabinet and the equipment or component in the secondary circuit model file of the target power system, the equipment or component in the cabinet, the terminal or connection point number attribute of the terminal element, and the terminal opposite connection terminal number retrieved from the internal connection element.

[0046] Establish a data mapping relationship between the numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library and the equipment or component elements in the secondary circuit model file of the target power system, the board or sub-component numbering attribute of the board element, the terminal or connection point numbering attribute of the terminal element, and the data mapping relationship between the numbering and description of the opposite side connection terminal obtained from the internal connection elements.

[0047] Establish a data mapping relationship between the terminal block elements and terminal block terminal elements included in the terminal block element library, their numbers and descriptions, and the equipment or component elements in the secondary circuit model file of the target power system, including their numbering attributes in the cabinet, the board or sub-component numbering attributes of the board elements, the terminal or connection point numbering attributes of the terminal elements, the terminal opposite connection terminal number retrieved from the internal connection elements, and the connection information of the terminal retrieved from the cable elements.

[0048] Establish a data mapping relationship between the numbering and connection relationship of each electronic component element module included in the secondary principle element library and the attribute values ​​of the cable element and cable core element in the secondary circuit model file of the target power system.

[0049] In one possible implementation, the step of generating a design drawing from the secondary loop model file in a forward manner based on the data mapping relationship includes:

[0050] Parse the secondary loop model file of the target power system, and obtain the attribute instantiation values ​​required for the data mapping relationship based on the parsed secondary loop model file;

[0051] Based on the data mapping relationship, the instantiated attribute value is assigned to the corresponding primitive in the multiple primitive libraries to obtain the instantiated primitive.

[0052] The instantiated primitives from the multiple primitive libraries are combined to generate a design drawing;

[0053] In one possible implementation, the secondary circuit model file hierarchy includes power system elements; the power system elements include at least one compartment element, zero or more cable elements, and at least one bay element; the compartment element includes at least one cabinet element; the cable element includes zero or more cable core elements; the cabinet element sequentially includes at least one device or component element and at least one internal connection element; the device or component element includes zero or more board elements and zero or more terminal elements; the terminal element included in the board element represents the connection point of a terminal in a terminal block, and the terminal or connection point number attribute of the terminal element is the connection point name of a terminal in the terminal block; the board element includes at least one terminal or port element.

[0054] Secondly, embodiments of the present invention provide a device for correcting a power system secondary circuit model file, comprising:

[0055] The acquisition module is used to acquire the secondary loop model file of the target power system to be corrected.

[0056] The relationship establishment module is used to establish a data mapping relationship between a preset standardized primitive library and the secondary loop model file of the target power system;

[0057] The first generation module is used to generate a design drawing from the secondary loop model file in the forward direction according to the data mapping relationship;

[0058] The correction module is used to acquire the rerouting data on site and correct the data in the design drawing based on the rerouting data on site.

[0059] The second generation module is used to reverse-generate a corrected secondary loop model file based on the design drawing after the data correction.

[0060] Thirdly, embodiments of the present invention provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in the first aspect or any possible implementation of the first aspect.

[0061] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the method as described in the first aspect or any possible implementation thereof.

[0062] This invention provides a method, apparatus, and electronic device for correcting secondary circuit model files of a power system. The method involves: acquiring the secondary circuit model file of the target power system to be corrected; establishing a data mapping relationship between a pre-defined standardized element library and the secondary circuit model file of the target power system; generating design drawings from the secondary circuit model file based on the data mapping relationship; acquiring on-site relocation data and correcting the data in the design drawings based on the on-site relocation data; reconstructing the data in the corrected design drawings; and generating the corrected secondary circuit model file from the reconstructed data. This invention adheres to the principle of basing corrections on actual on-site data. By automatically correcting the data on the drawings, it reduces the difficulty of maintaining power system secondary circuit model files. The correction results are less affected by subjective factors, have a high accuracy rate, and the corrected target power system secondary circuit model file is consistent with the actual on-site data, effectively ensuring the correctness of the power system secondary circuit model file data and achieving safe, stable, standardized, and efficient operation and maintenance of power grid automation data. Attached Figure Description

[0063] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0064] Figure 1 This is a flowchart illustrating the implementation of a method for correcting a secondary circuit model file of a power system, as provided in an embodiment of the present invention.

[0065] Figure 2 This is a schematic diagram of the hierarchical architecture of a secondary circuit model file for a target power system provided in an embodiment of the present invention;

[0066] Figure 3 This is a schematic diagram of the structure of a standardized primitive library provided in an embodiment of the present invention;

[0067] Figure 4 This is a flowchart illustrating a method for generating a secondary loop model file in reverse according to an embodiment of the present invention;

[0068] Figure 5This is a flowchart illustrating the implementation of another method for correcting a power system secondary circuit model file, provided in an embodiment of the present invention.

[0069] Figure 6 This is a schematic diagram of the structure of a power system secondary circuit model file correction device provided in an embodiment of the present invention;

[0070] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0071] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0072] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0073] Figure 1 This is a flowchart illustrating the implementation of a method for correcting a power system secondary circuit model file, as provided in an embodiment of the present invention. Figure 1 The details are as follows:

[0074] In step 101, the secondary circuit model file of the target power system to be corrected is obtained.

[0075] In this embodiment, the secondary circuit model file of the target power system is a description file based on XML format that describes the physical information of the secondary circuit of the power system.

[0076] In some embodiments, such as Figure 2 The above, Figure 2 This is a schematic diagram of the hierarchical architecture of a secondary circuit model file for a target power system provided in an embodiment of the present invention. The hierarchical architecture of the secondary circuit model file includes power system elements; power system elements include at least one compartment element, zero or more cable elements, and at least one bay element; compartment elements include at least one cabinet element; cable elements include zero or more cable core elements; cabinet elements sequentially include at least one device or component element and at least one internal connection element; device or component elements include zero or more board elements and zero or more terminal elements; the terminal elements included in the board elements represent the connection points of a terminal block in the terminal block, and the terminal or connection point number attribute of the terminal element is the connection point name of a terminal block in the terminal block; board elements include at least one terminal or port element.

[0077] In some embodiments, prior to step 101, the method further includes: establishing a preset standardized primitive library.

[0078] The pre-defined standardized graphic element library is grouped according to the drawing effect to obtain multiple graphic element libraries. Each graphic element library includes at least one graphic element. The multiple graphic element libraries include at least a small room screen layout graphic element library, a cabinet layout graphic element library, a cabinet component graphic element library, a device back panel graphic element library, a terminal block graphic element library, and a secondary principle graphic element library.

[0079] In this embodiment, as Figure 3 As shown, Figure 3 This is a structural schematic diagram of a standardized element library provided by an embodiment of the present invention. The small room screen layout element library includes screen cabinet elements. The screen cabinet layout element library includes front cabinet elements, rear cabinet elements, equipment elements, and various component elements. The material list element library includes table elements. The cabinet component element library includes various component elements. The device backplane element library includes board elements, board port elements, and board terminal elements. The terminal block element library includes terminal block elements and terminal block terminal elements. The secondary principle element library includes various electronic component element modules. It should be understood that the above examples are for illustrative purposes only and do not constitute specific limitations.

[0080] In step 102, a data mapping relationship is established between a pre-set standardized primitive library and the secondary circuit model file of the target power system.

[0081] In some embodiments, a data mapping relationship is established based on a preset standardized primitive library and a secondary loop model file of the target power system, including:

[0082] Retrieve element information from the standard element library.

[0083] Retrieves the elements of the secondary loop model file of the target power system, where each element includes its attributes.

[0084] Establish data mapping relationships based on primitive information and elements.

[0085] In this embodiment, the graphic elements adopt a data storage structure defined in XML format, which consists of graphic structure and attribute text data, and is usually defined as: G file; the G file includes a g element, and the g element includes one or more text elements and one or more polyline elements; the g element includes an id attribute that defines a unique identifier, a name attribute that stores the text information of the graphic body, a type attribute that defines the graphic element type, and ox-oy-oz attributes that define the position coordinates of the graphic file; the text element is used to describe the attribute text data; the polyline element is used to describe the graphic structure.

[0086] In this embodiment, a corresponding data mapping relationship is established based on the elements in the standardized primitive library and the elements in the secondary loop model file, so that the standardized primitive library and the secondary loop model file can establish a data mapping relationship, which facilitates the subsequent generation of various design drawings.

[0087] In some embodiments, a data mapping relationship is established based on primitive information and elements, including:

[0088] Establish a data mapping relationship between the cabinet element number, cabinet depth dimension, and cabinet width dimension in the cabinet layout element library and the name (cabinet number), depth (cabinet depth), and width (cabinet width) attributes of the Cubicle (cabinet) element in the secondary circuit model file of the target power system.

[0089] Establish a data mapping relationship between the height and width dimensions of the front and rear cabinet elements in the cabinet layout element library and the height and width attributes of the Cubicle element in the secondary circuit model file of the target power system.

[0090] Establish a data mapping relationship between the number, model, and manufacturer of the table elements in the material list element library and the name (number of the device or component in the cabinet), model (model of the device or component), and vendor (device manufacturer) attributes of the Device (equipment or component) element in the secondary circuit model file of the target power system.

[0091] Establish a data mapping relationship between the component element number, description, component terminal number, and terminal opposite connection terminal number in the component element library of the cabinet, and the name (equipment or component number in the cabinet) and desc (equipment or component description) attributes of the Device element, the no (terminal or connection point number) attribute of the Port element, and the terminal opposite connection terminal number retrieved from the Core element.

[0092] Establish a data mapping relationship between the numbering and description of the board elements, board port elements, and board terminal elements included in the device backplane element library and the name attribute (equipment or component number in the cabinet) of the Device element, the slot attribute (board or sub-component number) of the Board element, the no attribute (terminal or connection point number) of the Port element, and the terminal number on the opposite side of the terminal retrieved from the Core element.

[0093] Establish a data mapping relationship between the terminal block elements and their numbers and descriptions included in the terminal block element library, and the following attributes in the target power system's secondary circuit model file: the name attribute (equipment or component number in the cabinet) of the Device element, the slot attribute (board or sub-component number) of the Board element, the no attribute (terminal or connection point number) of the Port element, the terminal number of the opposite side of the terminal retrieved from the Core element, and the connection information of the terminal retrieved from the Cable element.

[0094] Establish a data mapping relationship between the numbering and connection relationships of each electronic component element module included in the secondary schematic library and the attribute values ​​of the Cable and Core elements in the secondary circuit model file of the target power system.

[0095] In this embodiment, a corresponding data mapping relationship is established between the corresponding graphic element information in the standard graphic element library and the elements in the secondary circuit model file of the target power system.

[0096] In step 103, the design drawing is generated from the secondary loop model file in the forward direction according to the data mapping relationship.

[0097] In this embodiment, based on the data mapping relationship between the established standardized primitive library and the secondary circuit model file of the target power system, several types of design drawings are generated from the secondary circuit model file according to the types of the standardized primitive library. For example, the standard primitive library in this embodiment consists of seven primitive libraries. Based on the mapping relationship, the primitives in the standardized primitive library are instantiated to generate seven types of design drawings. Based on the generated design drawings, the complex secondary circuit model file is converted into an easily observable design drawing, facilitating comparison and verification of field data and improving the efficiency of correcting the secondary circuit model file.

[0098] In some embodiments, the secondary loop model file is forward-generated into a design drawing based on the data mapping relationship, including:

[0099] Parse the secondary loop model file of the target power system, and obtain the attribute instantiation values ​​required for data mapping relationships based on the parsed secondary loop model file;

[0100] Based on the data mapping relationship, the attribute instantiation value is assigned to the corresponding primitive in multiple primitive libraries to obtain the instantiated primitive;

[0101] Combine instantiated primitives from multiple primitive libraries to generate a design drawing.

[0102] In this embodiment, the instantiated values ​​of the attributes required for data mapping relationships are extracted from the secondary loop model file of the target power system. These instantiated values ​​are then assigned to corresponding elements in multiple element libraries, specifically replacing the `name` attribute of the `g` element and the `name` attribute of the `text` element in the element G file with the instantiated values. Finally, the instantiated elements in the element library are categorized and combined to generate a design drawing, thus transforming the secondary loop model file into a design drawing.

[0103] In this embodiment, based on the standardized element library, the design drawings are divided into seven categories, including but not limited to: small room screen layout diagram, cabinet layout diagram, bill of materials diagram, cabinet internal component diagram, device backplane diagram, terminal block diagram, and secondary schematic diagram. Specifically, this includes: combining all instantiated cabinet elements from the small room screen layout element library to generate a small room screen layout diagram; combining all instantiated front cabinet elements, rear cabinet elements, instantiated equipment elements, and instantiated component elements from the cabinet layout element library to generate a cabinet layout diagram; combining instantiated table elements from the bill of materials element library to generate a bill of materials diagram; combining instantiated component elements from the cabinet internal component element library to generate a cabinet internal component diagram; and combining instantiated board elements, board port elements, and board terminal elements from the device backplane element library to generate a device backplane diagram. Combine instantiated terminal block elements and instantiated terminal block elements from the terminal block element library to generate a terminal block diagram. Combine instantiated electronic component element modules from the secondary schematic element library to generate a secondary schematic diagram.

[0104] In step 104, the rerouting data at the site is obtained, and the data in the design drawings is corrected based on the rerouting data at the site.

[0105] In this embodiment, during actual construction, there are situations where on-site wiring needs to be corrected during later stages of power system construction. This embodiment of the invention obtains on-site wiring data based on the actual wiring changes and corrects the data in the design drawings generated from the secondary circuit model file based on this data. It addresses the aforementioned problem of correcting the digital model file of the power system from the source in a graphical manner, resolving the inconsistency between the on-site wiring and the connection relationship of the power system secondary circuit model.

[0106] In some embodiments, step 104 includes: making at least one of the following corrections to the data of the graphic elements in the design drawing based on the on-site rerouting data:

[0107] Correct the text in the graphic elements.

[0108] In this embodiment, text correction in graphic elements involves correcting the name attribute of the g element and the name attribute of the text element in the G file. Correcting one name attribute will correct the other name attribute accordingly.

[0109] In some embodiments, text correction in graphic elements includes one or more of the following:

[0110] Correct the depth and width dimensions of the cabinet elements in the small room cabinet layout element library;

[0111] Correct the height and width dimensions of the front and rear cabinet elements in the cabinet layout element library.

[0112] Correct the number, model, and manufacturer of the table elements in the material list element library;

[0113] The numbering, description, terminal numbering, and terminal connection numbering of each component in the component library within the cabinet are corrected.

[0114] The numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library are corrected;

[0115] The numbering and description of terminal block elements and terminal block terminal elements included in the terminal block element library are corrected;

[0116] The numbering and connection relationships of the electronic component modules included in the secondary schematic library are corrected.

[0117] Delete the graphic elements. This means deleting the data stored in the G file.

[0118] Add new primitives. This is done by copying a G file of the same type and modifying the name attribute of the g element and the name attribute of the text element in the copied G file.

[0119] In this embodiment, the design drawings generated from the secondary circuit model file of the target power system undergo three operations: element text correction, element deletion, and element addition. Adhering to the principle of basing the analysis on actual field data, the software automatically corrects inconsistencies in the verified data and automatically supplements or deletes missing or non-compliant data.

[0120] In step 105, based on the design drawing after data correction, a corrected secondary loop model file is generated in reverse.

[0121] In some embodiments, such as Figure 4 As shown, Figure 4This is a flowchart illustrating a method for generating a secondary loop model file in reverse according to an embodiment of the present invention. Step 105 includes:

[0122] Step 401: Extract the uncorrected and corrected data from the design drawings to obtain a dataset.

[0123] Step 402: Classify the data set according to the design diagram to obtain the classified data set.

[0124] Step 403: Write code using a computer programming language to save the categorized data set to the database, and organize the data set according to the data mapping relationship.

[0125] Step 404: Based on the computer program, write the underlying script and organize the data set, and reverse-generate the corrected secondary loop model file according to the hierarchical structure of the secondary loop model file.

[0126] In this embodiment, the data set is organized according to the data mapping relationship, including but not limited to: using the data extracted from the small room panel layout diagram as the underlying framework, and the data extracted from the cabinet layout diagram as the framework basis. The name attribute data of the g element and the name attribute data of the text element in the G file of the other six types of diagrams can be retrieved in the cabinet layout diagram data. The design diagram, corrected based on the on-site data, is then organized according to the data mapping relationship established in the above steps, and a secondary circuit model file is generated in reverse. This yields a secondary circuit model file after the on-site rewiring situation, realizing the correction of data in the diagram and automatically correcting the secondary circuit model file of the power system. This effectively ensures the correctness of the secondary circuit model file data of the power system and achieves safe operation and maintenance of power grid automation data.

[0127] In summary, this invention acquires the secondary loop model file of the target power system to be corrected; establishes a data mapping relationship between a pre-defined standardized primitive library and the secondary loop model file of the target power system; generates a design drawing from the secondary loop model file based on the data mapping relationship; acquires on-site relocation data and corrects the data in the design drawing based on the on-site relocation data; reconstructs the data in the corrected design drawing, and generates a corrected secondary loop model file based on the reconstructed data. This invention adheres to the principle of being based on actual on-site data. By automatically correcting on the drawing, it reduces the difficulty of maintaining the power system secondary loop model file. The correction results are less affected by subjective factors, have a high accuracy rate, and the corrected target power system secondary loop model file is consistent with the actual on-site data, effectively ensuring the correctness of the power system secondary loop model file data and achieving safe, stable, standardized, and efficient operation and maintenance of power grid automation data.

[0128] In some embodiments, after step 105, the method further includes:

[0129] Establish a data mapping relationship between the standardized primitive library and the revised secondary loop model file.

[0130] Based on the data mapping relationship, the corrected secondary loop model file is used to generate the corrected design drawing in the forward direction.

[0131] Verification was conducted based on the revised design drawings and the actual on-site rerouting conditions.

[0132] If the revised design drawings are verified to be consistent with the actual rerouting situation on site, then the above revision steps are completed.

[0133] In this embodiment, after verifying the actual on-site rerouting situation and confirming that the data displayed in the new drawing is correct after the actual on-site rerouting, the entire automatic correction process is completed. The corrected design drawing is generated forward from the corrected secondary circuit model file and compared with the on-site rerouting situation. This effectively ensures the correctness of the power system's digital model file data, enables the automatic correction of the power system's secondary circuit model file based on the on-site rerouting data, guarantees the correctness of the power system's secondary circuit model, and supports the stable and efficient operation of the power system.

[0134] The following implementation example illustrates the method for correcting the power system secondary circuit model file described above. (Refer to...) Figure 5 , Figure 5 This is a flowchart illustrating the implementation of another method for correcting a power system secondary circuit model file, provided in an embodiment of the present invention.

[0135] S501. Construct a standardized primitive library;

[0136] S502. Obtain the target power secondary circuit model file to be corrected;

[0137] S503. Establish a data mapping relationship between the standardized primitive library and the target power system secondary circuit model file;

[0138] S504. Instantiate the primitives in the standardized primitive library according to the mapping relationship and generate a graph in the forward direction.

[0139] S505. Correct the data on the diagram in S504 based on the actual rerouting situation on site;

[0140] S506. Reconstruct the data and generate a corrected power system secondary circuit model file in reverse.

[0141] S507. Based on the revised power system secondary circuit model file in S506, repeat the above process to generate a new diagram in the forward direction.

[0142] S508. Confirm that the data correction in the new drawing is correct and complete the automatic correction process.

[0143] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0144] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.

[0145] Figure 6 The diagram shows a structural schematic of a power system secondary circuit model file correction device according to an embodiment of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention are shown, and are described in detail below:

[0146] like Figure 6 As shown, the power system secondary circuit model file correction device 60 includes: an acquisition module 61, a relationship establishment module 62, a first generation module 63, a correction module 64, and a second generation module 65.

[0147] Module 61 is used to acquire the secondary loop model file of the target power system to be corrected;

[0148] The relationship establishment module 62 is used to establish a data mapping relationship between a preset standardized primitive library and the secondary loop model file of the target power system;

[0149] The first generation module 63 is used to generate design drawings from the secondary loop model file in a forward manner according to the data mapping relationship;

[0150] The correction module 64 is used to acquire the rerouting data on site and correct the data in the design drawings based on the rerouting data on site.

[0151] The second generation module 65 is used to generate a corrected secondary loop model file based on the design drawing after data correction.

[0152] Optionally, the correction module 64 is used to correct at least one of the following for the data of the elements in the design drawing based on the on-site rerouting data:

[0153] Correcting text within graphic elements;

[0154] Delete the graphic elements;

[0155] Add new elements to the graphic.

[0156] Optionally, module 61 is also used to establish a preset standardized primitive library;

[0157] The pre-defined standardized graphic element library is grouped according to the drawing effect to obtain multiple graphic element libraries. Each graphic element library includes at least one graphic element. The multiple graphic element libraries include at least a small room screen layout graphic element library, a cabinet layout graphic element library, a cabinet component graphic element library, a device back panel graphic element library, a terminal block graphic element library, and a secondary principle graphic element library.

[0158] Optionally, the correction module 64 is used to correct text in the graphic element, including one or more of the following:

[0159] Correct the depth and width dimensions of the cabinet elements in the small room cabinet layout element library;

[0160] Correct the height and width dimensions of the front and rear cabinet elements in the cabinet layout element library.

[0161] Correct the number, model, and manufacturer of the table elements in the material list element library;

[0162] The numbering, description, terminal numbering, and terminal connection numbering of each component in the component library within the cabinet are corrected.

[0163] The numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library are corrected;

[0164] The numbering and description of terminal block elements and terminal block terminal elements included in the terminal block element library are corrected;

[0165] The numbering and connection relationships of the electronic component modules included in the secondary schematic library are corrected.

[0166] Optionally, the second generation module 65 is used to extract the uncorrected data and corrected data in the design drawing to obtain a data set;

[0167] The dataset is categorized according to the design drawings to obtain the categorized dataset;

[0168] The system uses computer programming languages ​​to write code to save the categorized data set to a database and organizes the data set according to the data mapping relationship.

[0169] Based on the underlying script written by the computer program and the organized data set, the corrected secondary loop model file is generated in reverse according to the hierarchical structure of the secondary loop model file.

[0170] Optionally, the second generation module 65 is also used to establish a data mapping relationship between the standardized primitive library and the corrected secondary loop model file;

[0171] Based on the data mapping relationship, the corrected secondary loop model file is used to generate the corrected design drawing in the forward direction;

[0172] Verification was conducted based on the revised design drawings and the actual rerouting conditions on site.

[0173] If the revised design drawings are verified to be consistent with the actual rerouting situation on site, then the above revision steps are completed.

[0174] Optionally, the relationship establishment module 62 is used to obtain the primitive information of the standard primitive library;

[0175] Obtain the elements of the secondary loop model file of the target power system, where each element includes its attributes;

[0176] Establish data mapping relationships based on primitive information and elements;

[0177] Among them, establishing data mapping relationships based on primitive information and elements includes:

[0178] Establish a data mapping relationship between the cabinet element number, cabinet depth dimension, and cabinet width dimension in the cabinet layout element library and the cabinet number attribute, cabinet depth attribute, and cabinet width attribute of the cabinet element in the secondary circuit model file of the target power system;

[0179] Establish a data mapping relationship between the cabinet height and width dimensions of the front and rear cabinet elements in the cabinet layout element library and the cabinet height and width attributes of the cabinet elements in the secondary circuit model file of the target power system.

[0180] Establish a data mapping relationship between the number, model, and manufacturer of the table elements in the material table element library and the equipment or component elements in the secondary circuit model file of the target power system, namely the equipment or component number attribute, equipment or component model attribute, and equipment manufacturer attribute within the cabinet;

[0181] Establish a data mapping relationship between the number, description, terminal number, and terminal opposite connection terminal number of each component in the cabinet component element library and the equipment or component in the secondary circuit model file of the target power system, the equipment or component in the cabinet, the terminal or connection point number of the terminal element, and the terminal opposite connection terminal number retrieved from the internal connection elements.

[0182] Establish a data mapping relationship between the numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library and the equipment or component elements in the secondary circuit model file of the target power system, the board or sub-component numbering attribute of the board element, the terminal or connection point numbering attribute of the terminal element, and the data mapping relationship between the numbering and description of the opposite connection terminal obtained from the internal connection elements.

[0183] Establish a data mapping relationship between the terminal block elements and terminal block terminal element numbers and descriptions included in the terminal block element library and the equipment or component number attributes of the equipment or component elements in the secondary circuit model file of the target power system, the board or sub-component number attributes of the board elements, the terminal or connection point number attributes of the terminal elements, the terminal opposite connection terminal number retrieved from the internal connection elements, and the connection information of the terminal retrieved from the cable elements.

[0184] Establish a data mapping relationship between the numbering and connection relationships of each electronic component element module included in the secondary schematic library and the attribute values ​​of cable elements and cable core elements in the secondary circuit model file of the target power system;

[0185] Based on the data mapping relationship, the secondary loop model file is used to generate the design drawing in a forward manner, including:

[0186] The first generation module 63 is used to parse the secondary loop model file of the target power system and obtain the attribute instantiation values ​​required for the data mapping relationship based on the parsed secondary loop model file.

[0187] Based on the data mapping relationship, the attribute instantiation value is assigned to the corresponding primitive in multiple primitive libraries to obtain the instantiated primitive;

[0188] Combine instantiated primitives from multiple primitive libraries to generate a design drawing;

[0189] The secondary circuit model file hierarchical architecture includes power system elements; each power system element includes at least one compartment element, zero or more cable elements, and at least one bay element; each compartment element includes at least one cabinet element; each cable element includes zero or more cable core elements; each cabinet element sequentially includes at least one device or component element and at least one internal connection element; each device or component element includes zero or more board elements and zero or more terminal elements; each board element contains terminal elements representing the connection point of a terminal in a terminal block, and the terminal or connection point number attribute of the terminal element is the name of the connection point of a terminal in the terminal block; each board element contains at least one terminal or port element.

[0190] Figure 7 This is a schematic diagram of an electronic device provided according to an embodiment of the present invention. For example... Figure 7As shown, the electronic device 7 in this embodiment includes a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, it implements the steps in the above-described embodiments of the methods for correcting secondary circuit model files of various power systems.

[0191] The computer program 72 can be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 72 in the electronic device 7.

[0192] The electronic device 3 can be a desktop computer, laptop, handheld computer, or cloud server, etc. The electronic device may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will understand that... Figure 7 This is merely an example of electronic device 7 and does not constitute a limitation on electronic device 7. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0193] The processor 70 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0194] The memory 71 can be an internal storage unit of the electronic device 7, such as a hard disk or memory. The memory 71 can also be an external storage device of the electronic device 7, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 71 can include both internal and external storage units of the electronic device 7. The memory 71 is used to store the computer program and other programs and data required by the electronic device. The memory 71 can also be used to temporarily store data that has been output or will be output.

[0195] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0196] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0197] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0198] In the embodiments provided by this invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0199] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0200] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0201] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0202] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for correcting a power system secondary circuit model file, characterized in that, include: Obtain the secondary loop model file of the target power system to be corrected; Establish a data mapping relationship between a pre-defined standardized primitive library and the secondary loop model file of the target power system; Based on the data mapping relationship, the design drawing is generated from the secondary loop model file in a forward manner; Obtain the on-site rerouting data and correct the data in the design drawings based on the on-site rerouting data; Based on the corrected design drawing, a corrected secondary loop model file is generated in reverse. The process of generating a corrected secondary loop model file based on the corrected design drawing includes: Extract the uncorrected data and the corrected data from the design drawing to obtain a data set; The data set is classified according to the design diagram to obtain the classified data set; The system uses computer programming languages ​​to write code to save the categorized data set to a database and organizes the data set according to the data mapping relationship. Based on the underlying script written by computer program and the organized data set, the corrected secondary loop model file is generated in reverse according to the hierarchical structure of the secondary loop model file. After generating the corrected secondary loop model file from the design drawing based on the data correction, the process further includes: Establish a data mapping relationship between the standardized primitive library and the modified quadratic loop model file; Based on the data mapping relationship, the corrected secondary loop model file is used to generate the corrected design drawing in a forward manner; Verify the revised design drawings against the actual on-site rerouting conditions. If the revised design drawing is consistent with the actual rerouting situation on site, then the above revision steps are completed. After verifying the actual alignment changes on-site and confirming that the data displayed in the new diagram is the correct data after the actual alignment changes, the entire automatic correction process is completed.

2. The method according to claim 1, characterized in that, The process of correcting the data in the design drawings based on the on-site rerouting data includes: Based on the on-site rerouting data, at least one of the following corrections should be made to the data of the graphic elements in the design drawings: Correcting text within graphic elements; Delete the graphic elements; Add new elements to the graphic.

3. The method according to claim 2, characterized in that, Before obtaining the secondary loop model file of the target power system to be corrected, the method further includes: establishing the preset standardized primitive library; The preset standardized graphic element library is grouped according to the drawing effect to obtain multiple graphic element libraries. Each of the multiple graphic element libraries includes at least one graphic element. The multiple graphic element libraries include at least a small room screen layout graphic element library, a cabinet layout graphic element library, a cabinet component graphic element library, a device back panel graphic element library, a terminal block graphic element library, a secondary principle graphic element library, and a material list graphic element library.

4. The method according to claim 3, characterized in that, The text correction in the graphic elements includes one or more of the following: The depth and width dimensions of the cabinet elements in the small room cabinet layout element library are corrected. The height and width dimensions of the front and rear cabinet elements in the cabinet layout element library are corrected. The number, model, and manufacturer of the table elements in the material table element library are corrected; The numbering, description, component terminal number, and terminal connection terminal number of each component in the component library inside the cabinet are corrected; The numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library are corrected; The numbering and description of the terminal block elements and terminal block terminal elements included in the terminal block element library are corrected; The numbering and connection relationships of each electronic component module included in the secondary schematic library are corrected.

5. The method according to claim 4, characterized in that, Based on the pre-defined standardized primitive library and the secondary loop model file of the target power system, a data mapping relationship is established, including: Obtain the primitive information of the standardized primitive library; Obtain the elements of the secondary loop model file of the target power system, wherein the elements include the attributes of the elements; Based on the primitive information and the elements, the data mapping relationship is established; The step of establishing the data mapping relationship based on the primitive information and the elements includes: Establish a data mapping relationship between the number, depth, and width dimensions of the cabinet elements in the cabinet layout element library and the cabinet number, depth, and width attributes of the cabinet elements in the secondary circuit model file of the target power system; Establish a data mapping relationship between the cabinet height and width dimensions of the front and rear cabinet elements in the cabinet layout element library and the cabinet height and width attributes of the cabinet elements in the secondary circuit model file of the target power system; Establish a data mapping relationship between the number, model, and manufacturer of the table elements in the material table element library and the equipment or component elements in the secondary circuit model file of the target power system, namely, the equipment or component number attribute, equipment or component model attribute, and equipment manufacturer attribute within the cabinet; Establish a data mapping relationship between the number, description, component terminal number, and terminal opposite connection terminal number of each component in the component element library in the cabinet and the equipment or component in the secondary circuit model file of the target power system, the equipment or component in the cabinet, the terminal or connection point number attribute of the terminal element, and the terminal opposite connection terminal number retrieved from the internal connection element. Establish a data mapping relationship between the numbering and description of the board elements, board port elements and board terminal elements included in the device backplane element library and the equipment or component elements in the secondary circuit model file of the target power system, the board or sub-component numbering attribute of the board element, the terminal or connection point numbering attribute of the terminal element, and the data mapping relationship between the numbering and description of the opposite side connection terminal obtained from the internal connection elements. Establish a data mapping relationship between the terminal block elements and terminal block terminal elements included in the terminal block element library, their numbers and descriptions, and the equipment or component elements in the secondary circuit model file of the target power system, including their numbering attributes in the cabinet, the board or sub-component numbering attributes of the board elements, the terminal or connection point numbering attributes of the terminal elements, the terminal opposite connection terminal number retrieved from the internal connection elements, and the connection information of the terminal retrieved from the cable elements. Establish a data mapping relationship between the numbering and connection relationship of each electronic component element module included in the secondary principle element library and the attribute values ​​of the cable element and cable core element in the secondary circuit model file of the target power system; Based on the data mapping relationship, the secondary loop model file is used to generate a design drawing in the forward direction, including: Parse the secondary loop model file of the target power system, and obtain the attribute instantiation values ​​required for the data mapping relationship based on the parsed secondary loop model file; Based on the data mapping relationship, the attribute instantiation value is assigned to the corresponding primitive in the multiple primitive libraries to obtain the instantiated primitive; The instantiated primitives from the multiple primitive libraries are combined to generate a design drawing; The secondary circuit model file hierarchy includes power system elements; each power system element includes at least one compartment element, zero or more cable elements, and at least one bay element; each compartment element includes at least one cabinet element; each cable element includes zero or more cable core elements; each cabinet element sequentially includes at least one device or component element and at least one internal connection element; each device or component element includes zero or more board elements and zero or more terminal elements; each board element includes terminal elements representing the connection point of a terminal in a terminal block, and the terminal or connection point number attribute of the terminal element is the connection point name of a terminal in the terminal block; each board element includes at least one terminal or port element.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method for correcting the power system secondary circuit model file as described in any one of claims 1 to 5.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method for correcting the power system secondary circuit model file as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Modeling system of power grid model based on logical relationship

    CN103544336A

  • Secondary circuit visual online monitoring and intelligent operation and maintenance method for intelligent substation

    CN109756030A