CN111950105A - Thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal - Google Patents

Thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal Download PDF

Info

Publication number
CN111950105A
CN111950105A CN202010818860.1A CN202010818860A CN111950105A CN 111950105 A CN111950105 A CN 111950105A CN 202010818860 A CN202010818860 A CN 202010818860A CN 111950105 A CN111950105 A CN 111950105A
Authority
CN
China
Prior art keywords
dimensional model
pipeline
generating
traversal
power plant
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.)
Granted
Application number
CN202010818860.1A
Other languages
Chinese (zh)
Other versions
CN111950105B (en
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.)
Sichuan Electric Power Design and Consulting Co Ltd
Original Assignee
Sichuan Electric Power Design and Consulting 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 Sichuan Electric Power Design and Consulting Co Ltd filed Critical Sichuan Electric Power Design and Consulting Co Ltd
Priority to CN202010818860.1A priority Critical patent/CN111950105B/en
Publication of CN111950105A publication Critical patent/CN111950105A/en
Application granted granted Critical
Publication of CN111950105B publication Critical patent/CN111950105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of computer software and steam turbine pipeline intersection, and discloses a thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal, which is used for realizing rapid, accurate and stable conversion of a three-dimensional model between a CAD platform and a PDMS platform, and generating an intermediate file format meeting CAESAR requirements, thereby facilitating CAESAR stress analysis and calculation. The method comprises the following steps: A. formulating an information format of the pipeline element; B. acquiring CAD three-dimensional model data of a pipeline and a pipe fitting thereof; C. generating an element object linked list according to the CAD three-dimensional model data, and setting the access identifier as False; D. generating a set with a pipeline topological connection relation for elements in an element object linked list by using a depth-first traversal algorithm; E. generating an intermediate file according to the pipe systems of different branches in the set; F. and generating a thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model according to the intermediate file. The method is suitable for converting the three-dimensional model of the pipeline of the thermal power plant between two platforms.

Description

Thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal
Technical Field
The invention relates to the technical field of cross of computer software and steam turbine pipelines, in particular to a thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal.
Background
With the increasingly deepened integration of industrialization and informatization, the application of a digitization technology in the industrial field is deepened gradually, so-called digitization is that entity objects in the traditional industrial field form a digital twin body corresponding to the entity objects through an information and communication technology (IT), a Communication Technology (CT), an Operation Technology (OT) and other ICT technologies, and then the purpose of improving the production efficiency and reducing the operation cost of enterprises is achieved by subsequently utilizing emerging technologies such as cloud computing, big data, the Internet of things and artificial intelligence. The application of digitalization to the design of the traditional thermal power plant is spread for a long time, and at the present stage, each large power design institute mainly completes the modeling of a three-dimensional model of a pipeline of the thermal power plant on two large platforms, namely CAD and PDMS, and completes a series of corresponding secondary development work on each platform aiming at the pipeline model, so that the three-dimensional pipeline model is designed to meet the requirement of the design specification of the thermal power plant.
Generally, a method of converting a three-dimensional model on two platforms is mainly performed by performing secondary development on a CAD model to generate a macro file satisfying a PDMS created model. The method for generating the macro file is characterized in that the device models with different specifications are created by reading macro commands line by line, the required data size is not large, the device models are not accessed through an engineering database, the creating speed of the small-scale model is high, the blocking cannot occur, but the blocking can occur even cause the program to collapse when the large-scale model is processed, and the performance of computer hardware is influenced. In addition, the utilization rate of the intermediate macro file generated in the mode is not high, the intermediate macro file cannot be used as an intermediate file which is beneficial to analysis and calculation of pipeline stress, is mainly used for conversion of an equipment three-dimensional model, and is not suitable for conversion of a pipeline three-dimensional model of a thermal power plant.
The other mode of generating the PDMS model by the CAD three-dimensional model is mainly applied to general drawings, and is realized by expressing a digital elevation model by an irregular triangulation network representation method. The irregular triangle net list representation method utilizes discrete data obtained by all sampling points to connect the discrete points into a continuous triangle surface according to the principle of optimized combination, a three-dimensional model of the power plant is created on the CAD in such a way, and the three-dimensional model data is introduced into the PDMS after secondary processing and organization are carried out according to the specific data format of the PDMS, so that the establishment of the three-dimensional factory model in the PDMS is realized. The method provides a solution for meeting the major of the general diagram, has certain guiding significance for large-scale civil digital engineering, but has insufficient refinement degree of the solution, and cannot convert and create a three-dimensional model of the pipeline of the thermal power plant, which needs high precision and high creation speed and meets the arrangement requirement.
International thermal power engineering has also been conducted in a fierce manner in recent years, and results calculated by CAESAR software (professional software for pressure pipeline stress analysis developed by COADE corporation of america) are more emphasized internationally in a pipeline stress analysis link of a thermal power plant.
In conclusion, the generation of the intermediate file format meeting the CAESAR requirements has the important function, on one hand, the conversion and creation of the three-dimensional pipeline model of the thermal power plant on two platforms, namely a CAD platform and a PDMS platform, can be realized, on the other hand, the generated intermediate file has high utilization rate, and the CAESAR calculation can be met. Therefore, the method for converting the three-dimensional model of the thermal power plant pipeline based on the depth-first traversal algorithm is provided, and the method realizes the conversion and the rapid creation between two platforms by creating an intermediate file (CII format file) through the depth-first traversal algorithm.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal is provided, rapid, accurate and stable conversion of the three-dimensional model between a CAD platform and a PDMS platform is achieved, and an intermediate file format meeting CAESAR requirements can be generated, so that CAESAR stress analysis calculation is facilitated.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal comprises the following steps:
A. formulating an information format of the pipeline element;
B. acquiring CAD three-dimensional model data of a pipeline and a pipe fitting thereof;
C. generating an element object linked list according to the CAD three-dimensional model data, and setting the access identifier as False;
D. generating a set with a pipeline topological connection relation for elements in an element object linked list by using a depth-first traversal algorithm;
E. generating an intermediate file according to the pipe systems of different branches in the set;
F. and generating a thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model according to the intermediate file.
As a further optimization, in step a, the formulating an information format of the pipe element specifically includes:
by means of the combing of the Cii file format, the format of the attribute information of the pipeline element required to be filled in the model extension attribute XDATA when the CAD three-dimensional modeling is carried out is established.
As a further optimization, in step B, the obtaining CAD three-dimensional model data of the pipeline and the pipe thereof specifically includes:
identifying a three-dimensional model of a current CAD view, acquiring model entities of all pipelines and pipe fittings in the view, writing extended attributes XDATA of all the model entities into a text file in a data stream mode, and filtering useless XDATA.
As a further optimization, in step C, the generating of the element object linked list according to the CAD three-dimensional model data specifically includes:
and reading and analyzing XDATA information in the text file line by line to generate an object linked list containing all elements of the three-dimensional model.
As a further optimization, in step D, the generating a set having a pipeline topology connection relationship for the elements in the element object linked list by using a depth-first traversal algorithm specifically includes:
and performing depth-first traversal starting from the object closest to the origin coordinate in the element object chain table, wherein the traversal process is as follows:
(1) setting the current element object access mark as True, sequentially reading the coordinates of the element objects in the linked list according to a circulating structure, and judging whether the coordinate starting point, the coordinate ending point or the coordinate central point is equal to the starting point and the destination of the current element;
(2) if the two element objects are equal, setting the element object as the current element object, jumping out of the loop, adding the element object into a list of the temporary storage pipeline branch, and deleting the element object from the list of all the element objects; if not, putting the list into the collection of the storage pipe system, namely generating a branch of the pipe system;
(3) judging the access marks of all the element objects, and if the access marks are not True, setting the first element object in the linked list as a current element;
(4) and (4) repeating the steps (1) - (3) until all the elements in the chain table are accessed, and generating an element set for storing the pipe system.
As a further optimization, in step E, the generating an intermediate file according to the pipe systems of different branches in the set specifically includes:
reading information from the different branches of the collection of components storing the piping, and generating an intermediate file with a suffix Cii that satisfies the CAESAR calculation format, the intermediate file comprising: control data elements, basic data elements, auxiliary data elements and other data elements.
As a further optimization, in step F, the generating a thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model according to the intermediate file specifically includes:
F1. reading the starting point of the basic data unit according to the intermediate file and storing the starting point into a unit node table;
F2. merging the node tables according to an endpoint-tee joint form, deleting repeated node numbers, processing the nodes of the tee joint according to a direction vector mode for branches connected with the same tee joint, judging that a main pipe section is obtained if any two branch vectors are equal, and establishing each branch of the piping system according to the main pipe section and the branch section;
F3. and creating an element of each branch on the basis of the established branch, and completing the conversion to the PDMS model.
The invention has the beneficial effects that:
the method considers the factors such as the shortage and limitation of the conversion of the existing three-dimensional model from a CAD to a PDMS platform, the reusability of an intermediate file and the like, completes the analysis and creation of the three-dimensional model piping of the thermal power plant by identifying and reading CAD model data and based on a depth-first traversal algorithm, generates the Cii intermediate file, finally reads the analysis and creation of the piping in the PDMS platform, creates piping branches and processes of elbows, tees, valves and other elements on each branch, generates a pipeline three-dimensional model, and completes the conversion process of the whole three-dimensional model of the thermal power plant pipeline. The method has the advantages of high model precision, high conversion speed, stable conversion and the like, overcomes the difficult conditions that the traditional repeated work of respectively modeling on two platforms and the traditional conversion mode do not meet the pipeline three-dimensional model and the like, simultaneously solves the problem of CAESAR stress analysis and calculation of the pipeline three-dimensional model, and has important significance on the generation of model conversion data in three-dimensional design, the international stress analysis requirement and the like.
Drawings
Fig. 1 is a flow chart of a thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal in an embodiment.
Detailed Description
The invention aims to provide a thermal power plant pipeline three-dimensional model conversion method based on a depth-first traversal algorithm aiming at the defects of the existing three-dimensional model conversion mode. The method constructs a Cii intermediate file recorded with three-dimensional model information of the pipeline and the pipe fitting thereof through a computer program based on depth-first traversal, and the Cii intermediate file can complete model conversion functions of different platforms and can also be used for CAESAR stress calculation analysis.
In a specific implementation, the conversion method of the present invention includes the following steps:
A. and (3) format formulation: the information formats of pipe sections, elbows, large and small heads, tee joints and other pipe fittings of the pipeline are set according to CAESAR II Neutral files in a user instruction manual provided by CAESAR computing software, and the information formats are convenient to generate in the extended attribute XDATA during CAD modeling.
B. Data acquisition: identifying a three-dimensional model of a current CAD view, acquiring model entitlements (entities) of all pipelines and pipe fittings in the view, writing extended attributes XDATA of all entitlements into a text file in a data stream mode, and filtering out useless XDATA.
C. Generating a topological relation: analyzing all XDATA information in the text file, generating a linked list containing all elements of the three-dimensional model, and generating a set with a pipeline topology connection relation for the unordered elements in the linked list through a depth-first traversal algorithm.
Firstly, generating Object linked lists of all elements of the three-dimensional model according to acad Id in XDATA in the CAD model, and setting an access sign Visit of each Object as False;
then, starting from the Object closest to the origin (0,0,0) coordinate in the linked list, depth-first traversal is performed, and the traversal algorithm is as follows:
(1) setting the Object access mark Visit as True, adding the Object access mark Visit into a temporary list, sequentially reading the coordinates of each Object in a linked list, and selecting a node in a three-dimensional space, which is associated with the current Object;
(2) judging whether the Object of the current node has a related node or not, and if not, adding the list into the set;
(3) judging whether Object marks Visit of all elements in the linked list are True, if all nodes are accessed, ending traversal, otherwise, setting a first element Object in the linked list as a current element;
(4) the above processes (1) - (3) are repeated until the Object of all the elements is accessed.
D. Generating an intermediate file: and generating a pipe fitting information data pool according to the ordered pipe system set of different branches in the set, and reading the data pool to generate an intermediate file with a suffix of Cii, wherein the suffix of the intermediate file meets the CAESAR calculation format.
E. Creating a PDMS model: in a Design module of PDMS, a Cii file is opened through a plug-in developed for the second time, each information module stored in the Cii file is analyzed, and a thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model is generated, and the method specifically comprises the following steps:
(1) reading a basic data unit starting point according to the intermediate Cii file, and storing the basic data unit starting point into a unit node table;
(2) merging the node tables in an endpoint-tee form, deleting repeated node numbers, and processing P1, P2 and P3 points of a tee in a direction vector mode for branches connected with the same tee (wherein n represents the number of tee pipes), wherein any two vectors are equal, the main pipe section is considered to be P1-P2, the other branch is considered to be a branch pipe section, namely P3, and each branch of the pipe system is established according to the method;
(3) and creating an element of each branch on the basis of the established branch, and completing the conversion of the PDMS model.
Example (b):
as shown in fig. 1, the method flow of converting the three-dimensional model of the thermal power plant pipeline based on the depth-first traversal algorithm in this embodiment includes the following implementation steps:
A. and (3) format formulation: by means of the CAESAR software to help the translation reading of the documents, and by means of a CAESAR II Neutral File section, a Cii intermediate File format which is in accordance with stress analysis calculation is combed. The Cii file is divided into four major parts, namely a document control data recording unit, a basic data recording unit, an auxiliary data recording unit containing element data such as an elbow, a large head and a small head, a tee joint and other data recording units containing materials.
By means of the combing of the Cii file format, attribute information of different elements required to be filled in the model extension attribute XDATA in CAD three-dimensional modeling is formulated, the elements including: the heat transfer system comprises a pipeline, an elbow, a reducer, a square and round joint, a tee joint, a connecting pipe seat, a universal rigid part, a valve, a support and hanger logical point and an end point. The special elements such as three-way valve, angle valve, etc. of different types of elements are also specially processed for program identification.
The standardization, institutionalization and standardization processing of a three-dimensional model created by a modeling worker are unified through format formulation.
B. Data acquisition: model data is obtained by performing secondary development on a CAD platform. Specifically, based on the NET framework, the current open dwg graph is accessed according to a secondary development interface AutoCAD. The Application object is the root object of the API interface through which the main window and any open graphics can be accessed. Once the graph is obtained, the Document object, the Database object, the Transaction object, and the selection set object in the graph can be accessed, and the Entity objects of all elements of the three-dimensional model in the current view can be obtained, so as to obtain various data of the model, where the data mainly includes: identification code, name, outer diameter wall thickness, temperature pressure, material, weight, etc.
And storing the data of each Entity object into a text file in a manner of byte stream StringBuilder, wherein the file at the moment can be regarded as a database file, and the String information of each line in the file is the specific description of a certain Entity object in the dwg view. Due to all entity objects in the acquired view, there is information that is useless for generating the pipeline cii file, and some useless line information needs to be deleted in the text file.
C. Generating a pipeline topological structure relation: reading the text file line by line, writing the information of different elements into a linked list which takes the Object base class as the element and corresponds to the program according to the XDATA format established in the step A, and mainly comprising the following steps: TUBI class, Elbow class, Tee class, Reduce class, Valve class, Atta class, Cap class, PipeEndPnt class. And combining the disordered elements in the linked list based on depth-first traversal to generate a piping system with the same connection topological relation with the CAD three-dimensional model.
C1. An ORM object relational mapping mode is adopted, according to identification acadId and other attribute information in each row of data, a program basic control structure executed according to the sequence reads a first field of an attribute, firstly, PipeEndPoint, namely, end point thermal displacement is judged, PipeEndPnt type is generated, zdjjdsx, namely, a logic support hanger is continuously judged, Atta type is generated, finally, the first field is judged, namely, the name of a third field of lbjsx is judged, Valve type is generated if the first field contains Valve type, Cap type is generated if the first field contains end head or end Cap type, Tee type is generated if the first field contains Tee type, Elbow type is generated if the first field contains Elbow or Elbow, Reduce type is generated if the first field contains different diameter pipe or size head type, and TUBI type is generated if the first field contains steel pipe or round pipe. And setting the access mark Visit of each generated element Object as False and putting the element Object into a linked list until the last line of the text is read, and finishing the mapping from the text to the Object.
C2. Starting from an object with the coordinate closest to the origin (0,0,0) in a linked list consisting of all element objects, traversing the unordered element objects by using a depth-first traversal algorithm to generate a piping system with a topological logical relationship:
a) setting the current element object access mark as True, sequentially reading the coordinates of the element objects in the linked list according to a circulating structure, and judging whether the coordinate starting point end point or the central point is equal to the starting point and the destination of the current element;
b) if the two element objects are equal, the element object is set as the current element object, a loop is skipped out, and the element object is added into a list table of the temporary storage pipeline branch and is deleted from a linked list of all the element objects. If no equality is found, the temporary list table is placed in the set of storage pipes, i.e., a branch of one pipe is generated.
c) And judging the access flags Visit of all the element objects, and if the access flags Visit are True, all the element objects are accessed to the elements which generate the branches, and the set is the final piping system. If not all are True, then continue to set the first element object in the linked list as the current element;
d) and repeating the steps a) and c) until all elements in the chain table are accessed, namely the number of the element objects in the chain table is 0, and generating an element set for storing the piping system.
D. Generating an intermediate file Cii: each branch is read cyclically according to the set of storage pipes in step C.
Generating a Cii file control data recording unit: reading each branch in the piping system set, counting the total number NULELT of the piping system elements, the number NOHGRS of the spring support hangers, the number NORED of the large heads and the small heads, the number BEND of the elbows, the number RIGID of the RIGID parts, the number Restratin of the constraints, the number Displacement of the end points and the number interaction of the three-way joints.
Generating a Cii file basic data recording unit: this unit relates to data between some two component objects. Outputting the serial number of the initial and end nodes of the unit, wherein the serial number of the pipeline is 10 intervals to the straight section and the bent pipe according to the flow direction of the pipeline, the serial number is started from 10000, and the position of the elbow node is the central point of the bent pipe; along the flow direction of the pipeline, the free ends of the pipeline are numbered from 501; the number of the three-way element is numbered from 301 along the flow direction of the pipeline according to the existing glif number; starting from a pipeline branch head, numbering from 1 by taking 1 as an interval by the support and hanger; the rigid parts (flanges, valves and gaskets) are not node-numbered; accidental load points (concentrated loads) are numbered from 800 at intervals of 100; calculating the projection distance of the output unit in a coordinate system XYZ according to the coordinates between the elements, the outer diameter and the wall thickness of the output unit, the thickness of an insulating layer of the output unit, the operating temperature and the operating pressure under the output working condition, the density of the insulating layer, the density of fluid in an output pipeline, the number of an elbow of a termination node of the output unit (0 if not), the number of a rigid member of the termination node of the output unit, the number of constraint of the termination node of the output unit, the number of displacement load of the termination node of the output unit, the number of a tee joint of the termination node of the output unit and the number of the reducer.
Generating a Cii file auxiliary data recording unit: the auxiliary recording unit is divided into a bending unit, a rigid element, a constraint, a displacement load, a three-way unit and a large and small head unit. Recording the elbow radius of the bending unit; recording the weight of the rigid unit rigid member; recording the node number of the constraint (the node number is a corresponding element of the basic data recording part), the constraint type and the direction cosine of the constraint on XYZ; recording the components Dx, Dy and Dz of the displacement of the branch head or the branch tail of the displacement load; recording the tee joint node number and the plane internal stress enhancement coefficient of the tee joint unit; record the outer diameter of the tail end of the reducer and the wall thickness of the tail end.
And (3) generating other data recording units of the Cii file: recording the corresponding ID of the material table, and correspondingly searching the material ID according to the material mapping relation between the materials in the Cii and the PDMS; recording unit conversion constant and unit of unit conversion; and recording a pipeline starting node number and a node XYZ coordinate in coordinate check.
E. Creating a PDMS model: and opening Cii files and analyzing each unit data to a program data pool through an independently developed plug-in the PDMS design platform, and finishing an inverse process aiming at the step D to generate the thermal power plant pipeline three-dimensional model with the PDMS completely identical to the CAD three-dimensional model in logical structure and data attribute.
E1. Because the corresponding pipeline three-dimensional model is not completely output according to the Cii file format in the CAESAR calculation software (namely the Cii file after stress calculation is completed through CAESAR is not completely the same as the file generated in the step D, but the expressed pipeline model is the same), in order to enable the model importing mode to have greater applicability, the Cii file basic data unit is put into the unit node table by reading the unit origin-destination node number of the Cii file basic data unit.
E2. Merging the node tables in an endpoint-tee joint mode, deleting repeated node numbers, and processing P1, P2 and P3 points on the basis of direction vectors of different small branches connected with the same tee joint (wherein n represents the number of piping tee joints), particularly on the aspect of processing the tee joint problem, considering that any two vectors are equal to be a main pipe section, namely P1-P2, and the other branch is a branch pipe section, namely P3, and establishing each branch of the piping system;
E3. create Zone and following Pipe hierarchy on PDMS, automatically populate DBelement name, Pipe level. And generating all elements below each branch, finding the grade of an element library according to the outer diameter and the wall thickness of the element, and finding the attribute of the grade library according to the temperature and the pressure of the element, thereby creating a pipeline model according to the grade library of the element library and different attribute data information of different elements.

Claims (7)

1. A thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal is characterized by comprising the following steps:
A. formulating an information format of the pipeline element;
B. acquiring CAD three-dimensional model data of a pipeline and a pipe fitting thereof;
C. generating an element object linked list according to the CAD three-dimensional model data, and setting the access identifier as False;
D. generating a set with a pipeline topological connection relation for elements in an element object linked list by using a depth-first traversal algorithm;
E. generating an intermediate file according to the pipe systems of different branches in the set;
F. and generating a thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model according to the intermediate file.
2. The thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal as claimed in claim 1, wherein in step a, the formulating information format of the pipeline element specifically comprises:
by means of the combing of the Cii file format, the format of the attribute information of the pipeline element required to be filled in the model extension attribute XDATA when the CAD three-dimensional modeling is carried out is established.
3. The thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal as claimed in claim 2, wherein in step B, the obtaining of CAD three-dimensional model data of the pipeline and its pipe fittings specifically includes:
identifying a three-dimensional model of a current CAD view, acquiring model entities of all pipelines and pipe fittings in the view, writing extended attributes XDATA of all the model entities into a text file in a data stream mode, and filtering useless XDATA.
4. The thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal as claimed in claim 3, wherein in step C, the generating of the element object linked list from the CAD three-dimensional model data specifically includes:
and reading and analyzing XDATA information in the text file line by line to generate an object linked list containing all elements of the three-dimensional model.
5. The method for converting a three-dimensional model of a thermal power plant pipeline based on depth-first traversal as claimed in claim 1, wherein in step D, the generating a set with pipeline topological connection relationships for elements in an element object linked list by using a depth-first traversal algorithm specifically comprises:
and performing depth-first traversal starting from the object closest to the origin coordinate in the element object chain table, wherein the traversal process is as follows:
(1) setting the current element object access mark as True, sequentially reading the coordinates of the element objects in the linked list according to a circulating structure, and judging whether the coordinate starting point, the coordinate ending point or the coordinate central point is equal to the starting point and the destination of the current element;
(2) if the two element objects are equal, setting the element object as the current element object, jumping out of the loop, adding the element object into a list of the temporary storage pipeline branch, and deleting the element object from the list of all the element objects; if not, putting the list into the collection of the storage pipe system, namely generating a branch of the pipe system;
(3) judging the access marks of all the element objects, and if the access marks are not True, setting the first element object in the linked list as a current element;
(4) and (4) repeating the steps (1) - (3) until all the elements in the chain table are accessed, and generating an element set for storing the pipe system.
6. The method for converting a three-dimensional model of a thermal power plant pipeline based on depth-first traversal as claimed in claim 1, wherein in step E, the generating of the intermediate file according to the pipelines of different branches in the set specifically comprises:
reading information from the different branches of the collection of components storing the piping, and generating an intermediate file with a suffix Cii that satisfies the CAESAR calculation format, the intermediate file comprising: control data elements, basic data elements, auxiliary data elements and other data elements.
7. The thermal power plant pipeline three-dimensional model conversion method based on depth-first traversal as claimed in any one of claims 1 to 6, wherein in step F, the generating of the thermal power plant pipeline PDMS three-dimensional model corresponding to the CAD three-dimensional model from the intermediate file specifically includes:
F1. reading the starting point of the basic data unit according to the intermediate file and storing the starting point into a unit node table;
F2. merging the node tables according to an endpoint-tee joint form, deleting repeated node numbers, processing the nodes of the tee joint according to a direction vector mode for branches connected with the same tee joint, judging that a main pipe section is obtained when vectors of any two branches are equal, and establishing each branch of the piping system according to the main pipe section and the branch section;
F3. and creating an element of each branch on the basis of the established branch, and completing the conversion to the PDMS model.
CN202010818860.1A 2020-08-14 2020-08-14 Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline Active CN111950105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010818860.1A CN111950105B (en) 2020-08-14 2020-08-14 Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010818860.1A CN111950105B (en) 2020-08-14 2020-08-14 Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline

Publications (2)

Publication Number Publication Date
CN111950105A true CN111950105A (en) 2020-11-17
CN111950105B CN111950105B (en) 2024-07-09

Family

ID=73343317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010818860.1A Active CN111950105B (en) 2020-08-14 2020-08-14 Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline

Country Status (1)

Country Link
CN (1) CN111950105B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948907A (en) * 2021-01-28 2021-06-11 天津博迈科海洋工程有限公司 Automatic pipeline grouping method based on E3D software
CN113569334A (en) * 2021-06-28 2021-10-29 上海外高桥造船有限公司 Ship model reverse modeling system based on AutoCAD
CN113609614A (en) * 2021-08-02 2021-11-05 西安交通大学 Method for building digital twinning and data driving integrated system of steam generator

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216862A (en) * 2008-01-16 2008-07-09 南京航空航天大学 Paper-free three-dimensional assemblage process document accomplishing method
CN104598697A (en) * 2015-02-11 2015-05-06 广东航宇卫星科技有限公司 Construction method of product simulation three-dimensional model
CN106339565A (en) * 2016-09-23 2017-01-18 四川电力设计咨询有限责任公司 Method for converting COMOS data to PDMS data in pipeline design
CN106383955A (en) * 2016-09-23 2017-02-08 四川电力设计咨询有限责任公司 Method for data conversion between stress analysis and three-dimensional models in pipeline design
CN108304511A (en) * 2018-01-19 2018-07-20 福建师范大学 A kind of river network storage expression based on XML data format
CN109117564A (en) * 2018-08-22 2019-01-01 上海核工程研究设计院有限公司 A kind of system and method for PDS threedimensional model conversion RELAP5 model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216862A (en) * 2008-01-16 2008-07-09 南京航空航天大学 Paper-free three-dimensional assemblage process document accomplishing method
CN104598697A (en) * 2015-02-11 2015-05-06 广东航宇卫星科技有限公司 Construction method of product simulation three-dimensional model
CN106339565A (en) * 2016-09-23 2017-01-18 四川电力设计咨询有限责任公司 Method for converting COMOS data to PDMS data in pipeline design
CN106383955A (en) * 2016-09-23 2017-02-08 四川电力设计咨询有限责任公司 Method for data conversion between stress analysis and three-dimensional models in pipeline design
CN108304511A (en) * 2018-01-19 2018-07-20 福建师范大学 A kind of river network storage expression based on XML data format
CN109117564A (en) * 2018-08-22 2019-01-01 上海核工程研究设计院有限公司 A kind of system and method for PDS threedimensional model conversion RELAP5 model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙科等: ""基于空气网络法的管路***及阀门计算模型"", 《工程热物理学报》, vol. 38, no. 9, 30 September 2017 (2017-09-30) *
文剑等: ""COMOS 与PDMS 在电厂管道设计中的开发及应用"", 《特种结构》, vol. 34, no. 5, 31 October 2017 (2017-10-31) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948907A (en) * 2021-01-28 2021-06-11 天津博迈科海洋工程有限公司 Automatic pipeline grouping method based on E3D software
CN113569334A (en) * 2021-06-28 2021-10-29 上海外高桥造船有限公司 Ship model reverse modeling system based on AutoCAD
CN113609614A (en) * 2021-08-02 2021-11-05 西安交通大学 Method for building digital twinning and data driving integrated system of steam generator
CN113609614B (en) * 2021-08-02 2022-08-05 西安交通大学 Method for building digital twinning and data driving integrated system of steam generator

Also Published As

Publication number Publication date
CN111950105B (en) 2024-07-09

Similar Documents

Publication Publication Date Title
CN111950105B (en) Depth-first traversal-based three-dimensional model conversion method for thermal power plant pipeline
KR101794282B1 (en) The method of creating 2d piping cad data to 3d piping cad modeling data
CN105117573B (en) Auto hydraulic model building method based on CAD drainage pipeline networks drawing informations
CN102147830B (en) Method and system for optimally designing water supply pipe network
US20140358492A1 (en) Systems and methods for synchronizing geographic information system (gis) network models
Zadeh et al. BIM-CITYGML data integration for modern urban challenges.
CN112527944A (en) Method for building spatial semantic database based on BIM and GIS data integration
CN105468869A (en) Topological relation analysis method of PDS (Plant Design System) model
CN112257160A (en) BIM-based standardized forward design method for waste incineration power plant
CN104361025A (en) Method for fusing and integrating multi-source spatial data
CN106649968A (en) Visualization design system and method for village water supply pipeline network
Boates et al. Network modelling and semantic 3D city models: Testing the maturity of the utility network ade for citygml with a water network test case
Jiang et al. Semantic enrichment for BIM: Enabling technologies and applications
CN112182871A (en) System and method for converting three-dimensional pipeline model into MapGIS model
CN116070345A (en) Method and device for driving three-dimensional model modeling based on two-dimensional drawing and computer storage medium
CN104318501A (en) Pipeline network topological relation establishment method, device and system
Halfawy et al. Standard data models for interoperability of municipal infrastructure asset management systems
Bakalov et al. A network model for the utility domain
CN116011157A (en) Automatic desk CAD and Revit secondary development-based pipeline rapid extraction modeling method
CN110298913B (en) Automatic drainage pipe network model data conversion method based on drainage pipe network planning drawing information
CN104750916A (en) Design resource integration system for designing virtual prototype of boiler
CN114329932A (en) Method and system for generating region design structure tree
CN111798564B (en) PDS three-dimensional model conversion system and implementation method thereof
CN114117586A (en) Method for establishing incidence relation between supporting and hanging bracket and rooting object thereof in S3D software
MP BIM and GIS integrated utility supply station location optimization and possibilities

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
GR01 Patent grant
GR01 Patent grant