Hierarchical Storage Method, Device, Equipment and Storage Medium for Power Grid Information Model
By hierarchically storing the power grid information model and generating a single project model file, the lag caused by repeated conversion and analysis in power transmission and transformation engineering design is solved, and editing efficiency is improved.
Patent Information
- Application Number
- CN202311263731.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2043-09-27
AI Technical Summary
In the prior art, the repeated conversion and analysis process of power transmission and transformation engineering design files leads to lag, seriously affecting editing efficiency.
By analyzing the full power grid information model, multiple node data are generated, and a hierarchical cache node tree and device cache node tree are established, the engineering database and device database are established respectively, and multiple single-project model files are generated according to user requests to realize the hierarchical storage of the power grid information model.
It effectively solves the problem of long-term and low-efficiency model review and model modification. Through hierarchical storage, the large power grid information model is split into small-scale single-engineering model files, which improves the design and review efficiency.
Smart Images

Figure CN117312315B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid information models, and in particular, to a hierarchical storage method, device, equipment and storage medium for power grid information models. Background Art
[0002] The Grid Information Model (GIM) is a three-dimensional standard compiled by the State Grid Corporation of China to meet the needs of three-dimensional design of transmission and transformation projects, unify the model framework and data interaction format, and realize data sharing throughout the life cycle of the project.
[0003] In the prior art, engineering designers can convert design documents into power grid information models and deliver them to reviewers for review. Reviewers need to parse the power grid information models before reviewing. If the review fails, engineering designers need to return to the design documents again for adjustment, and then convert the adjusted design documents into power grid information models and deliver them to reviewers for re-review. Due to the large volume of transmission and transformation projects, during the above process of repeatedly converting or parsing power grid information models, the lag situation is relatively serious, seriously affecting the editing efficiency.
[0004] Based on the above problems, the present invention proposes a method for hierarchically dividing a full-scale power grid information model into multiple files for storage according to the power grid information model standard specifications. Summary of the Invention
[0005] The present invention provides a hierarchical storage method, device, equipment and storage medium for power grid information models, which can divide a power grid information model with a large volume into multiple single-project model files for storage according to the project level, thereby solving the problems of long time consumption and low efficiency in model review and model modification.
[0006] According to an aspect of the present invention, there is provided a hierarchical storage method for a power grid information model, including:
[0007] Parsing the full-scale power grid information model uploaded by the user, obtaining multiple power grid information files in the full-scale power grid information model, and generating multiple node data in the cache using the power grid information files;
[0008] Parsing each node data, obtaining the identification information and data association information of each node data, and establishing a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data;
[0009] Establishing an engineering database and a device database respectively according to the hierarchical cache node tree and the device cache node tree;
[0010] Obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the engineering database, the device database, and the hierarchical storage request, so as to realize the hierarchical storage of the full-scale power grid information model.
[0011] According to another aspect of the present invention, there is provided a device for hierarchical storage of a power grid information model, including:
[0012] A node data generation module, configured to parse the full-scale power grid information model uploaded by the user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache by using the power grid information files;
[0013] A node tree establishment module, configured to parse each node data, obtain the identification information and data association information of each node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data;
[0014] A database establishment module, configured to establish an engineering database and a device database respectively according to the hierarchical cache node tree and the device cache node tree;
[0015] A single-project model file generation module, configured to obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the engineering database, the device database, and the hierarchical storage request, so as to realize the hierarchical storage of the full-scale power grid information model.
[0016] According to another aspect of the present invention, there is provided an electronic device, where the electronic device includes:
[0017] At least one processor; and
[0018] A memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for hierarchical storage of a power grid information model according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, there is provided a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a processor to execute the method for hierarchical storage of a power grid information model according to any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention obtains node data by parsing the full-scale power grid information model, analyzes and processes the node data to generate an engineering database and a device database, and combines the hierarchical storage request sent by the user to implement the hierarchical storage method of the full-scale power grid information model. It can split the full-scale power grid information model into multiple single-project model files for storage according to user needs. The volume of each single-project model file is small but can ensure the integrity of the original information, thereby effectively improving the efficiency of model review and model modification.
[0022] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Brief Description of the Drawings
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0024] Figure 1a is a flowchart of a method for hierarchical storage of a power grid information model according to Embodiment 1 of the present invention;
[0025] Figure 1b is a schematic diagram of a hierarchical cache node tree and a device cache node tree according to Embodiment 1 of the present invention;
[0026] Figure 1c is a schematic diagram of an engineering database and a device database according to Embodiment 1 of the present invention;
[0027] Figure 2 is a flowchart of another method for hierarchical storage of a power grid information model according to Embodiment 2 of the present invention;
[0028] Figure 3 is a schematic structural diagram of a device for hierarchical storage of a power grid information model according to Embodiment 3 of the present invention;
[0029] Figure 4 is a schematic structural diagram of an electronic device for implementing the method for hierarchical storage of a power grid information model in the embodiment of the present invention. Detailed Embodiments
[0030] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1a It is a flowchart of a hierarchical storage method for a power grid information model provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of parsing the full-scale power grid information model to obtain node data, analyzing and processing the node data to generate an engineering database and an equipment database, and combining the hierarchical storage request sent by the user to realize the hierarchical storage of the full-scale power grid information model. This method can be executed by a hierarchical storage device for the power grid information model. The hierarchical storage device for the power grid information model can be implemented in the form of hardware and / or software, and the hierarchical storage device for the power grid information model is generally configured in a computer or server with data processing functions. As Figure 1a shown, the method includes:
[0034] S110. Parse the full-scale power grid information model uploaded by the user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache using the power grid information files.
[0035] The full-scale power grid information model is a power grid information model directly converted from the design documents of the entire power transmission and transformation project after the engineering designers complete the design of the entire power transmission and transformation project. The full-scale power grid information model may include various levels of information, equipment information, and attribute information matching the various levels of information and equipment information in the power transmission and transformation project.
[0036] Further, in the full-scale power grid information model, various types of information such as hierarchical information, device information, and attribute information are all stored in the form of files, that is, the power grid information files mentioned in the embodiments of the present invention.
[0037] Optionally, after loading the power grid information file into the cache, each power grid information file can be used as a node in the cache. The node types can include hierarchical data nodes (cbm), device model nodes (dev), hierarchical attribute nodes (fam), and device information nodes (node), etc., and the node types match the content stored in the power grid information file.
[0038] Specifically, by parsing the file name of the power grid information file, the node types to which the nodes matching each power grid information file in the cache belong can be directly obtained, and the nodes can be identified according to the node types. In a specific example, if the file name of the power grid information file is project.cbm, since "cbm" is included in its file name, it can be determined that the node generated by this power grid information file is a hierarchical data node, and then "cbm" can be used to generate a node identifier for this node.
[0039] The present invention creatively proposes to store the parsing results of the full-scale power grid information model in separate files according to the project hierarchy selected by the user to generate multiple single-project model files, and store all the device information and the associated information (such as attribute information, etc.) of each device at this level in the single-project model files, so that the reviewers can directly review each single-project model file, and the engineering designers can also directly modify each single-project model file, without having to perform the conversion between the power grid information model and the engineering design file multiple times, which can effectively improve the design and review efficiency.
[0040] S120. Parse each node data, obtain the identification information and data association information of each node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data.
[0041] Figure 1b It is a schematic diagram of an optional hierarchical cache node tree and a device cache node tree. As Figure 1b shown, taking the horizontal line where the dotted arrow is located as the boundary, the upper part is the hierarchical cache node tree, and the lower part is the device cache node tree.
[0042] In the hierarchical cache node tree, the fam and ifc nodes are non-essential nodes in the embodiments of the present invention and will not be further explained here. In the embodiments of the present invention, the cbm nodes in the hierarchical node tree are mainly used. In Figure 1b the shown hierarchical cache node tree, according to the structural relationship of the tree, it can be known that this hierarchical cache node tree contains three layers of nodes.
[0043] In the device cache node tree, each "dev" represents a type of device model node, and part of the information of the "dev" (such as geometric information, sub-component information, etc.) is stored in the "node" under the "dev".
[0044] Furthermore, a specific example is used to illustrate the method of establishing the hierarchical cache node tree. First, multiple node data with "cbm" included in the node identifier can be filtered out from the node data, and these node data can be used as hierarchical data nodes; then, nodes with "project.cbm" included in the node identifier are filtered out from the hierarchical data nodes, and this node is used as the top-level node of the hierarchical cache node tree; finally, the specific data content of the remaining hierarchical data nodes is analyzed, and the hierarchical cache node tree is gradually improved according to the hierarchical relationship recorded in the hierarchical data nodes (the upper-level node and the lower-level node can be recorded).
[0045] Furthermore, a specific example is used to illustrate the method of establishing the device cache node tree. First, multiple node data with "dev" included in the node identifier can be filtered out from the node data, and these node data can be used as device model nodes; then, each device model node is used as the top-level node in the device cache node tree; finally, multiple node data with "node" included in the node identifier are obtained as device information nodes, and each device information node is parsed, and the device cache node tree is gradually improved according to the device model node to which each device information node belongs.
[0046] It can be understood that the hierarchical cache node tree records the hierarchical relationship between the hierarchical data nodes in the full-scale power grid information model, and the device cache node tree records each device model node and the specific device information of each device model node. Since in the actual power transmission and transformation project, each hierarchical cache node may contain multiple types of devices, there is a certain association relationship between the hierarchical cache node tree and the device cache node tree, and this association relationship is Figure 1b shown by a dotted line in. In fact, the bottom-level nodes in the hierarchical cache node tree and the device model nodes in the device cache node tree establish an association relationship in a pointer reference manner, which is a weak association relationship (direct storage can be regarded as a strong association. Since this is a pointer reference rather than direct storage here, it is a weak association), and the way to implement this weak association relationship is through the name for association.
[0047] S130. Establish an engineering database and a device database respectively according to the hierarchical cache node tree and the device cache node tree.
[0048] Figure 1c is a schematic diagram of an optional engineering database and device database. As Figure 1cAs shown, on the left is the engineering database, and the engineering database contains the structural relationships between multiple levels and the equipment database (the equipment library is the equipment database described in the present invention, and hereinafter the equipment database will be directly used instead of the equipment library for description). On the right are multiple single-project model files. The specific generation method of the single-project model files will be further explained in step S140.
[0049] In this step, taking Figure 1c the left half of as an example, the establishment method and storage content of the engineering database and the equipment database will be specifically explained.
[0050] For the engineering database, it can be established through the hierarchical relationships between the data nodes of each level in the hierarchical cache node tree. Specifically, the top-level cbm node in the hierarchical cache node tree is the F1 level in the engineering database, the two second-level cbm nodes in the hierarchical cache node tree are respectively the F2 level 1 and F2 level 2 in the engineering database, and the four third-level cbm nodes in the hierarchical cache node tree ( Figure 1b only 3 third-level cbm nodes are shown in for example, and in this step it is assumed that the third level of the hierarchical cache node tree has 4 cbm nodes) are respectively the F3 level 1, F3 level 2, F3 level 3, and F3 level 4 in the engineering database, and the association relationship between each level is the same as the arrow connection relationship in the hierarchical cache node tree.
[0051] To better understand the relationships between the levels in the engineering database, a specific example is used for explanation here. The F1 level is generally the project information of the power transmission and transformation project. For example, the F1 level can be a substation. The F2 level is generally the system division under this project. For example, the F2 level 1 can be the input power system of the substation, and the F2 level 2 can be the output power system of the substation. Thus, it can be further understood that the F3 level is the subsystem that performs different functions under the system. For example, the F3 level 1 is a subsystem for voltage conversion under the input power system.
[0052] Continuing the previous example, each F3 level can include multiple devices that perform the functions of that F3 level. For the F3 level 1 that can be used for voltage conversion, the specific function that can be realized is to convert the input 2000V (volt) voltage into multiple 220V voltages. Then, multiple step-down transformers need to be included under the F3 level 1.
[0053] For the device database, the device database can be generated through the device model nodes in the device cache node tree. The number of dev nodes in the device cache node tree determines the number of dev devices in the generated device database. It should be noted that each dev device in the device database represents a type of device (such as DC transformers, AC transformers, etc.), rather than a specific device. Moreover, the device database also stores the geometric information, attribute information, etc. of each type of dev device according to the relationship between each dev node and each node node in the device cache node tree.
[0054] Furthermore, between each level of the engineering database in Figure 1c and the device database, there are also multiple dashed arrows. These dashed arrows represent the association relationships between each dev device and each F3 level. Such association relationships are not stored in the engineering database. The dashed lines are shown only for the convenience of understanding the embodiments of the present invention.
[0055] Next, a specific example is used to illustrate how the association relationships between each dev device and each F3 level are specifically established. First, it can be assumed that each F3 level further includes an F4 level. In the F4 level, it is recorded which dev devices are specifically used in this F3 level. However, in fact, the F4 level is not stored under the F3 level; furthermore, the F4 level is actually stored in the dev device information. By parsing the F4 stored in each dev device, it can be known which F3 levels this dev device is applied to.
[0056] S140. Obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the engineering database, the device database, and the hierarchical storage request to achieve the hierarchical storage of the full-scale power grid information model.
[0057] The hierarchical storage request sent by the user may include the hierarchical structure to which each single-project model file belongs. Continuing with Figure 1c as an example, an optional hierarchical storage request is to generate a single-project model file under F2 level 1 ( Figure 1c the first single-project model file on the right side of the figure). At this time, the device information in F3 level 1 and F3 level 2 under F2 level 1 can be obtained, and this single-project model file can be generated according to the device information in F3 level 1 and F3 level 2.
[0058] Further, the generation method of the above single-project model file is specifically explained through an example. It can be known from the project database that under the F2 level 1, there are F3 level 1 and F3 level 2; by parsing the F4 level information stored in each dev device in the device database, it can be known that under the F3 level 1, there is dev device 1, and under the F3 level 2, there are dev device 1 and dev device 2; since dev device 1 is included under the F3 level 1, the device type of dev device 1 is added to the single-project model file, and an instance 1 of dev device 1 is generated; since dev device 1 and dev device 2 are included under the F3 level 2, and the device type of dev device 1 has already been generated in the single-project model file, an instance 2 of dev device 1 is added under the device type of dev device 1, and the device type of dev device 2 is generated in the single-project model file and an instance 1 of dev device 2 is added under the device type of dev device 2.
[0059] It should also be noted that the device type of the dev device generally stores common information such as the geometric attributes of this type of device, and the instance of the dev device generally stores the unique information of each specific device.
[0060] The technical solution of the embodiment of the present invention obtains node data by parsing the full-scale power grid information model, analyzes and processes the node data to generate a project database and a device database, and combines the hierarchical storage request sent by the user to implement the hierarchical storage method of the full-scale power grid information model. It can split the full-scale power grid information model into multiple single-project model files for storage according to user needs. The volume of each single-project model file is small but can ensure the integrity of the original information, thereby effectively improving the efficiency of model review and model modification.
[0061] Embodiment 2
[0062] Figure 2 It is a flowchart of another hierarchical storage method of the power grid information model provided by the second embodiment of the present invention. On the basis of the above embodiment, the hierarchical storage method of the power grid information model is specifically described. As Figure 2 shown, the method includes:
[0063] S210. Obtain the model identifier of the full-scale power grid information model uploaded by the user, and parse the project type corresponding to the full-scale power grid information model according to the model identifier.
[0064] In a specific example, if the model identifier of the full-scale power grid information model includes GIMPKGS, the corresponding co-layer type of the full-scale power grid information model is a substation project; if the model identifier of the full-scale power grid information model includes GIMPKGT, the corresponding co-layer type of the full-scale power grid information model is a line project; if the model identifier of the full-scale power grid information model includes GIMPKEC, the corresponding co-layer type of the full-scale power grid information model is a cable line project.
[0065] S220. Analyze the full-scale power grid information model uploaded by the user to obtain multiple power grid information files in the full-scale power grid information model.
[0066] S230. Read each power grid information file, load the data information of each power grid information file into the cache to generate multiple node data in the cache, and identify each node data using the file name of each power grid information file.
[0067] S240. According to the identification information of each node data, obtain the first type of node data and the second type of node data in the cache, and respectively screen out the first type of top-level node data and the second type of top-level node data from the first type of node data and the second type of node data.
[0068] Among them, the first type of node data may include hierarchical data nodes and attribute nodes related to the hierarchical data nodes, etc. In a specific example, the first type of node data can be identified according to the node identifier. If the node identifier contains preset node identifiers such as cbm, fam, and ifc, these nodes can be identified as the first type of node data; similarly, the second type of node data may include device model nodes and device information nodes, etc. In a specific example, the second type of node data can be identified according to the node identifier. If the node identifier contains preset node identifiers such as dev and node, these nodes can be identified as the second type of node data.
[0069] Continuing with the previous example, the node data whose node identifier contains project.cbm can be identified in the first type of node data as the first type of top-level node data; the node data whose node identifier contains dev can be identified in the second type of node data as the second type of top-level node data.
[0070] S250. Establish a hierarchical cache node tree according to the data association information of the first type of top-level node data and each first type of node data.
[0071] Optionally, due to the negligence of designers or errors in the parsing process of the full-scale power grid information model, there may be cases of missing information. For example, some of the fam attribute information under the cbm node is missing. However, for some fixed data information, it can be queried and obtained in the standard format library of the power grid information model. Therefore, after establishing the hierarchical cache node tree, the information in the hierarchical cache node tree can also be checked. If there is missing information, it can be searched and obtained in the standard format library, and the missing information in the hierarchical cache node tree can be supplemented.
[0072] S260. Establish an equipment cache node tree according to the data association information of the second type of top-level node data and each second type of node data.
[0073] Among them, the hierarchical cache node tree and the equipment cache node tree each include at least one level. Each level of the hierarchical cache node tree includes at least one first type of node data, and there is a corresponding relationship between each first type of node data and each project in the full-scale power grid information model. Each level of the equipment cache node tree includes at least one second type of node data.
[0074] There is no specified execution order relationship between step S250 and step S260. It is also possible to execute S260 first and then S250. In order to facilitate the understanding of the technical solution of the present invention, this embodiment provides an optional execution order relationship, but it is not limited thereto.
[0075] S270. Obtain each first type of bottom-level node data serving as the bottom-level node in the hierarchical cache node tree.
[0076] S280. Obtain the device information storage nodes associated with each first type of bottom-level node data, and according to the device name information stored in each device information storage node, obtain at least one second type of top-level node data associated with each first type of bottom-level node data in the equipment cache node tree.
[0077] Optionally, the device information storage nodes associated with each first type of bottom-level node data are the F4 level nodes mentioned in the foregoing example. The device information storage nodes can be screened out by parsing the specific content of each node data. The device information storage nodes record the dev device types under the first type of bottom-level node data associated with them.
[0078] S290. Store the association relationship between each first type of bottom-level node and each second type of top-level node.
[0079] S2100. Obtain the node hierarchical relationship between each first type of node data in the hierarchical cache node tree, and establish an engineering database according to the node hierarchical relationship between each first type of node data and the pre-set engineering database establishment rules.
[0080] Among them, the engineering database stores the engineering hierarchical relationships among various projects in the full-scale power grid information model, and the establishment rules of the engineering database match the project types of the full-scale power grid information model.
[0081] S2110. Obtain the node hierarchical relationships among the second-type node data in the device cache node tree, and establish a device database according to the node hierarchical relationships among the second-type node data.
[0082] Among them, the device database stores the device information of each device in the full-scale power grid information model.
[0083] Specifically, the device information of each device in the full-scale power grid information model may include device type information, geometric attribute information of the device, etc.
[0084] Optionally, it is known that the node data in the foregoing steps is obtained from the cache. After the engineering database and the device database are established, the node data content has been stored in each database. At this time, the cache can be released to reduce space occupancy.
[0085] S2120. According to the association relationships between each first-type bottom-layer node and each second-type top-layer node in the hierarchical cache node tree and the device cache node tree, obtain the association relationships between each bottom-layer project in the engineering database and each device information in the device database.
[0086] S2130. Obtain the hierarchical storage request sent by the user, and obtain the engineering hierarchy of each single-project model file according to the hierarchical storage request.
[0087] S2140. According to the engineering hierarchical relationships among the projects in the engineering database and the association relationships between each bottom-layer project in the engineering database and each device information in the device database, obtain the device information associated with each engineering hierarchy of each single-project model file.
[0088] S2150. Generate multiple single-project model files according to the engineering hierarchy of each single-project model file and the device information associated with each engineering hierarchy of each single-project model file.
[0089] Among them, generating multiple single-project model files according to the engineering hierarchy of each single-project model file and the device information associated with each engineering hierarchy of each single-project model file may specifically include:
[0090] Judge whether the device type unit of the target device is stored in the single-project model file;
[0091] If so, add a device instance unit to the single-project model file according to the device information of the target device;
[0092] Otherwise, extract the type information from the device information of the target device, add a device type unit that matches the target device to the single-project model file, and add a device instance unit to the single-project model file according to the device information of the target device.
[0093] The technical solution of the embodiment of the present invention can ensure the integrity of the information in the hierarchical cache database by checking whether there is missing information in the hierarchical cache node tree after establishing the hierarchical cache node tree and supplementing the missing information in the hierarchical cache node tree using the standard format library. By releasing the cache after establishing the project database and the device database, it can effectively reduce the space occupation. By determining whether the device type unit of the target device is stored in the single-project model file and adding a device instance unit to the stored device type unit, it can minimize the stored content of the single-project model file and reduce the volume.
[0094] Embodiment III
[0095] Figure 3 It is a schematic structural diagram of a hierarchical storage device for a power grid information model provided by Embodiment III of the present invention. As Figure 3 shown, the device includes: a node data generation module 310, a node tree establishment module 320, a database establishment module 330, and a power grid information model hierarchical storage module 340.
[0096] The node data generation module 310 is used to parse the full-scale power grid information model uploaded by the user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache using the power grid information files.
[0097] The node tree establishment module 320 is used to parse each node data, obtain the identification information and data association information of each node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data.
[0098] The database establishment module 330 is used to establish a project database and a device database respectively according to the hierarchical cache node tree and the device cache node tree.
[0099] The power grid information model hierarchical storage module 340 is used to obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the project database, the device database, and the hierarchical storage request, so as to realize the hierarchical storage of the full-scale power grid information model.
[0100] The technical solution of the embodiment of the present invention obtains node data by parsing the full-scale power grid information model, analyzes and processes the node data to generate an engineering database and an equipment database, and combines the hierarchical storage request sent by the user to implement the hierarchical storage method of the full-scale power grid information model, which can split the full-scale power grid information model into multiple single-project model files for storage according to user needs. The volume of each single-project model file is small but can ensure the integrity of the original information, thus effectively improving the efficiency of model review and model modification.
[0101] Based on the above embodiments, the node data generation module 310 may specifically be used for:
[0102] Obtain the model identifier of the full-scale power grid information model uploaded by the user, and parse the project type corresponding to the full-scale power grid information model according to the model identifier;
[0103] Parse the full-scale power grid information model uploaded by the user to obtain multiple power grid information files in the full-scale power grid information model;
[0104] Read each power grid information file, load the data information of each power grid information file into the cache to generate multiple node data in the cache, and identify each node data using the file name of each power grid information file.
[0105] Based on the above embodiments, the node tree establishment module 320 may specifically be used for:
[0106] According to the identification information of each node data, obtain the first type of node data and the second type of node data in the cache, and respectively screen out the first type of top-level node data and the second type of top-level node data from the first type of node data and the second type of node data;
[0107] Establish a hierarchical cache node tree according to the first type of top-level node data and the data association information of each first type of node data;
[0108] Establish an equipment cache node tree according to the second type of top-level node data and the data association information of each second type of node data;
[0109] Among them, the hierarchical cache node tree and the equipment cache node tree respectively include at least one level. Each level of the hierarchical cache node tree includes at least one first type of node data, and there is a corresponding relationship between each first type of node data and each project in the full-scale power grid information model. Each level of the equipment cache node tree includes at least one second type of node data.
[0110] Based on the above embodiments, it may further include a node relationship storage module, specifically used for:
[0111] Obtain each first - type underlying node data that serves as an underlying node in the hierarchical cache node tree;
[0112] Obtain the device information storage nodes associated with each first - type underlying node data, and based on the device name information stored in each device information storage node, obtain at least one second - type top - level node data associated with each first - type underlying node data in the device cache node tree;
[0113] Store the association relationships between each first - type underlying node and each second - type top - level node.
[0114] Based on the above - mentioned embodiments, the database establishment module 330 can specifically be used for:
[0115] Obtain the node hierarchical relationships between each first - type node data in the hierarchical cache node tree, and establish an engineering database according to the node hierarchical relationships between each first - type node data and the pre - set engineering database establishment rules;
[0116] Among them, the engineering database stores the engineering hierarchical relationships between each project in the full - scale power grid information model, and the engineering database establishment rules match the project types of the full - scale power grid information model;
[0117] Obtain the node hierarchical relationships between each second - type node data in the device cache node tree, and establish a device database according to the node hierarchical relationships between each second - type node data;
[0118] Among them, the device database stores the device information of each device in the full - scale power grid information model.
[0119] Based on the above - mentioned embodiments, it may further include a database association relationship acquisition module, which is used to obtain the association relationships between each underlying project in the engineering database and each device information in the device database according to the association relationships between each first - type underlying node and each second - type top - level node in the hierarchical cache node tree and the device cache node tree.
[0120] Based on the above - mentioned embodiments, the power grid information model hierarchical storage module 340 may include:
[0121] An engineering level acquisition unit, which is used to obtain the hierarchical storage request sent by the user, and obtain the engineering level of each single - project model file according to the hierarchical storage request;
[0122] A device information acquisition unit, which is used to obtain the device information associated with the engineering level of each single - project model file according to the engineering hierarchical relationships between each project in the engineering database and the association relationships between each underlying project in the engineering database and each device information in the device database;
[0123] The single-project model file generation unit generates multiple single-project model files according to the project levels of the single-project model files and the device information associated with each project level of the single-project model files.
[0124] Based on the above embodiments, the single-project model file generation unit can specifically be used for:
[0125] Determining whether a device type unit of a target device is stored in the single-project model file;
[0126] If so, adding a device instance unit to the single-project model file according to the device information of the target device;
[0127] If not, extracting type information from the device information of the target device, adding a device type unit matching the target device to the single-project model file, and adding a device instance unit to the single-project model file according to the device information of the target device.
[0128] The hierarchical storage device of the power grid information model provided by the embodiments of the present invention can execute the hierarchical storage method of the power grid information model provided by any embodiment of the present invention, and has the corresponding function modules and beneficial effects of the execution method.
[0129] Embodiment 4
[0130] Figure 4 FIG. shows a schematic structural diagram of an electronic device 40 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described herein and / or claimed.
[0131] As Figure 4As shown, the electronic device 40 includes at least one processor 41 and a memory communicatively connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc. The memory stores a computer program executable by the at least one processor. The processor 41 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0132] Multiple components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disc, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0133] The processor 41 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 41 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the hierarchical storage method of the power grid information model as described in the embodiments of the present invention. That is:
[0134] Parse the full-scale power grid information model uploaded by the user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache using the power grid information files;
[0135] Parse each node data, obtain the identification information and data association information of each node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data;
[0136] Establish an engineering database and a device database respectively according to the hierarchical cache node tree and the device cache node tree;
[0137] Obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the engineering database, the device database, and the hierarchical storage request, so as to implement the hierarchical storage of the full-scale power grid information model.
[0138] In some embodiments, the method for hierarchical storage of the power grid information model can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by the processor 41, one or more steps of the method for hierarchical storage of the power grid information model described above can be executed. Alternatively, in other embodiments, the processor 41 can be configured to execute the method for hierarchical storage of the power grid information model by any other suitable means (e.g., by means of firmware).
[0139] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, the one or more computer programs being executable and / or interpretable on a programmable system including at least one programmable processor, the programmable processor being a dedicated or general-purpose programmable processor, receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0140] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a dedicated computer, or other programmable data processing devices, such that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0141] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0142] To provide for interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can also be used to provide for interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0143] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0144] A computing system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0145] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.
[0146] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A hierarchical storage method for a power grid information model, characterized in that, it includes: Analyze the full-scale power grid information model uploaded by the user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache by using the power grid information files; Analyze each node data, obtain the identification information and data association information of each node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data; Obtain the node hierarchy relationship between the first type of node data in the hierarchical cache node tree, and establish an engineering database according to the node hierarchy relationship between the first type of node data and the rules pre-set in the engineering database; wherein, the first type of node data is obtained from the cache according to the identification information of each node data; the engineering database stores the engineering hierarchy relationship between each project in the full-scale power grid information model, and the engineering database establishment rules match the project type of the full-scale power grid information model; Obtain the node hierarchy relationship between the second type of node data in the device cache node tree, and establish a device database according to the node hierarchy relationship between the second type of node data; wherein, the second type of node data is obtained from the cache according to the identification information of each node data; the device database stores the device information of each device in the full-scale power grid information model; Obtain the hierarchical storage request sent by the user, and generate multiple single-project model files according to the engineering database, the device database and the hierarchical storage request, so as to realize the hierarchical storage of the full-scale power grid information model.
2. The method according to claim 1, characterized in that, Analyze the full-scale power grid information model uploaded by the user to obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in the cache by using the power grid information files, including: Obtain the model identification of the full-scale power grid information model uploaded by the user, and analyze the project type corresponding to the full-scale power grid information model according to the model identification; Analyze the full-scale power grid information model uploaded by the user to obtain multiple power grid information files in the full-scale power grid information model; Read each power grid information file, load the data information of each power grid information file into the cache to generate multiple node data in the cache, and identify each node data by using the file name of each power grid information file.
3. The method according to claim 2, characterized in that, Establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data, including: Obtain the first type of node data and the second type of node data from the cache according to the identification information of each node data, and respectively screen out the first type of top-level node data and the second type of top-level node data from the first type of node data and the second type of node data; According to the first type of top-level node data and the data association information of each first good class of node data, establish a hierarchical cache node tree; According to the second type of top-level node data and the data association information of each second type of node data, establish a device cache node tree; Among them, the hierarchical cache node tree and the device cache node tree each include at least one level. Each level of the hierarchical cache node tree includes at least one first type of node data, and there is a corresponding relationship between each piece of first type of node data and each project in the full-scale power grid information model. Each level of the device cache node tree includes at least one second type of node data.
4. The method according to claim 3, wherein, after parsing each node data, obtaining the identification information and data association information of each node data, and establishing a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each node data, it further includes: obtaining each first type of bottom node data serving as bottom nodes in the hierarchical cache node tree; obtaining device information storage nodes associated with each first type of bottom node data in the cache, and obtaining at least one second type of top node data associated with each first type of bottom node data in the device cache node tree according to the device name information stored in each device information storage node; storing the association relationship between each first type of bottom node and each second type of top node.
5. The method according to claim 4, wherein, after establishing an engineering database and a device database according to the hierarchical cache node tree and the device cache node tree respectively, it further includes: obtaining the association relationship between each bottom project in the engineering database and each device information in the device database according to the association relationship between each first type of bottom node and each second type of top node in the hierarchical cache node tree and the device cache node tree.
6. The method according to claim 5, wherein, obtaining a hierarchical storage request sent by a user, and generating a plurality of single-project model files according to the engineering database, the device database, and the hierarchical storage request, including: obtaining a hierarchical storage request sent by a user, and obtaining the project level of each single-project model file according to the hierarchical storage request; obtaining each device information associated with the project level of each single-project model file according to the project level relationship between each project in the engineering database and the association relationship between each bottom project in the engineering database and each device information in the device database; generating a plurality of single-project model files according to the project level of each single-project model file and each device information associated with the project level of each single-project model file.
7. The method according to claim 6, wherein, generating a plurality of single-project model files according to the project level of each single-project model file and each device information associated with the project level of each single-project model file, including: judging whether a device type unit of a target device is stored in the single-project model file; if so, adding a device instance unit to the single-project model file according to the device information of the target device; if not, extracting type information from the device information of the target device, adding a device type unit matching the target device to the single-project model file, and adding a device instance unit to the single-project model file according to the device information of the target device.
8. A hierarchical storage device for a power grid information model, wherein, including: a node data generation module, configured to parse the full-scale power grid information model uploaded by a user, obtain multiple power grid information files in the full-scale power grid information model, and generate multiple node data in a cache by using the power grid information files; a node tree establishment module, configured to parse each piece of node data, obtain identification information and data association information of each piece of node data, and establish a hierarchical cache node tree and a device cache node tree according to the identification information and data association information of each piece of node data; a database establishment module, configured to obtain a node hierarchical relationship between each first type of node data in the hierarchical cache node tree, and establish an engineering database according to the node hierarchical relationship between each first type of node data and a pre-set engineering database establishment rule; wherein, the first type of node data is obtained from the cache according to the identification information of each piece of node data; the engineering database stores an engineering hierarchical relationship between each project in the full-scale power grid information model, and the engineering database establishment rule matches the project type of the full-scale power grid information model; obtain a node hierarchical relationship between each second type of node data in the device cache node tree, and establish a device database according to the node hierarchical relationship between each second type of node data; wherein, the device database stores device information of each device in the full-scale power grid information model; a power grid information model hierarchical storage module, configured to obtain a hierarchical storage request sent by a user, and generate multiple single-project model files according to the engineering database, the device database, and the hierarchical storage request, so as to implement hierarchical storage of the full-scale power grid information model.
9. An electronic device characterized in that the electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the hierarchical storage method of the power grid information model according to any one of claims 1-7.
10. A computer-readable storage medium characterized in that the computer-readable storage medium stores computer instructions for causing a processor to implement the hierarchical storage method of the power grid information model according to any one of claims 1-7 when executed.
Citation Information
Patent Citations
Control device for GIM engineering project and control method thereof
CN114022001A