CN117708941A - Rule and expression based power grid model information extraction and checking method - Google Patents

Rule and expression based power grid model information extraction and checking method Download PDF

Info

Publication number
CN117708941A
CN117708941A CN202311730918.7A CN202311730918A CN117708941A CN 117708941 A CN117708941 A CN 117708941A CN 202311730918 A CN202311730918 A CN 202311730918A CN 117708941 A CN117708941 A CN 117708941A
Authority
CN
China
Prior art keywords
information
attribute
geometric
triangular
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311730918.7A
Other languages
Chinese (zh)
Inventor
张苏
荣经国
苑博
张卓群
马唯婧
于光泽
肖群安
刘畅
周鑫
朱占巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Economic And Technological Research Institute Co LtdB412 State Grid Office
State Grid Beijing Electric Power Co Ltd
Original Assignee
State Grid Economic And Technological Research Institute Co LtdB412 State Grid Office
State Grid Beijing Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Economic And Technological Research Institute Co LtdB412 State Grid Office, State Grid Beijing Electric Power Co Ltd filed Critical State Grid Economic And Technological Research Institute Co LtdB412 State Grid Office
Priority to CN202311730918.7A priority Critical patent/CN117708941A/en
Publication of CN117708941A publication Critical patent/CN117708941A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a power grid model information extraction and checking method based on rules and expressions, which comprises the steps of extracting geometric model information of power grid engineering to obtain a power grid BIM; simplifying a power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes; and uniformly detecting the expression form of each character string. The invention can derive the general description mode of the power grid information model according to different software, and the model object is defined in a standardized way from geometry, position and attribute, so that a realization computer can identify and extract corresponding elements according to the general expression mode, and meanwhile, the judgment of checking items is completed, and a judgment method based on rules and expressions is provided for improving the design quality.

Description

Rule and expression based power grid model information extraction and checking method
Technical Field
The invention relates to the technical field of computer aided design, in particular to a power grid model information extraction and checking method based on rules and expressions.
Background
With development of BIM technology, application modes based on BIM+ are continuously updated in the power grid industry, such as a construction management platform based on BIM forward design, a transformer substation operation and maintenance management platform, a power transmission line inspection platform and the like.
However, the current application mainly focuses on a certain stage or depends on a model to achieve a certain special purpose, and in the whole application process, the current application is not effectively connected with systems such as the built-in management, the marketing and allocation, the intelligent construction site and the like of a power grid company, and in different stages, different manufacturers and different application scenes, due to the reasons such as model expression modes, model analysis modes and the like, the power grid information model can have a certain degree of information loss and model loss, so that the power grid information model cannot be smoothly applied in the whole life cycle of the power grid engineering.
Therefore, how to realize the model and data iteration in the whole life cycle of the power grid engineering, integrate the BIM technology into the power grid engineering gene, and promote the digital transformation process of the power grid engineering to be a technical problem which needs to be solved by the technicians in the field.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present invention provides a method for extracting and checking power grid model information based on rules and expressions, which aims to realize model and data iteration within the whole life cycle of power grid engineering, integrate BIM technology into power grid engineering genes, and advance the digital transformation process of power grid engineering.
In order to achieve the above purpose, the invention discloses a method for extracting and checking power grid model information based on rules and expressions, which comprises the following steps:
Extracting geometric model information of power grid engineering to obtain a power grid BIM;
simplifying the power grid BIM model into a character string expression form aiming at each component and corresponding materials, association relations and attributes;
and uniformly detecting the expression form of each character string.
Preferably, the method for extracting the power grid engineering geometric model information is that independent geometric information is extracted;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body;
in the separate geometry information extraction, each geometry is a separate geometry;
the method for extracting the individual geometric information comprises the following steps:
converting the geometric model into a surface and point organization mode for reconstruction;
classifying each surface of the geometric body subjected to the reconstruction according to a plane and a curved surface;
wherein each quadrangular plane object is composed of 2 triangular plane objects, denoted as P {T1,T2}
Each curved object is formed by a plurality of triangular plane objects, and is marked as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
Preferably, the method for extracting the power grid engineering geometric model information is that nested geometric bodies are obtained;
in the nested geometry acquisition, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometry is that the association relation between the information acquisition mode and other independent geometries is described at the outermost layer of the independent geometries in a mode of an ID association table;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body.
Preferably, the method for simplifying the grid BIM model into the character string expression form for each component, and the corresponding material, the association relationship and the attribute specifically includes the following steps:
extracting all contents related to the components in the power grid BIM model, establishing the character string expression form for each component, and recording;
the expression form of the character string is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein ID is a unique representation of each of the components;
name is the Name of each of the components in the grid BIM model;
List < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
list < Parameter > is an attribute array of a current component of each component in the power grid BIM model, a Parameter class is formed by List < ParameterName, parameterValue >, parameter name represents a Parameter name, parameter value represents a Parameter value, and both Parameter name and Parameter value are in a character string format;
further organizing the geometric information of each of the components; describing geometric information representing each of the parts as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of a three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
further organizing the texture and map information of the descriptive geometry part of each of the parts, such that each face of the corresponding part in List < Triangle > () is associated with a texture information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
And further organizing the attribute information of each component, and associating the corresponding ID, name, triangular mesh array and attribute array.
More preferably, the geometric information of each of said parts is further organized; the method of describing the geometric information representing each of the parts as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters vertical for describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a de-duplication mode;
each vertex coordinate is a group of three numerical symbols, and represents X, Y and Z coordinate values respectively;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein each three index values are a group and represent a triangular patch;
defining normal vector normal of the triangular patch vertex, and recording the normal vector normal and the normal vector normal in the same mode as the vertex coordinate parameter vertical;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein each three normal index values are a group and represent normal vectors of three vertexes of the same triangular surface patch, and each vertex position is consistent with a vertex position sequence in vertex index information vertexinexes;
If commas are used for separating the data in the character string expression form, the number of the numerical values in each field is specifically as follows:
vertical = 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
More preferably, the texture and mapping information of the geometric parts describing each part are further organized, so that each surface of the corresponding part in List < Triangle > () is associated with a texture information table, and the method is specifically as follows:
defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position sequence is consistent with the vertex position sequence in vertex index information vertexIndexes;
Defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
More preferably, the attribute information of each component is further organized, and the method for associating the corresponding ID, name, triangle mesh array and attribute array is specifically as follows:
according to the attribute information Parameters of each component, the attribute name and the attribute value of each component are combined to form an attribute table;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
each of the components is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
Preferably, the unified detection includes compliance detection, specifically as follows:
and 2, extracting all contents related to the components in the power grid BIM according to the step, examining the expression form of the character string of each component, and judging whether the conversion of the general information model can be completed according to a set rule or not if the conversion is not completed.
Preferably, the unified detection includes integrity checking, specifically as follows:
the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each component, and judge whether the character string expression form has corresponding elements or not;
the elements specifically comprise geometric class information and attribute classes;
wherein the geometric information comprises components, materials and association relations;
the expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class comprises an attribute table and an attribute name/value;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the expression mode of the attribute name/value is as follows: { unique identifier, attribute name, attribute value }.
Preferably, the unified detection includes correctness checking;
the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
Filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the corresponding type name, and finding out the content contained in the corresponding type name;
searching an attribute value corresponding to the corresponding attribute name according to the ID of the corresponding type name, and judging whether the attribute value meets the requirement;
according to another judging condition in the combined judging conditions, the corresponding sub-elements of the names of the types are listed separately, and a sub-element ID list is formed;
according to element classification conditions in the combination judgment conditions, corresponding elements under the names of the types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the inspection item passes detection if the corresponding values meet the requirements, and if not, judging that the inspection item does not pass.
Preferably, the censoring items formed by the unified detection are all stored in a database mode and are called by a data interface, and the forming steps of each censoring item are as follows:
Step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item and configuring the examination item according to the specific composition structure;
step II, generating an expression of each examination item;
disassembling each examination item to form a structure comprising { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
the content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
the direct judgment is $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
The invention also provides a device for extracting and checking the power grid model information, which comprises the following steps:
the extraction module is used for extracting geometric model information of the power grid engineering to obtain a power grid BIM model;
the execution module is used for simplifying the power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes; and uniformly detecting the expression form of each character string.
Preferably, the method for extracting the power grid engineering geometric model information is that independent geometric information is extracted;
in the separate geometry information extraction, each geometry is a separate geometry;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body;
the extraction module is specifically used for reconstructing the geometric model in a way of converting the geometric model into a surface and a point;
classifying each surface of the geometric body subjected to the reconstruction according to a plane and a curved surface;
wherein each quadrangular plane object is composed of 2 triangular plane objects, denoted as P {T1,T2}
Each curved object is formed by a plurality of triangular plane objects, and is marked as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
Preferably, the method for extracting the power grid engineering geometric model information is that nested geometric bodies are obtained;
the extraction module is used for obtaining nested geometry;
in the nested geometry acquisition, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometry is that the association relation between the information acquisition mode and other independent geometries is described at the outermost layer of the independent geometries in a mode of an ID association table;
The independent geometric bodies mean that no association exists between any geometric body and any other geometric body.
Preferably, the method for simplifying the grid BIM model into the character string expression form for each component, and the corresponding material, the association relationship and the attribute specifically includes the following steps:
the execution module is used for extracting all contents related to the components in the power grid BIM model, establishing the character string expression form for each component and recording the character string expression form;
the expression form of the character string is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein ID is a unique representation of each of the components;
name is the Name of each of the components in the grid BIM model;
list < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
list < Parameter > is an attribute array of a current component of each component in the power grid BIM model, a Parameter class is formed by List < ParameterName, parameterValue >, parameter name represents a Parameter name, parameter value represents a Parameter value, and both Parameter name and Parameter value are in a character string format;
Further organizing the geometric information of each of the components; describing geometric information representing each of the parts as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of a three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
further organizing the texture and map information of the descriptive geometry part of each of the parts, such that each face of the corresponding part in List < Triangle > () is associated with a texture information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
and further organizing the attribute information of each component, and associating the corresponding ID, name, triangular mesh array and attribute array.
More preferably, the execution module is configured to further organize geometric information of each of the components; the method of describing the geometric information representing each of the parts as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters vertical for describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a de-duplication mode;
Each vertex coordinate is a group of three numerical symbols, and represents X, Y and Z coordinate values respectively;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein each three index values are a group and represent a triangular patch;
defining normal vector normal of the triangular patch vertex, and recording the normal vector normal and the normal vector normal in the same mode as the vertex coordinate parameter vertical;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein each three normal index values are a group and represent normal vectors of three vertexes of the same triangular surface patch, and each vertex position is consistent with a vertex position sequence in vertex index information vertexinexes;
if commas are used for separating the data in the character string expression form, the number of the numerical values in each field is specifically as follows:
vertical = 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
More preferably, the execution module is configured to further organize the texture and the map information of the geometric part describing each part, so that each surface of the corresponding part in List < Triangle > () is associated with a texture information table, and the method specifically includes the following steps:
defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position sequence is consistent with the vertex position sequence in vertex index information vertexIndexes;
defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
More preferably, the executing module is configured to further organize attribute information of each component, and the method for associating the corresponding ID, name, triangle mesh array and attribute array is specifically as follows:
According to the attribute information Parameters of each component, the attribute name and the attribute value of each component are combined to form an attribute table;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
each of the components is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
Preferably, the unified detection includes compliance detection, specifically as follows:
the execution module is used for carrying out compliance detection; and 2, extracting all contents related to the components in the power grid BIM according to the step, examining the expression form of the character string of each component, and judging whether the conversion of the general information model can be completed according to a set rule or not if the conversion is not completed.
Preferably, the unified detection includes integrity checking, specifically as follows:
the execution module is used for the integrity check; the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each component, and judge whether the character string expression form has corresponding elements or not;
The elements specifically comprise geometric class information and attribute classes;
wherein the geometric information comprises a component ID, a material and an association relationship;
the expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class comprises an attribute table and an attribute name/value;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the expression mode of the attribute name/value is as follows: { unique identifier, attribute name, attribute value }.
Preferably, the unified detection includes correctness checking;
the execution module is used for checking the correctness; the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the corresponding type name, and finding out the content contained in the corresponding type name;
Searching an attribute value corresponding to the corresponding attribute name according to the ID of the corresponding type name, and judging whether the attribute value meets the requirement;
according to another judging condition in the combined judging conditions, the corresponding sub-elements of the names of the types are listed separately, and a sub-element ID list is formed;
according to element classification conditions in the combination judgment conditions, corresponding elements under the names of the types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the inspection item passes detection if the corresponding values meet the requirements, and if not, judging that the inspection item does not pass.
More preferably, the execution module stores the censored items formed by the unified detection in a database manner, and calls the censored items through a data interface, and the forming steps of each censored item are as follows:
step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item and configuring the examination item according to the specific composition structure;
Step II, generating an expression of each examination item;
disassembling each examination item to form a structure comprising { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
the content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
the direct judgment is $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
The invention has the beneficial effects that:
the invention can derive the general description mode of the power grid information model according to different software, and the model object is defined in a standardized way from geometry, position and attribute, so that a realization computer can identify and extract corresponding elements according to the general expression mode, and meanwhile, the judgment of checking items is completed, and a judgment method based on rules and expressions is provided for improving the design quality.
The conception, specific structure, and technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, features, and effects of the present invention.
Drawings
FIG. 1 shows a flow chart of the execution of an embodiment of the present invention.
FIG. 2 is a flowchart showing the steps of forming each of the examination items in an embodiment of the present invention.
Detailed Description
Examples
As shown in fig. 1, the method for extracting and checking the power grid model information based on rules and expressions includes:
extracting geometric model information of power grid engineering to obtain a power grid BIM;
simplifying a power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes;
and uniformly detecting the expression form of each character string.
In the design stage, the key elements of the general information model are the accuracy of the model size and the position, and the information depth requirement pays attention to the detailed degree of design parameters, material properties, spatial relations and the like contained in the model.
The inspection key points of the power grid general information model can be formulated according to the standard of the national network 'three-dimensional design modeling standardization of power transmission and transformation project', the naming mode of the parts and attribute entries contained in the parts can be clearly inspected, and specific standardization can be referred to specific standard.
The invention is based on the information definition, extraction and examination method of the general information model, through this method, guarantee the effectiveness of data reading among different software and different modeling methods in the data level, realize the automatic examination of the general information model, guarantee the quality precision of the information model of the electric network to meet the whole course application demand of the information model of the electric network through examining the rule, and utilize model code, physical ID, material code and various attribute in the general information model to combine each stage application with the existing management platform of the electric network company closely, through optimizing the organization level of the model, use model that grows constantly as BIM technology application chain, form the electric network engineering holographic model comprising complete electric network design, construction and operation and maintenance information.
In some embodiments, the manner in which the grid engineering geometric model information is extracted is individual geometric information extraction;
the independent geometric body means that no association exists between any geometric body and any other geometric body;
in the separate geometry information extraction, each geometry is a separate geometry;
the method for extracting the independent geometric information comprises the following steps:
converting the geometric model into a surface and point organization mode for reconstruction;
classifying each surface of the reconstructed geometric body according to a plane and a curved surface;
wherein each quadrangular plane object is composed of 2 triangular plane objects, denoted as P {T1,T2}
Each curved object is composed of a plurality of triangular plane objects, and is denoted as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
In some embodiments, the power grid engineering geometric model information is extracted by nested geometric body acquisition;
in the acquisition of nested geometries, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometries is that the relationship between the outermost layer of each independent geometry and other independent geometries is described in a mode of an ID association table;
By individual geometry is meant that no relationship exists between any one geometry and any other geometry.
In some embodiments, the method for simplifying the grid BIM model into the character string expression form for each component and corresponding materials, association relations and attributes is as follows:
extracting all contents about the components in the power grid BIM, establishing a character string expression form for each component, and recording;
the character string expression form is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein the ID is a unique representation of each component;
name is the Name of each component in the grid BIM model;
list < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
list < Parameter > is an attribute array of a current component of each component in the power grid BIM model, parameter class is composed of List < ParameterName, parameterValue >, parameter name represents Parameter name, parameter value represents Parameter value, and both Parameter name and Parameter value are in character string format;
Further organizing the geometric information of each component; describing geometric information representing each component as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of the three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
the material quality and the mapping information of the descriptive geometric parts of each part are further organized, so that each surface of the corresponding part in the List < Triangle > () is associated with a material quality information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
the attribute information of each component is further organized, and the corresponding ID, name, triangular mesh array and attribute array are associated.
In some embodiments, the geometric information of each component is further organized; the method of describing the geometric information representing each part as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters of vertetics, namely describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a duplication eliminating way;
Each vertex coordinate is a group of three numerical symbols and respectively represents X, Y and Z coordinate values;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein, every three index values are a group, which represents a triangular patch;
defining normal vectors normal of triangular patch vertexes, and recording vertexes coordinate parameters vertical in the same mode;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein, every three normal index values are a group, represent the normal vector of three vertexes of the same triangular surface patch, and each vertex position is consistent with the vertex position sequence in vertex index information vertexinexes;
if the data in the character string expression form is separated by commas, the number of the numerical values in each field is specifically related as follows:
vertical = 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
Vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
In some embodiments, the texture and map information describing the geometric parts of each part are further organized, so that each surface of the corresponding part in List < Triangle > () is associated with a texture information table by the following method:
defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
for example, [1, 2, 3] means that there are three UV coordinates a (1, 1) b (2, 2) c (3, 3);
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from the normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position order is consistent with the vertex position order in vertex index information vertexIndexes;
defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
In some embodiments, the attribute information of each component is further organized, and the method for associating the corresponding ID, name, triangle mesh array and attribute array is specifically as follows:
According to the attribute information Parameters of each component, the attribute name and the attribute value of each component are formed into an attribute table together;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
each component is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
In some embodiments, the unified detection includes compliance detection, specifically as follows:
the compliance detection method is that according to the step 2, all contents about the components in the grid BIM model are extracted, the character string expression form of each component is inspected, whether the conversion of the general information model can be completed according to the established rule is inspected, and if the conversion is not completed, the problem is judged.
In some embodiments, unified detection includes integrity checking, as follows:
the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each part, and judge whether the character string expression form has corresponding elements;
the elements specifically comprise geometric class information and attribute classes;
the geometric class information comprises a component ID, materials and association relations;
The expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class includes an attribute table and attribute names/values;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the attribute name/value is expressed in the following manner: { unique identifier, attribute name, attribute value }.
In some embodiments, unified detection includes correctness checking;
the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the names of the corresponding types, and finding out the content contained in the names of the corresponding types;
searching attribute values corresponding to the corresponding attribute names according to the IDs of the names of the corresponding types, and judging whether the attribute values meet the requirements;
according to another judging condition in the combined judging conditions, the sub-elements of the names of the corresponding types are listed separately, and a sub-element ID list is formed;
According to element classification conditions in the combination judgment conditions, elements under the names of corresponding types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the examination item passes detection if the corresponding values meet the requirements, and if not, judging that the examination item does not pass.
Check item {3$if $%category =: room; $ if $ percent name =: "control || relay"%; the $ if $%: 3000%, { $if $% category =: door; for $ parent: in: room. Child% } };
filtering traversal is carried out in the engineering model document, and the filtering condition is the room type;
comparing and judging according to the room names, wherein the finding out the room names comprises the following steps: the number of rooms of the control or relay;
searching an attribute value with an attribute name of 'height' under the ID according to the room ID, and judging whether the attribute value is larger than 3000 mm or not;
obtaining the subelements forming the room, namely the wall body, according to the other judging condition in the combined judging conditions, and independently tabulating the IDs of the subelements,
searching all the dor type elements according to the element classification conditions in the combination judgment conditions,
obtaining a body of the door type element, namely a wall according to the door type element,
Judging whether the door element type main body ID exists in a sub-element ID list forming a room, if the door element type main body ID exists and the attribute value of the height is greater than 3000 mm, judging that the examination item passes detection, and if not, judging that the examination item does not pass.
As shown in fig. 2, in some embodiments, the audit entries formed by the unified inspection are all stored in a database and are invoked via a data interface, and each audit entry is formed as follows:
step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item, and configuring the examination item according to the specific composition structure;
for example, the arrangement of the control room and the relay room is favorable for fire prevention and safety evacuation of people in emergency, the number of entrances and exits is not less than 2, the clearance height is not less than 3m, and the description can prove that the check items at least contain 2 rules and are in a combination type.
Step II, generating an expression of each examination item;
disassembling each checked item to form a check item including { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
The content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
directly judging the current value as $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
Taking the rule entry as an example, the converted rule expression is:
{3$if $ $% category =: room; $ if $ percent name =: "control || relay"%; the $ if $%: 3000%, { $if $% category =: door; checking rule expression of $%parent }, the first letter represents rule type, 0 represents attribute class judgment, 1 represents spatial position class, 2 represents geometry class, and 3 represents combination class.
The invention provides a computer for executing the extraction and checking method, which comprises a rule conversion module;
the rule conversion module is used for analyzing the composition structure of the examination item according to the input examination item and configuring the examination item according to the specific composition structure; and each of the examination items is disassembled to form the examination items including {, }, $; a kind of electronic device with a display unit: computer regular expressions of%and special judgments.
The invention also provides a device for extracting and checking the power grid model information, which comprises the following steps:
the extraction module is used for extracting geometric model information of the power grid engineering to obtain a power grid BIM model;
the execution module is used for simplifying the power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes; and uniformly detecting the expression form of each character string.
In some embodiments, the manner in which the grid engineering geometric model information is extracted is individual geometric information extraction;
in the separate geometry information extraction, each geometry is a separate geometry;
the independent geometric body means that no association exists between any geometric body and any other geometric body;
the extraction module is specifically used for reconstructing the geometric model in a way of converting the geometric model into a surface and a point;
classifying each surface of the reconstructed geometric body according to a plane and a curved surface;
wherein each quadrangular plane object is composed of 2 triangular plane objects, denoted as P {T1,T2}
Each curved object is composed of a plurality of triangular plane objects, and is denoted as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
In some embodiments, the power grid engineering geometric model information is extracted by nested geometric body acquisition;
the extraction module is used for obtaining nested geometry;
in the acquisition of nested geometries, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometries is that the relationship between the outermost layer of each independent geometry and other independent geometries is described in a mode of an ID association table;
by individual geometry is meant that no relationship exists between any one geometry and any other geometry.
In some embodiments, the method for simplifying the grid BIM model into the character string expression form for each component and corresponding materials, association relations and attributes is as follows:
the execution module is used for extracting all contents about the components in the power grid BIM, establishing a character string expression form for each component and recording the character string expression form;
the character string expression form is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein the ID is a unique representation of each component;
name is the Name of each component in the grid BIM model;
List < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
list < Parameter > is an attribute array of a current component of each component in the power grid BIM model, parameter class is composed of List < ParameterName, parameterValue >, parameter name represents Parameter name, parameter value represents Parameter value, and both Parameter name and Parameter value are in character string format;
further organizing the geometric information of each component; describing geometric information representing each component as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of the three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
the material quality and the mapping information of the descriptive geometric parts of each part are further organized, so that each surface of the corresponding part in the List < Triangle > () is associated with a material quality information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
The attribute information of each component is further organized, and the corresponding ID, name, triangular mesh array and attribute array are associated.
In some embodiments, the execution module is to further organize the geometric information of each component; the method of describing the geometric information representing each part as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters of vertetics, namely describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a duplication eliminating way;
each vertex coordinate is a group of three numerical symbols and respectively represents X, Y and Z coordinate values;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein, every three index values are a group, which represents a triangular patch;
defining normal vectors normal of triangular patch vertexes, and recording vertexes coordinate parameters vertical in the same mode;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein, every three normal index values are a group, represent the normal vector of three vertexes of the same triangular surface patch, and each vertex position is consistent with the vertex position sequence in vertex index information vertexinexes;
If the data in the character string expression form is separated by commas, the number of the numerical values in each field is specifically related as follows:
h. vertical= 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
In some embodiments, the execution module is configured to further organize the texture and the map information of the geometric part describing each part, so that each surface of the corresponding part in List < Triangle > () is associated with the texture information table by the following method:
defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from the normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position order is consistent with the vertex position order in vertex index information vertexIndexes;
Defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
In some embodiments, the execution module is configured to further organize attribute information of each component, and the method for associating the corresponding ID, name, triangle mesh array, and attribute array is specifically as follows:
according to the attribute information Parameters of each component, the attribute name and the attribute value of each component are formed into an attribute table together;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
each component is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
In some embodiments, the unified detection includes compliance detection, specifically as follows:
the execution module is used for detecting compliance; the compliance detection method is that according to the step 2, all contents about the components in the grid BIM model are extracted, the character string expression form of each component is inspected, whether the conversion of the general information model can be completed according to the established rule is inspected, and if the conversion is not completed, the problem is judged.
In some embodiments, unified detection includes integrity checking, as follows:
the execution module is used for integrity examination; the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each part, and judge whether the character string expression form has corresponding elements;
the elements specifically comprise geometric class information and attribute classes;
the geometric class information comprises a component ID, materials and association relations;
the expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class includes an attribute table and attribute names/values;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the attribute name/value is expressed in the following manner: { unique identifier, attribute name, attribute value }.
In some embodiments, unified detection includes correctness checking;
the execution module is used for checking correctness; the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
Filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the names of the corresponding types, and finding out the content contained in the names of the corresponding types;
searching attribute values corresponding to the corresponding attribute names according to the IDs of the names of the corresponding types, and judging whether the attribute values meet the requirements;
according to another judging condition in the combined judging conditions, the sub-elements of the names of the corresponding types are listed separately, and a sub-element ID list is formed;
according to element classification conditions in the combination judgment conditions, elements under the names of corresponding types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the examination item passes detection if the corresponding values meet the requirements, and if not, judging that the examination item does not pass.
In some embodiments, the execution module stores the audit entries formed by the unified detection in a database manner and invokes the audit entries through the data interface, each audit entry being formed as follows:
step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item, and configuring the examination item according to the specific composition structure;
Step II, generating an expression of each examination item;
disassembling each checked item to form a check item including { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
the content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
directly judging the current value as $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
The foregoing describes in detail preferred embodiments of the present invention. It should be understood that numerous modifications and variations can be made in accordance with the concepts of the invention by one of ordinary skill in the art without undue burden. Therefore, all technical solutions which can be obtained by logic analysis, reasoning or limited experiments based on the prior art by the person skilled in the art according to the inventive concept shall be within the scope of protection defined by the claims.

Claims (22)

1. The power grid model information extraction and checking method is characterized by comprising the following steps of:
Extracting geometric model information of power grid engineering to obtain a power grid BIM;
simplifying the power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes;
and uniformly detecting the expression form of each character string.
2. The method for extracting and checking the power grid model information according to claim 1, wherein the power grid engineering geometric model information is extracted by independent geometric information;
in the separate geometry information extraction, each geometry is a separate geometry;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body;
the method for extracting the individual geometric information comprises the following steps:
converting the geometric model into a surface and point organization mode for reconstruction;
classifying each surface of the geometric body subjected to the reconstruction according to a plane and a curved surface;
wherein each quadrangular plane object is composed of 2 triangular plane objects, denoted as P {T1,T2}
Each curved object is formed by a plurality of triangular plane objects, and is marked as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
3. The network model information extraction and checking method according to claim 1, wherein the power grid engineering geometric model information extraction mode is nested geometric body acquisition;
in the nested geometry acquisition, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometry is that the association relation between the information acquisition mode and other independent geometries is described at the outermost layer of the independent geometries in a mode of an ID association table;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body.
4. The method for extracting and checking information of a power grid model according to claim 1, wherein the method for simplifying the power grid BIM model to the character string expression form for each of the components and the corresponding materials, association relations and attributes is specifically as follows:
extracting all contents related to the components in the power grid BIM model, establishing the character string expression form for each component, and recording;
The expression form of the character string is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein ID is a unique representation of each of the components;
name is the Name of each of the components in the grid BIM model;
list < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
list < Parameter > is an attribute array of a current component of each component in the power grid BIM model, a Parameter class is formed by List < ParameterName, parameterValue >, parameter name represents a Parameter name, parameter value represents a Parameter value, and both Parameter name and Parameter value are in a character string format;
further organizing the geometric information of each of the components; describing geometric information representing each of the parts as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of a three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
Further organizing the texture and map information of the descriptive geometry part of each of the parts, such that each face of the corresponding part in List < Triangle > () is associated with a texture information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
and further organizing the attribute information of each component, and associating the corresponding ID, name, triangular mesh array and attribute array.
5. The method for power grid model information extraction and review as in claim 4, wherein the geometric information of each of the components is further organized; the method of describing the geometric information representing each of the parts as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters vertical for describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a de-duplication mode;
each vertex coordinate is a group of three numerical symbols, and represents X, Y and Z coordinate values respectively;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein each three index values are a group and represent a triangular patch;
Defining normal vector normal of the triangular patch vertex, and recording the normal vector normal and the normal vector normal in the same mode as the vertex coordinate parameter vertical;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein each three normal index values are a group and represent normal vectors of three vertexes of the same triangular surface patch, and each vertex position is consistent with a vertex position sequence in vertex index information vertexinexes;
if commas are used for separating the data in the character string expression form, the number of the numerical values in each field is specifically as follows:
vertical = 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
6. The method for extracting and checking grid model information based on rules and expressions according to claim 4, wherein the material and map information of the geometric parts describing each part are further organized, so that each surface of the corresponding part in List < triange > () is associated with a material information table, specifically as follows:
Defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position sequence is consistent with the vertex position sequence in vertex index information vertexIndexes;
defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
7. The method for extracting and checking grid model information based on rules and expressions according to claim 4, wherein the attribute information of each component is further organized, and the method for associating the corresponding ID, name, triangular grid array and attribute array is specifically as follows:
according to the attribute information Parameters of each component, the attribute name and the attribute value of each component are combined to form an attribute table;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
Each of the components is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
8. The method for extracting and checking grid model information based on rules and expressions according to claim 1, wherein the unified detection comprises compliance detection, specifically comprising the following steps:
and 2, extracting all contents related to the components in the power grid BIM according to the step, examining the expression form of the character string of each component, and judging whether the conversion of the general information model can be completed according to a set rule or not if the conversion is not completed.
9. The method for extracting and checking grid model information based on rules and expressions according to claim 1, wherein the unified detection comprises integrity checking, specifically comprising the following steps:
the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each component, and judge whether the character string expression form has corresponding elements or not;
the elements specifically comprise geometric class information and attribute classes;
Wherein the geometric information comprises a component ID, a material and an association relationship;
the expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class comprises an attribute table and an attribute name/value;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the expression mode of the attribute name/value is as follows: { unique identifier, attribute name, attribute value }.
10. The method for extracting and checking grid model information based on rules and expressions according to claim 1, wherein the unified detection comprises correctness checking;
the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the corresponding type name, and finding out the content contained in the corresponding type name;
Searching an attribute value corresponding to the corresponding attribute name according to the ID of the corresponding type name, and judging whether the attribute value meets the requirement;
according to another judging condition in the combined judging conditions, the corresponding sub-elements of the names of the types are listed separately, and a sub-element ID list is formed;
according to element classification conditions in the combination judgment conditions, corresponding elements under the names of the types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the inspection item passes detection if the corresponding values meet the requirements, and if not, judging that the inspection item does not pass.
11. The method for extracting and checking grid model information based on rules and expressions according to claim 8, 9 or 10, wherein the checking items formed by the unified detection are all stored in a database manner and are called by a data interface, and the forming steps of each checking item are as follows:
step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item and configuring the examination item according to the specific composition structure;
Step I I, generating an expression of each examination item;
disassembling each examination item to form a structure comprising { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
the content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
the direct judgment is $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
12. The utility model information extraction and checking device is characterized by comprising:
the extraction module is used for extracting geometric model information of the power grid engineering to obtain a power grid BIM model;
the execution module is used for simplifying the power grid BIM model into character string expression forms aiming at each component and corresponding materials, association relations and attributes; and uniformly detecting the expression form of each character string.
13. The power grid model information extraction and checking device according to claim 12, wherein the power grid engineering geometric model information extraction mode is single geometric information extraction;
In the separate geometry information extraction, each geometry is a separate geometry;
the independent geometric bodies mean that no association exists between any geometric body and any other geometric body;
the extraction module is specifically used for reconstructing the geometric model in a way of converting the geometric model into a surface and a point;
classifying each surface of the geometric body subjected to the reconstruction according to a plane and a curved surface;
wherein each ofEach quadrilateral planar object is composed of 2 triangular planar objects, denoted as P {T1,T2}
Each curved object is formed by a plurality of triangular plane objects, and is marked as P {T1,T2……Tn}
Each triangular plane object consists of 3 vertexes and a normal coordinate and is marked as T {V1,V2,V3,V4} The method comprises the steps of carrying out a first treatment on the surface of the Wherein V is denoted as V {0,0,0}
The remainder still refers to planimetry, where the triangular faces are expressed in the same manner as planes.
14. The power grid model information extraction and verification device according to claim 12, wherein the power grid engineering geometric model information extraction mode is nested geometric body acquisition;
the extraction module is used for obtaining nested geometry;
in the nested geometry acquisition, each geometry is in a geometry combination form formed by combining more than two independent geometries, and the information acquisition mode of the nested geometry is that the association relation between the information acquisition mode and other independent geometries is described at the outermost layer of the independent geometries in a mode of an ID association table;
The independent geometric bodies mean that no association exists between any geometric body and any other geometric body.
15. The power grid model information extraction and review device according to claim 12, wherein the method for simplifying the power grid BIM model into the character string expression form for each component, and the corresponding material, association relation and attribute is specifically as follows:
the execution module is used for extracting all contents related to the components in the power grid BIM model, establishing the character string expression form for each component and recording the character string expression form;
the expression form of the character string is specifically as follows:
{ ID, name, list < Triangle > (), list < Parameter > () };
wherein ID is a unique representation of each of the components;
name is the Name of each of the components in the grid BIM model;
list < triangule > () is all triangular grid arrays contained in each component, the triangular grid triangule consists of List < X, Y, Z, nx, ny, nz > >, X represents an X-direction coordinate value, Y represents a Y-direction coordinate value, Z represents a Z-direction coordinate value, nx, ny, nz respectively represents X, Y and Z-direction coordinates corresponding to triangular grid normal information;
List < Parameter > is an attribute array of a current component of each component in the power grid BIM model, a Parameter class is formed by List < ParameterName, parameterValue >, parameter name represents a Parameter name, parameter value represents a Parameter value, and both Parameter name and Parameter value are in a character string format;
further organizing the geometric information of each of the components; describing geometric information representing each of the parts as a triangle mesh of basic elements constituting a three-dimensional model; wherein the geometric information is triangular patch information of a three-dimensional model;
the system also comprises a material, namely a material information table and a mapping, namely a mapping information table; if the map is not empty, associating the ID of the map with a geometric map information table;
further organizing the texture and map information of the descriptive geometry part of each of the parts, such that each face of the corresponding part in List < Triangle > () is associated with a texture information table; if the corresponding map is not empty, associating a corresponding geometric map information table;
and further organizing the attribute information of each component, and associating the corresponding ID, name, triangular mesh array and attribute array.
16. The grid model information extraction and review device of claim 15, wherein the execution module is configured to further organize geometric information of each of the components; the method of describing the geometric information representing each of the parts as a triangular mesh array constituting a three-dimensional model is specifically as follows:
defining vertex coordinate parameters vertical for describing the vertex of the triangular surface patch after geometric dispersion for each component, and requiring the vertex to be unique in a de-duplication mode;
each vertex coordinate is a group of three numerical symbols, and represents X, Y and Z coordinate values respectively;
associating the vertexes of each triangular surface patch to vertex index information vertexes, and establishing vertex index values from 0 to form vertex index information vertexinexes; wherein each three index values are a group and represent a triangular patch;
defining normal vector normal of the triangular patch vertex, and recording the normal vector normal and the normal vector normal in the same mode as the vertex coordinate parameter vertical;
establishing normal index values of normal vectors of triangular patch vertexes starting from 0 in normal information normal to form normal indexes; wherein each three normal index values are a group and represent normal vectors of three vertexes of the same triangular surface patch, and each vertex position is consistent with a vertex position sequence in vertex index information vertexinexes;
If commas are used for separating the data in the character string expression form, the number of the numerical values in each field is specifically as follows:
n. vertical = 3*n; wherein n is the number of vertexes after de-duplication;
normal= 3*m; wherein m is the number of normal vectors after de-duplication;
textruecords= 2*k; the textruCoords represents the plane coordinates of the map, and k is the number of UV coordinates after de-duplication;
vertexindexes=normallndexex=textruecordindides=materialids 3= 3*t; wherein textruCoordIndexes represents a mapping index, and t represents the number of triangular patches.
17. The power grid model information extraction and checking device according to claim 15, wherein the execution module is configured to further organize the material and map information of the geometric component describing each component, so that each surface of the corresponding component in List < triagle > () is associated with a material information table by a method specifically comprising the following steps:
defining a mapping plane coordinate textruCoords, wherein the textruCoords comprise UV coordinates of the mapping, and the two coordinate values are a group;
defining the mapping plane coordinates textruCoordIndexes of the vertexes of the triangular surface patches, and obtaining corresponding normal index values from normal indexes normalIndexes, wherein each three normal indexes are a group, represent the mapping coordinate indexes of three vertexes on the same triangular surface patch, and each vertex position sequence is consistent with the vertex position sequence in vertex index information vertexIndexes;
Defining the material Id of the material of each triangular surface patch in the material table, and associating specific material information with the material table of the power grid engineering through the material Id.
18. The power grid model information extraction and checking device according to claim 15, wherein the execution module is configured to further organize attribute information of each component, and the method for associating the corresponding ID, name, triangular mesh array and attribute array is specifically as follows:
according to the attribute information Parameters of each component, the attribute name and the attribute value of each component are combined to form an attribute table;
the attribute index of each component is associated with the component ID by the ID recorded in the parameter table;
each of the components is defined as an Element {ID,Name,List<Triangle>(),List<Parameter>()} In which ID is used for unique index, name is used for part Name filtering, list<Triangle>For developing geometric judgment, list<Parameter>And the method is used for carrying out comparison judgment of related parameters.
19. The power grid model information extraction and review device of claim 12, wherein the unified detection comprises compliance detection, specifically as follows:
the execution module is used for carrying out compliance detection; and 2, extracting all contents related to the components in the power grid BIM according to the step, examining the expression form of the character string of each component, and judging whether the conversion of the general information model can be completed according to a set rule or not if the conversion is not completed.
20. The power grid model information extraction and verification device according to claim 12, wherein the unified detection comprises integrity verification, in particular as follows:
the execution module is used for the integrity check; the integrity examination is to judge the converted attribute value and attribute item of the character string expression form of each component, and judge whether the character string expression form has corresponding elements or not;
the elements specifically comprise geometric class information and attribute classes;
wherein the geometric information comprises a component ID, a material and an association relationship;
the expression mode of the components is as follows: { component unique identifier, texture unique identifier, attribute table identifier };
the expression mode of the material is as follows: { texture unique identifier, color, texture. Texture coordinates };
the expression mode of the association relation is as follows: { unique identifier, object 1, object 2};
the attribute class comprises an attribute table and an attribute name/value;
the expression mode of the attribute table is as follows: { unique identifier, component unique identifier };
the expression mode of the attribute name/value is as follows: { unique identifier, attribute name, attribute value }.
21. The grid model information extraction and review device of claim 12, wherein the unified detection includes correctness review;
The execution module is used for checking the correctness; the correctness examination is a process of carrying out information extraction, comparison and judgment on the models piece by piece according to the examination items, and the specific process is as follows:
filtering traversal is carried out in the engineering model document, and the filtering condition is of a corresponding type;
comparing and judging according to the corresponding type name, and finding out the content contained in the corresponding type name;
searching an attribute value corresponding to the corresponding attribute name according to the ID of the corresponding type name, and judging whether the attribute value meets the requirement;
according to another judging condition in the combined judging conditions, the corresponding sub-elements of the names of the types are listed separately, and a sub-element ID list is formed;
according to element classification conditions in the combination judgment conditions, corresponding elements under the names of the types;
acquiring a corresponding main body according to the element;
judging whether the IDs of the corresponding elements and the corresponding main bodies exist in the sub-element ID list, if so, judging that the inspection item passes detection if the corresponding values meet the requirements, and if not, judging that the inspection item does not pass.
22. The grid model information extraction and review device according to claim 19, 20 or 21, wherein the execution module stores the review items formed by the unified detection in a database manner, and calls the review items through a data interface, and the forming step of each review item is as follows:
step I, analyzing the items;
the item analysis refers to analyzing the composition structure of the examination item according to the input examination item and configuring the examination item according to the specific composition structure;
step I I, generating an expression of each examination item;
disassembling each examination item to form a structure comprising { }, $; : % and a computer rule expression of a special predicate;
wherein, { } represents the censoring item, { } in { } represents the combining condition;
the content in the method represents a judging mode which can be divided into a direct judging mode and a circulating judging mode;
the direct judgment is $if;
the cycle is judged to be $for$;
the content in percent is the judgment content;
: : the content in the method is an attribute judgment mode, comprising = =, <, >, and |! The =and in;
: the former is the judged attribute;
: the latter is a contrast attribute.
CN202311730918.7A 2023-12-15 2023-12-15 Rule and expression based power grid model information extraction and checking method Pending CN117708941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311730918.7A CN117708941A (en) 2023-12-15 2023-12-15 Rule and expression based power grid model information extraction and checking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311730918.7A CN117708941A (en) 2023-12-15 2023-12-15 Rule and expression based power grid model information extraction and checking method

Publications (1)

Publication Number Publication Date
CN117708941A true CN117708941A (en) 2024-03-15

Family

ID=90154904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311730918.7A Pending CN117708941A (en) 2023-12-15 2023-12-15 Rule and expression based power grid model information extraction and checking method

Country Status (1)

Country Link
CN (1) CN117708941A (en)

Similar Documents

Publication Publication Date Title
JP5496853B2 (en) Method for generating rules for classifying structured documents, and computer program and computer for the same
CN107679221B (en) Time-space data acquisition and service combination scheme generation method for disaster reduction task
CN106919689A (en) Professional domain knowledge mapping dynamic fixing method based on definitions blocks of knowledge
CN112233746A (en) Method for automatically standardizing medical data
CN103226743B (en) Aircraft equipment technology maturity based on TRL assesses information processing method
CN108805510A (en) A kind of construction drawing design BIM model compliance checking methods and system
CN105677563A (en) Integrated test sequence generating method based on SysML module diagrams
CN106599064B (en) Automatic complex knowledge classification, acquisition and storage method suitable for high-end equipment
CN113987199B (en) BIM intelligent image examination method, system and medium with standard automatic interpretation
CN107357970A (en) BIM abnormal elements detection means and method based on data mining
CN112560151A (en) BIM (building information modeling) model intelligent auditing method and system based on resource description framework
CN105260300A (en) Service test method based on CAS (General Classification Standards of China Accounting Standards) application platform
CN114168795B (en) Building three-dimensional model mapping and storing method and device, electronic equipment and medium
CN108984597A (en) A kind of construction method and system of ship-related products structure tree
CN115357678A (en) GIS automatic examination method and system based on structured natural language rule
CN108170855A (en) A kind of CityGML and IFC data unified query and data pick-up method
CN112487437B (en) Android counterfeit application detection method and device based on user interface characteristics
CN111190880A (en) Database detection method and device and computer readable storage medium
Shrestha et al. SLNET: A redistributable corpus of 3rd-party Simulink models
CN115344504B (en) Software test case automatic generation method and tool based on requirement specification
CN117708941A (en) Rule and expression based power grid model information extraction and checking method
Andrews et al. Visualising computational intelligence through converting data into formal concepts
CN113642291B (en) Method, system, storage medium and terminal for constructing logical structure tree reported by listed companies
CN115934969A (en) Construction method of immovable cultural relic risk assessment knowledge graph
CN116186831A (en) Semantic structured description and compliance inspection method and system for building engineering design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination