A method and device for converting a PDMS pipeline model into a mechanical model
By identifying and searching the boundary information in the pipeline model, a model unit that can be used for mechanical calculation is formed, which solves the problem of low conversion efficiency of the three-dimensional pipeline model in the prior art, realizes automatic conversion, and reduces error rate and cost.
Patent Information
- Application Number
- CN202210641264.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2042-06-07
AI Technical Summary
The prior art cannot effectively convert complex three-dimensional pipeline models into model units that can be used for mechanical calculations, resulting in inefficient modeling and high manual error rates.
By identifying the boundary information in the PDMS pipeline model selected by the user, a boundary set is formed, and the boundary combination model in the main pipe and bypass pipe are searched, duplicate terms are removed, and the adjusted set of pipeline and boundary combination model is formed. Finally, based on the modeling method of the pipeline mechanics analysis software, a readable mechanical model is formed.
The automatic conversion of complex three-dimensional pipeline models into mechanical models is realized, which reduces error rates and improves modeling efficiency, enables mechanical computing personnel to focus more on the verification stage, and reduces manual labor and cost.
Smart Images

Figure CN115017705B_ABST
Abstract
Description
Technical Field
[0001] The invention specifically relates to a method and a device for converting a PDMS pipeline model into a mechanical model. Background Art
[0002] Currently, in the chemical industry, there is an interface program between PDMS and CaesarII mechanical analysis software, which can directly export the three-dimensional pipeline model to form a CaesarII mechanical software model. However, since the pipelines of nuclear power and nuclear chemical industry are more complex than those of other industries, CaesarII software cannot support nuclear power project specifications well, and Caesar II software cannot automatically determine the boundary conditions of the pipeline. It is necessary to manually modify the mechanical pipeline model according to the actual situation. Therefore, the existing interface cannot meet the needs of nuclear power and nuclear chemical industry.
[0003] In nuclear power projects, there are a lot of pipelines that need to be mechanically verified. The pipeline mechanical analysis software currently used is mainly Peps and Syspipe. These two software support the establishment of mechanical models in the form of command streams. In addition, this modeling method is to establish key nodes, and the nodes form corresponding pipe fittings. The corresponding pipe fitting information is reflected in the pipe fitting cards formed by the nodes.
[0004] The mainstream pipeline mechanics verification process that has been used until now is that the layout professional extracts the three-dimensional pipeline model into a two-dimensional plane diagram and hands it over to the mechanics professional. The mechanics professional first reads the pipeline model to determine whether there are boundary conditions to meet the requirements of splitting pipeline units and achieve the purpose of pipeline calculation. Generally, the boundary conditions that can meet the requirements of splitting pipelines include equipment nozzles, fixed brackets, free ends, etc. Then, within the range of the splittable pipeline, the mechanical model is manually established according to the two-dimensional pipeline drawing, and then the mechanical analysis is performed.
[0005] This working method has the following problems:
[0006] First of all, in the actual project, 3D design and pipeline mechanics verification are carried out separately. The mechanics personnel cannot see the changes in the 3D model in real time. Under the influence of design changes, poor communication and designer errors, the data obtained by the mechanics personnel may differ from the actual data. If no measures are taken, these differences will continue to exist as the project progresses and may even affect the overall progress of the project.
[0007] Secondly, after getting the two-dimensional drawings, when converting them into mechanical models, the mechanics personnel need to first understand the drawings, identify the pipe types, obtain pipeline information, and then fill in the relevant information into the mechanical model. This method is time-consuming and labor-intensive. It can be said that in the current pipeline mechanics calculations, the mechanical model construction work occupies more than half of the workload and time of pipeline verification work. Summary of the invention
[0008] The technical problem to be solved by the present invention is to provide a method and device for converting a PDMS pipeline model into a mechanical model in view of the above-mentioned deficiencies in the prior art, which can automatically convert a complex three-dimensional pipeline model into a model unit that can be used for mechanical calculation, thereby improving the modeling efficiency.
[0009] The technical solution adopted to solve the technical problem of the present invention is:
[0010] The present invention provides a method for converting a PDMS pipeline model into a mechanical model, comprising:
[0011] Identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0012] For each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0013] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0014] For each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, the information required for modeling by the pipeline mechanics analysis software is identified in the PDMS pipeline model selected by the user, and a mechanical model that can be read by the pipeline mechanics analysis software is formed according to the modeling method of the pipeline mechanics analysis software.
[0015] Optionally, for each boundary element in the boundary set, a divide-and-conquer and backtracking algorithm is used to search for the main through pipe where the boundary element is located, and the bypass pipes directly and indirectly connected to the main through pipe to find out whether there is a through pipe of another boundary element.
[0016] Optionally, for each boundary element in the boundary set, a divide-and-conquer and backtracking algorithm is used to search for the main through pipe where the boundary element is located, and the bypass pipes directly and indirectly connected to the main through pipe to find out whether there is a through pipe of another boundary element.
[0017] Specifically include:
[0018] Identify branch component information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user,
[0019] For each boundary element in the boundary set, search along the flow direction whether there is another boundary element in the main through pipe where the boundary element is located. If not, terminate the search for the boundary element. If so,
[0020] Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched thereon. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
[0021] Optionally, for each boundary element in the boundary set, first search in the downstream direction or upstream direction for another boundary element in the main through pipe where the boundary element is located and is farthest from the boundary element.
[0022] After forming the pipeline and boundary combination model corresponding to the boundary, interact with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. If not, trace back to another boundary element farthest from the boundary element, and search for another boundary element in the direction close to the boundary element. After forming the pipeline and boundary combination model corresponding to the boundary, interact with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirements appears;
[0023] If there is no pipeline and boundary combination model that meets the splitting requirements, then backtrack to the boundary and search in a different direction until there is a pipeline and boundary combination model that meets the splitting requirements.
[0024] Optionally, identifying the branch element information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user specifically includes:
[0025] In the PDMS pipeline model selected by the user, the branch component information of all pipelines in the pipeline set is identified, and the validity of each branch component is determined to screen out the valid branch components.
[0026] The present invention also provides a device for converting a PDMS pipeline model into a mechanical model, comprising:
[0027] The conversion module is used to identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0028] Then, for each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0029] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0030] The post-processing module is connected to the conversion module and is used to identify the information required for modeling by the pipeline mechanics analysis software in the PDMS pipeline model selected by the user for each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, and form a mechanical model that can be read by the pipeline mechanics analysis software according to the modeling method of the pipeline mechanics analysis software.
[0031] Optionally, the conversion module includes:
[0032] The recognition module is used to recognize the boundary information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user to form a boundary set.
[0033] The partitioning module is connected to the identification module and is used to search for the main through pipe where the boundary is located, and the bypass pipes directly and indirectly connected to the main through pipe, and the through pipes with another boundary, for each boundary in the boundary set, and identify the pipes constituting these through pipes and the boundaries on these through pipes to form a pipeline and boundary combination model corresponding to the boundary.
[0034] The deduplication module is connected to the division module and is used to remove repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by all boundaries in the boundary set to form an adjusted pipeline and boundary combination model set.
[0035] Optionally, the identification module is further used to identify branch element information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user,
[0036] The partitioning module is specifically used to search for each boundary element in the boundary set along the flow direction whether there is another boundary element in the main through pipe where the boundary element is located. If not, the search for the boundary element is terminated. If so,
[0037] Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched thereon. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
[0038] Optionally, an interaction module is further included, wherein the interaction module is connected to the division module.
[0039] The partitioning module first searches for another boundary element in the downstream or upstream direction for the main through pipe where the boundary element is located, which is farthest from the boundary element, for each boundary element in the boundary set.
[0040] After forming the pipeline and boundary combination model corresponding to the boundary, the interactive module interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirement. If not, the partitioning module traces back to another boundary element farthest from the boundary element, and searches for another boundary element in the direction close to the boundary element. After forming the pipeline and boundary combination model corresponding to the boundary, the interactive module interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirement. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirement appears.
[0041] If there is no pipeline and boundary combination model that meets the splitting requirements, the partitioning module traces back to the boundary and searches in a different direction until there is a pipeline and boundary combination model that meets the splitting requirements.
[0042] Optionally, it also includes a database module, which is respectively connected to the recognition module, the deduplication module and the post-processing module, and is used to store the boundary set formed by the recognition module, the adjusted pipeline and boundary combination model set formed by the deduplication module, and the information required for modeling by the pipeline mechanical analysis software identified by the post-processing module and the mechanical model that can be read by the pipeline mechanical analysis software.
[0043] In the present invention, the PDMS three-dimensional pipeline model is divided into independently calculable pipeline mechanical calculation units according to boundary conditions (equipment interface, fixed bracket, etc.) that meet the requirements of mechanical calculation, and a mechanical model that can be read by the pipeline mechanical analysis software is established according to the modeling method, thereby realizing the automatic conversion of the complex three-dimensional model into the mechanical model. The present invention can reduce the error rate, improve the modeling efficiency, enable mechanical calculation personnel to focus more on the mechanical verification stage, and can reduce manpower and material resources and reduce costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is an overall schematic diagram of a three-dimensional pipeline model according to Example 1 of the present invention;
[0045] Figure 2 This is the principle diagram of the divide and conquer algorithm;
[0046] Figure 3 This is the schematic diagram of the backtracking algorithm;
[0047] Figure 4 This is a partial schematic diagram of a three-dimensional pipeline model according to Embodiment 1 of the present invention;
[0048] Figure 5 This is a schematic diagram of dividing nodes and units according to an example of embodiment 1 of the present invention.
[0049] Figure 6 This is a framework diagram of a device for converting a PDMS pipeline model into a mechanical model in Example 2 of the present invention. DETAILED DESCRIPTION
[0050] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of the present invention.
[0051] In the description of the present invention, it should be noted that the directions or positional relationships indicated by “upper” and the like are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience and simplification of the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.
[0052] In the description of the present invention, the terms “first” and “second” are used for descriptive purposes only and should not be understood as indicating or implying relative importance.
[0053] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connect", "set", "install", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0054] The present invention provides a method for converting a PDMS pipeline model into a mechanical model, comprising:
[0055] Identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0056] For each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0057] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0058] For each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, the information required for modeling by the pipeline mechanics analysis software is identified in the PDMS pipeline model selected by the user, and a mechanical model that can be read by the pipeline mechanics analysis software is formed according to the modeling method of the pipeline mechanics analysis software.
[0059] The present invention also provides a device for converting a PDMS pipeline model into a mechanical model, comprising:
[0060] The conversion module is used to identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0061] Then, for each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0062] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0063] The post-processing module is connected to the conversion module and is used to identify the information required for modeling by the pipeline mechanics analysis software in the PDMS pipeline model selected by the user for each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, and form a mechanical model that can be read by the pipeline mechanics analysis software according to the modeling method of the pipeline mechanics analysis software.
[0064] Embodiment 1:
[0065] The method of converting the PDMS pipeline model into a mechanical model in this embodiment includes:
[0066] Identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0067] For each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes that constitute these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0068] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0069] For each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, the information required for modeling by the pipeline mechanics analysis software is identified in the PDMS pipeline model selected by the user, and a mechanical model that can be read by the pipeline mechanics analysis software is formed according to the modeling method of the pipeline mechanics analysis software.
[0070] In the field of nuclear power, the safety of pipelines is beyond doubt, and pipeline mechanical verification work has become a top priority, and the workload is therefore high. Traditional manual modeling and calculation work not only wastes manpower and material resources and increases costs, but also has a high error rate. The method of the present invention is used to help transform the three-dimensional model into a mechanical model, and the establishment of the mechanical model is automated, which can not only reduce the error rate and improve the modeling efficiency, so that mechanical calculation personnel can focus more on the mechanical verification stage, but also reduce manpower and material resources and reduce costs.
[0071] The through pipes in this article include main through pipes and bypass pipes. In the three-dimensional pipeline model, some through pipes are composed of one pipe, and some are formed by connecting multiple pipes end to end. For example, the main through pipe refers to the pipe where P1 is located in the three-dimensional pipeline model or the through pipe formed by connecting the pipe where P1 is located with other pipes end to end.
[0072] In this embodiment, for each boundary element in the boundary set, a divide-and-conquer and backtracking algorithm is used to search for the main through pipe where the boundary element is located, and the bypass pipes directly and indirectly connected to the main through pipe to find out whether there is a through pipe of another boundary element.
[0073] Specifically include:
[0074] Identify the branch component information of all pipes in the pipe collection in the PDMS pipe model selected by the user,
[0075] For each boundary element in the boundary set, search along the flow direction whether there is another boundary element in the main pipe where the boundary element is located. If not, terminate the search for the boundary element. If so,
[0076] Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched on it. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
[0077] In this embodiment, specifically, for each boundary element in the boundary set, first search for another boundary element in the main through pipe where the boundary element is located, which is farthest from the boundary element, along the downstream direction or the upstream direction.
[0078] After forming the pipeline and boundary combination model corresponding to the boundary, the user is interacted with, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. If not, the pipeline and boundary combination model is traced back to another boundary element farthest from the boundary element, and another boundary element is searched in the direction close to the boundary element. After forming the pipeline and boundary combination model corresponding to the boundary, the user is interacted with, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirements appears.
[0079] If there is no pipeline and boundary combination model that meets the splitting requirements, then backtrack to the boundary and search in the opposite direction until a pipeline and boundary combination model that meets the splitting requirements appears.
[0080] In this embodiment, the branch component information of all pipelines in the pipeline set is identified in the PDMS pipeline model selected by the user, specifically including:
[0081] In the PDMS pipeline model selected by the user, the branch component information of all pipelines in the pipeline set is identified, and the validity of each branch component is judged to screen out the valid branch components.
[0082] The following is as follows Figure 1 The three-dimensional pipeline model shown in FIG. 1 is used as an example to describe the specific implementation process of the present invention in detail. The professional terms appearing in the full text are shown in Table 1.
[0083] Table 1 Professional terms
[0084]
[0085]
[0086] First, divide the pipeline computing unit, as shown in steps 1-5:
[0087] 1. Record the set of 3D pipeline models to be split selected by the user. Figure 1 As shown, select all three-dimensional pipelines Line1, Line2, and Line3 to be split;
[0088] 2. Organize and analyze the 3D pipeline model and record all pipeline components that can represent boundaries in the pipeline model. Figure 1 As shown, the support points of the pipeline elements P1, P2, P3, and P4 that can represent the boundary are recorded;
[0089] 3. Record the branch component information in the pipeline, such as: TEE, branch pipe seat (OLET), etc., determine the validity of each branch component (i.e. whether the branch is decoupled), and only record the information of valid branch components. Figure 1 As shown, the branch component information in the pipeline is recorded, and T1 and T2 tees are valid branch components;
[0090] 4. Loop through the boundary set recorded in step 2, and use the divide-and-conquer algorithm and backtracking algorithm to solve the pipeline where the boundary is located and the pipeline combination with conditional boundaries at either end of the pipeline connected to the pipeline. This process is to avoid the existence of pipelines that have no connection relationship with all pipelines.
[0091] First of all, it is necessary to clarify that the goal of the present invention is to automatically split the pipelines that meet the boundary conditions of the mechanical calculation unit within the scope of the interconnected pipelines, and obtain the pipeline and boundary combination to form a mechanical calculation unit. The conditions for an effective mechanical calculation unit are:
[0092] If there are no branch connecting pipes, there are at least two boundary elements at both ends of the main pipe.
[0093] There are branch connecting pipes, at least one boundary element is present before and after the branch element, and at least one boundary is present on the branch pipe away from the main pipe end.
[0094] The problem solved by the target determination invention is: Which effective mechanical calculation units can be split into a three-dimensional pipeline model? It can be understood as: Which combinations of pipelines and boundaries in the three-dimensional pipeline model to be split meet the requirements for splitting mechanical calculation units?
[0095] After clarifying the boundary elements and branch elements in the pipeline, substitute the problem into the schematic diagram, such as Figure 2 As shown, the next step is to decompose the original problem. By analyzing the problem, we can decompose the problem into: For a certain boundary element, which interconnected pipeline boundary elements and their combinations meet the requirements of mechanical calculation unit splitting? Sub-problem 1 is obtained.
[0096] Further decomposition can be carried out from which pipelines are downstream? Which pipelines are upstream? Sub-problem 2 is obtained. By decomposing the problem step by step, it is determined that the program can start from a certain boundary, search for boundary elements connecting pipelines or branches in the downstream and upstream directions, and determine the pipeline and boundary combination that contains the boundary and meets the requirements of computing unit splitting.
[0097] After the original problem is split into sub-problems, sub-problem 2 needs to be solved first. However, it is not certain whether each boundary has other boundaries to form a mechanical calculation unit. In this case, the backtracking algorithm is used to combine and solve each boundary. The principle of the backtracking algorithm is as follows: Figure 3 For example, the algorithm searches for boundary 1 from the downstream pipeline to find boundary 2, which is the farthest from the current boundary. When the boundary is found, it determines whether there is a branch within the two boundaries and continues searching from the branch. It records each time a boundary is found. When all the boundaries of the pipelines are found, it determines whether the splitting requirements are met. If not, it backtracks to the previous boundary and searches for boundaries close to boundary 1, gradually moving closer to boundary 1 until a boundary combination that meets the splitting conditions appears or the boundary backtracks to a boundary. Then, the result is returned and the search direction is changed to change.
[0098] After executing the backtracking algorithm to solve each boundary, the solutions of the sub-problems are merged upwards into the solution of the original problem through the layer-by-layer merging of the "solutions". However, this "solution" is not the final solution to the original problem. It is also necessary to remove the repeated pipelines and boundary combinations in the "solution" to finally get the "solution" of the original problem.
[0099] refer to Figure 1, first select point P1 as the boundary point, the pipeline where it is located is Line1, first there are boundary points P1 and P2 on Line1 pipeline, as well as valid branch element T1, the pipeline connected to T1 is Line2, pipeline Line2 has boundary support point P4 and valid branch element T2, the pipeline connected to T2 is Line3, pipeline Line3 has boundary support point P3, and there is no branch pipe. The program solves the calculation unit of the split three-dimensional pipeline model by identifying any "boundary" in the boundary list through divide-and-conquer and backtracking algorithms; for example: loop all recorded boundaries, starting from the first boundary P1, identify another boundary condition in the pipeline where P1 is located or in the pipeline connected to the head and tail of the pipeline where P1 is located, and find boundary P2; in the identification process, it is found that there is a "branch" T1 within the range of P1 and P2, so the boundary of pipeline Line2 connected to T1 is identified, and boundary P4 is found; among them, there is a branch T2 in Line2, and then the boundary of pipeline Line connected to T2 is identified, and boundary P3 is found. Through judgment, it is found that there are no other branch elements in the identified connected pipelines, and there is a "boundary" at any connection end of the branch, which meets the division conditions of the calculation unit, and a calculation unit combination formed by pipelines Line1, Line2, Line3, and boundaries P1, P2, P3, P4 is obtained; then according to the above process, the boundary points P2, P3, P4 are cycled in turn to obtain the pipeline unit combinations of Line1, Line2, Line3 and P1, P2, P3, P4 respectively.
[0100] 5. Finally, all the pipe combinations after the calculation units are split on all the boundaries are merged, and the repeated pipe splitting results are removed to obtain all the calculation units of the input three-dimensional pipe model that meet the mechanical calculation requirements.
[0101] By removing duplicates from the four pipeline units obtained in the fourth step, we can obtain the three-dimensional pipeline model splitting result unit: the pipeline model combination of pipelines Line1, Line2, Line3 and boundaries P1, P2, P3, P4.
[0102] The above example is a case where there is only one other boundary in the pipeline where P1 is located or in the pipeline connected to the pipeline where P1 is located. If there are multiple other boundaries in the pipeline where P1 is located or in the pipeline connected to the pipeline where P1 is located, for example, assuming that P2 is connected to the pipeline Line4 on the upper left, and there is a boundary P5 on Line4, then the program will skip the P2 boundary when identifying the boundary, and first obtain the calculation unit formed by the pipelines Line1, Line2, Line3, Line4 and the boundaries P1, P3, P4, P5, and display it to the user. If the user thinks that the recognition and splitting results do not meet the requirements, the boundaries are adjusted to obtain the pipeline model combination of pipelines Line1, Line2, Line3 and boundaries P1, P2, P3, P4.
[0103] Then select the formed pipeline model combination, and take Figure 4 Taking the local schematic diagram of the pipeline as an example, analyze how to decompose the pipe fitting nodes and form the corresponding mechanical units, as shown in steps 6-10:
[0104] 6. For specific pipeline calculation units, the three-dimensional pipeline model is sorted and analyzed, and all types of pipe fittings that appear are sorted out, such as straight pipes, elbows, tees, brackets, etc.
[0105] 7. Analyze different mechanical analysis software separately and sort out the modeling methods and features of different pipe fittings in mechanical software. For example, a tee is created through four nodes in PEPS or Syspipe, and contains information such as pipe diameter and weld.
[0106] Take Peps software as an example. Figure 4 In the example, the straight pipe unit consists of two nodes, a starting point and an end point, which contain information such as the length of the straight pipe and the weld at the end point; the elbow consists of two nodes, an inflow point and an outflow point, which is divided into two parts, and the weld information is required at the outflow point; the bracket requires node information, bracket form, bracket name and other information;
[0107] 8. Compare the 3D pipe fitting model with the pipe fitting model in the mechanical model, perform feature matching, and establish feature matching rules. For example, there are four key points in the 3D model of the tee, and the relevant parameters can be extracted, and information such as pipe diameter and weld can be extracted to match the mechanical software.
[0108] Still taking Peps software as an example, the 3D model is compared with the Peps pipe modeling method to form a feature match. Figure 4 In the figure, two key points can be extracted from the three-dimensional model for the straight pipe, an inflow point P1 and an outflow point P2. These two key points have coordinate information. The outflow point P2 has connection information with the elbow, and there is a butt weld. Three key points can be extracted from the elbow, among which the inflow point is connected to the front straight pipe and can share point P2, the midpoint P3 of the elbow and the outflow point P4. The key points have coordinate information. The outflow point P4 has information about the connection with the rear straight pipe section and there is a butt weld. The mechanical model of the first part of the elbow can be obtained from the coordinate information of points P3 and P2, and the mechanical model of the second part of the elbow can be obtained from the coordinate information of points P4 and P3. For the straight pipe section connected to the elbow, the inflow point coincides with the outflow point of the elbow, and the point P4 and the outflow point P5 are shared. The bracket on the straight pipe is a fixed bracket, and its position is on the straight pipe section. It coincides with the outflow point of the straight pipe, so the point P5 is shared.
[0109] 9. According to the matching rules between the 3D model and the mechanical software, the corresponding pipe features are extracted from the 3D model, node numbers are assigned, and saved in the database.
[0110] According to the above information, the extracted key point coordinate information, outflow point connection information and weld information of the pipe fitting are assigned to the pipe fitting type and stored in the database according to the format. The database format is shown in Table 2.
[0111] Table 2
[0112] Database stores pipe fitting information Node Number Node coordinates Pipe weight Pipe outer diameter Pipe wall thickness Pipe fitting name Pipe connection information Pipe fitting material Pipe insulation information Pipe fitting types ……
[0113] 10. Extract the features and node numbers of pipe fittings from the database, establish node allocation rules based on the feature matching rules of the 3D pipe model and the mechanical pipe model, and divide the pipe fitting units. For example, the four node information and features of the tee pipe fitting extracted from the 3D model can form the key nodes of the tee pipe fitting in the mechanical model in the mechanical software and form a tee unit.
[0114] Still taking Peps software as an example, the mechanics major obtains model information from the database. For example, point P1 and point P2 are the inflow point and outflow point of the straight pipe unit respectively. According to the modeling rules of Peps software, point P1 has no connection information, so it is a free end, defined as JUNC PT=P1. By obtaining the coordinate information of P1 and P2, the length of the straight pipe section can be obtained. If the weld at the outflow point is butt weld, point P2 is assigned EW=2, and the mechanical model of the straight pipe section is TANG PT=P2 DZ=0.947EW=2; points P2, P3 and P4 are obtained, which are the inflow point, midpoint and outflow point of the elbow respectively. According to the inflow point P2 and midpoint P3, the length of the first part of the elbow can be obtained, and according to the midpoint P3 and outflow point P4, the length of the second part of the elbow can be obtained. According to the weld information of the outflow point P4 is butt weld, the weld information EW=2 can be assigned to point P4, and the mechanical model of the elbow is BENDPT=P4 X1=0Y1=0Z1=0.229X2=0.229Y2=0Z2=0EW=2; obtain the straight pipe segment model from P4 to P5 in sequence; after the P4-P5 straight pipe segment is defined, the P5 bracket point can obtain the bracket in the form of a fixed bracket, and the card in Peps is ANCH, then the mechanical model of the bracket ANCH PT=P5AL= / TEST-ANCH / can be obtained. The complete mechanical model command flow definition is as follows Figure 5 shown.
[0115] This allows the three-dimensional model data to be transmitted to the mechanics major in a timely and effective manner, and enables the mechanics major to easily and quickly obtain the model information and generate the corresponding mechanical model, greatly reducing the workload and time consumed in mechanical verification, and greatly improving the efficiency of mechanical calculation work, which can effectively reduce manpower and costs.
[0116] The present invention divides the three-dimensional pipeline model into independently calculable pipeline mechanical calculation units according to the boundary conditions (equipment interface, fixed bracket, etc.) that meet the requirements of mechanical calculation, and automatically divides the nodes and corresponding pipe fitting units according to the modeling method of peps or syspipe software, and can classify and judge various types of pipe fittings, obtain the characteristic points and related information of the components, and assign node numbers according to the characteristics, and assign model information to the unit model in conjunction with the modeling method of the mechanical software, and save it to the database. This method can effectively cope with the complexity of the three-dimensional pipeline model of nuclear power, and can be modified and adjusted in a targeted manner, so that mechanical personnel can obtain the data and changes of the three-dimensional model in a timely manner.
[0117] At the same time, the present invention is also applicable to the conversion of three-dimensional pipeline models in other industries such as chemical or shipbuilding industries. The pipe model information extracted by this method is relatively comprehensive, but there are differences between different software during the conversion.
[0118] Embodiment 2:
[0119] This embodiment provides a device for converting a PDMS pipeline model into a mechanical model, comprising:
[0120] The conversion module 1 is used to identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set.
[0121] For each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary.
[0122] Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set.
[0123] The post-processing module 2 is connected to the conversion module 1, and is used to identify the information required for modeling by the pipeline mechanics analysis software in the PDMS pipeline model selected by the user for each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, and form a mechanical model that can be read by the pipeline mechanics analysis software according to the modeling method of the pipeline mechanics analysis software.
[0124] In this embodiment, the conversion module 1 includes:
[0125] The identification module 11 is used to identify the boundary information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user to form a boundary set.
[0126] The partitioning module 12 is connected to the identification module 11 and is used to search for the main through pipe where the boundary is located, and the bypass pipes directly and indirectly connected to the main through pipe, and the through pipes of another boundary, for each boundary in the boundary set, and identify the pipes constituting these through pipes and the boundaries on these through pipes, so as to form a pipeline and boundary combination model corresponding to the boundary.
[0127] The deduplication module 13 is connected to the division module 12 and is used to remove duplicate pipeline and boundary combination models in the pipeline and boundary combination model set formed by all boundaries in the boundary set to form an adjusted pipeline and boundary combination model set.
[0128] In this embodiment,
[0129] The identification module 11 is also used to identify the branch component information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user.
[0130] The partitioning module 12 is specifically used to search for each boundary element in the boundary set along the flow direction whether there is another boundary element in the main through pipe where the boundary element is located. If not, the search for the boundary element is terminated. If so,
[0131] Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched on it. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
[0132] In this embodiment, an interaction module 3 is also included, and the interaction module 3 is connected to the division module 12.
[0133] For each boundary element in the boundary set, the partitioning module 12 first searches for another boundary element in the downstream or upstream direction, where the main through pipe where the boundary element is located is farthest from the boundary element.
[0134] After the pipeline and boundary combination model corresponding to the boundary is formed, the interaction module 3 interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. If not, the partitioning module 12 traces back to another boundary element farthest from the boundary element, and searches for another boundary element in the direction close to the boundary element. After the pipeline and boundary combination model corresponding to the boundary is formed, the interaction module 3 interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirements appears.
[0135] If there is no pipeline and boundary combination model that meets the splitting requirements, the partitioning module 12 traces back to the boundary and changes the flow direction to search until there is a pipeline and boundary combination model that meets the splitting requirements.
[0136] In this embodiment, a database module 4 is also included. The database module 4 is connected to the recognition module 11, the deduplication module 13 and the post-processing module 2 respectively, and is used to store the boundary set formed by the recognition module 11, the adjusted pipeline and boundary combination model set formed by the deduplication module 13, and the information required for modeling by the pipeline mechanical analysis software identified by the post-processing module 2 and the mechanical model that can be read by the pipeline mechanical analysis software.
[0137] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for converting a PDMS pipeline model into a mechanical model, characterized in that: include: Identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set. For each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary. Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set. For each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, information required for modeling by the pipeline mechanics analysis software is identified in the PDMS pipeline model selected by the user, and a mechanical model that can be read by the pipeline mechanics analysis software is formed according to the modeling method of the pipeline mechanics analysis software; For each boundary element in the boundary set, first search for another boundary element in the main through pipe where the boundary element is located, which is farthest from the boundary element, along the downstream direction or the upstream direction. After forming the pipeline and boundary combination model corresponding to the boundary, interact with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. If not, trace back to another boundary element farthest from the boundary element, and search for another boundary element in the direction close to the boundary element. After forming the pipeline and boundary combination model corresponding to the boundary, interact with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirements. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirements appears; If there is no pipeline and boundary combination model that meets the splitting requirements, then backtrack to the boundary and search in a different direction until there is a pipeline and boundary combination model that meets the splitting requirements.
2. The method for converting a PDMS pipeline model into a mechanical model according to claim 1, characterized in that: For each boundary element in the boundary set, a divide-and-conquer and backtracking algorithm is used to search for the main through pipe where the boundary element is located, and the bypass pipes directly and indirectly connected to the main through pipe to find out whether there is a through pipe of another boundary element.
3. The method for converting a PDMS pipeline model into a mechanical model according to claim 2, characterized in that: For each boundary element in the boundary set, a divide-and-conquer and backtracking algorithm is used to search for the main through-pipe where the boundary element is located, and the bypass pipes directly and indirectly connected to the main through-pipe to find out whether there is a through-pipe of another boundary element. Specifically include: Identify branch component information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user, For each boundary element in the boundary set, search along the flow direction whether there is another boundary element in the main through pipe where the boundary element is located. If not, terminate the search for the boundary element. If so, Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched thereon. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
4. The method for converting a PDMS pipeline model into a mechanical model according to claim 3, characterized in that: Identifying the branch component information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user, specifically including: In the PDMS pipeline model selected by the user, the branch component information of all pipelines in the pipeline set is identified, and the validity of each branch component is determined to screen out the valid branch components.
5. A device for converting a PDMS pipeline model into a mechanical model, characterized in that: include: The conversion module is used to identify all boundary information in the PDMS pipeline model selected by the user and form a boundary set. Then, for each boundary in the boundary set, the main through pipe where the boundary is located and the bypass pipes directly and indirectly connected to the main through pipe are searched for through pipes with another boundary, and the pipes constituting these through pipes and the boundaries on these through pipes are identified to form a pipeline and boundary combination model corresponding to the boundary. Then, the repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by each boundary in the boundary set are removed to form an adjusted pipeline and boundary combination model set. A post-processing module, connected to the conversion module, is used to identify information required for modeling by the pipeline mechanics analysis software in the PDMS pipeline model selected by the user for each pipeline and boundary combination model in the adjusted pipeline and boundary combination model set, and to form a mechanical model that can be read by the pipeline mechanics analysis software according to the modeling method of the pipeline mechanics analysis software; The conversion module includes a partitioning module, The device further comprises an interaction module, wherein the interaction module is connected to the division module. The partitioning module first searches for another boundary element in the downstream or upstream direction for the main through pipe where the boundary element is located, which is farthest from the boundary element, for each boundary element in the boundary set. After forming the pipeline and boundary combination model corresponding to the boundary, the interactive module interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirement. If not, the partitioning module traces back to another boundary element farthest from the boundary element, and searches for another boundary element in the direction close to the boundary element. After forming the pipeline and boundary combination model corresponding to the boundary, the interactive module interacts with the user, and the user determines whether the pipeline and boundary combination model meets the splitting requirement. In this way, the pipeline and boundary combination model is gradually approached to the boundary until a pipeline and boundary combination model that meets the splitting requirement appears. If there is no pipeline and boundary combination model that meets the splitting requirements, the partitioning module traces back to the boundary and searches in a different direction until there is a pipeline and boundary combination model that meets the splitting requirements.
6. The device for converting a PDMS pipeline model into a mechanical model according to claim 5, characterized in that: The conversion module also includes a recognition module and a deduplication module: The recognition module is used to recognize the boundary information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user to form a boundary set. The partitioning module is connected to the identification module and is used to search for the main through pipe where the boundary is located, and the bypass pipes directly and indirectly connected to the main through pipe, and the through pipes with another boundary, for each boundary in the boundary set, and identify the pipes constituting these through pipes and the boundaries on these through pipes to form a pipeline and boundary combination model corresponding to the boundary. The deduplication module is connected to the division module and is used to remove repeated pipeline and boundary combination models in the pipeline and boundary combination model set formed by all boundaries in the boundary set to form an adjusted pipeline and boundary combination model set.
7. The device for converting a PDMS pipeline model into a mechanical model according to claim 6, characterized in that: The identification module is also used to identify the branch element information of all pipelines in the pipeline set in the PDMS pipeline model selected by the user, The partitioning module is specifically used to search for each boundary element in the boundary set along the flow direction whether there is another boundary element in the main through pipe where the boundary element is located. If not, the search for the boundary element is terminated. If so, Determine whether there is a branch element between the two boundary elements of the main through pipe. If not, terminate the search for the boundary element. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the main through pipe through each branch element. If not, terminate the search for the bypass pipe. If so, determine whether there is a branch element between the corresponding branch element and the boundary element searched thereon. If not, terminate the search for the bypass pipe. If so, search along the flow direction to see if there is another boundary element on the bypass pipe directly connected to the bypass through each branch element. And so on, until all bypass pipes directly and indirectly connected to the main through pipe have completed the boundary search.
8. The device for converting a PDMS pipeline model into a mechanical model according to any one of claims 5 to 7, characterized in that: It also includes a database module, which is connected to the recognition module, the deduplication module and the post-processing module respectively, and is used to store the boundary set formed by the recognition module, the adjusted pipeline and boundary combination model set formed by the deduplication module, and the information required for modeling by the pipeline mechanical analysis software identified by the post-processing module and the mechanical model that can be read by the pipeline mechanical analysis software.
Citation Information
Patent Citations
Method for manufacturing finite element method mechanical computation model of pipeline system
CN101826117A
Device and method for generating command stream for pipeline stress analysis based on PDMS
CN104951598A