Method for automatically breaking and grouping pipelines
Through the plug-in method of automated pipeline interruption and grouping, the problem of low manual operation efficiency is solved, and efficient pipeline splitting and grouping is achieved to adapt to design adjustment and transportation constraints.
Patent Information
- Application Number
- CN202411763193.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, manual interruption and grouping of pipelines are inefficient, and frequent disassembly and reassembly are required during design modification, which is even less efficient.
Automatically complete the pipeline interruption and grouping process through plug-ins, use computer algorithms to limit constraints, automatically split the pipeline, improve work efficiency, and allow users to adjust the pipeline to maintain grouping schemes.
The efficiency of pipe breaking and grouping is greatly improved, manual operation is reduced, designers allow flexible adjustments and inspections, and as little cutting and adding fittings as possible under transport constraints.
Smart Images

Figure CN119720438A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a method for automatically breaking pipelines into groups. Background Art
[0002] The modularization of the in-depth design of the prefabricated computer room pipeline requires that the overall pipeline system of the computer room be divided into a modular combination of pipelines and pipe fittings that meet the vehicle transportation needs from the factory to the project through interruption and grouping. The existing implementation plan is that the designers use the 3D modeling software Revit to measure the dimensions and mark the reference lines on the existing electromechanical 3D model, mark the transportation dimension constraints in the drawing, and then interrupt the pipeline at the intersection of the constraint line and the pipeline. The flange is automatically formed at the breakpoint, and the interrupted pipeline, flange and other pipe fittings are grouped to complete a single operation.
[0003] The shortcomings of the existing technology are mainly concentrated in the following two points. First, the efficiency of manual interruption and grouping is low, the single operation process is cumbersome, and a lot of repetitive work is required. Second, after interruption and grouping, if there is a need to modify the detailed design of the pipeline, the grouped pipelines need to be ungrouped, modified, re-interrupted, and re-grouped many times, which is even more inefficient. Summary of the invention
[0004] In view of this, the present invention proposes a method for automatically breaking and grouping pipelines, which uses a plug-in to automatically complete the pipeline breaking and grouping process, greatly improving the work efficiency. After completing the automatic pipeline breaking, the user can adjust the pipeline, and after the adjustment, the original grouping plan is maintained to group the pipeline, flanges and other pipe fittings. The specific technical solution is as follows:
[0005] A method for automatically breaking pipelines into groups. The transported component is composed of multiple pipelines connected to each other. The transported component contains multiple starting points. All links from each starting point to another starting point are traversed. Each pipeline in the link is traversed. If the current pipeline length exceeds the length constraint in the link, the current pipeline is broken into groups. If the current pipeline length is less than the length constraint, the current pipeline and the next adjacent pipeline are regarded as a whole. When the equivalent length of the whole in the length direction and the width direction meets the constraint, the whole is regarded as a grouping unit. When the equivalent length of the whole in the length direction and the width direction does not meet the constraint, the last pipeline in the whole is truncated. The interruption schemes of all links are calculated, and the scheme that meets the requirements is selected as the optimal scheme. .
[0006] Furthermore, if the current pipeline length is greater than the length constraint, the current pipeline is interrupted according to the length constraint.
[0007] Furthermore, the overall equivalent length is equal to the overall projection length in the corresponding direction.
[0008] Furthermore, when the current pipeline and the next adjacent pipeline are regarded as a whole and the whole does not satisfy the length constraint and the width constraint, the specific method of truncating the next adjacent pipeline is as follows: if there is an angle between the current pipeline and the next adjacent pipeline, when the equivalent length of the whole in both the length and width directions does not satisfy the constraint conditions, the direction in which the equivalent length exceeds the constraint more is selected to truncate the next adjacent pipeline, and the current pipeline and the next adjacent pipeline after truncation constitute a group unit; if the equivalent length of the whole does not satisfy the constraint conditions only in one direction, the next adjacent pipeline is truncated in this direction, and the current pipeline and the next adjacent pipeline after truncation constitute a group unit.
[0009] Furthermore, when the current pipeline and the next adjacent pipeline are considered as a whole and the whole does not satisfy the length constraint and the width constraint, the specific method of truncating the next adjacent pipeline is as follows: if the current pipeline and the next adjacent pipeline are collinear,
[0010] If the sum of the lengths of the current pipe and the next adjacent pipe is less than the maximum constraint length, the two pipes form a group unit;
[0011] If the sum of the lengths of the current pipeline and the next adjacent pipeline is greater than the maximum constraint length, the current pipeline and the next adjacent pipeline after truncation form a grouping unit, and the length after grouping is equal to the maximum constraint length.
[0012] Furthermore, when the current pipeline and the next adjacent pipeline are regarded as a whole and the whole does not meet the length constraint and the width constraint, the specific method of truncating the next adjacent pipeline is as follows: if the current pipeline and the next adjacent pipeline are in a vertical relationship, the current pipeline and the next adjacent pipeline are connected by an elbow, and the length of the next adjacent pipeline is greater than the width constraint, the next adjacent pipeline is interrupted at the width constraint, and the first half of the interruption of the current pipeline and the next adjacent pipeline are connected to form a group; when the length of the next adjacent pipeline is less than the width constraint, and the next adjacent pipeline has no subsequent pipeline connection, the current pipeline and the next adjacent pipeline are grouped;
[0013] The current pipeline and the next adjacent pipeline are connected by a tee. The pipe at the other end of the tee is ignored, and the current pipeline and the next adjacent pipeline are directly grouped.
[0014] Furthermore, regarding the group length after the next adjacent pipeline is interrupted, its calculation method specifically includes: the sum of the projection length of the current pipeline in the corresponding direction and the projection length of the group length after the next adjacent pipeline is interrupted in this direction is equal to the constraint length in this direction, thereby obtaining the projection length A of the next adjacent pipeline in this direction, and then using trigonometric functions to convert the projection length A into the interrupted group length of the next adjacent pipeline.
[0015] Furthermore, if the current pipeline and the next adjacent pipeline are regarded as a whole, and the whole meets the length constraint and the width constraint, it is determined whether the next adjacent pipeline is subsequently connected. If so, the pipelines are interrupted and grouped according to the connection relationship between the next adjacent pipeline and the subsequent pipelines.
[0016] Beneficial Effects
[0017] 1. The present invention combines actual on-site experience, defines constraints through computer algorithms, automatically splits the pipeline, replaces manual operations, and improves work efficiency;
[0018] 2. After the pipe section is split, it can be automatically divided into parts, which is convenient for later drawing;
[0019] 3. Designers can conduct compliance checks, correct deviations and make local adjustments based on actual conditions. This operation will not affect other grouped components and is convenient and flexible.
[0020] 4. The present invention interrupts the pipeline based on the principle of less cutting and less addition of pipe fittings and transportation constraints, which conforms to the actual work.
[0021] 5. The present invention can also automatically group components between flanges in batches according to the recorded starting points and flanges. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 , one Pipeline link relationship diagram
[0023] Figure 2 , Flowchart of the method of this embodiment
[0024] Figure 3 、Interruption plan 1
[0025] Figure 4 、Interruption plan 2
[0026] Figure 5 , Interruption plan three
[0027] illustrate: Figure 3-5 Different dot-dashed lines represent different tube groups. DETAILED DESCRIPTION
[0028] Figure 1The figure shows a pipeline link relationship diagram. Starting from the starting point A, the existing links include: Link 1: Pipeline a - Pipeline c - Pipeline f - Pipeline h; Link 2: Pipeline a - Pipeline d - Pipeline e - Pipeline g - Pipeline h. Starting from the starting point B, the existing links include: Link 3: Pipeline b - Pipeline d - Pipeline c - Pipeline f - Pipeline h; Link 4: Pipeline b - Pipeline e - Pipeline g - Pipeline h. Starting from the starting point C, the existing links include: Link 5: Pipeline h - Pipeline f - Pipeline c - Pipeline a; Link 6: Pipeline h - Pipeline g - Pipeline e - Pipeline d - Pipeline a; Link 7: Pipeline h - Pipeline g - Pipeline e - Pipeline b. Figure 1 There are multiple links. Assuming the starting point is C, calculate the interruption schemes under different links. Figure 1 It is only used to help understand the existence of different links and is not used to cover the angular position relationships between all pipelines. The present invention records the pipeline ends or the pipeline chains connected to the pump sets.
[0029] The following details the automatic interruption steps through different angular position relationships between pipelines:
[0030] 1) In the designed electromechanical model, through the Revit interface, traverse all pipelines, pipe fittings, and pipeline accessories, and use the ends (with only one connected part) or the pipelines / pipe fittings connected to the pump (mechanical equipment) as the starting points, and maintain the connection relationships to record multiple chains.
[0031] In each link, name the pipelines as 1, 2, 3,... in sequence according to the pipeline order.
[0032] 2) For each chain, the general splitting idea is as follows:
[0033] Assume the transportation constraint length is 6m and the width is 2m. Starting from pipe 1, find the interruption point. Represent the length of pipe 1 as g1. After pipe 1 is interrupted, the first half of the interruption is represented by g1*, and so on.
[0034] 1. If g1 > 6m, then interrupt at pipe 1, and the current pipe group interruption is completed.
[0035] 2. If 2m < g1 < 6m (here 2 refers to the shortest length, not the width constraint, which is stipulated by humans), then it is necessary to find pipe 2 connected to this pipeline and make the next judgment based on the different relationships between pipe 1 and pipe 2. 2.1 Relationship 1: Pipe 1 and pipe 2 form a non-vertical angle a.
[0036] Regard pipe 1 and pipe 2 as a whole, then this whole has the following situations:
[0037] 2.1.1. The equivalent length of pipeline 1 and pipeline 2 in the length direction exceeds the limit. In this case, pipeline 2 is cut off, and the first half of the cut pipeline 2 is represented by g2*, so that the equivalent length of the whole formed by pipeline 1 and g2* in the length direction is equal to 6m;
[0038] 2.1.2. The equivalent length of pipe 1 and pipe 2 in the width direction exceeds the limit. In this case, pipe 2 is cut off, and the first half of the cut pipe 2 is represented by g2*, so that the equivalent length of the whole formed by pipe 1 and g2* in the width direction is equal to 2m;
[0039] 2.1.3. If the equivalent lengths of pipe 1 and pipe 2 in both the length and width directions exceed the limit, pipe 2 is cut off in the direction where the limit exceeds the limit, so that the whole formed by pipe 1 and g2* satisfies the constraint in the direction where the limit exceeds the limit. If the constraint is still not satisfied in the other direction, pipe 2 is cut off again until the constraints in both directions are satisfied.
[0040] 2.1.4. If the equivalent lengths of pipes 1 and 2 in the length and width directions are within the limit, pipes 1 and 2 are regarded as a whole and are broken into groups. Alternatively, consider whether pipe 2 is subsequently connected to pipe 3. If so, consider different connection forms between pipes 2 and 3 first, and then consider whether the length constraint is met.
[0041] 2.2. Relationship 2: Tube 1 and Tube 2 are collinear
[0042] If the sum of the lengths of pipe 1 and pipe 2 is less than the maximum constraint length, the two pipes form a group unit;
[0043] If the sum of the lengths of pipe 1 and pipe 2 is greater than the maximum constraint length, pipe 1 and the truncated pipe 2 form a group unit, and g1+g2* is equal to the maximum constraint length.
[0044] 2.3. Relationship 3: Tube 1 and Tube 2 are perpendicular to each other
[0045] When pipe 1 and pipe 2 are connected by an elbow and the length of pipe 2 is greater than 2m, pipe 2 is interrupted at 2m, and pipe 1 is connected to the first half of the interrupted pipe 2; when pipe 2 is less than 2m long and there is no subsequent pipe connection to pipe 2, pipe 1 and pipe 2 are grouped; when pipe 2 is connected to the subsequent pipe 3, the connection form of pipe 2 and pipe 3 must also be considered, and then consider whether the length constraint is met.
[0046] When pipe 1 and pipe 2 are connected by a tee, pipe 3 at the other end of the tee is ignored, and pipe 1 and pipe 2 are directly grouped together.
[0047] 3) Traverse all chains, starting from the starting point of each chain, according to the transportation size requirements (length x width) as the geometric constraints, use the greedy algorithm to cut as little as possible and add as few pipe fittings as possible, and insert flanges as separators when breaking. If the project is assembled by welding, virtual flanges with equivalent weld thickness must still be inserted, and should be indicated in the flange family name or remarks.
[0048] 4) Based on step 3), the number of pipes, their lengths and the number of flanges are counted to form a material distribution estimate for the interruption plan.
[0049] Since each chain has at least two starting points, choosing different starting points or different traversal orders when encountering three-way links will produce different interruption plans. Repeat the above steps to determine the optimal plan that saves the most material.
[0050] 5) After interruption, the user can still make adjustments due to alignment or manual correction. After adjustment, the transportation dimension inspection is carried out. The judgment logic is similar to interruption, and the flange should be used as the starting and ending points.
[0051] 6) To facilitate subsequent material statistics, drawing and other processing, it is necessary to automatically batch-assemble the pipes, pipe fittings and pipe accessories between the flanges according to the starting point and flange in the interruption plan.
[0052] like Figure 3-5 Three different interruption schemes are shown. Scheme 1 generates five pipe groups and two flanges, Scheme 2 generates six pipe groups and two flanges, and Scheme 3 generates five pipe groups and one flange. Finally, based on the transportation size constraint and the principle of material saving, Scheme 3 is selected. You can also set the optimization principle according to actual needs and select the optimal scheme under the condition of satisfying the transportation size constraint.
Claims
1. A method for automatically breaking pipelines into groups, wherein the components to be transported are composed of multiple pipelines connected, and the components to be transported include multiple starting points, characterized in that: Traverse all links from each starting point to another starting point; traverse each pipeline in the link. If the current pipeline length in the link exceeds the length constraint, the current pipeline is broken into groups; if the current pipeline length is less than the length constraint, the current pipeline and the next adjacent pipeline are regarded as a whole. When the equivalent length of the whole in the length and width directions meets the constraints, the whole is regarded as a grouping unit. When the equivalent length of the whole in the length and width directions does not meet the constraints, the last pipeline in the whole is truncated; calculate the interruption plan for all links, and select the plan that meets the requirements as the optimal plan.
2. A method for automatically breaking pipelines into groups according to claim 1, characterized in that: If the current pipe length is greater than the length constraint, the current pipe will be broken according to the length constraint.
3. A method for automatically breaking pipelines into groups according to claim 1, characterized in that: The overall equivalent length is equal to the overall projection length in the corresponding direction.
4. A method for automatically breaking up pipelines into groups according to any one of claims 1 to 3, characterized in that: When the current pipeline and the next adjacent pipeline are regarded as a whole and the whole does not meet the length constraint and the width constraint, the specific method of truncating the next adjacent pipeline is as follows: if there is an angle between the current pipeline and the next adjacent pipeline, when the equivalent length of the whole in both the length and width directions does not meet the constraint conditions, the direction in which the equivalent length exceeds the constraint more is selected to truncate the next adjacent pipeline, and the current pipeline and the next adjacent pipeline after truncation constitute a group unit; if the equivalent length of the whole does not meet the constraint conditions only in one direction, the next adjacent pipeline is truncated in this direction, and the current pipeline and the next adjacent pipeline after truncation constitute a group unit.
5. A method for automatically breaking up pipelines into groups according to any one of claims 1 to 3, characterized in that: When the current pipeline and the next adjacent pipeline are considered as a whole and the whole does not meet the length constraint and width constraint, the specific method of truncating the next adjacent pipeline is as follows: if the current pipeline and the next adjacent pipeline are collinear, If the sum of the lengths of the current pipe and the next adjacent pipe is less than the maximum constraint length, the two pipes form a group unit; If the sum of the lengths of the current pipeline and the next adjacent pipeline is greater than the maximum constraint length, the current pipeline and the next adjacent pipeline after truncation form a grouping unit, and the length after grouping is equal to the maximum constraint length.
6. A method for automatically breaking up pipelines into groups according to any one of claims 1 to 3, characterized in that: When the current pipeline and the next adjacent pipeline are regarded as a whole and the whole does not meet the length constraint and the width constraint, the specific method of truncating the next adjacent pipeline is as follows: if the current pipeline and the next adjacent pipeline are in a vertical relationship, the current pipeline and the next adjacent pipeline are connected by an elbow, and the length of the next adjacent pipeline is greater than the width constraint, the next adjacent pipeline is interrupted at the width constraint, and the first half of the interruption of the current pipeline and the next adjacent pipeline are connected to form a group; when the length of the next adjacent pipeline is less than the width constraint, and there is no subsequent pipeline connection to the next adjacent pipeline, the current pipeline and the next adjacent pipeline are grouped; The current pipeline and the next adjacent pipeline are connected by a tee. The pipe at the other end of the tee is ignored, and the current pipeline and the next adjacent pipeline are directly grouped.
7. A method for automatically breaking pipelines into groups according to claim 4, characterized in that: Regarding the grouped length after the next adjacent pipeline is interrupted, the calculation method specifically includes: the sum of the projection length of the current pipeline in the corresponding direction and the projection length of the grouped length after the next adjacent pipeline is interrupted in this direction is equal to the constraint length in this direction, thereby obtaining the projection length A of the next adjacent pipeline in this direction, and then using trigonometric functions to convert the projection length A into the interrupted grouped length of the next adjacent pipeline.
8. A method for automatically breaking pipelines into groups according to claim 7, characterized in that: If the current pipeline and the next adjacent pipeline are regarded as a whole, and the whole meets the length constraint and the width constraint, it is determined whether the next adjacent pipeline is connected later. If so, the next adjacent pipeline is interrupted and grouped according to the connection relationship between the next adjacent pipeline and the subsequent pipeline.