Power grid information model conversion method and system for power system

Through format analysis, hierarchical structure construction and data analysis conversion of the power grid information model, combined with IFC, STL and FBX technologies, the complexity of the power grid information model conversion is solved, efficient and reliable three-dimensional model conversion is achieved, and the safety and stability of the power system is improved.

CN120277036APending Publication Date: 2025-07-08STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510440196.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-09
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing power grid information model is converted into three-dimensional model with complex solutions and poor conversion effect, which affects the safety and stability of the power system.

Method used

By obtaining the target grid information model, format analysis and decompression, building hierarchical structure files, analyzing and converting model file data, using IFC and STL SDK for analysis, combining the FBX library and the three-dimensional engine core for node association and conversion, realizing efficient conversion of the grid information model.

Benefits of technology

It realizes high reliability and high efficiency conversion of the power grid information model, and improves the safety and stability of the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277036A_ABST
    Figure CN120277036A_ABST
Patent Text Reader

Abstract

The invention discloses a power grid information model conversion method for a power system. The method comprises the following steps: acquiring a target power grid information model; carrying out format analysis on the model file; constructing a file for storing a hierarchical structure of the power grid information model according to the calling relationship of each file in the power grid information model; analyzing and converting model file data information in the power grid information model; performing data and format conversion on a model file in the power grid information model; and analyzing the power grid information model to obtain a corresponding hierarchical structure, and performing corresponding node association and conversion to complete conversion of the power grid information model of the power system. The invention also discloses a system for realizing the power grid information model conversion method for the power system. Through analysis, analysis and conversion of the power grid information model, the conversion of the power grid information model of the power system is realized, the reliability is higher, and the conversion efficiency is also higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electrical automation, and particularly relates to a method and system for converting a grid information model for a power system. Background Art

[0002] With the development of economic technology and the improvement of people's living standards, electric energy has become an essential secondary energy source in people's production and life, bringing endless convenience to people's production and life. Therefore, ensuring the stable and reliable supply of electric energy has become one of the most important tasks of the power system.

[0003] The grid information model (GIM) is established on a system of informatization and digital application at each stage of the power transmission and transformation process. Based on the relevant information data of the project, it is an engineering information set established by using three-dimensional digital technology. The GIM model has characteristics such as completeness, relevance, consistency, uniqueness, and expandability, and can meet the application requirements of the entire life cycle of the project such as visualization, analyzability, editability, and drawing, and can also provide a data basis for the digital handover of power transmission and transformation projects.

[0004] At the same time, with the rapid development of digital technology, the current power system has begun to develop digitally to enhance the describable and controllable capabilities of the power grid with digital technology, thereby improving the safety and stability of the power system. In the digital development process of the power system, the three-dimensional model of the power system is the basic model of the digital process of the power system. Therefore, converting the grid information model into a three-dimensional model is of great significance to the power system.

[0005] However, the current solutions for converting the grid information model into a three-dimensional model often have defects such as relatively complex solutions, poor conversion effects, and large conversion files, thus greatly affecting the safety and stability of the power system. Summary of the Invention

[0006] One of the purposes of the present invention is to provide a method for converting a grid information model for a power system with high reliability and high efficiency.

[0007] Another purpose of the present invention is to provide a system for implementing the method for converting a grid information model for a power system.

[0008] The method for converting a grid information model for a power system provided by the present invention includes the following steps:

[0009] S1. Obtain the target grid information model;

[0010] S2. Analyze the format of the model file for the target grid information model obtained in step S1;

[0011] S3. According to the analysis results obtained in step S2, construct a file for storing the hierarchical structure of the power grid information model based on the call relationships of each file in the power grid information model.

[0012] S4. According to the analysis results obtained in step S2, parse and convert the model file data information in the power grid information model.

[0013] S5. According to the analysis results obtained in step S2, perform data and format conversion on the model files in the power grid information model.

[0014] S6. According to the analysis results obtained in step S2, parse the power grid information model to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the power grid information model of the power system.

[0015] The format analysis of the model files for the target power grid information model obtained in step S1 described in step S2 specifically includes the following steps:

[0016] Perform file format analysis on the target power grid information model obtained in step S1, locate the file with the file format of 7z and decompress it.

[0017] The files obtained after decompression include description files and model files; among them, the description files include *.cbm, *.dev, *.sch, *.fam, *.phm, and *.mod files, and the model files include *.ifc and *.stl files.

[0018] The files obtained after decompression are respectively stored in the CBM, DEV, PHM, and MOD folders; among them, the CBM folder includes the inventory file project.cbm; the inventory file project.cbm is the entry file of the power grid information model, and parsing the inventory file project.cbm can obtain the file association information of the power grid information model.

[0019] The construction of a file for storing the hierarchical structure of the power grid information model according to the analysis results obtained in step S2 described in step S3 specifically includes the following steps:

[0020] Using the inventory file project.cbm obtained in step S2 as the root node, generate an xml format file according to the call relationships between each file in the power grid information model; the xml format file is used to store all the hierarchical structures of the power grid information model.

[0021] The nested relationship of each file in the power grid information model is described as follows: among the first four - level.cbm files, they are nested and called in descending order of level, and several.ifc files are associated in each level of.cbm file; the fourth - level.cbm file calls the.dev file; the.dev file can call the same - level.dev file or.phm file; the.phm file can call the same - level.phm file, the next - level.mod file, and the next - level.stl file.

[0022] According to the analysis result obtained in step S2, the model file data information in the power grid information model is parsed and converted, which specifically includes the following steps:

[0023] Since the.mod file stores the entity and primitive parameters of the device model in an xml - format file, the parameter information in the corresponding xml - format file of the.mod file is read; the parameter information includes model type, size, drive parameters, coordinate position, and spatial transformation size.

[0024] According to the basic component standard specified in the power grid information model standard specification, the corresponding meshing modeling function interface is created, the parameter information in the xml - format file corresponding to the.mod file is obtained, and a triangular facet model is obtained by conversion according to the obtained information; the basic components include basic primitives, steel members, overhead lines, and cable lines.

[0025] For the combined model primitives, Boolean operations are performed using the set geometric bodies to construct the model corresponding to the combined model primitives.

[0026] According to the analysis result obtained in step S2, the model files in the power grid information model are converted in terms of data and format, which specifically includes the following steps:

[0027] The IFC SDK is used to parse the IFC model, and the STL SDK is used to parse the STL model to extract geometric information and attribute information.

[0028] The model elements in IFC (such as beams, walls, columns) and the components in the STL model are converted into a vertex - facet structure; the coordinate systems of the geometric data of IFC and STL are converted into the global coordinate system of the GIM model; according to the xml hierarchical structure of GIM, the IFC and STL models are bound to the corresponding GIM nodes, and a data mapping table is retained to record the original attributes of the IFC and STL formats.

[0029] According to the analysis result obtained in step S2, the power grid information model is parsed to obtain the corresponding hierarchical structure, and corresponding node association and conversion are performed, which specifically includes the following steps:

[0030] According to the analysis results obtained in step S2, combined with the FBX library and the SDK library, the hierarchical structure information in FBX format is obtained;

[0031] By reading the information in the mesh created by the three-dimensional base engine kernel, the data information of the three-dimensional engine kernel model is assigned to the corresponding end nodes, and finally the conversion of the power grid information model to the FBX format is completed; when assigning the end nodes, check whether there is a model with the same identification code written in the node: if there is a model with the same identification code written, the number of the model is associated with the new node, otherwise the current model is written as the new geometric information; all types of models are stored only once;

[0032] Among them, the information in the mesh created by the three-dimensional base engine kernel includes point, color, UV and normal information; the data information of the three-dimensional engine kernel model includes texture and spatial transformation matrix information.

[0033] The present invention also provides a system for implementing the method for converting the power grid information model for a power system, including a model acquisition module, a format analysis module, a file construction module, a file parsing module, a file conversion module and a model conversion module; the model acquisition module, the format analysis module, the file construction module, the file parsing module, the file conversion module and the model conversion module are connected in series in sequence; the model acquisition module is used to acquire the target power grid information model and upload the data information to the format analysis module; the format analysis module is used to perform format analysis of the model file for the acquired target power grid information model according to the received data information and upload the data information to the file construction module; the file construction module is used to construct a file for storing the hierarchical structure of the power grid information model according to the received data information, the obtained analysis result and the call relationship of each file in the power grid information model and upload the data information to the file parsing module; the file parsing module is used to parse and convert the data information of the model file in the power grid information model according to the received data information and the obtained analysis result and upload the data information to the file conversion module; the file conversion module is used to perform data and format conversion on the model file in the power grid information model according to the received data information and the obtained analysis result and upload the data information to the model conversion module; the model conversion module is used to parse the power grid information model according to the received data information and the obtained analysis result to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the power grid information model of the power system.

[0034] The method and system for converting the power grid information model for a power system provided by the present invention not only realize the conversion of the power grid information model of the power system through the analysis, parsing and conversion of the power grid information model, but also have higher reliability and higher conversion efficiency. Brief Description of the Drawings

[0035] Figure 1 This is a schematic diagram of the method flow of the method of the present invention.

[0036] Figure 2 This is a schematic diagram of the functional modules of the system of the present invention. Detailed implementation manners

[0037] As Figure 1 shown, this is a schematic diagram of the method flow of the method of the present invention: The method for converting a power grid information model for a power system disclosed in the present invention includes the following steps:

[0038] S1. Obtain a target power grid information model;

[0039] S2. For the target power grid information model obtained in step S1, perform format analysis of the model file; specifically, it includes the following steps:

[0040] For the target power grid information model obtained in step S1, perform file format analysis, locate the file with the file format of 7z and decompress it;

[0041] The files obtained after decompression include a description file and a model file; among them, the description file includes *.cbm, *.dev, *.sch, *.fam, *.phm, and *.mod files, and the model file includes *.ifc and *.stl files;

[0042] The files obtained after decompression are respectively stored in the CBM, DEV, PHM, and MOD folders; among them, the CBM folder includes the inventory file project.cbm; the inventory file project.cbm is the entry file of the power grid information model, and parsing the inventory file project.cbm can obtain the file association information of the power grid information model;

[0043] By parsing project.cbm, the association information of the files can be obtained, and then keyword parsing or line-by-line parsing can be performed on all files;

[0044] S3. According to the analysis result obtained in step S2, according to the call relationship of each file in the power grid information model, construct a file for storing the hierarchical structure of the power grid information model; specifically, it includes the following steps:

[0045] Using the inventory file project.cbm obtained in step S2 as the root node, generate an xml format file according to the call relationship between each file in the power grid information model; the xml format file is used to store all the hierarchical structures of the power grid information model;

[0046] The nesting relationship of each file in the power grid information model is described as follows: among the first four - level.cbm files, nested calls are made in descending order of level, and several.ifc files are associated in each level of.cbm file; the fourth - level.cbm file calls the.dev file; the.dev file can call the same - level.dev file or.phm file; the.phm file can call the same - level.phm file, the next - level.mod file, and the next - level.stl file;

[0047] S4. According to the analysis results obtained in step S2, parse and convert the model file data information in the power grid information model; specifically, it includes the following steps:

[0048] Since the.mod file stores the entity and primitive parameter information of the device model in an xml - format file, read the parameter information in the corresponding xml - format file of the.mod file; the parameter information includes model type, size, drive parameters, coordinate position, and spatial transformation size, etc.;

[0049] According to the basic component standards specified in the power grid information model standard specification, create the corresponding meshing modeling function interface, obtain the parameter information in the xml - format file corresponding to the.mod file, and convert the obtained information into a triangular patch model; the basic components include basic primitives, steel members, overhead lines, and cable lines, etc.;

[0050] For the combined model primitives, perform Boolean operations using the set geometric bodies to construct the model corresponding to the combined model primitives; specifically, during implementation, intersection, union, difference, etc. operations can be performed on the basic primitives according to the Boolean operation type stored in the primitive attributes in the primitive type tag;

[0051] S5. According to the analysis results obtained in step S2, perform data and format conversion on the model files in the power grid information model; specifically, it includes the following steps:

[0052] Use the IFC SDK to parse the IFC model and the STL SDK to parse the STL model, and extract geometric information and attribute information;

[0053] Convert the model elements (such as beams, walls, columns) in IFC and the components in the STL model into a vertex - patch structure; convert the geometric data coordinate systems of IFC and STL to the GIM model global coordinate system; according to the xml hierarchical structure of GIM, bind the IFC and STL models to the corresponding GIM nodes, and retain the data mapping table to record the original attributes of the IFC and STL formats;

[0054] S6. Based on the analysis result obtained in step S2, parse the power grid information model to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the power grid information model of the power system; specifically, it includes the following steps:

[0055] The FBX format file is a commonly used and general 3D data format file. Therefore, the present invention converts the power grid information model into an FBX format file;

[0056] Based on the analysis result obtained in step S2, combine the FBX library and the SDK library to obtain the hierarchical structure information in the FBX format;

[0057] By reading the information in the mesh created by the 3D base engine kernel, assign the data information of the 3D engine kernel model to the corresponding end nodes, and finally complete the conversion of the power grid information model to the FBX format; when assigning end nodes, check whether there is a model with the same identification code written in the node: if there is a model with the same identification code written, associate the number of the model with the new node, otherwise write the current model as new geometric information; all types of models are stored only once, achieving the effect of storing once and calling multiple times, and realizing the reuse of the models;

[0058] Among them, the information in the mesh created by the 3D base engine kernel includes information such as points, colors, UVs, and normals; the data information of the 3D engine kernel model includes information such as textures and spatial transformation matrices.

[0059] The method of the present invention stores the geometric and texture information of all types of models only once, achieving the effect of storing once and calling multiple times, and realizing the reuse of the models. Therefore, the present invention can reduce the storage size of the models and has higher efficiency.

[0060] Such as Figure 2The following is a schematic diagram of the functional modules of the system of the present invention: The system for implementing the grid information model conversion method for a power system disclosed in the present invention includes a model acquisition module, a format analysis module, a file construction module, a file parsing module, a file conversion module, and a model conversion module; the model acquisition module, the format analysis module, the file construction module, the file parsing module, the file conversion module, and the model conversion module are connected in series in sequence; the model acquisition module is used to acquire the target grid information model and upload the data information to the format analysis module; the format analysis module is used to perform format analysis of the model file for the acquired target grid information model according to the received data information and upload the data information to the file construction module; the file construction module is used to construct a file for storing the hierarchical structure of the grid information model according to the received data information, the obtained analysis result, and the call relationship of each file in the grid information model and upload the data information to the file parsing module; the file parsing module is used to parse and convert the model file data information in the grid information model according to the received data information and the obtained analysis result and upload the data information to the file conversion module; the file conversion module is used to perform data and format conversion on the model file in the grid information model according to the received data information and the obtained analysis result and upload the data information to the model conversion module; the model conversion module is used to parse the grid information model according to the received data information and the obtained analysis result to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the grid information model of the power system.

Claims

1. A method for converting the grid information model of a power system, comprising the following steps: S1. Obtain the target grid information model; S2. For the target grid information model obtained in step S1, perform format analysis on the model files; S3. According to the analysis result obtained in step S2, based on the call relationship between each file in the grid information model, construct a file for storing the hierarchical structure of the grid information model; S4. According to the analysis result obtained in step S2, parse and convert the model file data information in the grid information model; S5. According to the analysis result obtained in step S2, perform data and format conversion on the model files in the grid information model; S6. According to the analysis result obtained in step S2, parse the grid information model to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the grid information model of the power system.

2. The power grid information model conversion method for a power system according to claim 1, wherein The step S2 of performing format analysis on the model files for the target grid information model obtained in step S1 specifically includes the following steps: For the target grid information model obtained in step S1, perform file format analysis, locate the file with the file format of 7z and decompress it; The files obtained after decompression include description files and model files; among them, the description files include *.cbm, *.dev, *.sch, *.fam, *.phm and *.mod files, and the model files include *.ifc and *.stl files; The files obtained after decompression are respectively stored in the CBM, DEV, PHM, and MOD folders; among them, the CBM folder includes the inventory file project.cbm; the inventory file project.cbm is the entry file of the grid information model, and parsing the inventory file project.cbm can obtain the file association information of the grid information model.

3. The method for converting a power grid information model for a power system according to claim 2, wherein The step S3 of constructing a file for storing the hierarchical structure of the grid information model according to the analysis result obtained in step S2, based on the call relationship between each file in the grid information model, specifically includes the following steps: Using the inventory file project.cbm obtained in step S2 as the root node, generate an xml format file according to the call relationship between each file in the grid information model; the xml format file is used to store all the hierarchical structures of the grid information model; The nesting relationship between each file in the grid information model is described as follows: among the first four levels of.cbm files, nested calls are made in descending order of level, and several.ifc files are associated in each level of.cbm file; The fourth-level.cbm file calls the.dev file; .dev file can call the same-level.dev file or.phm file; .phm file can call the same-level.phm file, the next-level.mod file and the next-level.stl file.

4. The power grid information model conversion method for a power system according to claim 3, characterized in that The step S4 of parsing and converting the model file data information in the grid information model according to the analysis result obtained in step S2 specifically includes the following steps: Since the.mod file stores the entity and primitive parameters of the device model in an xml format file, the parameter information in the corresponding xml format file of the.mod file is read; the parameter information includes model type, size, drive parameters, coordinate position, and spatial transformation size; According to the basic component standards specified in the grid information model standard specification, the corresponding grid modeling function interface is created, the parameter information in the xml format file corresponding to the.mod file is obtained, and the triangular patch model is obtained by conversion according to the obtained information; the basic components include basic primitives, steel members, overhead lines, and cable lines; For the combined model primitives, Boolean operations are performed using the set geometric bodies to construct the model corresponding to the combined model primitives.

5. The power grid information model conversion method for a power system according to claim 4, wherein The data and format conversion of the model file in the grid information model according to the analysis result obtained in step S2 in step S5 specifically includes the following steps: The IFC SDK is used to parse the IFC model, and the STL SDK is used to parse the STL model to extract geometric information and attribute information; The model elements in IFC and the components in the STL model are converted into vertex-patch structures; the coordinate systems of the geometric data of IFC and STL are converted into the global coordinate system of the GIM model; according to the xml hierarchical structure of GIM, the IFC and STL models are bound to the corresponding GIM nodes, and the data mapping table is retained to record the original attributes of the IFC and STL formats.

6. The method for converting a power grid information model for a power system according to claim 5, wherein The grid information model is parsed to obtain the corresponding hierarchical structure, and the corresponding node association and conversion are performed according to the analysis result obtained in step S2 in step S6, specifically including the following steps: According to the analysis result obtained in step S2, the hierarchical structure information in FBX format is obtained by combining the FBX library and the SDK library; By reading the information in the mesh created by the three-dimensional base engine kernel, the data information of the three-dimensional engine kernel model is assigned to the corresponding end nodes, and finally the conversion of the grid information model to the FBX format is completed; when assigning the end nodes, check whether there is a model with the same identification code written in the node: if there is a model with the same identification code written, the number of the model is associated with the new node, otherwise the current model is written as new geometric information; all types of models are stored only once; Among them, the information in the mesh created by the three-dimensional base engine kernel includes point, color, UV, and normal information; the data information of the three-dimensional engine kernel model includes texture and spatial transformation matrix information.

7. A system for implementing the grid information model conversion method for a power system according to any one of claims 1 to 6, characterized in that It includes a model acquisition module, a format analysis module, a file construction module, a file parsing module, a file conversion module, and a model conversion module; the model acquisition module, the format analysis module, the file construction module, the file parsing module, the file conversion module, and the model conversion module are connected in series in sequence; the model acquisition module is used to acquire the target grid information model and upload the data information to the format analysis module; The format analysis module is used to perform format analysis on the model file of the acquired target grid information model according to the received data information and upload the data information to the file construction module; The file construction module is used to construct files for storing the hierarchical structure of the power grid information model according to the received data information, the obtained analysis results, and the call relationships of each file in the power grid information model, and upload the data information to the file parsing module; The file parsing module is used to parse and convert the model file data information in the power grid information model according to the received data information and the obtained analysis results, and upload the data information to the file conversion module; The file conversion module is used to perform data and format conversion on the model files in the power grid information model according to the received data information and the obtained analysis results, and upload the data information to the model conversion module; The model conversion module is used to parse the power grid information model according to the received data information and the obtained analysis results to obtain the corresponding hierarchical structure, and perform corresponding node association and conversion to complete the conversion of the power grid information model of the power system.