Model optimization method and system based on global continuous change of TPMS cycle

By converting the periodic field of the three-dimensional model into an angular velocity field and optimizing the phase field, the continuity problem of the TPMS porous structure in the periodic control and transition positions is solved, and the generation of TPMS mixed with different periods and the optimization of the model are realized, ensuring the structural stability. Smooth continuity and periodic accuracy.

CN114357734BActive Publication Date: 2024-09-20SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111552872.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-09-20
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

The existing TPMS porous structure has defects in continuity and smoothness at periodic control and transition positions, and cannot effectively ensure the continuity of periodic changes and the smooth connection of the model.

Method used

By converting the periodic field of the three-dimensional model into an angular velocity field, integrating along three mutually perpendicular directions to generate a phase field, and optimizing the integration constant of the phase field so that it is perpendicular to the corresponding direction, the optimized TPMS function value and network are generated. grid to ensure smooth continuity of the structure at transition locations.

Benefits of technology

The generation of mixed TPMS with different periods and the optimization of the model were realized, which solved the phase distortion problem and ensured the smooth continuity of the structure at the transition position and the accuracy of the period.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357734B
    Figure CN114357734B
Patent Text Reader

Abstract

The present invention belongs to the technical field of 3D printing model optimization, and provides a model optimization method and system based on the global continuous change of TPMS period. The method includes obtaining a three-dimensional model to be filled and a periodic field inside it; converting the periodic field of the three-dimensional model into an angular velocity field; integrating the angular velocity field of the three-dimensional model along three mutually perpendicular directions to generate a phase field in the corresponding direction; using all integral constants in the integral expression corresponding to the phase field in each direction as optimization variables to optimize the phase field in each direction so that the isosurface of each phase field is perpendicular to the corresponding direction; based on the optimized phase field in each direction and the implicit expression of TPMS, the TPMS function value at each sampling point is obtained, and then a grid is generated, and finally the optimized three-dimensional model is obtained; wherein the implicit expression of TPMS is the sum of the cosines of the phase field in three directions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of 3D printing model optimization, and in particular relates to a model optimization method and system based on TPMS periodic global continuous change. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Structural lightweighting is an important issue in the field of geometric modeling and optimization, and is widely used in many fields such as automobiles, aviation, and medicine. Hollow structures, truss / frame structures, honeycomb structures, and other porous structures and microstructures have long been used to achieve the above goal, that is, to reduce the weight of 3D printed objects while meeting the specified requirements. Specifically, the use of tri-periodic minimal surfaces (TPMS) to design multi-scale porous structures has very good performance in support structures in many fields. TPMS are smooth, connected, and self-supporting implicit surfaces at a small size with good control capabilities. In addition, TPMS structures have many excellent properties, such as smoothness, dual-connectivity of cavities, high specific surface area, and good mechanical properties, which have attracted the interest of researchers in various fields including mechanics, materials, physics, chemistry, and medicine.

[0004] Limited by manufacturing technology, early research on TPMS focused on the analysis of properties such as structural symmetry and inter-type conversion. The emergence and rapid development of additive manufacturing technology has made it easier to manufacture structures with complex geometry and topology, and the research on TPMS has entered a new stage. Currently, there are TPMS-related research and applications from large-scale such as architectural design, to medium-scale mechanical parts, to micro-scale structures such as chemical semi-permeable membrane structures. At the same time, the development of the above fields has also put forward more new requirements for geometric modeling and optimization methods based on TPMS.

[0005] The geometric modeling method based on TPMS basically adopts two ideas. First, the approximate expression of TPMS It is the zero-value isosurface in the horizontal concentration. By adjusting c in the expression so that c≠0, a series of special surfaces with non-zero average curvature but the same everywhere can be obtained. This type of special surface can be regarded as obtained by TPMS deformation, but the thickness of the model obtained at this time is uneven. Another type of deformation of the TPMS surface is to obtain a thin shell model with uniform thickness by offsetting the TPMS surface along the normal by a constant distance.

[0006] The inventors found that the existing technology of mixing TPMS porous structures with different cycles to provide different physical properties, mechanical properties and mass transfer properties to optimize 3D printing models has the following defects:

[0007] (1) Use the period control function to generate different periods at different coordinates. Taking the P type TPMS as an example, its expression can be written as Where r is the three-dimensional coordinate, x, y, and z are the three components of the coordinate, and p(r) is the period size of the current position. The period control function at this time cannot control the actual period of TPMS, so the continuity of period change cannot be guaranteed;

[0008] (2) Use interpolation functions to interpolate TPMS expressions of different periods. Common interpolation functions include Gaussian function and sigmoid function. This method will cause the model to lose periodicity at the transition position of different periods, and it is difficult to obtain a porous structure with multiple periods mixed by this method itself. Summary of the invention

[0009] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a model optimization method and system based on global continuous change of TPMS period, which can generate TPMS with mixed periods of different periods and maintain smooth continuity of structure at the transition position.

[0010] In order to achieve the above object, the present invention adopts the following technical solution:

[0011] A first aspect of the present invention provides a model optimization method based on global continuous change of TPMS cycle, which includes:

[0012] Obtain the three-dimensional model to be filled and the periodic field inside it;

[0013] Convert the periodic field of the three-dimensional model into an angular velocity field;

[0014] The angular velocity field of the three-dimensional model is integrated along three mutually perpendicular directions to generate the phase field in the corresponding directions;

[0015] All integral constants in the integral expressions corresponding to the phase fields in each direction are used as optimization variables to optimize the phase fields in each direction so that the isosurfaces of each phase field are perpendicular to the corresponding directions;

[0016] Based on the optimized phase fields in each direction and the TPMS implicit expression, the TPMS function value at each sampling point is obtained, and then a grid is generated, and finally an optimized three-dimensional model is obtained; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

[0017] As an implementation manner, the value of the periodic field inside the three-dimensional model to be filled is gradual.

[0018] As an implementation method, the period at any position of the three-dimensional model is converted into an angular velocity value using a standard trigonometric function formula, thereby converting the period field into an angular velocity field.

[0019] As an implementation method, the least square method is used to optimize the phase field in each direction.

[0020] As an implementation, the mesh is generated using a marching cubes algorithm.

[0021] A second aspect of the present invention provides a model optimization system based on global continuous changes of TPMS cycles, comprising:

[0022] A model initial information module, which is used to obtain the three-dimensional model to be filled and the periodic field inside it;

[0023] An angular velocity field conversion module, which is used to convert the periodic field of the three-dimensional model into an angular velocity field;

[0024] A phase field generation module is used to integrate the angular velocity field of the three-dimensional model along three mutually perpendicular directions to generate phase fields in corresponding directions;

[0025] A phase field optimization module is used to use all integral constants in the integral expressions corresponding to the phase fields in various directions as optimization variables to optimize the phase fields in various directions so that the isosurfaces of various phase fields are perpendicular to the corresponding directions;

[0026] A three-dimensional model optimization module is used to obtain the TPMS function value at each sampling point based on the optimized phase field in each direction and the TPMS implicit expression, and then generate a grid to finally obtain the optimized three-dimensional model; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

[0027] As an implementation manner, in the model initial information module, the value of the periodic field inside the three-dimensional model to be filled is progressive.

[0028] As an implementation mode, in the angular velocity field conversion module, the period at any position of the three-dimensional model is converted into an angular velocity value using a standard trigonometric function formula, thereby converting the periodic field into an angular velocity field.

[0029] As an implementation manner, in the phase field optimization module, the least square method is used to optimize the phase field in each direction.

[0030] As an implementation mode, in the three-dimensional model optimization module, a marching cubes algorithm is used to generate a grid.

[0031] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the model optimization method based on global continuous change of TPMS period as described above.

[0032] A fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the model optimization method based on global continuous change of the TPMS cycle as described above are implemented.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] The model optimization method provided by the present invention is based on the optimized phase field in each direction and the implicit expression of TPMS, and obtains the TPMS function value at each sampling point, and then generates a grid, and finally obtains the optimized three-dimensional model, which solves the problem of phase distortion, generates a TPMS mixed with different periods, and maintains the smoothness and continuity of the structure at the transition position.

[0035] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0037] FIG. 1( a ) is a schematic diagram of the structure of a model optimization method based on global continuous change of TPMS cycles according to an embodiment of the present invention;

[0038] Figure 1(b) is a schematic diagram of the structure of the optimization using a simple periodic control function result;

[0039] Figure 1(c) is a schematic diagram of the structure using sigmoid function interpolation optimization;

[0040] Figure 1(d) is a schematic diagram of the structure using Gaussian function interpolation optimization;

[0041] Figure 2 is a flow chart of a model optimization method based on global continuous change of TPMS cycle according to an embodiment of the present invention;

[0042] Figure 3(a) is a schematic diagram of the phase field isosurface perpendicular to the corresponding direction;

[0043] Fig. 3(b) is a schematic diagram showing that the phase field isosurface is not perpendicular to the corresponding direction 1;

[0044] Figure 3(c) shows that the phase field isosurface is not perpendicular to the corresponding direction. Figure 2 ;

[0045] FIG. 4( a ) is a schematic diagram of the structure before optimization of the model optimization method based on global continuous change of TPMS cycle according to an embodiment of the present invention;

[0046] FIG. 4( b ) is a schematic diagram of the optimized structure of the model optimization method based on the global continuous change of the TPMS cycle according to an embodiment of the present invention;

[0047] FIG. 5( a ) is an optimization result 1 of the model optimization method based on global continuous change of TPMS cycle according to an embodiment of the present invention;

[0048] FIG. 5( b ) is an optimization result 2 of the model optimization method based on global continuous change of TPMS cycle according to an embodiment of the present invention;

[0049] FIG. 5( c ) is an optimization result 3 of the model optimization method based on global continuous change of TPMS period according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0051] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0052] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0053] Embodiment 1

[0054] Reference Figure 2 This embodiment provides a model optimization method based on global continuous change of TPMS cycle, which specifically includes the following steps:

[0055] S101: Acquire a three-dimensional model to be filled and a periodic field inside it.

[0056] In a specific implementation, the storage file type of the three-dimensional model to be filled is a common 3D model file format, such as obj format, stl format, etc.

[0057] It is necessary to ensure that the unit size of the TPMS structure in the area with different periods conforms to the period value and has continuity, so the value in the input period field should be gradual rather than abrupt.

[0058] S102: Convert the periodic field of the three-dimensional model into an angular velocity field.

[0059] In the specific implementation, the standard trigonometric function formula is used to convert the period p(r) at any position of the three-dimensional model into the angular velocity value ω, thereby converting the period field into the angular velocity field. The purpose of this step is to facilitate the next step of solving the phase field, so that the continuous change of the TPMS period is converted into the continuous change of the angular velocity value.

[0060] S103: Integrate the angular velocity field of the three-dimensional model along three mutually perpendicular directions to generate phase fields in corresponding directions.

[0061] The phase field is obtained by integrating the angular velocity field, and is integrated along the x-axis, y-axis, and z-axis directions respectively. is the phase field in three directions, where ω is the angular velocity field.

[0062] S104: All integral constants in the integral expressions corresponding to the phase fields in various directions are used as optimization variables to optimize the phase fields in various directions so that the isosurfaces of various phase fields are perpendicular to the corresponding directions.

[0063] Among them, the establishment of optimization variables:

[0064] Representing a TPMS structure with different periods in a continuous space will inevitably produce phase distortion, that is, some TPMS basic units will be severely pulled and deformed, and optimization methods are needed to reduce the distortion.

[0065] In step S103 , the integral constant C is set to 0. During optimization, we use all integral constants as optimization variables to reduce TPMS distortion through a certain optimization method.

[0066] Determine the optimization goal:

[0067] In the phase field of the standard TPMS, taking the x direction as an example, the numerical isosurface of the phase field is perpendicular to the x-axis, and the phase fields in the other two directions are also perpendicular to their respective directions, and there is no distortion at this time. However, in the variable-period TPMS structure, the isosurface of the phase field is not perpendicular to the direction. To solve the distortion phenomenon of the variable-period TPMS, it is necessary to optimize the value in the phase field so that the isosurface of the phase field presents the same phenomenon as the standard TPMS as much as possible, that is, perpendicular to the corresponding direction. Among them, Figure 3(a) shows a schematic diagram of the phase field isosurface perpendicular to the corresponding direction; Figure 3(b) and Figure 3(c) are two examples of the phase field isosurface not being perpendicular to the corresponding direction.

[0068] In a specific implementation, the least square method is used to optimize the phase field in each direction.

[0069] List the optimization objective equation:

[0070] Taking the optimization of the phase field in the x direction as an example, the phase field can be divided into many layers along the x direction, and the isosurfaces of as many layers as possible should be perpendicular to the x axis. The optimization method least squares method is used and the optimization problem is expressed as follows:

[0071]

[0072] in

[0073] P (i,j,k) is the control point inside the model;

[0074] represents the optimized phase value;

[0075] is the phase value without the integral constant C in step S103, C j,k is the integration constant to be optimized, is the optimized phase average value of the i-th layer. In its expression, n i is the number of control points in the i-th layer of the model.

[0076] According to the optimization objective expression, the partial differential expression of each integral constant can be obtained: in:

[0077] is the mean of the variables to be optimized in the i-th layer of the model, is the mean of the original phase values ​​of the i-th layer in the model, is the phase value without the integral constant C in step S103, C j,k is the integral constant to be optimized. By making each partial differential expression equal to 0, we can obtain the equation It means that the optimization obtains the extreme value. Combining the partial differential equations of all the integral constants to be optimized can obtain a system of linear equations in matrix form. The optimization is completed when the numerical solution of the integral constant is obtained by solving the system of equations.

[0078] S105: Based on the optimized phase fields in each direction and the TPMS implicit expression, the TPMS function value at each sampling point is obtained, and then a grid is generated, and finally an optimized three-dimensional model is obtained; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

[0079] In which, the integral constant C in the integral formula is set to 0 to obtain the phase field, and the phase value Substituting the implicit expression into the model, the TPMS function value at each sampling point can be obtained. Taking P type TPMS as an example, the implicit expression is

[0080] In a specific implementation, the mesh is generated using a marching cubes algorithm.

[0081] in:

[0082] The marching cubes algorithm is currently the most commonly used method for generating isosurfaces in three-dimensional data fields. It is actually a divide-and-conquer method that distributes the extraction of isosurfaces in each voxel. For each processed voxel, a triangular patch is used to approximate the isosurface patch inside it. Each voxel is a small cube, and the process of constructing a triangular patch "scans" each voxel, just like a processor moving on these voxels, hence the name marching cubes algorithm.

[0083] The marching cubes algorithm has three main steps: (1) converting point cloud data into voxel grid data; (2) extracting isosurfaces for each voxel using linear interpolation; and (3) triangulating the isosurfaces.

[0084] Figure 1(a)-Figure 1(d) A comparative structural diagram of the model optimization method based on global continuous change of the TPMS period using the present embodiment, the simple period control function, the sigmoid function interpolation and the Gaussian function interpolation optimization is given. Through the comparison, it can be seen that the optimization method of the present embodiment can better ensure the accuracy of each position period in the model and the smooth connection of the transition area.

[0085] FIG. 4( a ) and FIG. 4( b ) are schematic diagrams showing the structural comparison before and after optimization using the model optimization method based on global continuous change of the TPMS cycle of this embodiment. It can be seen that the transition area connection of the optimized model is smoother. Figure 5(a)-Figure 5(c) Three different optimization result examples are given using the model optimization method based on global continuous change of TPMS cycle according to this embodiment.

[0086] The method of this embodiment can provide a modeling method to obtain the model after TPMS filling with different periods given the model and the period of TPMS required at different positions of the model; and the optimization method provided in this embodiment makes the TPMS in the model present the standard TPMS type when densely laid as much as possible.

[0087] Embodiment 2

[0088] This embodiment provides a model optimization system based on global continuous change of TPMS cycle, which specifically includes the following modules:

[0089] (1) Model initial information module, which is used to obtain the three-dimensional model to be filled and the periodic field inside it.

[0090] Specifically, in the model initial information module, the value of the periodic field inside the three-dimensional model to be filled is progressive.

[0091] (2) An angular velocity field conversion module, which is used to convert the periodic field of the three-dimensional model into an angular velocity field.

[0092] Specifically, in the angular velocity field conversion module, the period of any position of the three-dimensional model is converted into an angular velocity value using a standard trigonometric function formula, thereby converting the period field into an angular velocity field.

[0093] (3) A phase field generation module, which is used to integrate the angular velocity field of the three-dimensional model along three mutually perpendicular directions to generate a phase field in the corresponding direction.

[0094] (4) A phase field optimization module, which is used to optimize the phase field in each direction by taking all integral constants in the integral expression corresponding to the phase field in each direction as optimization variables so as to make the isosurface of each phase field perpendicular to the corresponding direction.

[0095] Specifically, in the phase field optimization module, the least square method is used to optimize the phase field in each direction.

[0096] (5) A three-dimensional model optimization module, which is used to obtain the TPMS function value at each sampling point based on the optimized phase field in each direction and the TPMS implicit expression, and then generate a grid to finally obtain the optimized three-dimensional model; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

[0097] Specifically, in the three-dimensional model optimization module, a marching cube algorithm is used to generate a mesh.

[0098] It should be noted here that each module in this embodiment corresponds to each step in Example 1 one by one, and the specific implementation process is the same, which will not be repeated here.

[0099] Embodiment 3

[0100] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the model optimization method based on global continuous change of TPMS period as described above are implemented.

[0101] Embodiment 4

[0102] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the model optimization method based on global continuous change of TPMS cycle as described above are implemented.

[0103] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products of the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram and the combination of the processes and / or boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0104] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A model optimization method based on global continuous change of TPMS cycle, characterized in that: include: Obtain the three-dimensional model to be filled and the periodic field inside it; Convert the periodic field of the three-dimensional model into an angular velocity field; The angular velocity field of the three-dimensional model is integrated along three mutually perpendicular directions to generate the phase field in the corresponding directions; All integral constants in the integral expressions corresponding to the phase fields in each direction are used as optimization variables to optimize the phase fields in each direction so that the isosurfaces of each phase field are perpendicular to the corresponding directions; Based on the optimized phase fields in each direction and the TPMS implicit expression, the TPMS function value at each sampling point is obtained, and then a grid is generated, and finally an optimized three-dimensional model is obtained; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

2. The model optimization method based on TPMS periodic global continuous change according to claim 1, characterized in that: The values ​​in the periodic field inside the three-dimensional model to be filled are gradual.

3. The model optimization method based on TPMS periodic global continuous change according to claim 1, characterized in that: By using standard trigonometric formulas, the period at any position of the three-dimensional model is converted into an angular velocity value, thereby converting the periodic field into an angular velocity field.

4. The model optimization method based on TPMS periodic global continuous change according to claim 1, characterized in that: The least square method is used to optimize the phase field in each direction.

5. The model optimization method based on TPMS periodic global continuous change according to claim 1, characterized in that: The mesh is generated using the marching cubes algorithm.

6. A model optimization system based on global continuous change of TPMS cycle, characterized in that: include: A model initial information module, which is used to obtain the three-dimensional model to be filled and the periodic field inside it; An angular velocity field conversion module, which is used to convert the periodic field of the three-dimensional model into an angular velocity field; A phase field generation module is used to integrate the angular velocity field of the three-dimensional model along three mutually perpendicular directions to generate phase fields in corresponding directions; A phase field optimization module is used to use all integral constants in the integral expressions corresponding to the phase fields in various directions as optimization variables to optimize the phase fields in various directions so that the isosurfaces of various phase fields are perpendicular to the corresponding directions; A three-dimensional model optimization module is used to obtain the TPMS function value at each sampling point based on the optimized phase field in each direction and the TPMS implicit expression, and then generate a grid to finally obtain the optimized three-dimensional model; wherein the TPMS implicit expression is the sum of the cosines of the phase fields in three directions.

7. The model optimization system based on TPMS periodic global continuous change as claimed in claim 6, characterized in that: In the model initial information module, the value of the periodic field inside the three-dimensional model to be filled is progressive; or In the angular velocity field conversion module, the period of any position of the three-dimensional model is converted into an angular velocity value using a standard trigonometric function formula, thereby converting the period field into an angular velocity field.

8. The model optimization system based on TPMS periodic global continuous change as claimed in claim 6, characterized in that: In the phase field optimization module, the least square method is used to optimize the phase field in each direction; Or in the three-dimensional model optimization module, a marching cube algorithm is used to generate a mesh.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the model optimization method based on TPMS periodic global continuous change as described in any one of claims 1 to 5 are implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the model optimization method based on TPMS periodic global continuous change as described in any one of claims 1 to 5 are implemented.