The present invention belongs to the technical field of computer-aided design, engineering design and manufacturing, and relates to a 3D object internal hollowing form lightweight method based on function representation, which is applicable to general design and optimization of internal hollowing of components, and is particularly applicable to hollowing optimization of 3D printed objects.
Internal hollowing is an effective lightweight method, which can satisfy the functional purpose without the need of changing the external shape of a 3D object. This method can greatly reduce the material consumption and manufacturing cost, and is widely used in the field of environmental protection and material saving. However, the existing method has the problems such as local self-intersection, unsmooth shape representation, and being difficult to accurately describe the complex internal structure. Therefore, the key point to improve a 3D object hollowing optimization method is to avoid the problem of self-intersection, and at the same time make the shape description of an internal cavity of a 3D object more accurate, smoother, and more convenient for calculation.
In view of the above-mentioned problems, the present invention proposes a shape hollowing optimization design scheme based on function representation. First, a model of a 3D object with cavities is represented by a function; and then the structure of the object is modeled and optimized by the continuity and differentiability of the function to provide an efficient design and optimization framework. The framework can be executed directly on the function, and can be applied to a variety of shape optimization problems, such as the problem of structural strength, the problem of equilibrium and the problem of buoyancy. The key idea is to make full use of function representation to explore the automatic and efficient analytical calculation of the problem of hollowing shape optimization, thus to avoid time-consuming meshing. Specifically, a surface of a given boundary in other forms (such as triangular mesh representation) is converted into function representation first, a radial basis function (RBF) is used at this moment to construct a representation function of inner and external surfaces, and other function representations can also be used. A solid part between the inner and external surfaces is defined and expressed by a continuous function distance field, and operations such as curved surface offset or skeleton are no longer required.
Therefore, the method of the present invention has a larger available design space, while the problem of self-intersection in the traditional boundary representation can be avoided by merging the inner surface. In addition, as all the processes of the optimization framework can be executed directly on the function without the need of meshing processing, the present invention is a more efficient and accurate representation and optimization solution. The method of the present invention can be applied to the optimization problems of structural strength, stand stability, tumblers, buoyancy targets, etc.
The technical solution of the present invention is: A 3D object internal hollowing form lightweight method based on function representation, comprising the following specific steps:
(I) Shape Function Representation of 3D Object with Cavities
A 3D object with cavities is expressed as ϕ°(r)≥0, wherein ϕ°(r) is a representation function of a model:
ϕ°(r)=min(
Wherein r=(x,y,z) is the coordinate of a point on the model,
t(r)=Ei=1n
Wherein Rij=R(|Pi−Pj|) is a radial basis function which represents the distance between points Pi and Pj, {Pi}Ei=1n
(II) 3D Object Internal Hollowing Form Lightweight Modeling and Optimization Based on Function Representation
Model stress and boundary conditions are given, a given problem is modeled by the function representation of the 3D object, so as to reduce material consumption as much as possible in the given material volume and boundary constraint conditions, and the specific steps are as follows:
1. Problem Modeling
1.1 Modeling of the Problem of Structural Strength
For the given model stress and boundary conditions, the problem of structural strength is modeled as follows:
Wherein ΩM is the whole region occupied by a given model M, ϕ° (*) is a representation function of the model, f is a body force, s is a surface force defined on a Riemann boundary τs, S is the area of the Riemann boundary τs, u is a displacement field, v is a test function defined on the region ΩM, Uad={v|v∈Sob1(ΩM), v=0 on τu}, Sob1 is the first order soblev space, ε is the second order linear strain tensor, and is the fourth order isotropic elasticity identity tensor which is determined by elastic modulus and Poisson ratio; ū is a prescribed displacement defined on a Dirichlet boundary τu, V is the volume of the model M,
Wherein α and β are threshold parameters, which usually take the values of α=0.0001 and, β=0.001.
1.2 Modeling of the Problems of Mass and Center
For the problems of mass and center of the 3D object, the mass m and center of mass c of a model are respectively expressed as follows:
M
μ=∫Ω
ϕ°(r) is a representation function of the model, ΩM is the whole region occupied by a given model M, V is the volume of the model M, and H(x) is a regularized Heaviside function.
1.2.1 Model of Stand Stability of Object
For the stand stability of an object, modeling is carried out as follows:
Wherein t(r)≥0 represents a function of thickness field to be solved, S(t) is an objective function, S(t) is minimized to make the center of mass of the object as low as possible, cx, cy and cz are the centers of mass of the object respectively in x, y and z directions, r is the radius of the maximum inscribed circle of a contact point convex hull, and ε is a safety factor (generally, ε=0.1).
1.2.2 Model of Tumbler
For the problem of a 3D tumbler, the problem is modeled as follows:
Wherein t(r)≥0 represents a function of thickness field to be solved, R(t) is an objective function, R(t) is minimized to make the center of mass of the object in z-axis direction as low as possible, cx, cy and cz are the centers of mass of the object respectively in x, y and z directions, r is the radius of the maximum inscribed circle of a contact point convex hull, and ε is a safety factor (ε=0.1 by default).
1.2.3 Model of Buoyancy
For the problem of buoyancy of a 3D object, modeling is carried out as follows:
Wherein t(r)≥0 represents a function of thickness field to be solved, B(t) is an objective function, B(t)=0 represents that an object floats in water, cx, cy and cz are the centers of mass of the object respectively in x, y and z directions, ρl is the density of a liquid, Vl is the volume of the object submerged in a given liquid, ρm is the density of the object, Vm is the volume of the object, and cbouy,x, cbouy,y and cbouy,z are centers of mass of the corresponding space of the liquid occupied by immersion respectively in x, y and z directions.
2. Problem Optimization
An improved finite element method can be used to solve the above-mentioned modeling problems. Only a finite number of elements need to be used as integration elements. In order to improve efficiency, a coarse and fine element strategy is used in the present invention, i.e., each coarse element is further divided into more fine elements inside (for example, each coarse mesh is provided with 27 fine elements inside). Further, the sensitivity analysis (see formula (11)) of variables is obtained by discrete computation of the above-mentioned problems, and is finally substituted into an optimizer (for example, a method of moving asymptotes) to obtain optimization results.
Specifically, in view of the above-mentioned model representation and problem modeling, only a corresponding parameter value {ti}i=1n
t(r)=Σi=1n
Wherein Ni(r)=[RQ]U−1, Ri,j=R(|Pi−Pj|) is a radial basis function which represents the distance between points Pi and Pj, Q is an offset matrix of a corresponding offset term,
and is the number of control points. Further, the problem of model optimization is transformed into the problem of optimization of the parameter {ti}i=1n
Wherein Nb is the number of fine integration elements.
The calculation results of formula (11) are substituted into an optimizer to obtain an optimized {ti}i=1n
3D object hollowing form lightweight oriented to 3D printing can be used in the optimization of a stress structure and the stand stability of an object, tumbler design, buoyancy and other practical applications. The present invention proposes a method for representing a hollow object by a function, which is to conduct problem modeling and optimization to a model based on function representation. The present invention greatly shortens the design and optimization cycles of an object with cavities and can give theoretically optimal results. A model which is more material-saving and has a larger cavity volume while meeting constraint conditions can be obtained for an object with cavities designed by the present invention. In addition, since the present invention is operated directly on a function, time-consuming meshing in the traditional finite element optimization method is avoided, and analysis and optimization are more efficient. Such excellent properties ensure the applicability and manufacturability of a 3D object designed and optimized.
Specific embodiments of the present invention are further described below in combination with accompanying drawings and the technical solution.
(I) Function Representation of 3D Object
In order to obtain an interpolation function representing the inner and external surfaces of a model, the values of weights {ai} and {bi} of the interpolation function in formula (2) need to be obtained. The function value f=1 of an external control point, the function value f=−1 of an internal control point, and the function value f=0 of a control point on the surfaces of the model are taken. Distance between the control points Rif=R(|Pi−Pj|) is calculated by an radial basis function; and the coordinates of the control points, the distance between the control points and the corresponding function values f of the control points are substituted into the interpolation function:
Thus the values of the weights {ai} and {bi} are obtained. A subset (A) of the control points on the external surface of the model is uniformly taken (nc=500, and ti is the function value of a control point), and a continuous thickness control function is obtained by formula (10):
t(r)=Σi=1n
The external surface function of the model is
ϕ°(r)=min(
(II) Modeling and Optimization of 3D Object
1. Problem Modeling:
For the given model stress and boundary conditions, with the aim of structural energy minimization, and by taking model volume, stress and boundary conditions as constraints, a model of the problem of structural strength is substituted into formulas (5), (6) and (7) to obtain the following modeling:
2. Optimization Solving
After coarse and fine meshes are divided by a finite element analysis method, the problem of model optimization is transformed into the problem of optimization of the parameter {ti}i=1n
and the constraint condition s.t. (cx+cy)2−(r−ε)2≤0 with respect to the optimized variables is carried out
The derivation formula is substituted into an MMA optimizer to obtain an optimized {ti}i=1n
The lightweight results are shown in
By using the above method to calculate on different 3D objects, ideal results can be achieved as shown by experiments. The results show that the present invention greatly shortens the design and optimization cycles of this kind of cavity structures and can give theoretically optimal results. A model obtained by the present invention has smoother internal cavities and is not limited by the number of cavities; and the model of the object has a lower center of mass, saves more material, and consumes less time in design and optimization.
Number | Date | Country | Kind |
---|---|---|---|
202010146901.7 | Mar 2020 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2020/100320 | 7/6/2020 | WO | 00 |