Ship pipeline system model generation method and device, electronic equipment and storage medium
By receiving modeling instructions and adjusting parameters, the pipeline system model is automatically generated and adjusted, solving the problem of time-consuming and labor-intensive modeling and adjustment in existing technologies, and realizing efficient pipeline system design.
Patent Information
- Application Number
- CN202511184925.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-12-09
AI Technical Summary
In existing technologies, designers need to spend a lot of time modeling and modifying the pipeline system model multiple times. This results in a significant expenditure of manpower and time on modeling and adjusting the model, which affects the design progress and quality.
By receiving modeling instructions, the system obtains the pipeline schematic diagram and specification configuration file of the pipeline system, determines the primitive models corresponding to the components constituting the pipeline system from the pre-set model library, generates the initial pipeline system model, and adjusts the initial model according to the adjustment parameters when receiving model adjustment instructions to generate the target pipeline system model.
It reduces the manpower and time spent on pipeline system modeling, improves modeling efficiency, speeds up the design process, and enhances design quality.
Smart Images

Figure CN121093473A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of ship design technology, and in particular to a method, apparatus, electronic device, and storage medium for generating ship piping system models. Background Technology
[0002] Ships typically include various pipelines to achieve related functions, such as pipelines for water supply, gas supply, and oil supply. To facilitate the installation and layout of wiring, they also include pipelines for electronic and electrical wiring.
[0003] When creating a 3D model of a ship using 3D modeling software, it is necessary to establish pipeline system models for various pipeline systems such as water supply, gas supply, and oil supply. In related technologies, designers first create models of components such as pipes, flanges, and valves in the component library. Based on the pipeline system schematic diagram, designers select pipes with appropriate materials, wall thicknesses, and pressure ratings from the component library, as well as corresponding flanges, valves, and other accessories. Then, in the 3D modeling interface, they build the pipes one by one according to the pipeline system schematic diagram, along with the corresponding connecting flanges and valves. After completing the pipeline system model, designers need to adjust and modify the pipeline system.
[0004] In the aforementioned technologies, designers need to spend a lot of time building pipeline system models one by one according to the pipeline system schematic diagram, and make multiple adjustments after the modeling is completed. This results in a lot of manpower and time being spent on modeling and model adjustment, which squeezes the time designers have for quality control work such as rationality checks and model reviews, and affects the pipeline system design progress and design quality. Summary of the Invention
[0005] This invention provides a method, apparatus, electronic device, and storage medium for generating ship pipeline system models, thereby reducing the manpower and time spent on pipeline system modeling.
[0006] In a first aspect, the present invention provides a method for generating a model of a ship's pipeline system, comprising:
[0007] Receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system;
[0008] Based on the pipeline schematic diagram, determine the basic model corresponding to the components constituting the pipeline system from a pre-set model library;
[0009] Based on the pipeline schematic diagram and the specification configuration file, an initial pipeline system model is generated using the primitive model;
[0010] Determine the adjustment parameters upon receiving a model adjustment instruction;
[0011] The target pipeline system model is obtained by adjusting the initial pipeline system model according to the adjustment parameters.
[0012] Secondly, the present invention provides a device for generating a ship pipeline system model, comprising:
[0013] The modeling instruction response module is used to receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system.
[0014] The primitive model determination module is used to determine the primitive models corresponding to the components constituting the pipeline system from a pre-set model library based on the pipeline schematic diagram.
[0015] The initial piping system model generation module is used to generate an initial piping system model based on the piping schematic diagram and the specification configuration file, using the primitive model.
[0016] The parameter determination module is used to determine the adjustment parameters when a model adjustment instruction is received.
[0017] The model adjustment module is used to adjust the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model.
[0018] Thirdly, the present invention provides an electronic device, the electronic device comprising:
[0019] At least one processor; and
[0020] A memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the ship pipeline system model generation method according to the first aspect of the present invention.
[0022] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the ship pipeline system model generation method described in the first aspect of the present invention.
[0023] This invention, upon receiving a modeling instruction for a pipeline system, acquires the pipeline schematic diagram and specification configuration file of the pipeline system. Based on the pipeline schematic diagram, it determines the primitive models corresponding to the components constituting the pipeline system from a pre-set model library. Using the primitive models, it generates an initial pipeline system model. Upon receiving a model adjustment instruction, it determines adjustment parameters and adjusts the initial pipeline system model according to these parameters to obtain the target pipeline system model. Users can generate an initial pipeline system model simply by providing the pipeline schematic diagram and specification configuration file and triggering a modeling instruction. They can then adjust the initial pipeline system model using the model adjustment instruction to obtain the target pipeline system model. This eliminates the need for designers to manually model and repeatedly adjust the model based on the pipeline schematic diagram, shortening the modeling time, improving the modeling efficiency, accelerating the pipeline system design process, and enhancing design quality.
[0024] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0025] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is a flowchart of a method for generating a ship pipeline system model provided in Embodiment 1 of the present invention;
[0027] Figure 2 This is a flowchart of a method for generating a ship pipeline system model provided in Embodiment 2 of the present invention;
[0028] Figure 3 This is a partial schematic diagram of the pipeline circuit diagram;
[0029] Figure 4 This is a flowchart illustrating an example of a method for generating ship piping system models;
[0030] Figure 5 This is a schematic diagram of the structure of a ship pipeline system model generation device provided in Embodiment 3 of the present invention;
[0031] Figure 6 This is a schematic diagram of the structure of the electronic device provided in Embodiment 4 of the present invention. Detailed Implementation
[0032] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0033] Example 1
[0034] Figure 1 This is a flowchart of a method for generating a ship pipeline system model according to Embodiment 1 of the present invention. This embodiment is applicable to the generation of ship pipeline system models in 3D modeling applications. The method can be executed by a ship pipeline system model generation device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method for generating the ship's pipeline system model includes:
[0035] S101. Receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system.
[0036] In this embodiment, the pipeline system can refer to a system composed of various types of pipelines on a ship. For example, the pipeline system can be broadly classified into at least one of water supply pipeline system, oil supply pipeline system, and gas supply pipeline system. According to function, it can be further subdivided into fuel oil pipeline system, lubricating oil pipeline system, cooling pipeline system, bilge water pipeline system, ballast water pipeline system, fire protection pipeline system, engine room ventilation pipeline system, etc. The pipeline system model can be a three-dimensional model of the pipeline system.
[0037] In this embodiment, after the user enters the identifier of the pipeline system to be modeled (such as the pipeline system code or name) in the modeling interface, the user clicks the "One-Click Modeling" control in the modeling interface. Upon responding to this operation, a modeling instruction is generated. The 3D modeling application can receive the modeling instruction, which may include the identifier of the pipeline system to be modeled. The application then reads the pre-stored pipeline schematic diagram and specification configuration file from the database using this identifier.
[0038] The pipeline schematic diagram can be a two-dimensional graphic that includes the graphic elements of various components in the pipeline system, the positions and connections between the components, and the various components can be the components that constitute the pipeline system. For example, the components can include pipes, valves (butterfly valves, check valves, one-way valves, pressure relief valves, etc.), filters, and connectors (such as various flanges).
[0039] A specification configuration file can be a file that defines the specifications of various components in a piping system. For example, a specification configuration file can define the size, quantity, connection method, pressure rating, etc. of the components. For example, for pipes, the specification configuration file can define the pipe diameter, wall thickness, and length, as well as the connection method between pipes, such as flange connection or welding. For valves, the pressure rating, external dimensions, etc. can be defined.
[0040] S102. Based on the pipeline schematic diagram, determine the basic model of the components constituting the pipeline system from the pre-set model library.
[0041] This embodiment can pre-build a model library, which can be a model library including primitive models of components that build a piping system. Each primitive model corresponds to a component. The model library can include a general model library (standard parts) and a special model library (non-standard parts). The general model library can include primitive models of general standard components such as pipes, valves, and flanges, while the special model library can include primitive models of non-standard components such as pipes, valves, and flanges. Each primitive model in the model library is associated with a component code, which can be used to call the corresponding primitive model from the model library for modeling.
[0042] Specifically, in this embodiment, each graphic element in the pipeline schematic diagram can be identified, with each graphic element representing a component. This allows the acquisition of the component code corresponding to the graphic element. The component code can then be used to call a primitive model from the model library. This primitive model serves as the original primitive model. For example, when a check valve graphic element is identified in the pipeline schematic diagram, the text recognition of the check valve label is further performed to obtain the check valve model number as the component code. The primitive model of the corresponding check valve model is then called from the model library. Similarly, when a pipe graphic element is identified in the pipeline schematic diagram, the label of the pipe is further recognized to obtain the pipe type code. The primitive model of the corresponding pipe type is then called from the model library.
[0043] S103. Based on the pipeline schematic diagram and specification configuration file, generate the initial pipeline system model using the primitive model.
[0044] In an optional embodiment, a modeling space can be generated, which can be a closed rectangular space. Based on the primitive models, coordinates, and specification configuration files corresponding to each element in the pipeline schematic diagram, the primitive models are adjusted using the corresponding specification configuration files to obtain target primitive models. The target primitive models are then arranged in the modeling space according to the coordinates. After all target primitive models are arranged, the initial pipeline system model is obtained.
[0045] Taking a pipeline as an example, the original pipeline model is first obtained. This original pipeline model can be a model with adjustable inner diameter, outer diameter, and length. Then, the original pipeline model is adjusted according to the inner diameter, outer diameter, and length of the pipeline defined in the specification configuration file to obtain the target pipeline model. Next, the starting coordinates and ending coordinates of the pipeline are determined from the pipeline schematic diagram. Based on the starting coordinates and ending coordinates, the target pipeline model is imported into the modeling space to complete the generation of the pipeline model. In this way, the pipeline, valve, connector, and other components corresponding to each element in the pipeline schematic diagram are processed to arrange the target primitive models corresponding to the pipeline, valve, connector, and other components in the modeling space to obtain the initial pipeline system model.
[0046] S104. Determine the adjustment parameters upon receiving the model adjustment instruction.
[0047] In one embodiment, after generating the initial piping system model, interference detection can be performed. For example, the interference detection module in the 3D modeling application can be directly called to perform interference detection on the initial piping system model to obtain interference items. After the user selects the interference item and clicks the "Model Adjustment Reset" control, a model adjustment instruction is generated. The data involved in the interference item can be determined as adjustment parameters. Alternatively, the user can select the item to be adjusted in the initial piping system model and determine the data corresponding to the selected item as adjustment parameters. For example, the adjustment parameters may include the coordinates of the primitive model, the size and quantity of the primitive model, the connection method, pressure, relative position adjustment, the spacing between primitive models, interference attributes, etc.
[0048] S105. Adjust the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model.
[0049] After determining the adjustment parameters, the initial pipeline system model can be adjusted according to the adjustment parameters to obtain the target pipeline system model. For example, the spacing, size, position, etc. between the primitive models can be adjusted until the target pipeline system model required by the user is obtained.
[0050] In this embodiment of the invention, after receiving a modeling instruction for a pipeline system, the system obtains the pipeline schematic diagram and specification configuration file. Based on the pipeline schematic diagram, it determines the primitive models corresponding to the components constituting the pipeline system from a pre-set model library. Based on the pipeline schematic diagram and specification configuration file, it generates an initial pipeline system model using the primitive models. Upon receiving a model adjustment instruction, it determines the adjustment parameters and adjusts the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model. Users can generate an initial pipeline system model by providing a pipeline schematic diagram and specification configuration file and then adjust the initial pipeline system model to obtain the target pipeline system model by triggering a modeling instruction. This eliminates the need for designers to manually model and adjust the model multiple times based on the pipeline schematic diagram, improving the modeling efficiency of the pipeline system model, accelerating the pipeline system design progress, and improving the design quality.
[0051] Example 2
[0052] Figure 2 This is a flowchart of a method for generating a ship pipeline system model according to Embodiment 2 of the present invention. This embodiment optimizes Embodiment 1 as described above. Figure 2 As shown, the method for generating the ship's pipeline system model includes:
[0053] S201. Construct a general model library and a dedicated model library for pipeline system models.
[0054] The model library in this embodiment is used to store primitive models. The primitive models can be three-dimensional models corresponding to the components that construct the pipeline system. The primitive models are parametric models that can be adjusted. This model library can be set in a three-dimensional modeling application.
[0055] The model library can include a general model library and a special model library. For example, model templates of general components required for pipeline system modeling can be pre-entered into the general model library of the 3D modeling application, while models of special (non-standard) components required for pipeline system modeling of specific projects can be entered into the special model library of the 3D modeling application. Each component model in the model library is associated with a component code.
[0056] S202. Generate the specification configuration file for the piping system. The specification configuration file is used to configure the specifications of the components used to build the piping system.
[0057] A specification configuration file is a file that defines the specifications of various components in a piping system. During modeling, the specification configuration file is used to configure the specifications of the primitive models corresponding to the components. For example, a specification configuration file can define the dimensions of a component, the number of branches, the connection method, the pressure rating, etc. For example, for pipes, it can define the pipe diameter and wall thickness, and define the connection method between pipes, such as flange connection or welding. For valves, it can define the pressure rating, so that the primitive models of the corresponding components can be adjusted during modeling using the specification configuration file.
[0058] After generating the specification configuration file, the specification configuration file can be stored in association with the identifier of the piping system. Since the materials, wall thicknesses, grades, etc. of the pipes used in different piping systems vary, by positioning pipes of different materials, wall thicknesses, and grades in different specification configuration files, the corresponding materials, wall thicknesses, grades of pipes and corresponding accessories can be selected through the specification configuration file for piping systems with different requirements during modeling.
[0059] S203. Receive the identifier of the pipeline system input by the user.
[0060] In one embodiment, the identifier of the piping system can be the piping system code, name, etc. The user can enter the code or name of the piping system to be modeled as the identifier in the modeling interface, and the 3D modeling application can receive the identifier of the piping system.
[0061] S204. When a modeling operation targeting the pipeline system is detected, a modeling instruction is generated in response to the modeling operation, and the pipeline schematic diagram and specification configuration file of the pipeline system are obtained.
[0062] In one optional embodiment, after the user enters the code or name of the pipeline system to be modeled as an identifier in the modeling interface, the user can click the "One-Click Modeling" control in the modeling interface. When the 3D modeling application detects the click operation on the "One-Click Modeling" control, it responds to the operation by generating a modeling instruction. The pre-stored pipeline schematic diagram and specification configuration file are searched through the identifier of the pipeline system in the modeling instruction. The pipeline schematic diagram can be a two-dimensional graphic that includes the elements of various components in the pipeline system, the position and connection relationship between the components.
[0063] S205. Analyze the pipeline schematic diagram to obtain the component codes of the components that make up the pipeline system.
[0064] In this embodiment, the components constituting the piping system may include at least one of pipes, valves, filters, and connectors. The piping schematic diagram may include various geometric elements, each element corresponding to a component of the piping system, such as... Figure 3 The image shown is a schematic diagram of a piping system. Figure 3In this embodiment, the pipeline schematic diagram includes the elements corresponding to valves and flow meters, as well as the elements of the pipes connecting the valves and flow meters. The pipeline schematic diagram can be parsed to obtain the image of each element, and the element image can be matched with the element template image to determine the component represented by the element. The annotation of the element in the pipeline schematic diagram can be text-recognized to obtain the component code of the component corresponding to the element.
[0065] For example, such as Figure 3 As shown, when the element of valve 1 is identified, it is determined that a valve has been identified, and the component code is further identified as "valve 1". When the element of pipe 2 is identified, it is determined that a pipe has been identified, and the component code is further identified as "pipe 2".
[0066] S206. Extract the primitive model corresponding to the component code from the pre-set model library as the original primitive model based on the component code.
[0067] Since each primitive model in the model library is associated with a component code, the primitive model corresponding to the component code identified in the pipeline schematic diagram can be extracted from the model library as the original primitive model. For example, the primitive model of pipe 2 can be extracted from the model library as the original primitive model. The original primitive model can be a model whose inner diameter, outer diameter, and length can be parameterized and adjusted.
[0068] S207. Generate a modeling space based on the pipeline schematic diagram.
[0069] In one embodiment, a modeling range can be constrained as a modeling space based on the dimensions and direction of the pipes in the pipeline schematic diagram. For example, the maximum length, width, and height of the pipeline system model can be determined through the pipeline schematic diagram to construct a cuboid space. For instance, the three-dimensional coordinates of the eight vertices of the cuboid can be input in the modeling interface to generate a cuboid modeling space, in which the pipeline system model can be generated. Of course, the modeling space can also be other regular or irregular three-dimensional closed spaces. In another embodiment, the hull model of a ship can also be directly used as the modeling space.
[0070] S208. Import the constraint model into the modeling space, and define the type attributes of the constraint model and determine the minimum spacing. The type attributes include interference-allowed and interference-prohibited.
[0071] In this embodiment, the constraint model may include various pre-established models such as hull structure, cable tray, outfitting bracket, equipment, maintenance space, etc. Each constraint model has coordinates, and the constraint model can be imported into the modeling space according to the coordinates. It is also defined whether each constraint model can interfere with the model corresponding to other components. When the type attribute of the constraint model is defined as interference-allowed, it is determined that the constraint model can interfere with other models. When the type attribute of the constraint model is defined as interference-prohibited, it is determined that other models are prohibited from interfering with the constraint model.
[0072] Furthermore, the minimum spacing between other models and the constraint model that prohibits interference can also be defined, as well as the minimum spacing between models, such as the minimum spacing between pipes, or the minimum spacing between pipes and other accessories.
[0073] S209. Determine the component's specification data from the specification configuration file. The specification data includes at least one of the component's dimensional parameters, connection method, pressure rating, and quantity.
[0074] The original primitive model can be a parametric primitive model. For each original primitive model, the size parameters, connection method, pressure rating, quantity and other specification data of the component can be filtered from the specification configuration file. For example, for a pipe, the inner diameter, outer diameter, connection method, pressure rating and other specification data can be determined; for a valve, the pressure rating, accuracy, size parameters and other data can be determined; and for a flange, the size parameters can be determined.
[0075] S210. The original primitive model is adjusted using specification data to obtain the target primitive model.
[0076] Taking a pipe as an example, since the original primitive model is a parametric model and does not define dimensions, the original primitive model can be adjusted using the pipe's inner diameter, outer diameter, and length from the specification data to obtain a target primitive model with fixed inner diameter, outer diameter, and length. Taking a flange connector as another example, the dimensions of the flange connector can be adjusted using the specification data to obtain a target primitive model of a flange suitable for connecting pipes.
[0077] S211. Determine the coordinates of each component from the piping schematic diagram.
[0078] Piping schematic diagrams can also include the coordinates of the components corresponding to each element. Taking a pipe as an example, a piping schematic diagram can include the coordinates of the pipe's start and end points, which can be the three-dimensional coordinates of the pipe in the piping system.
[0079] S212. Based on the coordinates, minimum spacing, and type attributes of the constraint model, arrange the target primitive models corresponding to the components in the modeling space to obtain the initial pipeline system model.
[0080] After determining the coordinates of each component that makes up the pipeline system through the pipeline schematic diagram, the target primitive model corresponding to each component can be placed in the modeling space according to the coordinates and in combination with the minimum spacing requirements and whether the constraint model can interfere. The model construction is completed after all the target primitive models of the components are placed in the modeling space, and the initial pipeline system model is obtained.
[0081] S213. Upon receiving a model adjustment instruction, detect the user's selection operation for the target primitive model in the initial pipeline system model.
[0082] If the generated initial piping system model does not achieve the preset effect, users can click the "Model Adjustment Reset" control in the modeling interface to trigger the generation of model adjustment instructions and detect the user's selection operation of the primitive model in the initial piping system model. For example, the user selects the primitive model that needs to be adjusted in the initial piping system model displayed in the modeling interface.
[0083] Alternatively, after generating the initial piping system model, the model detection module of the 3D modeling application can detect the initial piping system model and display alarm items. For example, the interference detection module of the 3D modeling application can perform interference detection on the initial piping system model and display interference warning items, and the user can select the items that need to be adjusted.
[0084] S214. Determine the target primitive model to be adjusted and the adjustment parameters of the target primitive model based on the selection operation.
[0085] In this embodiment, after the user selects the target primitive model to be adjusted, the adjustment parameters of the target primitive model to be adjusted may include at least one of the following: coordinates, size, connection method, pressure specification, position, distance from other primitive models, and interference definition. The user can select one or more of these adjustment parameters.
[0086] S215. Adjust the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model.
[0087] After determining the adjustment parameters, the entire pipeline system model can be reset, and a new initial pipeline system model can be regenerated according to the adjustment parameters. Alternatively, a new initial pipeline system model can be obtained by fine-tuning the current initial pipeline system model based on the adjustment parameters. After the user confirms the modeling, the current initial pipeline system model is determined as the target pipeline system model.
[0088] If the user continues to click the "Model Adjustment Reset" control in the modeling interface after adjustment, it will return to S213 to continue adjusting the currently generated pipeline system model until the user triggers the end of modeling. After the modeling is completed, the user can make fine adjustments and segment the pipeline on the target pipeline system model obtained by modeling.
[0089] like Figure 4 The flowchart shown is an example of generating a ship piping system model. Specifically, the 3D modeling system first completes the component library and defines the specifications, automatically generating model space range constraints. Within this model space, the piping system model is generated. After the user enters the piping system code and name, the 3D modeling system selects the specifications and piping schematic diagram to define the pipe diameter, branches, connection methods, pressure, etc., as well as the type and quantity of pipe fittings, restricting the start and end points of the pipes and the coordinates of key fittings. Then, it further defines the interfering and non-interfering model types and the minimum spacing. After the user clicks "Generate Model with One Click," the computer software (3D modeling software) automatically generates the piping system model according to the defined conditions. When receiving a model adjustment and reset command, it adjusts the coordinate constraints of key fittings, the relative positions of pipes and systems, the start and end points of pipes, as well as the pipe diameter, branches, connection methods, pressure, spacing between pipes, and the interfering and non-interfering model types, etc., and regenerates the piping system model after the adjustments until the user completes the modeling and obtains the final piping system model.
[0090] This embodiment pre-builds a model library and a specification configuration file for the piping system. After the user inputs the identifier of the piping system and triggers the generation of a modeling command, it obtains the piping system schematic diagram and specification configuration file. Further, it parses the schematic diagram to obtain the component codes that constitute the piping system components. Based on the component codes, it extracts the corresponding primitive models from the pre-built model library as the original primitive models. It imports constraint models into the modeling space, defines the type attributes of the constraint models, and determines the minimum spacing. It determines the component specification data from the specification configuration file and adjusts the original primitive models using the specification data to obtain the target primitive model. Based on the component coordinates, minimum spacing, and constraint model type attributes, it arranges the corresponding target primitive models in the modeling space to obtain the initial piping system model. When a model adjustment command is received, it adjusts the initial piping system model according to the adjustment parameters to obtain the target piping system model. This eliminates the need for designers to manually model and repeatedly adjust the model based on the piping schematic diagram, improving the modeling efficiency of the piping system model, accelerating the piping system design progress, and improving design quality.
[0091] Furthermore, by setting constraint models and minimum spacing, the generated pipeline system model is made more reasonable, thus improving the design instructions of the pipeline system model.
[0092] Example 3
[0093] Figure 5 This is a schematic diagram of a ship pipeline system model generation device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device for generating a ship pipeline system model includes:
[0094] The modeling instruction response module 501 is used to receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system.
[0095] The primitive model determination module 502 is used to determine the primitive models corresponding to the components constituting the pipeline system from a preset model library based on the pipeline schematic diagram.
[0096] The initial pipeline system model generation module 503 is used to generate an initial pipeline system model based on the pipeline schematic diagram and the specification configuration file, using the primitive model.
[0097] The parameter determination module 504 is used to determine the adjustment parameters when a model adjustment instruction is received;
[0098] The model adjustment module 505 is used to adjust the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model.
[0099] Optionally, it also includes:
[0100] The identification input module is used to receive the identification of the pipeline system input by the user;
[0101] The modeling instruction generation module is used to generate modeling instructions in response to a modeling operation detected for the pipeline system.
[0102] Optionally, it also includes:
[0103] The model library building module is used to build a general model library and a dedicated model library for the pipeline system model.
[0104] A specification configuration file generation module is used to generate a specification configuration file for the piping system, wherein the specification configuration file is used to configure the specifications of the components constituting the piping system model.
[0105] Optionally, the primitive model determination module 502 is specifically used for:
[0106] The component codes of the components constituting the pipeline system are obtained by parsing the pipeline schematic diagram. The components include at least one of pipes, valves, filters, and connectors.
[0107] Based on the component code, the primitive model corresponding to the component code is extracted from the pre-set model library as the original primitive model.
[0108] Optionally, the initial pipeline system model generation module 503 is specifically used for:
[0109] A modeling space is generated based on the pipeline schematic diagram;
[0110] The specification data of the component is determined from the specification configuration file. The specification data includes at least one of the following: the component's dimensional parameters, connection method, pressure rating, and quantity.
[0111] The target primitive model is obtained by adjusting the original primitive model corresponding to the component using the specified data;
[0112] The coordinates of each component are determined from the pipeline schematic diagram, and the target primitive models corresponding to the components are arranged in the modeling space according to the coordinates to obtain the initial pipeline system model.
[0113] Optionally, the initial pipeline system model generation module 503 is further used for:
[0114] Import the constraint model into the modeling space and define the type attributes of the constraint model, including interference-allowed and interference-prohibited;
[0115] Determine the minimum spacing;
[0116] Optionally, the initial pipeline system model generation module 503 is further used for:
[0117] Determine the coordinates of each component from the pipeline schematic diagram;
[0118] Based on the coordinates, the minimum spacing, and the type attribute of the constraint model, the target primitive model corresponding to the component is arranged in the modeling space to obtain the initial pipeline system model.
[0119] Optionally, the parameter adjustment determination module 504 is specifically used for:
[0120] Upon receiving a model adjustment instruction, the system detects the user's selection operation for the target primitive model in the initial pipeline system model.
[0121] Based on the selection operation, the target primitive model to be adjusted and the adjustment parameters of the target primitive model are determined. The adjustment parameters include at least one of the following: coordinates, size, connection method, pressure specification, position, distance from other primitive models, and interference definition.
[0122] The ship pipeline system model generation device provided in this embodiment of the invention can execute the ship pipeline system model generation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0123] Example 4
[0124] Figure 6 A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0125] like Figure 6 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory (ROM) 42 or a random access memory (RAM) 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the ROM 42 or loaded into the RAM 43 from storage unit 48. The RAM 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, ROM 42, and RAM 43 are interconnected via a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0126] Multiple components in electronic device 40 are connected to I / O interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0127] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the method for generating ship pipeline system models.
[0128] In some embodiments, the ship piping system model generation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 40 via ROM 42 and / or communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the ship piping system model generation method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to execute the ship piping system model generation method by any other suitable means (e.g., by means of firmware).
[0129] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0130] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0131] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0132] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0133] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0134] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0135] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0136] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for generating a model of a ship's pipeline system, characterized in that, include: Receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system; Based on the pipeline schematic diagram, determine the basic model corresponding to the components constituting the pipeline system from a pre-set model library; Based on the pipeline schematic diagram and the specification configuration file, an initial pipeline system model is generated using the primitive model; Determine the adjustment parameters upon receiving a model adjustment instruction; The target pipeline system model is obtained by adjusting the initial pipeline system model according to the adjustment parameters.
2. The method according to claim 1, characterized in that, Before receiving modeling instructions for the piping system and obtaining the piping schematic diagram and specification configuration file of the piping system, the process also includes: Receive the identifier of the piping system input by the user; When a modeling operation for the piping system is detected, a modeling instruction is generated in response to the modeling operation.
3. The method according to claim 1, characterized in that, Before receiving modeling instructions for the piping system and obtaining the piping schematic and specification configuration file of the piping system, the process also includes: Construct a general model library and a dedicated model library for the pipeline system model; Generate a specification configuration file for the piping system, which is used to configure the specifications of the components that constitute the piping system model.
4. The method according to claim 1, characterized in that, Based on the pipeline schematic diagram, the primitive models corresponding to the components constituting the pipeline system are determined from a pre-set model library, including: The component codes of the components constituting the pipeline system are obtained by parsing the pipeline schematic diagram. The components include at least one of pipes, valves, filters, and connectors. Based on the component code, the primitive model corresponding to the component code is extracted from the pre-set model library as the original primitive model.
5. The method according to claim 4, characterized in that, Based on the pipeline schematic diagram and the specification configuration file, an initial pipeline system model is generated using the primitive model, including: A modeling space is generated based on the pipeline schematic diagram; The specification data of the component is determined from the specification configuration file. The specification data includes at least one of the following: the component's dimensional parameters, connection method, pressure rating, and quantity. The target primitive model is obtained by adjusting the original primitive model corresponding to the component using the specified data; The coordinates of each component are determined from the pipeline schematic diagram, and the target primitive models corresponding to the components are arranged in the modeling space according to the coordinates to obtain the initial pipeline system model.
6. The method according to claim 5, characterized in that, After generating a modeling space based on the pipeline schematic, the process also includes: Import the constraint model into the modeling space and define the type attributes of the constraint model, including interference-allowed and interference-prohibited; Determine the minimum spacing; The process of determining the coordinates of each component from the pipeline schematic diagram and arranging the corresponding target primitive models of the components in the modeling space based on the coordinates to obtain the initial pipeline system model includes: Determine the coordinates of each component from the pipeline schematic diagram; Based on the coordinates, the minimum spacing, and the type attribute of the constraint model, the target primitive model corresponding to the component is arranged in the modeling space to obtain the initial pipeline system model.
7. The method according to claim 6, characterized in that, Upon receiving a model adjustment instruction, determine the adjustment parameters, including: Upon receiving a model adjustment instruction, the system detects the user's selection operation for the target primitive model in the initial pipeline system model. Based on the selection operation, the target primitive model to be adjusted and the adjustment parameters of the target primitive model are determined. The adjustment parameters include at least one of the following: coordinates, size, connection method, pressure specification, position, distance from other primitive models, and interference definition.
8. A device for generating a model of a ship's pipeline system, characterized in that, include: The modeling instruction response module is used to receive modeling instructions for the pipeline system and obtain the pipeline schematic diagram and specification configuration file of the pipeline system. The primitive model determination module is used to determine the primitive models corresponding to the components constituting the pipeline system from a pre-set model library based on the pipeline schematic diagram. The initial piping system model generation module is used to generate an initial piping system model based on the piping schematic diagram and the specification configuration file, using the primitive model. The parameter determination module is used to determine the adjustment parameters when a model adjustment instruction is received. The model adjustment module is used to adjust the initial pipeline system model according to the adjustment parameters to obtain the target pipeline system model.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the ship pipeline system model generation method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for generating a ship pipeline system model according to any one of claims 1-7.
Citation Information
Cited By
Pipeline connecting piece modeling method and device of space carrying tool and medium
CN122333638A