Pipeline system design model conversion method and device and electronic equipment
By extracting component attribute information of pipeline system design model, using parameterized surface and equivalent model technology, the problems of low conversion efficiency and poor model quality in the existing technology are solved, and efficient pipeline system simulation model generation is achieved , supports vibration noise analysis and performance research of ship pipeline systems.
Patent Information
- Application Number
- CN202411142782.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-12-17
AI Technical Summary
In the design of ship pipeline system, the three-dimensional model conversion efficiency is low and the model quality is poor, resulting in limited design and simulation analysis efficiency, especially in large-scale scene display and vibration transmission analysis, there are problems of data information loss and repeated operations. .
By extracting component attribute information in the pipeline system design model, using parameterized surfaces to create surface tubes, and creating equivalent models for equipment and special accessories. Combining geometric boolean operations to cut off excess surfaces, generate pipeline system simulation models, and reduce manual conversion Operation, improve conversion efficiency and model quality.
It realizes efficient and high-quality conversion of pipeline system design models, reduces the amount of design model data, avoids manual conversion operations, improves conversion efficiency and stability, and supports vibration noise analysis and performance research of ship pipeline systems.
Smart Images

Figure CN119150604A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of digital design, and in particular relates to a piping system design model conversion method, device and electronic equipment. Background Art
[0002] The piping system is a large and extensive "blood vessel" system on a ship, and is crucial to the normal operation of the ship under different working conditions.
[0003] During the development process, large-scale scene display and vibration transmission analysis require lightweighting and simulation analysis of the piping system model. In the past, manual creation or mold conversion was used, which was inefficient and resulted in poor model quality. Summary of the invention
[0004] In a first aspect, an embodiment of the present invention provides a method for converting a piping system design model, comprising: determining a piping system design model to be converted, extracting attribute information of each component in the piping system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories, the first-category accessories include elbows, reducers, and different-diameter and different-axis accessories, and the second-category accessories are other accessories in the piping system except the first-category accessories; according to the attribute information of each component, the pipes and the second-category accessories are joined to form new connection points; according to the attribute information of each component, corresponding curved pipes are created for other components except the equipment and the first-category accessories using parametric surfaces, and corresponding equivalent models are created for the equipment and the first-category accessories; a piping system simulation model is generated according to the new connection points, curved pipes, and equivalent models.
[0005] In some embodiments, the corresponding equivalent models are created for the equipment and the first type of accessories, including: for the equipment, generating a corresponding envelope; for the elbow, creating a first section line according to the outer cross-sectional size parameters and wall thickness parameters of the elbow, and sweeping the first section line along the center line of the elbow to create a corresponding surface; for accessories with different diameters and different diameters and different shafts, extracting the geometric feature parameters at both ends of the accessories with different diameters and different diameters and different shafts, and creating corresponding different diameter surfaces based on a smooth transition method.
[0006] In some embodiments, the component attribute information corresponding to the device includes the device type, pipeline geometric features and pipeline interface position; then, the corresponding envelope body is generated for the device, including: identifying the device body according to the device type corresponding to the device, and automatically generating the envelope body corresponding to the device body based on the envelope body creation function; according to the pipeline geometric features corresponding to the device, radially offsetting a preset multiple thickness value on the outer surface, extracting the shell to generate a curved tube, and maintaining the pipeline interface position unchanged.
[0007] In some embodiments, the method of using parametric surfaces to create corresponding curved tubes for components other than equipment and first-category accessories based on the attribute information of each component includes: drawing second section lines corresponding to other components based on the difference between the outer cross-sectional size and the wall thickness of the parametric surface as characteristic parameters; identifying the central axis lines corresponding to other components; and sweeping and stretching the second section lines along the central axis lines corresponding to other components to create curved tubes corresponding to other components.
[0008] In some embodiments, after creating the corresponding equivalent models for the device and the first type of accessories, the method further includes: performing interference checks on each curved tube, and cutting off redundant curved surfaces on the curved tube based on geometric Boolean operations.
[0009] In some embodiments, the interference check on each curved tube and the removal of redundant curved surfaces on the curved tube based on geometric Boolean operations include: identifying each curved tube; for each curved tube, sequentially carrying out interference checks with other single curved tubes, and recording each curved tube identification and other single curved tube identifications that interfere with the curved tube into a corresponding linked list; for each linked list, performing Boolean summation on other single curved tubes that interfere with the curved tube to obtain a first geometric body, and performing Boolean subtraction operation on the curved tube and the first geometric body to obtain a second geometric body; replacing each curved tube with the second geometric body, and deleting the first geometric body to achieve the removal of redundant curved surfaces on the curved tube.
[0010] In some embodiments, for each curved tube, interference checks are carried out in sequence with other single curved tubes, including: determining a first distance between a center line of the curved tube and a curved surface of the other single curved tube; determining a second distance between a center line of the other single curved tube and the curved surface of the curved tube; and determining that interference exists between the curved tube and the other single curved tubes when the first distance or the second distance is zero.
[0011] In some embodiments, the method further includes at least one of the following: exporting a geometric model file corresponding to the pipeline system simulation model; classifying the attribute information of each component, storing it in a database according to a corresponding predefined data structure, and exporting an attribute information file of the pipeline system from the database.
[0012] In a second aspect, an embodiment of the present invention provides a pipeline system design model conversion device, comprising: an extraction module, used to determine the pipeline system design model to be converted, and extract attribute information of each component in the pipeline system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories, the first-category accessories include elbows, reducers, and different-diameter and different-axis accessories, and the second-category accessories are other accessories in the pipeline system except the first-category accessories; a joining module, used to join the pipes and the second-category accessories according to the attribute information of each component to form a new connection point; a conversion module, used to create corresponding curved surface pipes for other components except the equipment and the first-category accessories using parameterized surfaces according to the attribute information of each component, and create corresponding equivalent models for the equipment and the first-category accessories; a generation module, used to generate a pipeline system simulation model according to the new connection point, curved surface pipe, and equivalent model.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the steps of the pipeline system design model conversion method described in any one of the first aspects when executing the program stored in the memory.
[0014] The beneficial effects brought by the present invention are as follows:
[0015] It can be seen from the above scheme that the embodiments of the present invention provide a method, device and electronic device for converting the design model of a pipeline system. By using parametric surfaces to create curved pipes for components other than equipment and special accessories in the pipeline system, and creating corresponding equivalent models for equipment and special accessories, an efficient and high-quality conversion channel is provided for the conversion of the three-dimensional design model of the pipeline system to the simulation model. The manual mold conversion process or re-modeling process is reduced, the operability is strong, the conversion efficiency is high, the model quality is good, and the function of executing the lightweight model of the pipeline system is also provided, which effectively avoids manual conversion operations, can significantly reduce the amount of design model data, and has high stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a process flow of a piping system design model conversion method provided by an embodiment of the present invention;
[0017] Figure 2 A schematic flow chart of another piping system design model conversion method provided by an embodiment of the present invention;
[0018] Figure 3 for Figure 2 A detailed flow chart of step S204 in the illustrated embodiment;
[0019] Figure 4 A schematic diagram of cutting off redundant curved surfaces from a curved tube with interference provided by an embodiment of the present invention;
[0020] Figure 5 A schematic diagram of a specific conversion process of a pipeline system design model provided by an embodiment of the present invention;
[0021] Figure 6 A flow chart of a curved tube interference inspection and removal of redundant curved surfaces provided by an embodiment of the present invention;
[0022] Figure 7 A partial view of a pipeline system before conversion provided by an embodiment of the present invention;
[0023] Figure 8 for Figure 7 The shown partial view of the piping system after transformation and removal of unnecessary curved surfaces;
[0024] Fig. 9 A schematic diagram of the structure of a piping system design model conversion device provided by an embodiment of the present invention;
[0025] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0027] In the process of ship design, due to the limitations of product scale and software platform, the amount of 3D model data increases dramatically, which seriously affects the efficiency of multi-disciplinary collaborative design. Therefore, it is necessary to formulate a balance strategy between product scale and platform carrying capacity, and implement corresponding model data management and control measures.
[0028] There are a large number of ship piping systems, involving a wide range of professions. When displaying in large scenes, there is an urgent need to lightweight the piping system model. At the same time, the vibration and noise of the piping system seriously affect the comprehensive performance of the ship, and vibration transmission analysis is required in the later stage of design. Before analysis, a series of simplifications need to be performed on the piping system: simplify the pipe section into a pipe shell, simplify the equipment into a cube model or mass point, and assign rotational inertia attributes; valves, flanges, reducers, tees, elbows and other accessories also need to be simplified into pipe shells and mass points. The finite element model of the piping system is usually converted or recreated based on the three-dimensional design model, which is time-consuming and prone to data information loss. In order to achieve effective integration of design and simulation, it is crucial to establish an efficient conversion channel for the piping system design model and the simulation model. Converting the piping system solid model into a curved pipe model to support the vibration and noise analysis of different piping systems is of great significance to the performance research of the ship piping system.
[0029] Effective conversion of the 3D design model of the ship piping system can avoid a lot of unnecessary repeated operations and modeling work, and is an effective way to model high-quality, efficient and fast. However, for the large-scale and wide-ranging 3D piping design models with various attachment types, the following problems exist in the conversion process:
[0030] 1) The piping system consists of pipes, valves, flanges, reducers, tees, etc., involving many quantities and types. How to obtain relevant information of the three-dimensional model of the piping system and automatically convert it into an equivalent model?
[0031] 2) After the piping system model is converted into a curved pipe, it will cause the pipe penetration problem, that is, interference phenomenon. How to cut off the redundant curved surface.
[0032] Therefore, combined with the current engineering situation, exploring the three-dimensional design model conversion technology of the piping system is an important research direction for lightweight and simulation analysis of the current piping system model.
[0033] In response to the above technical problems, the technical concept of the present invention is to provide a method and electronic equipment for converting a three-dimensional design model of a pipeline system, which expresses the design model of the pipeline system based on parametric surface features, replaces manual conversion operations, and has high reliability and stable operation; it also uses geometric Boolean operations to cut off redundant surfaces of the converted curved tubes, thereby solving the problem of pipeline penetration.
[0034] Figure 1 The following is a flow chart of a pipeline system design model conversion method provided by an embodiment of the present invention. Figure 1 As shown, the pipeline system design model conversion method includes:
[0035] Step S101, determine the piping system design model to be converted, and extract attribute information of each component in the piping system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories. The first-category accessories include elbows, reducers, and different-diameter and different-axis accessories, and the second-category accessories are other accessories in the piping system except the first-category accessories.
[0036] Specifically, the pipeline system includes components such as equipment, pipes, accessories, and pipe supports, among which equipment refers to various mechanical equipment or devices used to process, transmit, control or treat fluids, such as pumps, compressors, heat exchangers, etc.; pipes are pipe materials used to construct pipeline systems, which are responsible for conveying fluids, gases or solid particles; accessories refer to various auxiliary components used to connect, support, control or protect pipelines, such as flanges, elbows, tees, reducers, reducers with different shafts, valves, etc.; pipe supports are structures used to support and fix pipeline systems to ensure that the pipelines are stable and reliable during operation. In this embodiment, accessories are further divided into first-class accessories and second-class accessories. First-class accessories refer to special accessories such as elbows, reducers, and reducers with different shafts. Reducers with different shafts refer to valves with inconsistent inlet and outlet sizes or not on the same axis, such as tees, crosses, and other accessories. Second-class accessories refer to common accessories such as valves and flanges.
[0037] Designers can complete the three-dimensional design model of the piping system on a software platform (such as 3DE); select one or more three-dimensional design models of the piping system to be converted, parse the three-dimensional design models of the piping system to be converted, and extract the attribute information of each component. Component information such as equipment, pipes, pipe accessories and pipe supports can be stored in the structure, which at least includes but is not limited to number, node type, reference name, instance name, weight center of gravity, moment of inertia, character type, etc.
[0038] Step S102: The pipe and the second type of accessory are joined together according to the attribute information of each component to form a new connection point.
[0039] Specifically, in addition to equipment, elbows, reducers, and different diameters and shafts, a valve accessory or multiple accessory assemblies are connected to pipes at both ends. The original two interface points are modified to the center points of the valve accessory or accessory assembly, and the connection points can be processed in batches.
[0040] Step S103: according to the attribute information of each component, corresponding surface tubes are created for components other than the equipment and the first category accessories using parametric surfaces, and corresponding equivalent models are created for the equipment and the first category accessories.
[0041] Specifically, parametric surfaces are used to create curved pipes except for equipment and first-category accessories, and equivalent models are created for equipment, elbows, reducers, and accessories with different diameters and shafts.
[0042] In some embodiments, the step S103 uses parametric surfaces to create corresponding curved tubes for components other than equipment and first-category accessories based on the attribute information of each component, including: drawing second section lines corresponding to other components based on the difference between the outer cross-sectional size and the wall thickness of the parametric surface as characteristic parameters; identifying the central axis corresponding to other components; sweeping and stretching the second section lines along the central axis corresponding to other components to create curved tubes corresponding to other components.
[0043] Specifically, based on the parametric surface expression method, the section line is drawn with the difference between the outer section size and the wall thickness as the characteristic parameter, the central axis of the pipeline three-dimensional model is identified, and the section line is swept and stretched along the central axis to create a curved surface tube.
[0044] In some embodiments, the step S103 creates corresponding equivalent models for the equipment and the first type of accessories, including: for the equipment, generating a corresponding envelope; for the elbow, creating a first section line according to the outer cross-sectional size parameters and wall thickness parameters of the elbow, and sweeping the first section line along the center line of the elbow to create a corresponding surface; for accessories with different diameters and different diameters and different shafts, extracting the geometric feature parameters at both ends of the accessories with different diameters and different diameters and different shafts, and creating corresponding different diameter surfaces based on a smooth transition.
[0045] Specifically, when equipment, elbows, reducers, and reducing-diameter and different-axis accessories are converted, the equipment generates a geometric envelope; the elbow creates a section line by extracting the outer cross-sectional dimensions and wall thickness parameters of the pipeline, and creates a surface by sweeping along the center line; reducing-diameter and reducing-diameter and different-axis accessories extract the geometric feature parameters at both ends, and create a reducing-diameter surface through a smooth transition.
[0046] In some embodiments, the component attribute information corresponding to the device includes the device type, pipeline geometric features and pipeline interface position; then, the corresponding envelope body is generated for the device, including: identifying the device body according to the device type corresponding to the device, and automatically generating the envelope body corresponding to the device body based on the envelope body creation function; according to the pipeline geometric features corresponding to the device, radially offsetting a preset multiple thickness value on the outer surface, extracting the shell to generate a curved tube, and maintaining the pipeline interface position unchanged.
[0047] Specifically, the component information of the equipment includes the equipment type, as well as its own pipeline geometric features and interface position information. When the equipment generates a geometric envelope, the equipment body is identified by the equipment type, and the corresponding envelope is automatically generated using the envelope creation function. According to the pipeline characteristics, the outer surface is radially offset by 0.5 times the thickness value to generate a curved tube by shelling, ensuring that the pipeline interface position remains unchanged.
[0048] Step S104: Generate a pipeline system simulation model according to the new connection point, curved pipe, and equivalent model.
[0049] Specifically, the piping system design model is converted into new connection points, curved pipes and equivalent models to obtain a piping system simulation model, and large-scale scene display, vibration transfer analysis, etc. are performed based on the piping system simulation model.
[0050] In some embodiments, the method further includes at least one of the following: exporting a geometric model file corresponding to the pipeline system simulation model; classifying the attribute information of each component, storing it in a database according to a corresponding predefined data structure, and exporting a pipeline system attribute information file from the database.
[0051] Specifically, after generating the pipeline system simulation model, the geometric model file corresponding to the pipeline system simulation model can be exported; or after extracting the attribute information of each component according to step S101, the component attribute information corresponding to the equipment, pipes, accessories and pipe supports is standardized and organized and defined, wherein the component attribute information corresponding to the equipment at least includes but is not limited to type, name, material, weight center of gravity, moment of inertia, installation interface, pipeline interface, cable interface, etc.; the component attribute information corresponding to the pipe at least includes but is not limited to type, name, standard, material, diameter, end type, pressure level, outer diameter, wall thickness, length, line density, Port point (including serial number, coordinates , bending radius, bending angle, bending length), etc.; the component attribute information corresponding to the accessories at least includes but is not limited to type, name, standard, material, diameter, end type, pressure level, interface coordinates, weight center of gravity, etc.; the component attribute information corresponding to the pipe support at least includes but is not limited to name, specification, width, height, support position, etc.; the component attribute information of the piping system's equipment, pipes, accessories, pipe supports, etc. is stored in the structure, and the data information is organized by model category or piping system according to user needs, and the attribute files are exported in a single or batch manner. It should be noted that the attribute information definition requirements are standardized through the structure, which creates favorable conditions for convenient output of attribute files.
[0052] The pipeline system design model conversion method provided in this embodiment uses parametric surfaces to create curved pipes for components other than equipment and special accessories in the pipeline system, and creates corresponding equivalent models for equipment and special accessories, thereby providing an efficient and high-quality conversion channel for the conversion of the three-dimensional design model of the pipeline system to the simulation model, which reduces the manual mold conversion process or re-modeling process, has strong operability, high conversion efficiency, and good model quality. In addition, it also has the function of executing the lightweight function of the pipeline system model, effectively avoiding manual conversion operations, and can significantly reduce the amount of design model data, with high stability. The efficient and high-quality conversion channel between the pipeline system design model and the simulation model established in this embodiment converts the pipeline system solid model into a curved pipe model to support the vibration and noise analysis of different pipeline systems, which is of great significance to the performance research of ship pipeline systems.
[0053] Based on the above embodiments, Figure 2 A flow chart of another method for converting a piping system design model provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:
[0054] Step S201, determine the piping system design model to be converted, and extract attribute information of each component in the piping system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories. The first-category accessories include elbows, reducers, and different-diameter and different-axis accessories, and the second-category accessories are other accessories in the piping system except the first-category accessories.
[0055] Step S202: The pipe and the second type of accessory are joined together according to the attribute information of each component to form a new connection point.
[0056] Step S203: according to the attribute information of each component, corresponding surface tubes are created for components other than the equipment and the first category accessories using parameterized surfaces, and corresponding equivalent models are created for the equipment and the first category accessories.
[0057] Step S204: perform interference check on each curved tube, and cut off redundant curved surfaces on the curved tube based on geometric Boolean operations.
[0058] Step S205: Generate a pipeline system simulation model according to the new connection point, curved pipe, and equivalent model.
[0059] It should be noted that the implementation of steps S201-S203 and S205 in this embodiment is similar to that of steps S101-S104 in the aforementioned embodiment, and will not be repeated here.
[0060] The difference from the previous embodiment is that, considering that there may be a problem of pipeline penetration after the pipeline system design model is converted into a curved pipe, in this embodiment, interference check is performed on each curved pipe, and redundant surfaces on the curved pipe are cut off based on geometric Boolean operations.
[0061] Figure 3 for Figure 2 A detailed flow chart of step S204 in the embodiment shown is as follows: Figure 3 As shown, step S204 includes the following steps:
[0062] Step S2041, marking each curved tube.
[0063] Step S2042: for each curved surface tube, interference checks with other single curved surface tubes are carried out in sequence, and each curved surface tube identifier and identifiers of other single curved surface tubes interfering with the curved surface tube are recorded in a corresponding linked list.
[0064] Step S2043: For each linked list, perform Boolean summation on other single curved surface tubes that interfere with the curved surface tube to obtain a first geometric body, and perform Boolean subtraction operation on the curved surface tube and the first geometric body to obtain a second geometric body.
[0065] Step S2044: Replace each curved tube with the second geometric body, and delete the first geometric body to remove redundant curved surfaces on the curved tube.
[0066] Specifically, first, the curved surface tubes generated by the conversion are numbered as T1, ..., Tn, where n is a natural number greater than or equal to 2. Then, each curved surface tube is taken as an object, and the interference check with other single curved surface tubes is carried out in turn. For a curved surface tube, after completing the check with all other curved surface tubes and determining that there is interference, a linked list starting with the curved surface tube number is formed and the corresponding geometric model is stored. If there is no interference, no record is made, such as Figure 4 As shown, it is found that T1 interferes with T2, T2 interferes with T1, T3, T4, T3 interferes with T2, and T4 interferes with T2. Then, the surface tubes T1, T2, T2, T1, T3, T4, T3, T2, T4, T2 form a linked list to store the corresponding geometric model. After traversing and completing the interference check of all pipe segments in the pipeline system, all the linked lists formed record the complete interference surface tube information. Then, the geometric Boolean operation is used to perform redundant surface removal operations on the intersecting surface tubes in the linked list. For a specific linked list, all the surface tubes except the first surface tube are Boolean summed to obtain the first geometric body Q1. The first surface tube is subtracted from Q1 to obtain the second geometric body Q2, and the first surface tube is replaced and Q1 is deleted to achieve the removal of the redundant surface of the first surface tube segment. According to the above method, all linked lists are operated, that is, the redundant surface removal of all surface tubes is completed, and finally the linked list is deleted, as shown in Figure 4 The piping system shown forms the final curved tubes T1', T2', T3' and T4'.
[0067] In some embodiments, for each curved tube, interference checks are carried out in sequence with other single curved tubes, including: determining a first distance between a center line of the curved tube and a curved surface of the other single curved tube; determining a second distance between a center line of the other single curved tube and the curved surface of the curved tube; and determining that interference exists between the curved tube and the other single curved tubes when the first distance or the second distance is zero.
[0068] Specifically, taking checking whether there is interference between curved tubes A and B as an example, the distance D1 between the center line segment of A and the curved surface of tube B, and the distance D2 between the curved surface of tube A and the center line of B are calculated respectively. If one of the values of D1 or D2 is zero, it is determined that there is interference between the two curved tube segments.
[0069] Based on the above embodiments, interference check is performed on each curved tube, and redundant curved surfaces on the curved tube are cut off based on geometric Boolean operations, thereby solving the problem of pipeline penetration caused by converting the pipeline system design model into curved tubes.
[0070] Figure 5 A schematic diagram of a specific conversion process of a pipeline system design model provided in an embodiment of the present invention, Figure 6 A schematic diagram of a process for removing redundant curved surfaces on a curved tube based on geometric Boolean operations provided by an embodiment of the present invention. Figure 5 , Figure 6 , taking the conversion of a 3D design model of a ship piping system based on the 3DE platform, whose data volume is 18.4MB, as an example, the steps are as follows:
[0071] (1) Select the piping system design model to be converted;
[0072] (2) Analyze the piping system design model and the attribute information of each component;
[0073] Specifically, each component of the piping system is selected, and the attribute information of models such as equipment, pipes, accessories, and pipe supports is obtained recursively.
[0074] (3) Classify and rationally organize the component attribute information of the piping system by type;
[0075] Specifically, they are classified according to equipment, pipes, accessories, and pipe supports. Among them, pipe attribute information includes title, type, name, standard, material, diameter, end type, pressure level, outer diameter, wall thickness, length, line density, port point (including serial number, coordinates, bend radius, bend angle, bend length), etc.; accessory attribute information includes title, type, name, standard, material, diameter, end type, pressure level, connected pipe name, connected pipeline name, interface coordinates and direction, pipeline information connected by pipeline accessories; pipe support attribute information includes name, specification, width, height, support position, etc.
[0076] (4) The attribute information of each component is stored in the structure;
[0077] Specifically, the attribute information (component type, connection relationship, etc.) of each component constituting the pipeline system can be stored in a structure (Struct).
[0078] (5) Carry out pipe and accessory joint processing and modify the connection point position;
[0079] Specifically, according to the data information stored in the structure (Struct), elbows, reducers, and different-diameter and different-axis accessories are excluded, and the connections between other types of accessories and pipes, accessories and accessories (such as valves and flanges) are calculated. Multiple accessory assemblies are joined into a whole, and the pipeline connection point is modified at the center of the accessory or accessory assembly.
[0080] (6) Create surface pipes excluding equipment and special accessories based on parametric surfaces;
[0081] (7) By determining the component type of the piping system, a geometric envelope is generated for the equipment, elbow surfaces are created by sweeping the elbows, and different diameter and different diameter and different shaft accessories are created by smooth transition to create different diameter surfaces, so as to generate equivalent models of the equipment and special accessories;
[0082] (7) Check the interference of the curved tube and cut off the unnecessary curved surface;
[0083] The specific process of checking the interference of curved tubes and cutting off the redundant curved surfaces can be found in Figure 6 As shown, firstly, the surface tubes are numbered and the total number of surface tubes n is recorded; taking each surface tube as the object, interference checks with other single surface tubes are carried out in turn; it is determined whether the check is completed and interference exists; if interference exists, a linked list starting with the surface tube number is formed and the corresponding geometric model is stored; then it is determined whether the surface tube sequence number is greater than n. If so, it means that the interference check of all surface tubes has been completed, and all linked lists can be traversed to use geometric Boolean operations to cut off redundant surfaces; for each linked list, the Boolean sum of the first surface tube and the remaining tube segments of the linked list is subtracted to obtain a new surface tube; the newly generated surface tube replaces the first surface tube, and the Boolean sum of the remaining tube segments of the linked list is deleted; after the operation is completed on all linked lists, all linked lists are deleted.
[0084] If the check is completed and it is determined that there is no interference, you can continue to determine whether the curved tube number is greater than n. If not, it means that the interference check of all curved tubes has not been completed, and you can continue to the interference check of the next curved tube. Figure 7 This is a partial view of the piping system before conversion. Figure 8 This is a partial view after conversion with redundant surfaces cut off.
[0085] (8) Export the geometric model file of the piping system;
[0086] Specifically, the data size of the exported geometric model file was reduced from 18.4MB to 979KB, greatly reducing the data volume.
[0087] (9) The attribute information file can be exported according to the pipeline system data organization, and can be exported in XML and other formats.
[0088] In summary, this embodiment standardizes the requirements for defining component attribute information, creates favorable conditions for convenient output of attribute files, and provides a method and channel for converting three-dimensional piping design models into simulation models, thereby reducing the manual mold conversion process or remodeling process, with strong operability, high conversion efficiency, and good model quality. It also has the function of executing lightweight piping system models, effectively avoiding manual conversion operations, significantly reducing the amount of design model data, and having high stability.
[0089] Fig. 9 A schematic diagram of a pipeline system design model conversion device provided by an embodiment of the present invention. Fig. 9 As shown, the device comprises:
[0090] The extraction module 901 is used to determine the pipeline system design model to be converted and extract the attribute information of each component in the pipeline system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories, the first-category accessories include elbows, reducers, and different-diameter and different-axis accessories, and the second-category accessories are other accessories in the pipeline system except the first-category accessories; the joining module 902 is used to join the pipes and the second-category accessories according to the attribute information of each component to form a new connection point; the conversion module 903 is used to create corresponding curved surface pipes for other components except the equipment and the first-category accessories using parameterized surfaces according to the attribute information of each component, and create corresponding equivalent models for the equipment and the first-category accessories; the generation module 904 is used to generate a pipeline system simulation model according to the new connection point, curved surface pipe, and equivalent model.
[0091] In some embodiments, the conversion module 903 is specifically used to: generate a corresponding envelope for the equipment; for the elbow, create a first section line according to the outer cross-sectional size parameters and wall thickness parameters of the elbow, and sweep the first section line along the center line of the elbow to create a corresponding surface; for different diameters and different diameter and different shaft accessories, extract the geometric feature parameters at both ends of the different diameters and different diameter and different shaft accessories, and create corresponding different diameter surfaces based on a smooth transition method.
[0092] In some embodiments, the component attribute information corresponding to the device includes the device type, pipeline geometric features and pipeline interface position; the conversion module 903 is specifically used to: identify the device body according to the device type corresponding to the device, and automatically generate the envelope corresponding to the device body based on the envelope creation function; according to the pipeline geometric features corresponding to the device, radially offset a preset multiple thickness value on the outer surface, extract the shell to generate a curved tube, and maintain the pipeline interface position unchanged.
[0093] In some embodiments, the conversion module 903 is specifically used to: draw a second section line corresponding to other components based on the difference between the outer cross-sectional size of the parameterized surface and the wall thickness as a characteristic parameter; identify the central axis corresponding to the other components; sweep and stretch the second section line along the central axis corresponding to the other components to create a curved surface tube corresponding to the other components.
[0094] In some embodiments, the apparatus further comprises an interference module 905, wherein the interference module 905 is used to perform interference check on each curved tube and cut off redundant curved surfaces on the curved tube based on geometric Boolean operations.
[0095] In some embodiments, the interference module 905 is specifically used to: identify each curved surface tube; for each curved surface tube, carry out interference checks with other single curved surface tubes in turn, and record each curved surface tube identification and other single curved surface tube identifications that interfere with the curved surface tube into a corresponding linked list; for each linked list, perform Boolean summation on other single curved surface tubes that interfere with the curved surface tube to obtain a first geometric body, and perform Boolean subtraction operation on the curved surface tube and the first geometric body to obtain a second geometric body; replace each curved surface tube with the second geometric body, and delete the first geometric body to achieve the removal of redundant surfaces on the curved surface tube.
[0096] In some embodiments, the interference module 905 is specifically used to: determine a first distance between the center line of the curved tube and the curved surface of other single curved tubes; determine a second distance between the center line of other single curved tubes and the curved surface of the curved tube; and determine that there is interference between the curved tube and other single curved tubes when the first distance or the second distance is zero.
[0097] In some embodiments, the device also includes an export module 606, which is used for at least one of the following: exporting a geometric model file corresponding to the pipeline system simulation model; classifying the attribute information of each component, storing it in a database according to a corresponding predefined data structure, and exporting the pipeline system attribute information file from the database.
[0098] It should be noted that the modules involved in the piping system design model conversion device correspond to the code modules in the corresponding development software, and the staff can implement a one-click piping system design model conversion function through the software.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and corresponding beneficial effects of the pipeline system design model conversion device described above can refer to the corresponding process in the aforementioned method example and will not be repeated here.
[0100] like Fig.10As shown, an embodiment of the present invention provides an electronic device, including a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004.
[0101] Memory 1003, used for storing computer programs;
[0102] In one embodiment of the present invention, the processor 1001 is used to implement the steps of the pipeline system design model conversion method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 1003.
[0103] The implementation principle and technical effect of the electronic device provided by the embodiment of the present invention are similar to those of the above embodiment and will not be described in detail here.
[0104] The above-mentioned memory 1003 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 1003 has a storage space for program codes for executing any method steps in the above-mentioned method. For example, the storage space for program codes may include various program codes for implementing various steps in the above method respectively. These program codes can be read from or written into one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are usually portable or fixed storage units. The storage unit may have a storage segment or storage space arranged similarly to the memory 1003 in the above-mentioned electronic device. The program code can be compressed, for example, in an appropriate form. Generally, the storage unit includes a program for executing the method steps according to an embodiment of the present invention, that is, a code that can be read by a processor such as 1001, which, when run by an electronic device, causes the electronic device to execute various steps in the method described above.
[0105] The embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the pipeline system design model conversion method described above are implemented.
[0106] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0107] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0108] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0109] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A piping system design model conversion method, It is characterized in that include: Determine a pipeline system design model to be converted, and extract attribute information of each component in the pipeline system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories, wherein the first-category accessories include elbows, reducers, and reducer and shaft-reducer accessories, and the second-category accessories are other accessories in the pipeline system except the first-category accessories; Performing a joining process on the pipe and the second type of accessories according to the attribute information of each component to form a new connection point; According to the attribute information of each component, corresponding surface tubes are created for other components except the equipment and the first category accessories by using parameterized surfaces, and corresponding equivalent models are created for the equipment and the first category accessories; A pipeline system simulation model is generated according to the new connection point, curved pipe and equivalent model.
2. The method according to claim 1, It is characterized in that The corresponding equivalent models for the equipment and the first category accessories are created, including: Generate a corresponding envelope for the device; For the elbow, a first section line is created according to the outer section size parameters and the wall thickness parameters of the elbow, and the first section line is swept along the center line of the elbow to create a corresponding surface; For accessories with different diameters or different shafts, the geometric feature parameters at both ends of the accessories are extracted, and the corresponding different-diameter surfaces are created based on a smooth transition method.
3. The method according to claim 2, It is characterized in that The component attribute information corresponding to the device includes the device type, pipeline geometric characteristics and pipeline interface position; then the corresponding envelope is generated for the device, including: Identify the device body according to the device type corresponding to the device, and automatically generate the envelope corresponding to the device body based on the envelope creation function; According to the pipeline geometric features corresponding to the equipment, a preset multiple thickness value is offset radially on the outer surface, and a curved pipe is generated by shelling, while the position of the pipeline interface is maintained unchanged.
4. The method according to claim 1, It is characterized in that The step of creating corresponding surface tubes for components other than the equipment and the first category accessories by using parameterized surfaces according to the attribute information of each component includes: Based on the difference between the outer cross-sectional size of the parameterized surface and the wall thickness as a characteristic parameter, draw the second cross-sectional lines corresponding to other components; Identify the central axis corresponding to other components; The second section line is swept and stretched along the central axis corresponding to other components to create a curved surface tube corresponding to other components.
5. The method according to claim 1, It is characterized in that After creating the corresponding equivalent models for the device and the first category accessories, the method further includes: Interference checks are performed on each curved tube, and redundant surfaces on the curved tube are cut off based on geometric Boolean operations.
6. The method according to claim 5, It is characterized in that The interference check on each curved tube and the removal of redundant curved surfaces on the curved tube based on geometric Boolean operations include: Mark each curved tube; For each curved surface tube, carry out interference checks with other single curved surface tubes in turn, and record each curved surface tube ID and the IDs of other single curved surface tubes that interfere with the curved surface tube into the corresponding linked list; For each linked list, perform Boolean summation on other single curved surface tubes that interfere with the curved surface tube to obtain a first geometric body, and perform Boolean subtraction operation on the curved surface tube and the first geometric body to obtain a second geometric body; Each curved tube is replaced by the second geometry and the first geometry is deleted to achieve cutting off of the redundant surface on the curved tube.
7. The method according to claim 6, It is characterized in that For each curved surface tube, interference checks with other single curved surface tubes are carried out in sequence, including: Determine a first distance between the center line of the curved tube and the curved surface of another single curved tube; determining a second distance between the center line of the other single curved tube and the curved surface of the curved tube; When the first distance or the second distance is zero, it is determined that the curved surface tube interferes with other single curved surface tubes.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises at least one of the following: Exporting a geometric model file corresponding to the pipeline system simulation model; The attribute information of each component is classified and stored in a database according to a corresponding predefined data structure, and an attribute information file of the pipeline system is exported from the database.
9. A piping system design model conversion device, It is characterized in that include: An extraction module is used to determine a pipeline system design model to be converted, and extract attribute information of each component in the pipeline system design model, wherein the component includes at least one of equipment, pipes, and accessories, and the accessories include first-category accessories and second-category accessories, wherein the first-category accessories include elbows, reducers, and reducer and shaft-reducer accessories, and the second-category accessories are other accessories in the pipeline system except the first-category accessories; A joining module, used for joining the pipe and the second type of accessories according to the attribute information of each component to form a new connection point; A conversion module, used for creating corresponding curved surface tubes for other components except the equipment and the first category accessories by using parameterized surfaces according to the attribute information of each component, and creating corresponding equivalent models for the equipment and the first category accessories; A generation module is used to generate a pipeline system simulation model according to the new connection point, curved pipe and equivalent model.
10. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the piping system design model conversion method described in any one of claims 1 to 8 when executing the program stored in the memory.
