A method for constructing a ship piping system, computer equipment, and storage medium.

By employing a bidirectional A* collision avoidance optimal path algorithm and dynamic visualization editing technology, the problems of low efficiency and poor accuracy in traditional ship 3D simulation pipeline system modeling have been solved, achieving efficient and accurate 3D pipeline construction and supporting ship digital design and operation and maintenance simulation.

CN120234899BActive Publication Date: 2025-10-28SHIPBUILDING TECHNOLOGY RESEARCH INSITITUTE (NO 11 INSTITUTE OF CSSC)
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional ship 3D simulation piping systems suffer from low modeling efficiency, poor accuracy, and large data volume, which affects simulation performance and makes it difficult to meet the requirements of efficient and real-time simulation.

Method used

A bidirectional A* collision avoidance optimal path algorithm based on a neighborhood dynamic adjustment strategy is adopted. Combined with a pipeline mesh generation component and a virtual simulation environment, pipeline attributes are dynamically and visually edited to generate an efficient and accurate 3D pipeline model.

Benefits of technology

It achieves efficient, accurate, and interactive three-dimensional mesh construction of ship piping systems, 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 CN120234899B_ABST
    Figure CN120234899B_ABST
Patent Text Reader

Abstract

This invention provides a method for constructing a ship piping system, a computer device, and a storage medium. The method includes: establishing a piping mesh generation component, taking the internal piping of the ship's cabin as the object; constructing a virtual simulation environment for the ship's cabin and defining the physical constraint boundaries of the piping generation area; establishing a library of typical model objects for the piping system, which provides templates for generating the piping appearance; determining the three-dimensional coordinate positions and direction vector information of the pipe's start and end points based on the piping connection drawings, and setting the direction position points between the pipe's start and end points; obtaining path transition points using a bidirectional A* collision avoidance optimal path method based on the pipe's start and end points and the direction position points; generating a continuous native piping mesh model based on the relationship between the path transition points using the piping mesh generation component; and constructing a real-time interactive editing interface to dynamically and visually edit the basic attributes of the piping and piping flanges, and dynamically and visually edit the equipment models between the pipe flange end faces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of ship 3D simulation, and in particular to a method for constructing a ship piping system, computer equipment, and storage medium. Background Technology

[0002] Ship piping systems are like the "blood vessels" of a vessel, responsible for transporting fuel, water, air, and other essential components, and are crucial for the normal operation of the ship. In ship design and maintenance, accurate and efficient simulation modeling of piping systems is one of the key aspects of ensuring ship performance and reliability.

[0003] Currently, pipeline system modeling faces numerous challenges in the field of ship 3D simulation. Traditional 3D simulation pipeline models are mostly exported from ship production design software, resulting in high mesh density and often exceeding 40 edges in the pipeline mesh, leading to massive data volumes. This not only consumes a large amount of storage space but also severely slows down computation speed during simulation analysis, greatly affecting simulation performance and causing the simulation process to be slow, even freezing or failing to run, making it difficult to meet the requirements of efficient and real-time simulation. Traditional modeling methods are inefficient. Ship cabin environments are complex, and pipeline systems involve numerous objects. From setting the start and end points and routing locations of pipelines to handling their relationships with equipment and structures, designers need to rely on experience for manual operation, which is time-consuming, labor-intensive, and prone to errors, making it difficult to guarantee modeling accuracy.

[0004] To address the aforementioned issues, this invention proposes a method for constructing ship pipeline systems. Based on a bidirectional A* collision avoidance optimal path algorithm with a neighborhood dynamic adjustment strategy, it quickly solves the pipeline path transition points and generates three-dimensional pipelines. This aims to solve the problems of low efficiency and poor accuracy in pipeline modeling in traditional simulation fields, while reducing the amount of pipeline model mesh data, thereby improving simulation performance. This provides strong support for ship digital design and operation and maintenance simulation, and helps the shipbuilding industry move towards digitalization and intelligence. Summary of the Invention

[0005] The purpose of this invention is to provide a method for constructing a ship piping system, aiming to solve problems such as low piping design efficiency, inaccurate collision detection, and insufficient visualization and interactivity in existing technologies. To achieve the above objective, the technical solution of this invention is:

[0006] This application provides a method for constructing a ship piping system, including the following steps:

[0007] A pipeline mesh generation component is established, taking the internal piping of the ship's cabin as the object;

[0008] Construct a virtual simulation environment for ship cabins and define the physical constraint boundaries of the pipeline generation area;

[0009] Establish a typical model object library for pipeline systems, which provides templates for generating pipeline appearance;

[0010] Based on the pipeline connection drawings, determine the three-dimensional coordinate positions and direction vector information of the pipeline's start and end points, and set the direction position points between the pipeline's start and end points;

[0011] Based on the starting and ending points of the pipeline and the direction location, the path transition point is obtained using the bidirectional A* collision avoidance optimal path method;

[0012] Based on the relationship of the path transition points, a continuous native pipeline mesh model is generated through the pipeline mesh generation component;

[0013] Build a real-time interactive editing interface to dynamically and visually edit the basic attributes of pipelines, the basic attributes of pipeline flanges, and the equipment model between the flange end faces.

[0014] This application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a method for constructing a ship piping system.

[0015] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for constructing a ship piping system.

[0016] Through the above-mentioned technical solution, this invention realizes the efficient, accurate, and interactive dynamic construction of three-dimensional meshes for complex ship piping systems, providing strong support for the digitalization and intelligentization of shipbuilding processes. Attached Figure Description

[0017] Figure 1 This is a flowchart of a method for constructing a ship piping system according to Embodiment 1 of the present invention;

[0018] Figure 2 This is a flowchart illustrating the implementation of step S1 in Embodiment 1 of the present invention;

[0019] Figure 3 This is a schematic diagram of the parent-child structure tree of the pipeline mesh model in Embodiment 1 of the present invention;

[0020] Figure 4 This is a flowchart illustrating the implementation of step S2 in Embodiment 1 of the present invention;

[0021] Figure 5 This is a flowchart illustrating the implementation of step S3 in Embodiment 1 of the present invention;

[0022] Figure 6 This is a flowchart illustrating the implementation of step S4 in Embodiment 1 of the present invention;

[0023] Figure 7This is a flowchart illustrating the implementation of step S5 in Embodiment 1 of the present invention;

[0024] Figure 8 This 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;

[0025] Figure 9 This is a flowchart of the pipeline path transition point solution implemented by the bidirectional A* collision avoidance optimal path algorithm based on the neighborhood dynamic adjustment strategy in Embodiment 1 of the present invention.

[0026] Figure 10 This is a flowchart illustrating the implementation of step S6 in Embodiment 1 of the present invention;

[0027] Figure 11 This is a flowchart illustrating the implementation of step S7 in Embodiment 1 of the present invention;

[0028] Figure 12 This is a schematic diagram of the graphical editing interface for the basic attributes of the pipeline in Embodiment 1 of the present invention;

[0029] Figure 13 This is a flowchart illustrating the implementation of step S8 in Embodiment 1 of the present invention;

[0030] Figure 14 This is a flowchart illustrating the implementation of step S9 in Embodiment 1 of the present invention;

[0031] Figure 15 This is a flowchart of a method for constructing a ship piping system according to Embodiment 2 of the present invention;

[0032] Figure 16 This is a flowchart illustrating the operation of the ship pipeline system construction method according to an embodiment of the present invention. Detailed Implementation

[0033] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0034] Example 1

[0035] This embodiment 1 discloses a method for constructing a ship piping system, such as Figure 1 As shown, the method mainly includes the following steps S1-S9.

[0036] Step S1) Establish a pipeline mesh generation component to support parametric editing of pipeline centerlines and dynamic real-time refreshing of the mesh model.

[0037] like Figure 2As shown, in step S1, the establishment of the pipeline mesh generation component specifically includes:

[0038] Step S11) A three-dimensional Nth-order Bezier curve model is used to describe the direction of the pipeline centerline. The formula is as follows: In the formula ; This represents the spatial position vector of a transition point along the centerline of a pipeline. ; Indicates by The pipeline centerline is defined by all path transition points;

[0039] Step S12) L / U-shaped bends are common structures in piping systems, and their radius of curvature is calculated using the following formula: In the formula Represents a curve (pipeline centerline) in three-dimensional space; Represents the tangent vector of the curve; This represents the rate of change of the tangent vector of the curve; the formula is used to generate the fillet transition section at the bend.

[0040] Step S13) Develop a parametric input interface panel for circular cross-sections, supporting the configuration of variables such as pipe diameter and mesh roundness coefficient;

[0041] Step S14) Sample at equal intervals along the pipeline centerline, generate a cross-sectional vertex loop at each sampling point, and connect adjacent cross-sectional vertices using a triangulation algorithm to construct a continuous pipeline mesh model. Dynamically generate pipeline mesh data using the Mesh class and its function methods in the rendering engine, and achieve a smooth rendering effect for the pipeline appearance using a shader.

[0042] Step S15) Construct the parent-child structure tree of the pipeline mesh model, such as... Figure 3 As shown, separating the mesh model data and editing nodes achieves loose coupling between the appearance rendering logic and the path control logic, making it easier for users to adjust the pipeline;

[0043] Step S16) Based on the built-in mesh component and rendering component of the rendering engine, develop a pipeline mesh generation component, which has a real-time response mechanism of parameter input → mesh reconstruction → rendering refresh.

[0044] First, a pipeline mesh generation component is established: For the complex and numerous pipeline objects in the ship's cabin, a configurable pipeline generation component is developed using parametric programming technology based on the Bezier mathematical model of the pipeline centerline and the calculation method of bend radius, etc. It supports the mathematical representation of complex structures such as bend curvature and roundness mesh topology, providing a data structure foundation for subsequent dynamic editing.

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

[0046] like Figure 4 As shown, step S2, the construction of the virtual simulation environment for the ship's cabins specifically includes:

[0047] Step S21) Taking the 3D CAD model data of a virtual propulsion compartment of a ship as an example, extract the 3D geometric mesh information of key structures such as the bulkhead, deck, and equipment base of the ship, and perform digital reconstruction in the rendering engine;

[0048] Step S22) Based on the digitally reconstructed ship cabin environment data, generate a three-dimensional collision detection mesh for the ship cabin, and realize collision detection of dynamic and static objects in the rendering engine physics system;

[0049] Step S23) The spatial octree algorithm is used to partition and manage the collision detection mesh, optimizing collision detection efficiency. This enables the construction and querying of the octree, ensuring accurate and efficient physical constraint boundaries for the pipeline generation region.

[0050] Step 24) Simplify the generated 3D collision detection mesh, such as by combining basic collision detection meshes (e.g., Box Collider, Sphere Collider, etc.) to replace complex structure collision meshes (Mesh Collider). This can reduce the amount of computation during the rendering engine's physics system update cycle and improve collision detection performance.

[0051] Step S3) Establish a typical model object library for pipeline systems to provide templates for pipeline appearance generation.

[0052] like Figure 5 As shown, step S3, the establishment of the typical model object library for the pipeline system specifically includes:

[0053] Step S31) Based on the ship piping design specifications, create parameterized standard component prefabrication templates, covering valves, pump sets, tees / reducers, cabin passage components, etc.

[0054] Step S32) Each template allows users to adjust parameters such as the size, material, and connection method of standard parts instances through a graphical interface.

[0055] Step S33) Integrate the standard parts model library with the pipeline mesh generation component to support automatic calling and embedding of standard parts models during pipeline generation. Dynamic loading of standard parts models is achieved by dynamically instantiating standard parts.

[0056] Step S4) Set the start and end points and the direction of the pipeline to provide initial information for the pipeline generation process.

[0057] like Figure 6As shown, in step S4, the setting of the pipeline start and end points and the routing location points specifically includes:

[0058] Step S41) Define the struct parameter of the pipeline structure to store the spatial information of the start and end points, direction and intermediate points of the pipeline. The structure parameters are shown in Table 1.

[0059] Table 1. Detailed List of Pipeline Structure Parameters

[0060] Serial Number Parameter name Data types Meaning description 1 OriginPoint Vector3 Pipeline starting point 2 EndPoint Vector3 Pipeline end point 3 OriginQuat Quaternion Pipeline starting point orientation, quaternion 4 EndQuat Quaternion Pipeline end direction, quaternion 5 IntermediatePoints Vector3[] Ordered list of transition point locations 6 IntermediateQuats Quaternion[] Transition point towards ordered list, quaternion

[0061] Step S42) Record the spatial pose (position and rotation) of the start and end points using the Transform component. Use the Graphics Library to draw the start and end point markers of the pipeline and generate direction indicator lines to visualize the pipeline's direction;

[0062] Step S43) Develop keyboard and mouse interaction functions to enable manual adjustment of the position and direction of the pipeline start and end points by dragging the mouse or inputting values, so as to provide initial information for the dynamic planning of subsequent pipelines.

[0063] Step S5) Set path transition points to ensure that the pipeline model meets the design requirements of ship compartment piping.

[0064] like Figure 7 As shown, in step S5, the path transition points are generated using an algorithm. Addressing the limitations of the traditional unidirectional A* algorithm in planning transition points for compartment piping paths, such as low search efficiency and poor adaptability to dynamic environments, this paper proposes an improvement to the A* optimal path algorithm using a bidirectional A* algorithm and a neighborhood dynamic adjustment strategy to enhance interference detection performance and computational efficiency. The bidirectional A* algorithm initiates searches simultaneously from both the starting and ending points, dynamically adjusting the search target to accelerate path generation. For each A* path, the formula is used... Indicates the real-time distance, where This represents the total unit distance from the starting point to the target point. This represents the unit distance from the starting point to the current point. This represents the unit distance from the current point to the target point. For example... Figure 9 As shown, the algorithm steps are as follows:

[0065] Step S51) Initialize the dual A* search. Start two A* search threads:

[0066] A*1 search thread: Starting from the starting point S, iterates through the open list openlist1, searching for the node with the smallest F1 value (by...). (Sort).

[0067] A*2 search thread: Starting from the endpoint E, iterates through the open list openlist2, searching for the node with the smallest F2 value (by...). (Sort).

[0068] Where H1 is the heuristic cost from a node in A1 to E, i.e., the Euclidean distance, and H2 is the heuristic cost from a node in A2 to S.

[0069] Step S52) Optimize the search neighborhood by selectively eliminating paths based on eight directions, reducing the number of search directions and computational cost. Figure 8 As shown, taking the starting point S of the A* search in the direction from S to E as an example, it is obvious that the child nodes in the three directions of s1, s4, and s6 among the eight surrounding directions do not need to be searched. Therefore, these three directions can be directly removed during traversal to improve the algorithm speed.

[0070] Step S53) Dynamic Target Adjustment and Expansion. The search is focused towards the central region by dynamically adjusting the target direction. An alternating expansion strategy is employed.

[0071] A*1 Search Thread Expansion: Using the node with the smallest F2 value in openlist2 as the current target, expand the nodes in openlist1.

[0072] A*2 search thread expansion: Using the node with the smallest F1 value in openlist1 as the current target, expand the nodes in openlist2.

[0073] Step S54) Path result judgment. If the current extended node of A1 or A2 already exists in the openlist table 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 is terminated.

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

[0075] Step S56) Based on the above algorithm logic, develop a program component for a bidirectional A* collision avoidance optimal path algorithm based on a neighborhood dynamic adjustment strategy, and implement a pipeline path transition point solver. By inputting the starting and ending pose information of the pipeline and the physical constraint information of the generated area, the initial pipeline path can be automatically generated and visualized to obtain the initial pipeline solution.

[0076] Step S57) Based on the initial solution of the pipeline, the Bezier curve interpolation method is used to smooth the path, reduce the number of inflection points in the path, and improve the smoothness of the pipeline route.

[0077] Step S58) Develop keyboard and mouse interaction functions to enable manual addition, deletion or adjustment of path transition points by dragging the mouse or inputting values, so as to ensure the smoothness and feasibility of pipeline routing.

[0078] In step S59), during the editing of pipeline transition points, the collision interference between the pipeline and the virtual simulation environment of the ship's cabin is detected in real time based on the rendering engine's physical system to ensure the feasibility of the path transition point set.

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

[0080] like Figure 10 As shown, step S6, the process of generating the native model of the pipeline mesh specifically includes:

[0081] Step S61) Based on the pose information of the path transition points, a smooth pipeline centerline is generated using a three-dimensional N-order Bezier curve model, where N is the number of path transition points minus one.

[0082] Step S62) Sample at equal intervals along the pipeline centerline to generate circular or irregular cross-sections based on diameter and shape parameters. Vertex data for circular cross-sections can be calculated using Mesh class methods and the Math library, while the geometry of irregular cross-sections is generated according to user parameters.

[0083] Step S63) In the generation of the original pipeline mesh model, the triangulation algorithm is used to connect the vertices of adjacent sections. Assume two adjacent sections... and Each cross section exists There are vertices, denoted as _ ... and The process for constructing the triangular facet is as follows:

[0084] 1. From the vertex Begin by connecting sequentially. This forms the first triangle;

[0085] 2. Then connect. This forms a second triangle;

[0086] 3. Repeat the above two steps, traversing the vertices of the cross section in a counter-clockwise direction, ensuring that the normal direction of the triangular facets is consistent, until completion. The closed connection is then used to achieve smooth rendering through a shader;

[0087] Step S64) To further reduce the rendering cost of the native model, the native model is subjected to polygon reduction processing to generate pipeline mesh data with different levels of detail. Then, based on the distance between the camera and the pipeline model (the display ratio of the pipeline model in the rendering window), the mesh data of different levels of detail of the pipeline is dynamically switched. The recommended multi-level detail settings of the pipeline model in this example are shown in Table 2 below:

[0088] Table 2. Detailed Specifications for Multiple Levels of Detail in Piping Model:

[0089] Serial Number Level of detail One-sided quantity % 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 No rendering 0 0%~3%

[0090] This reduces the number of mesh faces on distant pipes, thus significantly improving rendering efficiency, while ensuring the geometric accuracy and visual quality of nearby pipes.

[0091] Step S7) Dynamically and visually edit the basic properties of the pipeline to meet user customization needs.

[0092] like Figure 11 As shown, step S7, the dynamic visualization editing process of the pipeline's basic attributes specifically includes:

[0093] Step S71) Construct a graphical editing interface, such as Figure 12 As shown, users can adjust the pipe's material, diameter, mesh roundness, number of corner sections, and other attributes in real time using sliders, drop-down menus, or input boxes;

[0094] Step S72) Supports batch editing mode for piping systems. Users can select multiple pipes simultaneously using box selection or multi-selection to adjust their properties uniformly. For example, users can select multiple pipes and batch modify their material or diameter. The system will automatically update the geometry and rendering data of all selected pipes synchronously, significantly reducing repetitive operation time.

[0095] Step S73) Automatically record the user's editing operations at fixed time intervals (e.g., 10 seconds) and store them as an operation history stack. Users can use the "Undo" and "Redo" buttons to rewind or restore the editing state. For example, if a user accidentally modifies the pipe diameter, they can click the "Undo" button to restore the previous parameter state. The operation history stack also supports cross-session saving, ensuring that users can resume their previous editing progress even after closing the system.

[0096] Step S8) Dynamically and visually edit the basic properties of the pipeline flange to meet user customization needs.

[0097] like Figure 13 As shown, step S8, the dynamic visual editing process of the basic properties of the pipeline flange specifically includes:

[0098] Step S81) Based on the corner position and direction information of the pipeline, the system uses a geometric algorithm to determine the coordinates and direction of the flange installation position to ensure that the flange and the pipeline are precisely aligned.

[0099] Step S82) Based on the pipeline standard parts model object library, automatically generate a flange model that matches the pipeline diameter. For example, when a user selects a pipeline, the system loads the corresponding flange prefabricated body from the model library according to its diameter parameters and dynamically instantiates it at the corner position of the pipeline;

[0100] Step S83) Construct a graphical editing interface, allowing users to adjust the flange's material, diameter, roundness, thickness, and other attributes in real time.

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

[0102] like Figure 14 As shown, step S9, the dynamic visualization editing process of the equipment between the pipe flange ends, specifically includes:

[0103] Step S91) Associate the referenced equipment model library. Based on the gap size between the two pipe flange end faces, combined with the ship compartment piping design specifications and user requirements, automatically or manually load matching equipment from the pipe standard parts model object library.

[0104] Step S92) Construct a graphical editing interface where users can select different types of valves or connectors from the equipment library. During replacement and editing, the system updates the rendered output of the pipeline and equipment models in real time.

[0105] By combining intelligent algorithms with visualization technology, the technical challenges of low modeling efficiency and poor accuracy in complex ship pipeline simulation systems have been effectively solved, providing technical support for ship digital design and operation and maintenance simulation.

[0106] Example 2

[0107] Embodiment 2 includes all the technical features of Embodiment 1, such as Figure 15 As shown in Example 2, a method for constructing a ship piping system is provided, including the following steps:

[0108] Step S10) Using the internal piping of the ship's cabin as the object, establish a piping mesh generation component;

[0109] Step S20) Construct a virtual simulation environment for the ship's cabins and define the physical constraint boundaries of the pipeline generation area;

[0110] Step S30) Establish a typical model object library for the pipeline system, which provides templates for generating the appearance of the pipeline;

[0111] Step S40) Based on the pipeline connection drawings, determine the three-dimensional coordinate positions and direction vector information of the pipeline start and end points, and set the direction position points between the pipeline start and end points;

[0112] Step S50) Based on the pipeline start and end points and the routing location points, obtain the path transition points using the bidirectional A* collision avoidance optimal path method;

[0113] Step S60) Based on the relationship of the path transition points, generate a continuous native pipeline mesh model through the pipeline mesh generation component;

[0114] Step S70) Construct a real-time interactive editing interface to dynamically and visually edit the basic attributes of pipelines, the basic attributes of pipeline flanges, and the equipment model between the flange end faces of pipelines.

[0115] In this embodiment, the component for generating a pipeline mesh, taking the internal piping of the ship's cabin as the object, includes:

[0116] Construct a Bezier mathematical model of the pipeline centerline and define a three-dimensional Bezier curve control point function to describe the spatial orientation of the pipeline centerline;

[0117] Construct a formula for calculating the radius of curvature of bends and automatically generate rounded transition sections at L-shaped / U-shaped bends;

[0118] Set up a parametric input template for circular cross-sections, supporting the configuration of pipe diameter and mesh roundness coefficient;

[0119] Samples are taken at equal intervals along the centerline of the pipeline. A cross-sectional vertex loop is generated at each sampling point, and adjacent cross-sectional vertices are connected by a triangulation algorithm to construct a continuous pipeline mesh model.

[0120] Construct a parent-child structure tree for the pipeline mesh model to separate the data and editing nodes of the pipeline mesh model;

[0121] Based on the rendering engine, components are built that allow for mutual responses between parameter input, mesh reconstruction, and rendering refresh.

[0122] In this embodiment, the construction of the Bezier mathematical model for the pipeline centerline, and the definition of the three-dimensional Bezier curve control point function to describe the spatial orientation of the pipeline centerline, includes:

[0123] The spatial orientation of the pipeline centerline is described using a three-dimensional Nth-order Bezier curve control point function, and its formula is as follows: In the formula ; This represents the spatial position vector of a transition point along the centerline of a pipeline. ; Indicates by The pipeline centerline is defined by all path transition points.

[0124] In this embodiment, the step of constructing the bending radius calculation formula and automatically generating the fillet transition section at the L-shaped / U-shaped bend includes:

[0125] The formula for calculating the radius of curvature of the bend is: In the formula Represents the centerline of a pipeline in three-dimensional space; Represents the tangent vector of the curve; This represents the rate of change of the tangent vector to the curve.

[0126] In this embodiment, the construction of the virtual simulation environment for the ship's cabins and the definition of the physical constraint boundaries of the pipeline generation area include:

[0127] Structural data of ship compartments are extracted using the CAD model analysis module;

[0128] Based on the analyzed structural data of the ship's compartments, a three-dimensional collision detection mesh is generated for the ship's compartments, supporting collision detection of dynamic and static objects, and used for cross detection and dynamic generation of the rear pipeline model;

[0129] Based on the geometry of the 3D collision detection mesh of the ship's compartment, a boundary range of the pipeline generation area with physical constraints is generated to limit the walkable path of the pipeline within the compartment.

[0130] The generated collision detection mesh is simplified to reduce the number of mesh patches and improve collision detection efficiency.

[0131] In this embodiment, the establishment of a typical model object library for the pipeline system, which provides templates for generating pipeline appearance, includes:

[0132] Create standard parts templates for valves, pump sets, tees / reducers, and ductwork that make up the pipeline. The parameters of each standard parts template can be configured.

[0133] The user-defined standard parts template parameter setting window allows users to adjust the size, material, and connection method of the standard parts template through an input interface.

[0134] The standard part template is integrated with the pipeline mesh generation component, so that the standard part template is automatically called and embedded during the pipeline generation process using the pipeline mesh generation component.

[0135] In this embodiment, determining the three-dimensional coordinate positions and direction vector information of the pipeline start and end points based on the pipeline connection drawings, and setting the directional position points between the pipeline start and end points includes:

[0136] Define the pipeline structure parameters according to the pipeline connection drawings, set the pipeline start and end points, and store the six degrees of freedom spatial pose information of the pipeline start and end points, the six degrees of freedom array information of the spatial pose of the intermediate points, and the direction vector information.

[0137] In the virtual simulation environment of ship cabins, mark the start and end points of pipelines to mark the positions of the start and end points of pipelines and generate direction indicator lines;

[0138] The position and direction of the start and end points can be adjusted through the interactive interface, and the routing point between the start and end points of the pipeline can be set.

[0139] In this embodiment, obtaining the path transition point using the bidirectional A* collision avoidance optimal path method based on the pipeline's start and end points and the routing location includes:

[0140] The system is configured to use a bidirectional A* algorithm to search simultaneously from the beginning and end of the pipeline. The bidirectional A* algorithm is initialized, and the A*1 search thread is started to search from the beginning of the pipeline to obtain the node with the smallest priority value. The A*2 search thread is started to search from the end of the pipeline to obtain the node with the smallest priority value.

[0141] Obtain the location of obstacles around the pipeline, and based on the location of the obstacles, selectively eliminate search directions toward the location of the obstacles by using eight directions around each node as the basis for path direction.

[0142] By dynamically adjusting the target direction, the search direction is concentrated towards the middle area between the start and end points of the pipeline;

[0143] Determine whether there is an intersecting node among the nodes with the lowest 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.

[0144] Obtain nodes in the feasible path as path transition points, and start from the intersecting nodes, traverse to the starting point and the ending point respectively to form a node path linked list;

[0145] By inputting the starting and ending point pose information of the pipeline and the physical constraint information of the generated area, the initial path of the pipeline is generated and visualized to obtain the initial solution of the pipeline.

[0146] The number of inflection points in the path is reduced by using Bezier curve interpolation.

[0147] Manually add, delete, or adjust the spatial pose information of path transition points through the interactive interface;

[0148] During the path editing phase, the collision and interference between the pipeline and the virtual simulation environment of the cabin are detected in real time, and the position of the path transition point in the collision and interference area is adjusted.

[0149] In this embodiment, starting the A*1 search thread to search for the node with the smallest priority value from the beginning of the pipeline, and starting the A*2 search thread to search for the node with the smallest priority value from the end of the pipeline, includes:

[0150] Set up a search thread A*1 starting from the starting point, traverse the first open list (openlist1) to store nodes starting from the starting point, and search for the node with the lowest priority value in the priority queue. The priority queue is arranged in order of priority value. The order is as follows: 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.

[0151] Set up an A*2 search thread starting from the starting point, traverse the second open list (openlist2) to store nodes starting from the ending point, and search for the node with the lowest priority value in the priority queue, where priority values ​​are ordered as follows: The order is as follows: F2 is the priority value of the current node found by the A*2 search thread, G2 is the actual cost from the destination to the current node, and H2 is the estimated cost from the current node to the target node found by the A*2 search thread.

[0152] In this embodiment, generating a continuous native pipeline mesh model based on the relationship of the path transition points using the pipeline mesh generation component includes:

[0153] Based on the pose information of the path transition points, a smooth and continuous pipeline centerline is generated.

[0154] Samples are taken at equal intervals along the center line of the pipeline to generate circular or irregular cross sections, and the pipeline cross sections perpendicular to the center line of the pipeline are obtained.

[0155] By connecting the vertices of adjacent pipe sections through triangulation, a continuous native pipe mesh model is generated.

[0156] The original pipeline mesh model is subjected to a corresponding reduction in surface area using relevant surface reduction algorithms to generate pipeline mesh hierarchical models at various levels.

[0157] In this embodiment, the construction of a real-time interactive editing interface, dynamic and visual editing of pipeline basic attributes, dynamic and visual editing of pipeline flange basic attributes, and dynamic and visual editing of the equipment model between pipeline flange end faces includes:

[0158] A real-time interactive editing interface is constructed, providing a graphical interface that allows users to adjust the properties of the pipeline in real time. The properties of the pipeline include the material, diameter, grid roundness, and number of corner sections.

[0159] The system allows for batch editing of multiple pipelines, automatically recording user editing actions at fixed time intervals, and supports undo and redo.

[0160] Based on the corner position and direction information of the pipeline, extract the pipeline node information, and automatically generate the installation position of the flange at the pipeline node;

[0161] Based on the aforementioned typical model object library, a flange model matching the pipe diameter is generated;

[0162] The properties of the flange can be adjusted through the interactive interface. The properties of the flange include its material, diameter, roundness, and thickness.

[0163] Based on the gap between the two pipe flange ends, the equipment model in the typical model object library is automatically loaded;

[0164] The device model between the flange end faces can be replaced through an interactive interface, and the connection parameters can be automatically adjusted; during the replacement and editing of the device model, the device model is updated and rendered in real time.

[0165] Examples 1 and 2 disclose a method for constructing a ship piping system, such as Figure 16 As shown, it includes the following steps:

[0166] 1) Simulation begins. Start the simulation engine editor and enter the target ship's cabin environment;

[0167] 2) Import the CAD model data of the ship's cabins, including the hull, equipment, and ironwork, to complete the basic construction of the three-dimensional environment of the ship's cabins;

[0168] 3) Generate a set of collision bodies for the background environment of the ship's cabins, automatically plan the range of the pipeline generation area with one click, and visualize it to provide physical constraint boundaries for pipeline generation;

[0169] 4) Add a pipeline mesh generation component instance to the scene, initialize the component parameters, and reference the associated pipeline system model object library;

[0170] 5) Set the initial and ending positions of the pipeline, and specify the start and end points of the pipeline objects;

[0171] 6) Select either the bidirectional A* collision avoidance optimal path algorithm based on the neighborhood dynamic adjustment strategy or manual input to obtain the path transition point list, providing node pose information for the pipeline model generation process;

[0172] 7) Generate pipeline models, including native models and models with multiple levels of detail. By configuring the parameters of the pipeline model with multiple levels of detail, a balance can be achieved between rendering cost and rendering effect.

[0173] 8) Operate pipeline control points to adjust the path and ensure that the pipeline complies with design specifications and avoids collisions and interference with the cabin environment;

[0174] 9) Set the basic properties of the pipeline, including pipe segment diameter, pipe segment length, pipe segment roundness, number of pipe sections, and pipe section material;

[0175] 10) Set the basic properties of the pipeline flange, including flange diameter, flange thickness, flange roundness, flange material, etc.

[0176] 11) Set the basic attributes of the embedded equipment in the pipeline. Taking valves and pumps as an example, you can set the basic attributes such as valve and pump position, valve and pump size, and valve and pump material.

[0177] 12) After the simulation ends and all steps are completed, the system automatically saves the pipeline data to the local machine, which can be viewed, edited and updated at any time.

[0178] This embodiment realizes the efficient, accurate, and interactive dynamic construction of three-dimensional meshes for complex ship piping systems, providing strong support for the digitalization and intelligentization of shipbuilding processes.

[0179] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0180] A pipeline mesh generation component is established, taking the internal piping of the ship's cabin as the object;

[0181] Construct a virtual simulation environment for ship cabins and define the physical constraint boundaries of the pipeline generation area;

[0182] Establish a typical model object library for pipeline systems, which provides templates for generating pipeline appearance;

[0183] Based on the pipeline connection drawings, determine the three-dimensional coordinate positions and direction vector information of the pipeline's start and end points, and set the direction position points between the pipeline's start and end points;

[0184] Based on the starting and ending points of the pipeline and the direction location, the path transition point is obtained using the bidirectional A* collision avoidance optimal path method;

[0185] Based on the relationship of the path transition points, a continuous native pipeline mesh model is generated through the pipeline mesh generation component;

[0186] Build a real-time interactive editing interface to dynamically and visually edit the basic attributes of pipelines, the basic attributes of pipeline flanges, and the equipment model between the flange end faces.

[0187] For specific limitations on the steps a processor takes when executing a computer program, please refer to the limitations on the construction method of ship piping systems mentioned above, which will not be repeated here.

[0188] 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:

[0189] A pipeline mesh generation component is established, taking the internal piping of the ship's cabin as the object;

[0190] Construct a virtual simulation environment for ship cabins and define the physical constraint boundaries of the pipeline generation area;

[0191] Establish a typical model object library for pipeline systems, which provides templates for generating pipeline appearance;

[0192] Based on the pipeline connection drawings, determine the three-dimensional coordinate positions and direction vector information of the pipeline's start and end points, and set the direction position points between the pipeline's start and end points;

[0193] Based on the starting and ending points of the pipeline and the direction location, the path transition point is obtained using the bidirectional A* collision avoidance optimal path method;

[0194] Based on the relationship of the path transition points, a continuous native pipeline mesh model is generated through the pipeline mesh generation component;

[0195] Build a real-time interactive editing interface to dynamically and visually edit the basic attributes of pipelines, the basic attributes of pipeline flanges, and the equipment model between the flange end faces.

[0196] For specific limitations on the steps implemented when a computer program is executed by a processor, please refer to the limitations on the construction method of ship piping systems mentioned above, which will not be repeated here.

[0197] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0198] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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, they should be considered to be within the scope of this specification.

[0199] 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 above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a ship piping system, characterized in that, Includes the following steps: A pipeline mesh generation component is established, taking the internal piping of the ship's cabin as the object; Construct a virtual simulation environment for ship cabins and define the physical constraint boundaries of the pipeline generation area; Establish a typical model object library for pipeline systems, which provides templates for generating pipeline appearance; Based on the pipeline connection drawings, determine the three-dimensional coordinate positions and direction vector information of the pipeline's start and end points, and set the direction position points between the pipeline's start and end points; Based on the starting and ending points of the pipeline and the direction location, the path transition point is obtained using the bidirectional A* collision avoidance optimal path method; Based on the relationship of the path transition points, a continuous native pipeline mesh model is generated through the pipeline mesh generation component; Build a real-time interactive editing interface to dynamically and visually edit the basic attributes of pipelines and the basic attributes of pipeline flanges; dynamically and visually edit the equipment model between the flange end faces of pipelines. The component for generating a pipeline mesh, which takes the internal piping of the ship's cabin as the object, includes: Construct a Bézier mathematical model of the pipeline centerline and define a three-dimensional Bézier curve control point function to describe the spatial orientation of the pipeline centerline; Construct a formula for calculating the radius of curvature of bends and automatically generate rounded transition sections at L-shaped / U-shaped bends; Set up a parametric input template for circular cross-sections, supporting the configuration of pipe diameter and mesh roundness coefficient; Samples are taken at equal intervals along the centerline of the pipeline. A cross-sectional vertex loop is generated at each sampling point, and adjacent cross-sectional vertices are connected by a triangulation algorithm to construct a continuous pipeline mesh model. Construct a parent-child structure tree for the pipeline mesh model to separate the data and editing nodes of the pipeline mesh model; Based on the rendering engine, components are built that allow for mutual responses between parameter input, mesh reconstruction, and rendering refresh; The construction of the Bézier mathematical model for the pipeline centerline, which defines the three-dimensional Bézier curve control point function to describe the spatial orientation of the pipeline centerline, includes: The spatial orientation of the pipeline centerline is described using a three-dimensional Nth-order Bézier curve control point function, and its formula is as follows: In the formula ; This represents the spatial position vector of a transition point along the centerline of a pipeline. ; Indicates by The pipeline centerline is defined by all path transition points; The method for constructing the bending radius calculation formula and automatically generating the fillet transition section at the L-shaped / U-shaped bend includes: The formula for calculating the radius of curvature of the bend is: In the formula Represents the centerline of a pipeline in three-dimensional space; Represents the tangent vector of the curve; This represents the rate of change of the tangent vector to the curve.

2. The method for constructing a ship piping system according to claim 1, characterized in that, The construction of the virtual simulation environment for ship cabins, and the definition of the physical constraint boundaries of the pipeline generation area, include: Structural data of ship compartments are extracted using the CAD model analysis module; Based on the analyzed structural data of the ship's compartments, a three-dimensional collision detection mesh is generated for the ship's compartments, supporting collision detection of dynamic and static objects, and used for cross detection and dynamic generation of the rear pipeline model; Based on the geometry of the 3D collision detection mesh of the ship's compartment, a boundary range of the pipeline generation area with physical constraints is generated to limit the walkable path of the pipeline within the compartment. The generated collision detection mesh is simplified to reduce the number of mesh patches and improve collision detection efficiency.

3. The method for constructing a ship piping system according to claim 1, characterized in that, The establishment of a typical model object library for pipeline systems, which provides templates for generating pipeline appearance, includes: Create standard parts templates for valves, pump sets, tees / reducers, and ductwork that make up the pipeline. The parameters of each standard parts template can be configured. The user-defined standard parts template parameter setting window allows users to adjust the size, material, and connection method of the standard parts template through an input interface. The standard part template is integrated with the pipeline mesh generation component, so that the standard part template is automatically called and embedded during the pipeline generation process using the pipeline mesh generation component.

4. The method for constructing a ship piping system according to claim 1, characterized in that, The process of determining the three-dimensional coordinate positions and direction vector information of the pipeline start and end points based on the pipeline connection drawings, and setting the directional position points between the pipeline start and end points, includes: Define the pipeline structure parameters according to the pipeline connection drawings, set the pipeline start and end points, and store the six degrees of freedom spatial pose information of the pipeline start and end points, the six degrees of freedom array information of the spatial pose of the intermediate points, and the direction vector information. In the virtual simulation environment of ship cabins, mark the start and end points of pipelines to mark the positions of the start and end points of pipelines and generate direction indicator lines; The position and direction of the start and end points can be adjusted through the interactive interface, and the routing point between the start and end points of the pipeline can be set.

5. The method for constructing a ship piping system according to claim 1, characterized in that, The step of obtaining path transition points using the bidirectional A* collision avoidance optimal path method based on the pipeline's start and end points and its direction includes: The system is configured to use a bidirectional A* algorithm to search simultaneously from the beginning and end of the pipeline. The bidirectional A* algorithm is initialized, and the A*1 search thread is started to search from the beginning of the pipeline to obtain the node with the smallest priority value. The A*2 search thread is started to search from the end of the pipeline to obtain the node with the smallest priority value. Obtain the location of obstacles around the pipeline, and based on the location of the obstacles, selectively eliminate search directions toward the location of the obstacles by using eight directions around each node as the basis for path direction. By dynamically adjusting the target direction, the search direction is concentrated towards the middle area between the start and end points of the pipeline; Determine whether there is an intersecting node among the nodes with the lowest 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 nodes in the feasible path as path transition points, and start from the intersecting nodes, traverse to the starting point and the ending point respectively to form a node path linked list; By inputting the starting and ending point pose information of the pipeline and the physical constraint information of the generated area, the initial path of the pipeline is generated and visualized to obtain the initial solution of the pipeline. The number of inflection points in the path is reduced by using Bézier curve interpolation. Manually add, delete, or adjust the spatial pose information of path transition points through the interactive interface; During the path editing phase, the collision and interference between the pipeline and the virtual simulation environment of the cabin are detected in real time, and the position of the path transition point in the collision and interference area is adjusted.

6. The method for constructing a ship piping system according to claim 5, characterized in that, The steps of starting the A*1 search thread to search for the node with the smallest priority value from the beginning of the pipeline and starting the A*2 search thread to search for the node with the smallest priority value from the end of the pipeline include: Set up a search thread A*1 starting from the starting point, traverse the first open list (openlist1) to store nodes starting from the starting point, and search for the node with the lowest priority value in the priority queue. The priority queue is arranged in order of priority value. The order is as follows: 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 up an A*2 search thread starting from the starting point, traverse the second open list (openlist2) to store nodes starting from the ending point, and search for the node with the lowest priority value in the priority queue, where priority values ​​are ordered as follows: The order is as follows: F2 is the priority value of the current node found by the A*2 search thread, G2 is the actual cost from the destination to the current node, and H2 is the estimated cost from the current node to the target node found by the A*2 search thread.

7. The method for constructing a ship piping system according to claim 1, characterized in that, The generation of a continuous native pipeline mesh model based on the relationship of the path transition points using the pipeline mesh generation component includes: Based on the pose information of the path transition points, a smooth and continuous pipeline centerline is generated. Samples are taken at equal intervals along the center line of the pipeline to generate circular or irregular cross sections, and the pipeline cross sections perpendicular to the center line of the pipeline are obtained. By connecting the vertices of adjacent pipe sections through triangulation, a continuous native pipe mesh model is generated. The original pipeline mesh model is subjected to a corresponding reduction in surface area using relevant surface reduction algorithms to generate pipeline mesh hierarchical models at various levels.

8. The method for constructing a ship piping system according to claim 1, characterized in that, The construction of a real-time interactive editing interface, dynamically and visually editing basic pipeline attributes, dynamically and visually editing basic pipeline flange attributes, and dynamically and visually editing the equipment model between pipeline flange end faces includes: A real-time interactive editing interface is constructed, providing a graphical interface that allows users to adjust the properties of the pipeline in real time. The properties of the pipeline include the material, diameter, grid roundness, and number of corner sections. The system allows for batch editing of multiple pipelines, automatically recording user editing actions at fixed time intervals, and supports undo and redo. Based on the corner position and direction information of the pipeline, extract the pipeline node information, and automatically generate the installation position of the flange at the pipeline node; Based on the aforementioned typical model object library, a flange model matching the pipe diameter is generated; The properties of the flange can be adjusted through the interactive interface. The properties of the flange include its material, diameter, roundness, and thickness. Based on the gap between the two pipe flange ends, the equipment model in the typical model object library is automatically loaded; The device model between the flange end faces can be replaced through an interactive interface, and the connection parameters can be automatically adjusted; during the replacement and editing of the device model, the device model is updated and rendered in real time.

9. A computer device, comprising a memory, a processor, and a computer program stored in 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 8.

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

Citation Information

Patent Citations

  • Ship pipeline route optimum design method

    CN104699899A

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

    CN116167170A