Ship pipeline system construction method, computer equipment and storage medium

Through the bidirectional A* collision avoidance optimal path algorithm and real-time interactive editing interface, the problem of low modeling efficiency and poor accuracy of the ship pipeline system is solved, and efficient and accurate three-dimensional pipeline system construction is achieved, supporting ship digital design and operation and maintenance simulation.

CN120234899AActive Publication Date: 2025-07-01SHIPBUILDING TECHNOLOGY RESEARCH INSITITUTE (NO 11 INSTITUTE OF CSSC)

Patent Information

Application Number
CN202510703206.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-07-01
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

In the prior art, the modeling efficiency and poor accuracy of ship pipeline systems are low. The large amount of data of traditional three-dimensional simulation models leads to low simulation performance, making it difficult to meet the needs of efficient and real-time simulation.

Method used

The two-way A* collision avoidance optimal path algorithm based on neighborhood dynamic adjustment strategy is adopted, combined with pipeline grid generation components and real-time interactive editing interfaces, dynamically visually edit pipeline properties and equipment models to generate an efficient and accurate three-dimensional pipeline system.

Benefits of technology

It realizes efficient, accurate and interactive three-dimensional grid dynamic construction of the ship pipeline system, improves simulation performance, and provides technical support for ship digital design and operation and maintenance simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120234899A_ABST
    Figure CN120234899A_ABST
Patent Text Reader

Abstract

The invention provides a ship pipeline system construction method, computer equipment and a storage medium. The method comprises the following steps: establishing a pipeline grid generation assembly by taking an internal pipeline of a cabin as an object; constructing a ship cabin virtual simulation environment, and defining a physical constraint boundary of a pipeline generation region; establishing a typical model object library of the pipeline system, wherein the typical model object library provides a template for pipeline appearance generation; determining three-dimensional coordinate positions and direction vector information of starting and ending points of the pipeline according to a pipeline connection drawing, and setting a trend position point between the starting and ending points of the pipeline; acquiring a path transition point by adopting a bidirectional A * collision avoidance optimal path mode according to the starting and ending points of the pipeline and the trend position point; generating a continuous pipeline grid native model through the pipeline grid generation assembly based on the relationship of the path transition points; and constructing a real-time interactive editing interface, dynamically and visually editing the basic attributes of the pipeline and the pipeline flange plate, and dynamically and visually editing an equipment model between the pipeline flange end surfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ship 3D simulation, and particularly to a method for constructing a ship pipeline system, a computer device, and a storage medium. Background Art

[0002] The ship pipeline system is like the "blood vessels" of a ship, which has the functions of transporting fuel, water, air, etc., and is of great significance to the normal operation of the ship. In ship design and operation and maintenance, accurate and efficient pipeline system simulation modeling is one of the key links to ensure ship performance and reliability. Currently, in the field of ship 3D simulation, pipeline system modeling faces many challenges. Traditional 3D simulation pipeline models are mostly exported from ship production design software. Their model grid density is large, and the roundness of pipeline grids often exceeds 40 sides, resulting in a huge amount of data. This not only occupies a large amount of storage space, but also seriously slows down the calculation speed during simulation analysis, greatly affecting the simulation performance, making the simulation process slow, even stuck or unable to run, and it is difficult to meet the requirements of efficient and real-time simulation. The traditional modeling method is inefficient. The ship cabin environment is complex, and the pipeline system involves many objects. From setting the starting and ending points of the pipeline, the walking position points, to dealing with its relationship with equipment and structures, designers need to manually operate based on experience, which is time-consuming and laborious, and prone to errors, and it is difficult to guarantee the modeling accuracy.

[0003] To address the above problems, the present invention proposes a method for constructing a ship pipeline system, which is based on a two-way A* collision avoidance optimal path algorithm with a neighborhood dynamic adjustment strategy to quickly solve the pipeline path transition points and generate 3D pipelines, aiming to solve the problems of low efficiency and poor accuracy in pipeline modeling in the traditional simulation field, while reducing the pipeline model grid data volume, thereby improving the simulation performance, providing strong support for ship digital design and operation and maintenance simulation, and helping the ship industry move towards digitalization and intelligentization. Summary of the Invention

[0004] The purpose of the present invention is to provide a method for constructing a ship pipeline system, aiming to solve the problems of low pipeline design efficiency, inaccurate collision detection, insufficient visualization and interactivity in the existing technology. To achieve the above purpose, the technical solution of the present invention is: The present application provides a method for constructing a ship pipeline system, including the following steps: Taking the internal pipeline of the ship cabin as the object, establish a pipeline grid generation component; Construct a virtual simulation environment for the ship cabin, and define the physical constraint boundary of the pipeline generation area; Establish a typical model object library for the pipeline system, and the typical model object library provides a template for pipeline appearance generation; According to the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the starting and ending points of the pipeline, and set the walking position points between the starting and ending points of the pipeline; According to the starting and ending points of the pipeline and the position points of the pipeline route, path transition points are obtained by using the two-way A* collision avoidance optimal path method; Based on the relationship of the path transition points, a continuous pipeline grid native model is generated by the pipeline grid generation component; Construct a real-time interactive editing interface to dynamically and visually edit the basic attributes of the pipeline, dynamically and visually edit the basic attributes of the pipeline flange, and dynamically and visually edit the equipment model between the end faces of the pipeline flange.

[0005] This application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the method for constructing a ship pipeline system are implemented.

[0006] This application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for constructing a ship pipeline system are implemented.

[0007] Through the above technical solutions, the present invention realizes the efficient, accurate, and interactive three-dimensional grid dynamic construction of a complex ship pipeline system, providing strong support for the digitization and intelligentization of shipbuilding technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 It is a flowchart of a method for constructing a ship pipeline system in Embodiment 1 of the present invention; Figure 2 It is an implementation flowchart of step S1 in Embodiment 1 of the present invention; Figure 3 It is a schematic diagram of the parent-child structure tree of the pipeline grid model in Embodiment 1 of the present invention; Figure 4 It is an implementation flowchart of step S2 in Embodiment 1 of the present invention; Figure 5 It is an implementation flowchart of step S3 in Embodiment 1 of the present invention; Figure 6 It is an implementation flowchart of step S4 in Embodiment 1 of the present invention; Figure 7 It is an implementation flowchart of step S5 in Embodiment 1 of the present invention; Figure 8 It is a schematic diagram of the A* algorithm search from the starting point S to the ending point E in Embodiment 1 of the present invention; Figure 9 It is a flowchart of solving the pipeline path transition points by the two-way A* collision avoidance optimal path algorithm based on the neighborhood dynamic adjustment strategy in Embodiment 1 of the present invention; Figure 10 It is an implementation flowchart of step S6 in Embodiment 1 of the present invention; Figure 11 It is the implementation flowchart of step S7 in Embodiment 1 of the present invention; Figure 12 It is the schematic diagram of the graphical editing interface for the basic attributes of the pipeline in Embodiment 1 of the present invention; Figure 13 It is the implementation flowchart of step S8 in Embodiment 1 of the present invention; Figure 14 It is the implementation flowchart of step S9 in Embodiment 1 of the present invention; Figure 15 It is the flowchart of a method for constructing a ship pipeline system in Embodiment 2 of the present invention; Figure 16 It is the operation flowchart of the method for constructing a ship pipeline system in the embodiments of the present invention. Detailed implementation manners

[0009] Next, the technical solutions of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0010] Embodiment 1

[0011] Embodiment 1 discloses a method for constructing a ship pipeline system. As Figure 1 shown, this method mainly includes the following steps S1-step S9.

[0012] Step S1) Establish a pipeline grid generation component, which supports parametric editing of the pipeline centerline and dynamic real-time refresh of the grid model.

[0013] As Figure 2 shown, in step S1, the establishment of the pipeline grid generation component specifically includes: Step S11) Use a spatial three-dimensional N-order Bezier curve model to describe the pipeline centerline trend, and its formula is: . In the formula ; represents the spatial position vector of a certain path transition point on the pipeline centerline, ; represents the pipeline centerline defined by path transition points; Step S12) The L / U-shaped bend is a common structure in the pipeline system, and its curvature radius calculation formula is: . In the formula represents the curve (pipeline centerline) in three-dimensional space; represents the curve tangent vector; It represents the change rate of the curve tangent vector, and the formula is used to generate the fillet transition section at the turning point; Step S13) Develop a parametric input interface panel for the circular section, supporting the configuration of variables such as pipeline diameter and mesh roundness coefficient; Step S14) Sample at equal intervals along the pipeline centerline, generate a cross-section vertex loop at each sampling point, and connect adjacent cross-section vertices through a triangulation algorithm to construct a continuous pipeline mesh model. Use the rendering engine Mesh class and its function methods to dynamically generate pipeline mesh data, and achieve a smooth rendering effect of the pipeline appearance through Shader; Step S15) Build a parent-child structure tree of the pipeline mesh model, as Figure 3 shown, separate the mesh model data and editing nodes, and achieve loose coupling between the appearance rendering logic and the path control logic, facilitating users to adjust the pipeline; Step S16) Based on the built-in mesh components and rendering components in the rendering engine, develop a pipeline mesh generation component, which has a real-time response mechanism of parameter input → mesh reconstruction → rendering refresh.

[0014] First, establish a pipeline mesh generation component: For pipeline objects with complex and numerous cabin orientations, based on the pipeline centerline Bezier mathematical model and the calculation method of the turning curvature radius, etc., use parametric programming technology to develop a configurable pipeline generation component, supporting the mathematical representation of complex structures such as elbow curvature and roundness mesh topology, providing a data structure basis for subsequent dynamic editing.

[0015] Step S2) Construct a virtual simulation environment for the ship's cabin and define the physical constraint boundaries of the pipeline generation area.

[0016] As Figure 4 shown, in step S2, the construction of the virtual simulation environment for the ship's cabin specifically includes: Step S21) Take the three-dimensional CAD model data of a certain ship's virtual propulsion cabin as an example, extract the three-dimensional geometric mesh information of key structures such as the cabin wall, deck, and equipment base of the cabin, and perform digital reconstruction in the rendering engine; Step S22) Based on the ship's cabin environment data after digital reconstruction, generate a three-dimensional collision detection mesh body for the ship's cabin, and implement collision detection of dynamic and static objects in the rendering engine's physical system; Step S23) Use the spatial octree algorithm to manage the collision detection mesh body in partitions, optimize the collision detection efficiency. Implement the construction and query of the octree to ensure the accuracy and efficiency of the physical constraint boundaries of the pipeline generation area; Step 24) Simplify the generated three-dimensional collision detection mesh, such as combining basic collision detection meshes (such as Box Collider, Sphere Collider, etc.) to replace complex structure collision meshes (Mesh Collider), which can reduce the amount of calculation during the update cycle of the rendering engine's physical system and improve collision detection performance.

[0017] Step S3) Establish a typical model object library of the pipeline system to provide a template for generating pipeline appearance.

[0018] like Figure 5 As shown, in step S3, the establishment of a typical model object library of a pipeline system specifically includes: Step S31) according to the ship piping design specifications, create a parameterized standard parts prefabricated template, covering valves, pump units, tees / reducing pipes, through-tank parts, etc.; Step S32) Each template supports the user to adjust the size, material, connection method and other parameters of the standard part instance through the panel in a graphical operation manner; Step S33) Integrate the standard part model library with the pipeline grid generation component to support automatic calling and embedding of standard part models during pipeline generation. Dynamic loading of standard part models is achieved by dynamically instantiating standard parts.

[0019] Step S4) sets the starting and ending points of the pipeline and the direction position points to provide initial information for the pipeline generation process.

[0020] like Figure 6 As shown, in step S4, the setting of the starting and ending points and the direction position points of the pipeline specifically includes: Step S41) defining pipeline structure parameters, storing the starting and ending points, direction and spatial information of the intermediate points of the pipeline, and the structure parameters are shown in Table 1; Table 1 Pipeline structure parameter list Serial number Parameter name Data type Meaning description 1 OriginPoint Vector3 Pipeline start position 2 EndPoint Vector3 Pipeline end position 3 OriginQuat Quaternion Pipeline start orientation, quaternion 4 EndQuat Quaternion Pipeline end orientation, quaternion 5 IntermediatePoints Vector3[] Ordered list of transition point positions 6 IntermediateQuats Quaternion[] Ordered list of transition point orientations, quaternion Step S42) Record the spatial pose (position and rotation) of the start and end points through the model transformation component Transform. Use the Graphics Library to draw the start and end point position markers of the pipeline and generate direction indicator lines to visualize the direction of the pipeline; Step S43) Develop a keyboard and mouse interaction function to manually adjust the position and direction of the start and end points of the pipeline by dragging the mouse or entering a numerical value, so as to provide initial information for the subsequent dynamic planning of the pipeline.

[0021] Step S5) setting the path transition points to ensure that the pipeline model meets the requirements of the ship cabin pipeline design.

[0022] like Figure 7As shown in the figure, in step S5, the path transition points are set using an algorithm. In view of the limitations of the traditional one-way A* algorithm in the path transition point planning of cabin pipelines, such as low search efficiency and poor adaptability to dynamic environments, etc., it is proposed to improve the A* optimal path algorithm through the bidirectional A* and neighborhood dynamic adjustment strategies to improve the interference detection performance and calculation efficiency. The bidirectional A* algorithm accelerates the path generation by simultaneously initiating searches from the starting point and the ending point and dynamically adjusting the search target. For each A* path, the formula represents the real-time distance, where represents the total unit distance from the starting point to the target point, represents the unit distance from the starting point to the current point, represents the unit distance from the current point to the target point. As Figure 9 shown, the algorithm steps are as follows: Step S51) Initialize the bidirectional A* search. Start two A* search threads: A*1 search thread: Starting from the starting point S, traverse the open list openlist1 to find the node with the smallest F1 value (sorted according to ).

[0023] A*2 search thread: Starting from the ending point E, traverse the open list openlist2 to find the node with the smallest F2 value (sorted according to ).

[0024] Where H1 is the heuristic cost from the node in A1 to E, that is, the Euclidean distance, and H2 is the heuristic cost from the node in A2 to S.

[0025] Step S52) Optimize the search neighborhood, perform path direction selective elimination based on eight directions, reduce the search directions, and reduce the calculation amount. As Figure 8 shown, taking the starting point S of the A* search in the direction from S to E as an example, obviously, the child nodes in three of the eight surrounding directions, namely s1, s4, and s6, do not need to be searched. Therefore, these three directions can be directly eliminated during traversal to improve the algorithm speed.

[0026] Step S53) Dynamic target adjustment and expansion. By dynamically adjusting the target direction, make the search concentrate on the middle area. Alternate the expansion strategies: A*1 search thread expansion: Use the node with the smallest F2 in openlist2 as the current target to expand the nodes in openlist1.

[0027] A*2 search thread expansion: Use the node with the smallest F1 in openlist1 as the current target to expand the nodes in openlist2.

[0028] Step S54) Path result judgment. If the current expansion node of A1 or A2 already exists in the open list of another search, the path is found and the search is terminated; if openlist1 or openlist2 is empty, it means there is no feasible path and the search exits.

[0029] Step S55) Path backtracking and merging. Starting from the intersection node, traverse to the starting point and the ending point respectively to form a node path linked list.

[0030] Step S56) According to the above algorithm logic, develop a two-way A* collision avoidance optimal path algorithm program component based on the neighborhood dynamic adjustment strategy, implement a pipeline path transition point solver, and through inputting the pose information of the starting and ending points of the pipeline and the physical constraint information of the generation area, the initial pipeline path can be automatically generated and visualized to obtain the initial solution of the pipeline; Step S57) On the basis of the initial solution of the pipeline, use the Bezier curve interpolation method to smooth the path, reduce the number of inflection points in the path, and improve the smoothness of the pipeline direction; Step S58) Develop a keyboard and mouse interaction function to manually add, delete, or adjust path transition points by dragging the mouse or inputting values, ensuring the smoothness and feasibility of the pipeline direction; Step S59) During the editing process of pipeline transition points, based on the physical system of the rendering engine, real-time detection of the collision interference between the pipeline and the virtual simulation environment of the ship's cabin is carried out to ensure the feasibility of the path transition point set.

[0031] Step S6) Generate the native pipeline mesh model of the path transition points to ensure normal rendering output of the pipeline model.

[0032] As Figure 10 shown, in step S6, the generation process of the native pipeline mesh model specifically includes: Step S61) According to the pose information of the path transition points, use a three-dimensional spatial Nth-order Bezier curve model to generate a smooth pipeline centerline, where the value of N is the number of path transition points minus one; Step S62) Sample at equal intervals along the pipeline centerline, and generate circular or special-shaped cross-sections according to the diameter and shape parameters. The vertex data of the circular cross-section can be calculated with the help of the Mesh class method and the Math library, and the geometric shape of the special-shaped cross-section is generated according to user parameters; Step S63) In the generation of the native pipeline mesh model, use the triangulation algorithm to connect the vertices of adjacent cross-sections. Assume that two adjacent cross-sections and , each cross-section has vertices, which are respectively denoted as and , then the construction process of the triangular patches is as follows: 1. From vertex Start by connecting , forming the first triangle; 2. Then connect , forming a second triangle; 3. Repeat the above two steps, traversing the cross-section vertices in a counterclockwise direction to ensure that the normal directions of the triangular facets are consistent until completion Closed connection, and then smooth rendering is achieved through Shader; Step S64) To further reduce the rendering cost of the native model, the native model is subjected to face reduction processing to generate pipeline Mesh data of different detail levels. Then, according to the distance value between the camera and the pipeline model (the display ratio of the pipeline model in the rendering window), the Mesh data of different detail levels of the pipeline are dynamically switched. The multi-detail level settings of the pipeline model recommended in this example are shown in Table 2 below: Table 2 Pipeline model multi-level detail setting list: Serial number Level of detail Percentage of number of faces Recommended display ratio 1 Level 0 (native) 100 25%-100% 2 Level 1 60 15%-25% 3 Level 2 30 10%~15% 4 Level 3 10 3%~10% 5 Do not render 0 0%~3% This can reduce the number of mesh patches of distant pipes, significantly improving rendering efficiency while ensuring the geometric accuracy and visual effects of nearby pipes.

[0033] Step S7) Dynamically and visually edit basic pipeline properties to meet user customization requirements.

[0034] like Figure 11 As shown, in step S7, the dynamic visual editing process of the basic attributes of the pipeline specifically includes: Step S71) construct a graphical editing interface, such as Figure 12 As shown, users can adjust the pipe material, diameter, mesh roundness, corner node number and other properties in real time through the slider, drop-down menu or input box; Step S72) supports batch editing mode of pipeline system. Users can select multiple pipelines at the same time through box selection or multi-selection operation and adjust their properties uniformly. For example, users can select multiple pipelines and modify their materials or diameters in batches. The system will automatically update the geometry and rendering data of all selected pipelines synchronously, significantly reducing the time of repeated operations; Step S73) automatically records the user's editing operations at fixed time intervals (such as 10 seconds) and stores them as an operation history stack. The user can backtrack or restore the editing state by implementing the "Undo" and "Redo" function buttons. For example, if the user accidentally modifies the pipe diameter, he can click the "Undo" button to restore to the previous parameter state. The operation history stack also supports cross-session saving to ensure that the user can still restore the previous editing progress after shutting down the system.

[0035] Step S8) Dynamically and visually edit the basic properties of pipeline flanges to meet user-defined requirements.

[0036] As Figure 13 shown, in step S8, the dynamic visual editing process of the basic properties of pipeline flanges specifically includes: Step S81) According to the corner position and direction information of the pipeline, the system determines the coordinates and direction of the flange installation position through geometric algorithms to ensure the precise alignment of the flange connection with the pipeline; Step S82) Based on the pipeline standard part model object library, automatically generate a flange model that matches the pipeline diameter. For example, when the user selects a certain pipeline, the system loads the corresponding flange prefab from the model library according to its diameter parameter and dynamically instantiates it at the corner position of the pipeline; Step S83) Construct a graphical editing interface, and the user can adjust the properties such as the material, diameter, roundness, and thickness of the flange in real time.

[0037] Step S9) Dynamically and visually edit the equipment between the pipeline flange end faces to meet the design requirements of the ship's cabin scene.

[0038] As Figure 14 shown, in step S9, the dynamic visual editing process of the equipment between the pipeline flange end faces specifically includes: Step S91) Associate and reference the equipment model library, and automatically or manually load the matching equipment from the pipeline standard part model object library according to the gap size between the two pipeline flange end faces, combined with the ship's cabin pipeline design specifications and user requirements; Step S92) Construct a graphical editing interface, and the user can select different types of valves or connectors from the equipment library. During the replacement and editing process, the system updates the rendering output of the pipeline and equipment models in real time.

[0039] By combining intelligent algorithms and visualization technologies, etc., it effectively solves the technical problems of low modeling efficiency and poor accuracy in complex ship pipeline simulation systems, and provides technical support for ship digital design and operation and maintenance simulation.

[0040] Embodiment 2

[0041] Embodiment 2 includes all the technical features of Embodiment 1. As Figure 15 shown, in Embodiment 2, a method for constructing a ship pipeline system is provided, including the following steps: Step S10) Take the internal pipeline of the ship's cabin as the object and establish a pipeline grid generation component; Step S20) Construct a virtual simulation environment for the ship's cabin and define the physical constraint boundaries of the pipeline generation area; Step S30) Establish a typical model object library for the pipeline system, and the typical model object library provides a template for generating the pipeline appearance; Step S40) According to the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the pipeline start and end points, and set the path position points between the pipeline start and end points; Step S50) According to the pipeline start and end points and the path position points, obtain path transition points by using the two-way A* collision avoidance optimal path method; Step S60) Based on the relationship of the path transition points, generate a continuous pipeline grid native model through the pipeline grid generation component; Step S70) Construct a real-time interactive editing interface to dynamically and visually edit the basic pipeline attributes, dynamically and visually edit the basic flange attributes of the pipeline, and dynamically and visually edit the equipment model between the flange end faces of the pipeline.

[0042] In this embodiment, taking the internal pipeline of the cabin as the object, the establishment of the pipeline grid generation component includes: Construct a Bezier mathematical model of the pipeline center line, and define a three-dimensional Bezier curve control point function to describe the spatial trend of the pipeline center line; Construct a calculation formula for the bending radius of the elbow, and automatically generate a fillet transition section at the L-shaped / U-shaped elbow; Set a parametric input template for the circular cross-section to support the configuration of the pipeline diameter and the grid roundness coefficient; Sample at equal intervals along the pipeline center line, generate a cross-section vertex ring at each sampling point, and connect adjacent cross-section vertices through a triangulation algorithm to construct a continuous pipeline grid model; Build a parent-child structure tree of the pipeline grid model to separate the data and editing nodes of the pipeline grid model; Based on the rendering engine, establish components that respond to each other for parameter input, grid reconstruction, and rendering refresh.

[0043] In this embodiment, the construction of the Bezier mathematical model of the pipeline center line and the definition of the three-dimensional Bezier curve control point function to describe the spatial trend of the pipeline center line include: Use a spatial three-dimensional N-order Bezier curve control point function to describe the spatial trend of the pipeline center line, and its formula is: ; where ; represents the spatial position vector of a certain path transition point on the pipeline center line, ; represents path transition points jointly define the pipeline center line.

[0044] In this embodiment, the construction of the calculation formula for the bend radius of curvature and the automatic generation of the fillet transition section at the L-shaped / U-shaped elbow include: The calculation formula for the bend radius of curvature is ; where represents the center line of the pipeline in three-dimensional space; represents the curve tangent vector; represents the rate of change of the curve tangent vector.

[0045] In this embodiment, the construction of the virtual simulation environment for the ship's cabin and the definition of the physical constraint boundary of the pipeline generation area include: Extract the structural data of the ship's cabin through the CAD model analysis module; Based on the analyzed structural data of the ship's cabin, generate a three-dimensional collision detection grid body for the ship's cabin, support the collision detection of dynamic and static objects, and be used for the cross-detection and dynamic generation of the subsequent pipeline model; Based on the geometric structure of the three-dimensional collision detection grid body of the ship's cabin, generate a boundary range of the pipeline generation area with physical constraint properties to limit the feasible walking path of the pipeline in the cabin; Perform a simplification process on the generated collision detection grid body to reduce the number of grid patches to improve the collision detection efficiency.

[0046] In this embodiment, the establishment of the typical model object library for the pipeline system, and the typical model object library provides a template for the generation of the pipeline appearance include: Create standard part templates for the valve parts, pump groups, tee / reducer pipe fittings, and through-hull fittings that make up the pipeline, and the parameters of each standard part template can be configured; Set a user-defined standard part template parameter setting window for adjusting the size, material, and connection method of the standard part template through the input interface; Integrate the standard part template with the pipeline grid generation component so that the pipeline grid generation component automatically calls and embeds the standard part template during the pipeline generation process.

[0047] In this embodiment, according to the pipeline connection drawing, determining the three-dimensional coordinate positions and direction vector information of the starting and ending points of the pipeline, and setting the walking position points between the starting and ending points of the pipeline include: Define the pipeline structure body parameters according to the pipeline connection drawing, set the starting and ending points of the pipeline, and store the six-degree-of-freedom information of the spatial poses of the starting and ending points of the pipeline, the six-degree-of-freedom array information of the spatial poses of the intermediate points, and the direction vector information; Set marks for the starting and ending points of the pipeline in the virtual simulation environment of the ship's cabin to mark the positions of the starting and ending points of the pipeline and generate direction indication lines; Adjust the positions and directions of the starting and ending points through the interaction interface to set the walking position points between the starting and ending points of the pipeline.

[0048] In this embodiment, obtaining a path transition point by using the two-way A* collision avoidance optimal path method according to the start and end points of the pipeline and the position points of the pipeline routing includes: Set to start searching from both the start point and the end point of the pipeline using the two-way A* algorithm. Initialize the two-way A* algorithm. Start the A*1 search thread to search from the start point of the pipeline to obtain the node with the smallest priority value, and start the A*2 search thread to search from the end point of the pipeline to obtain the node with the smallest priority value; Obtain the positions of the obstacles around the pipeline. According to the positions of the obstacles, based on the eight directions around each node, selectively kick out the search directions towards the positions of the obstacles for the path directions; By dynamically adjusting the target direction, make the search directions concentrate on the middle area between the start point and the end point of the pipeline; Judge whether there is an intersection node among the nodes with the smallest priority values in the A*1 search thread and the A*2 search thread. If there is an intersection node, it is determined that a feasible path has been found and the search is terminated; otherwise, it is determined that there is no feasible path and the search is exited; Obtain the nodes in the feasible path as path transition points. Starting from the intersection node, traverse to the start point and the end point respectively to form a node path linked list; Generate an initial pipeline path and visualize it by inputting the pose information of the start and end points of the pipeline and the physical constraint information of the generation area to obtain an initial solution of the pipeline; Reduce the number of inflection points in the path by using the Bezier curve interpolation method; Manually add, delete, or adjust the spatial pose information of the path transition points through the interaction interface; During the path editing stage, real-time detect the collision and interference situation between the pipeline and the virtual simulation environment of the cabin, and adjust the positions of the path transition points in the areas with collision and interference;

[0049] In this embodiment, starting the A*1 search thread to search from the start point of the pipeline to obtain the node with the smallest priority value, and starting the A*2 search thread to search from the end point of the pipeline to obtain the node with the smallest priority value includes: Set the A*1 search thread to start from the start point, traverse the first open list openlist1 for storing the nodes starting from the start point, and find the node with the smallest priority value from the priority queue. The priority values in the priority queue are sorted according to where F1 is the priority value of the current node found by the A*1 search thread, G1 is the actual cost from the start point to the current node, and H1 is the estimated cost from the current node found by the A*1 search thread to the target node; Set the A*2 search thread to start from the starting point and traverse the second open list openlist2 for storing nodes starting from the end point. Find the node with the smallest priority value from the priority queue. The priority values in the priority queue are sorted according to sorting, where F2 is the priority value of the current node found by the A*2 search thread, G2 is the actual cost from the end point to the current node, and H2 is the estimated cost from the current node found by the A*2 search thread to the target node.

[0050] In this embodiment, the generation of a continuous pipeline grid native model by the pipeline grid generation component based on the relationship of the path transition points includes: Generating a smooth and continuous pipeline centerline based on the pose information of the path transition points; Sampling at equal intervals on the pipeline centerline to generate circular or special-shaped cross-sections, and obtaining pipeline cross-sections perpendicular to the pipeline centerline; Connecting the vertices of adjacent pipeline cross-sections through triangulation to generate a continuous pipeline grid native model; Performing a corresponding degree of face reduction processing on the pipeline grid native model using relevant face reduction algorithms to generate pipeline grid hierarchical models of various levels.

[0051] In this embodiment, the construction of a real-time interactive editing interface, dynamically visualizing and editing the basic attributes of the pipeline, dynamically visualizing and editing the basic attributes of the pipeline flange, and dynamically visualizing and editing the equipment model between the pipeline flange end faces includes: Constructing a real-time interactive editing interface, providing a graphical interface, and supporting the user to adjust the attributes of the pipeline in real time. The attributes of the pipeline include the material, diameter, grid roundness, and corner joint number of the pipeline; Setting the attributes of multiple pipelines to be editable in batches, automatically recording the user's editing operation behaviors at fixed time intervals, and supporting undo and redo; Extracting pipeline node information according to the corner position and direction information of the pipeline, and automatically generating the installation positions of the flanges at the pipeline nodes; Generating a flange model matching the pipeline diameter based on the typical model object library; Adjusting the attributes of the flange through the interaction interface. The attributes of the flange include the material, diameter, roundness, and thickness of the flange; Automatically loading the equipment model in the typical model object library according to the gap between the two pipeline flange end faces; Replacing the equipment model between the flange end faces through the interaction interface and automatically adjusting the connection parameters; during the replacement and editing of the equipment model, the equipment model is rendered in real time and updated.

[0052] Embodiment 1 and Embodiment 2 disclose a method for constructing a ship pipeline system, such asFigure 16 As shown in the figure, it includes the following steps: 1) Start the simulation. Launch the simulation engine editor and enter the interior of the target ship's cabin environment; 2) Import the CAD model data of the ship's cabin, including the hull, equipment, iron outfitting, etc., and complete the basic construction of the three-dimensional environment of the ship's cabin; 3) Generate a set of collision bodies for the background environment of the ship's cabin, automatically plan the pipe generation area range with one key, and perform visual rendering to provide a physical constraint boundary for pipe generation; 4) Add an instance of the pipe network generation component to the scene, initialize the component parameters, and reference the associated pipe system model object library; 5) Set the initial position and end position of the pipe, and specify the starting point and ending point of the pipe object; 6) Select two methods, namely the bidirectional A* collision avoidance optimal path algorithm based on the neighborhood dynamic adjustment strategy or manual input, to obtain a list of path transition points, and provide node pose information for the pipe model generation process; 7) Generate pipe models, including native models and multiple levels of detail models. By configuring the multi-level of detail setting parameters of the pipe model, the balance between rendering cost and rendering effect is achieved; 8) Operate the pipe control points to adjust the path direction, ensure that the pipe complies with the design specifications and avoid collision interference with the cabin environment; 9) Set the basic attributes of the pipe, and its attributes include pipe section diameter, pipe section length, pipe section roundness, number of pipe joints, pipe joint material, etc.; 10) Set the basic attributes of the pipe flange, and its attributes include flange diameter, flange thickness, flange roundness, flange material, etc.; 11) Set the basic attributes of the equipment embedded in the pipe. Taking valve pumps as an example, the basic attributes such as valve pump position, valve pump size, valve pump material, etc. can be set; 12) End the simulation. After completing all steps, the system automatically saves the pipe data locally, which can be viewed, edited, and updated at any time.

[0053] This embodiment realizes the efficient, accurate, and interactive three-dimensional grid dynamic construction of the complex pipe system of the ship, providing strong support for the digitization and intelligentization of the shipbuilding process.

[0054] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: Taking the interior pipes of the ship's cabin as the object, establish a pipe network generation component; Construct a virtual simulation environment for the ship's cabin and define the physical constraint boundary of the pipe generation area; Establish a typical model object library for the pipeline system, and the typical model object library provides a template for generating the pipeline appearance; According to the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the starting and ending points of the pipeline, and set the walking position points between the starting and ending points of the pipeline; According to the starting and ending points of the pipeline and the walking position points, obtain path transition points by using the two-way A* collision avoidance optimal path method; Based on the relationship of the path transition points, generate a continuous pipeline grid native model through the pipeline grid generation component; Construct a real-time interactive editing interface, dynamically visualize and edit the basic attributes of the pipeline, dynamically visualize and edit the basic attributes of the pipeline flange, and dynamically visualize and edit the equipment model between the pipeline flange end faces.

[0055] For the specific limitations on the steps implemented when the processor executes the computer program, reference can be made to the limitations on the method for constructing the ship pipeline system in the above text, which will not be elaborated here.

[0056] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Take the internal pipeline of the cabin as the object and establish a pipeline grid generation component; Construct a virtual simulation environment for the ship cabin and define the physical constraint boundaries of the pipeline generation area; Establish a typical model object library for the pipeline system, and the typical model object library provides a template for generating the pipeline appearance; According to the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the starting and ending points of the pipeline, and set the walking position points between the starting and ending points of the pipeline; According to the starting and ending points of the pipeline and the walking position points, obtain path transition points by using the two-way A* collision avoidance optimal path method; Based on the relationship of the path transition points, generate a continuous pipeline grid native model through the pipeline grid generation component; Construct a real-time interactive editing interface, dynamically visualize and edit the basic attributes of the pipeline, dynamically visualize and edit the basic attributes of the pipeline flange, and dynamically visualize and edit the equipment model between the pipeline flange end faces.

[0057] For the specific limitations on the steps implemented when the computer program is executed by the processor, reference can be made to the limitations on the method for constructing the ship pipeline system in the above text, which will not be elaborated here.

[0058] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0059] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0060] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a ship pipeline system, characterized in that, Including the following steps: Taking the internal pipeline of the cabin as the object, establish a pipeline grid generation component; Construct a virtual simulation environment for the ship's cabin and define the physical constraint boundaries of the pipeline generation area; Establish a typical model object library for the pipeline system, and the typical model object library provides a template for the generation of the pipeline appearance; According to the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the starting and ending points of the pipeline, and set the path position points between the starting and ending points of the pipeline; According to the starting and ending points of the pipeline and the path position points, obtain path transition points by using the two-way A* collision avoidance optimal path method; Based on the relationship of the path transition points, generate a continuous pipeline grid native model through the pipeline grid generation component; Construct a real-time interactive editing interface to dynamically and visually edit the basic attributes of the pipeline, dynamically and visually edit the basic attributes of the pipeline flange, and dynamically and visually edit the equipment model between the pipeline flange end faces.

2. The method for constructing a ship pipeline system according to claim 1, wherein The step of taking the internal pipeline of the cabin as the object and establishing a pipeline grid generation component includes: Construct a Bezier mathematical model of the pipeline center line, and define a three-dimensional Bezier curve control point function to describe the spatial orientation of the pipeline center line; Construct a calculation formula for the bending radius of the elbow, and automatically generate a fillet transition section at the L-shaped / U-shaped elbow; Set a parametric input template for the circular section to support the configuration of the pipeline diameter and the grid roundness coefficient; Sample at equal intervals along the pipeline center line, generate a cross-section vertex ring at each sampling point, and connect adjacent cross-section vertices through a triangulation algorithm to construct a continuous pipeline grid model; Build a parent-child structure tree of the pipeline grid model to separate the data and editing nodes of the pipeline grid model; Based on the rendering engine, establish components that respond to each other for parameter input, grid reconstruction, and rendering refresh.

3. The method for constructing a ship pipeline system according to claim 2, characterized in that, The step of constructing a Bezier mathematical model of the pipeline center line and defining a three-dimensional Bezier curve control point function to describe the spatial orientation of the pipeline center line includes: The spatial three-dimensional Nth-order Bezier curve control point function is used to describe the spatial trend of the pipeline centerline, and its formula is: ; where ; represents the spatial position vector of a certain path transition point on the pipeline centerline, ; represents the pipeline centerline jointly defined by path transition points.

4. The method for constructing a ship pipeline system according to claim 2, characterized in that The step of constructing a calculation formula for the bending radius of the elbow and automatically generating a fillet transition section at the L-shaped / U-shaped elbow includes: The calculation formula for the bend radius of curvature is ; in the formula represents the center line of the pipeline in three-dimensional space; represents the curve tangent vector; represents the change rate of the curve tangent vector.

5. The method for constructing a ship pipeline system according to claim 1, characterized in that, The step of constructing a virtual simulation environment for the ship's cabin and defining the physical constraint boundaries of the pipeline generation area includes: Extract the structural data of the ship's cabin through the CAD model parsing module; Based on the parsed structural data of the ship's cabin, generate a three-dimensional collision detection grid body for the ship's cabin, support the collision detection of dynamic and static objects, and be used for the cross-detection and dynamic generation of the subsequent pipeline model; Based on the geometric structure of the three-dimensional collision detection grid body of the ship's cabin, generate a pipeline generation area boundary range with physical constraint properties to limit the feasible walking path of the pipeline in the cabin; Perform a simplification process on the generated collision detection grid body to reduce the number of grid patches to improve the collision detection efficiency.

6. The method for constructing a ship pipeline system according to claim 1, characterized in that, The step of establishing a typical model object library for the pipeline system, and the typical model object library provides a template for the generation of the pipeline appearance includes: Create standard part templates for the valve parts, pump groups, tee / reducing pipe fittings, and through-hull fittings that make up the pipeline, and the parameters of each standard part template can be configured; Set a user-defined standard part template parameter setting window for adjusting the size, material, and connection method of the standard part template through the input interface; Integrate the standard part template with the pipeline grid generation component so that the pipeline grid generation component automatically calls and embeds the standard part template during the pipeline generation process.

7. The method for constructing a ship pipeline system according to claim 1, characterized in that Based on the pipeline connection drawing, determine the three-dimensional coordinate positions and direction vector information of the pipeline start and end points. Setting the path position points between the pipeline start and end points includes: Define the pipeline structure parameters according to the pipeline connection drawing, set the pipeline start and end points, and store the six-degree-of-freedom information of the spatial poses of the start and end points of the pipeline, the six-degree-of-freedom array information of the spatial poses of the intermediate points, and the direction vector information. Set marks for the pipeline start and end points in the virtual simulation environment of the ship's cabin to mark the positions of the pipeline start and end points and generate direction indication lines. Adjust the positions and directions of the start and end points through the interaction interface and set the path position points between the pipeline start and end points.

8. The method for constructing a ship pipeline system according to claim 1, characterized in that Based on the pipeline start and end points and the path position points, obtaining the path transition points by using the two-way A* collision avoidance optimal path method includes: Set to start searching simultaneously from the pipeline start and end points using the two-way A* algorithm, initialize the two-way A* algorithm, start the A*1 search thread to search from the pipeline start point to obtain the node with the smallest priority value, and start the A*2 search thread to search from the pipeline end point to obtain the node with the smallest priority value. Obtain the positions of the obstacles around the pipeline. Based on the obstacle positions, selectively kick out the search directions towards the obstacle positions in eight directions around each node. By dynamically adjusting the target direction, make the search direction concentrate on the middle area between the pipeline start and end points. Judge whether there is an intersection node among the nodes with the smallest priority values in the A*1 search thread and the A*2 search thread. If there is, it is determined that a feasible path has been found and the search is terminated; otherwise, it is determined that there is no feasible path and the search is exited. Obtain the nodes in the feasible path as path transition points. Starting from the intersection node, traverse to the start point and the end point respectively to form a node path linked list. Generate the initial pipeline path and visualize it by inputting the pose information of the pipeline start and end points and the physical constraint information of the generation area to obtain the initial pipeline solution. Reduce the number of inflection points in the path by using the Bezier curve interpolation method. Manually add, delete, or adjust the spatial pose information of the path transition points through the interaction interface. During the path editing stage, detect the collision interference situation between the pipeline and the virtual simulation environment of the cabin in real time and adjust the positions of the path transition points in the areas with collision interference.

9. The method for constructing a ship pipeline system according to claim 8, characterized in that Starting the A*1 search thread to search from the pipeline start point to obtain the node with the smallest priority value and starting the A*2 search thread to search from the pipeline end point to obtain the node with the smallest priority value includes: Set the A*1 search thread to start from the starting point and traverse the first open list openlist1 which is used to store the nodes starting from the starting point, and find the node with the smallest priority value from the priority queue. The priority values in the priority queue are sorted according to sorting, where F1 is the priority value of the current node found by the A*1 search thread, G1 is the actual cost from the starting point to the current node, and H1 is the estimated cost from the current node found by the A*1 search thread to the target node; Set the A*2 search thread to start from the starting point and traverse the second open list openlist2 for storing nodes starting from the end point. Find the node with the smallest priority value from the priority queue. The priority values in the priority queue are sorted according to sorting, where F2 is the priority value of the current node found by the A*2 search thread, G2 is the actual cost from the end point to the current node, and H2 is the estimated cost from the current node found by the A*2 search thread to the target node.

10. The method for constructing a ship pipeline system according to claim 1, characterized in that, Based on the relationship of the path transition points, generating a continuous pipeline grid native model by the pipeline grid generation component includes: Generate a smooth and continuous pipeline centerline based on the pose information of the path transition points. Sample at equal intervals on the pipeline centerline, generate circular or special-shaped cross-sections, and obtain the pipeline cross-sections perpendicular to the pipeline centerline. Connect the vertices of adjacent pipeline cross-sections through triangulation to generate a continuous pipeline grid native model. Apply relevant mesh reduction algorithms to perform mesh reduction processing on the original pipeline mesh model to a corresponding degree, and generate pipeline mesh hierarchical models at various levels.

11. The method for constructing a ship pipeline system according to claim 1, characterized in that The construction of a real-time interactive editing interface, dynamic visual editing of the basic pipeline attributes, dynamic visual editing of the basic flange attributes of the pipeline, and dynamic visual editing of the equipment models between the flange end faces of the pipeline include: Construct a real-time interactive editing interface, provide a graphical interface, and support users to adjust the attributes of the pipeline in real time. The attributes of the pipeline include the material, diameter, mesh roundness, and number of corner joints of the pipeline; Set the attributes of multiple pipelines to be editable in batches, automatically record the user's editing operation behaviors at fixed time intervals, and support undo and redo; Extract pipeline node information according to the corner position and direction information of the pipeline, and automatically generate the installation positions of the flanges at the pipeline nodes; Based on the typical model object library, generate flange models matching the pipeline diameter; Adjust the attributes of the flange through the interactive interface. The attributes of the flange include the material, diameter, roundness, and thickness of the flange; According to the gap between the two pipeline flange end faces, automatically load the equipment models in the typical model object library; Replace the equipment models between the flange end faces through the interactive interface and automatically adjust the connection parameters; during the replacement and editing of the equipment models, the equipment models are rendered in real time and updated.

12. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 11.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Ship pipeline route optimum design method

    CN104699899A

  • Marine engine room pipeline arrangement method based on improved ant colony algorithm

    CN114415679A

  • Ship pipeline system modeling simulation method, computer storage medium and equipment

    CN115146392A

  • Ship three-dimensional pipeline automatic design method and system, terminal and medium

    CN116167170A

Cited By

  • Pipeline medium flow velocity control method based on Unity

    CN120765862A