2.1. Micro-Element Milling Force Model
Based on the proportional relationship between cutting force and instantaneous undeformed chip thickness, this study employs an equivalent shear force model to establish a micro-element milling force model. This modeling method can effectively characterize the force–thickness relationship during machining, providing accurate mechanical input for subsequent deformation analysis [
21]. This model was proposed by Professor Yusuf Altintas and is widely used in the field of mechanical processing. Recent studies have pointed out certain limitations of this method, primarily focusing on the qualitative analysis of stress during plastic deformation, which leads to inaccuracies in the cutting force coefficients [
22]. Since the experimental subject of this paper is planar side milling, which does not involve complex surface machining, and the accuracy of the milling force model has already been validated in previous work, this paper selects this milling force model as the foundation for subsequent research [
3,
23]. Specifically, this model achieves an accurate calculation of cutting forces by discretizing the tool into a series of axially distributed micro-disk elements, as shown in
Figure 1. Here,
is the cutting depth,
is the cutting width,
is the thickness of the chip micro-element, and
,
, and
are the tangential, radial, and axial cutting forces of the cutting edge micro-element
, respectively.
Based on this modeling method, the equivalent shear force theory is used to establish a micro-element milling force model for the tangential (
), radial (
), and axial (
) cutting force components on each micro-disk element, as shown in Equation (1).
where
represents the instantaneous undeformed chip thickness at time
t for the
j-th cutting edge micro-element
on the
-th cutting edge;
,
, and
are the tangential, radial, and axial shear force coefficients related to the undeformed chip thickness
, respectively;
,
, and
are the tangential, radial, and axial cutting edge force coefficients, respectively, and are generally constant terms. These six coefficients will be determined by milling experiments, with units in
.
is the thickness of the cutting edge micro-element;
is the spindle speed.
denotes the position angle of the cutting edge micro-element
on the
-th cutting edge at height
when the tool rotation angle is
. The micro-element cutting edge height
can be expressed by Equation (2).
Based on the transformation relationships between the
,
, and
and the axes of the rotational coordinate system, the components of the micro-element cutting force in each axis are expressed by Equation (3).
where
and
represent the radial and axial position angles of the cutting edge micro-element, respectively, as shown in Equation (4).
where
is the number of cutting edges,
indicates the cutting edge number, and
is the lag angle of the cutting edge micro-element. Since a flat end mill is used in this paper,
is 0 degrees.
2.2. The Voxel Octree Model
In finite element static structural analysis, the workpiece is modeled as an elastic solid and discretized into a finite element mesh. Based on the small deformation assumption, this study assumes that the deformation of the workpiece remains within the elastic range and follows Hooke’s law. In the FEM model, nodes are classified into two categories: (1) retained nodes located on the machined surface; (2) reduced nodes on the non-machined surface. By concentrating the solution of the displacement field on the retained nodes, it significantly improves computational efficiency while maintaining accuracy.
The octree model is a tree-based data structure based on spatial division. In the octree model, three-dimensional space is represented by a regularly arranged set of cubes, which are recursively divided into several subspaces. Each node represents a three-dimensional region, and each node can have up to eight sub-nodes. Specifically, the octree model divides a cubic space into eight sub-cubes, so that each layer is divided more and more finely until a specific condition (such as maximum depth or minimum spatial scale) is met. Due to this advantage, this paper proposes a method based on the voxel octree model to simulate the deformation of workpieces during milling. In actual simulations, fixed-size voxel models are often chosen to simulate the workpiece, but the size of the voxels can have a certain impact on the milling results, as shown in
Figure 2.
As shown in
Figure 2, regardless of whether the model is based on coarse or fine voxels, material removal along the tool envelope surface can be effectively achieved during milling. However, in the coarse voxel model (
Figure 2a), due to the larger voxel blocks, the cutting edge is farther away from the actual uncut voxel units, which may result in significant errors in stiffness and deformation calculations. In the fine voxel model (
Figure 2b), due to the smaller voxel blocks, the cutting edges can be closer to the uncut voxel units, but this greatly increases the computational load of the stiffness model. Therefore, this paper proposes the voxel octree model. It uses large voxel units at locations far from the cutting edge and divides them into smaller voxel units as they become closer to the cutting edge, thereby achieving an efficient and accurate stiffness model and workpiece deformation calculation.
Thin-walled workpieces are typically regarded as elastic bodies, and the radial cutting depth (
) during the milling of thin-walled workpieces is generally small. Within the elastic limit of the workpiece, the deformation of the workpiece can be calculated using Hooke’s law, based on the milling force and stiffness model. As shown in
Figure 2c, in the voxel octree model, octree nodes can be further divided into three types: red completely removed nodes (CR), yellow cutting edge micro-element nodes (ER), and green unremoved nodes (UR). In order to solve the accurate deformation of thin-walled workpieces based on the voxel octree model, this paper further studies the construction and updating of the stiffness matrix.
Since the unit size of the voxel octree model directly affects the accuracy and efficiency of workpiece deformation calculations, selecting the appropriate octree depth is essential. According to the computational complexity of the octree model (
), it can be seen that the number of units increases to
for each additional level of depth, resulting in a tenfold increase in computational complexity [
24]. Based on the size of the thin-walled workpiece and the axial difference in the micro-element milling force in this paper, it can be calculated that the octree depth should be selected between five and seven. The accuracy of the five-level octree model is relatively low, and the computational complexity of the seven-level octree model increases tenfold. Therefore, this paper chooses the octree model with a depth of six.
2.3. Stiffness Matrix Construction and Update Method
Each voxel octree node is connected to adjacent octree nodes using the same beam elements as in traditional FEM, as shown in
Figure 3. The center points
and
of adjacent voxel octree models correspond to eight vertices, but in the actual voxel calculation process, the two center points correspond to twelve vertices, as shown in
Figure 4.
As shown in
Figure 4, the center points of the voxels and the corresponding nodes are regularly distributed in the
-
-
directions. Therefore, only three types of unit matrix need to be considered, which are the
-direction stiffness matrix
, the
-direction stiffness matrix
, and the
-direction stiffness matrix
.
links two adjacent voxel units in the x-direction. For voxel units in the
and
directions, the
and
are obtained by applying a rotation matrix to
. Then, the stiffness matrix
of the entire workpiece is calculated based on the voxel connectivity and the three stiffness matrixes
,
, and
. Assuming that the force vector between octree voxel units is
, the relationship between
and the displacement vector is given by Equation (5).
Each node has six degrees of freedom, consisting of three translational and three rotational degrees of freedom. Therefore, the corresponding vectors
,
, and
can be expressed by Equations (6)–(8).
Substituting the moments of inertia
,
,
and section modulus
of the aluminum alloy thin-walled workpiece into the stiffness matrix
, Equation (9) can be obtained.
The bending stiffness (
-
plane) is expressed by Equations (10) and (11).
The shear stiffness (
plane) is expressed by Equation (12).
The torsional stiffness is expressed by Equation (13).
By combining the above equations, four stiffness matrixes,
,
,
, and
, can be obtained. Specifically, as shown in Equations (14)–(17):
where
is the area of the cross section;
is Young’s modulus;
is the shear modulus;
and
are the moments of inertia of the cross section; and
is the torsional constant of the cross section.
The shear modulus
can be calculated with Young’s modulus
and the Poisson’s ratio
, as shown in Equation (18). The moments of inertia
and the torsional constant
are calculated with Equations (19) and (20).
In the milling process, the shape of thin-walled workpieces constantly changes, causing the stiffness matrix of the workpiece to be continuously updated. Using traditional FEM to update the stiffness matrix requires frequent mesh division based on the shape of the workpiece, which reduces the efficiency of the calculation. This paper updates the stiffness matrix by removing voxel units based on the voxel octree model method. This method avoids redividing the finite element mesh of the workpiece, making the stiffness matrix update simpler and more efficient.
The stiffness matrix update method used in this paper is shown in
Figure 5. As mentioned above, when the tool collides with the voxel octree node, the node is removed, and the stiffness matrix of the node is also removed. Assume that the stiffness matrix of the voxel octree model is
, and the upper right voxel is cut off. Then, the stiffness matrix
of this node must be removed from the original model stiffness matrix. Finally, the updated stiffness matrix is obtained, as shown in Equation (21).
2.4. Rapid Calculation of Workpiece Deformation
According to the voxel unit distribution of the proposed voxel octree model, the octree depth is six. Then, the voxel units of the voxel octree can be divided into six levels, namely, overall units (level 1), coarse voxel units (levels 2 and 3), and fine voxel units (levels 4, 5, and 6). The deformation amount of the workpiece can be calculated in two steps, which are the initial deformation calculation and the accurate deformation calculation. Specifically, the flowchart for calculating the deformation of thin-walled workpieces based on the voxel octree model method is shown in
Figure 6.
As shown in
Figure 6, first calculate the micro-element milling force and analyze the collision between the milling cutter and the workpiece. Divide the workpieces into level 2 voxel units and calculate the deformation. Since the unit grid of the level 2 voxel units is relatively sparse, the initial deformation of the workpiece can be calculated more quickly. This step can quickly approximate the actual deformation of the workpiece and effectively reduce the complexity of the calculation efficiency. Then, voxel units at appropriate positions are divided according to the voxel octree model. Stiffness matrixes corresponding to level 3–6 voxel units are constructed, and deformation is calculated in combination with microelement milling force. Finally, the deformation of level 2, 3, 4, and 5 voxel units is uniformly subdivided into level 6 voxel units, and the overall deformation of the workpiece is obtained by summarizing them.
The appropriate location for voxel unit segmentation needs to be discussed on a case-by-case basis. The segmentation strategy for level 2 to 5 voxel units is different, and the specific rules are as follows. As defined by the voxel octree model, the next level of voxel units can be obtained by dividing the previous level of voxel units using the octree method. First, the level 1 voxel units of the workpiece are divided into level 2 voxel units. When a voxel unit contains a cutting edge, the level 2 voxel units are divided into level 3 voxel units using the octree theory. The voxel elements are further traversed. If the level 3 voxel unit does not contain any cutting edges, retain this level. Otherwise, continue to divide the level 3 voxel unit into level 4 voxel units through octree theory. Continuing from the previous step, divide the level 4 voxel units by determining whether the unit contains a cutting edge. The division rules for level 5 voxel units are determined by the distance from the center point of the unit to the cutting edge, as shown in
Figure 7. When the distance
between the center point of the level 5 voxel unit and the cutting edge is less than the center point spacing
of the voxel unit, the level 5 voxel unit is further divided into level 6 voxel units according to the octree theory. Furthermore, a sensitivity analysis was performed on parameter d, as shown in
Table 1. 0.8
lead to a decrease in the number of voxel units but improved computational efficiency; 1.2
lead to an increase in the number of voxel units but reduced computational efficiency. Through comprehensive analysis, it was found that only at one time,
, can both efficiency and accuracy be balanced. Therefore, when the distance
between the cutting edge and the center point of the level 5 voxel unit is less than
, octree segmentation should continue. As can be seen in
Figure 7, the green dotted line indicates that the distance d between the center point of the level 5 voxel unit and the cutting edge does not meet the octree division condition, so the original voxel unit is retained. The red dotted line indicates that the distance d meets the division condition, so the level 5 voxel unit is further divided into level 6 voxel units through octree theory.
.
After modeling thin-walled workpieces with the voxel octree model, the stiffness matrix of each level of voxel units needs to be divided. According to the division rules, the stiffness matrices in the
and
directions of the previous level voxel units are divided into four submatrices, as shown in Equation (22).
where
is the stiffness matrix of the
-direction of the previous level voxel unit;
–
are the sub-stiffness matrices of the
-direction of the next level voxel unit. The sub-stiffness matrices in the
and
directions are obtained by rotating and splitting
. The rotation matrix of
to
is
, and the rotation matrix of
to
is
, which are expressed in Equations (23) and (24).
From the rotation matrices
and
,
and
can be obtained, as shown in Equations (25) and (26).
Since the octree segmentation method involves multiple levels of voxel units, the stiffness matrices of each voxel unit are not consistent. This paper ensures the continuity of the stiffness matrix by sharing nodes. Specifically, the stiffness contribution of shared nodes is obtained by weighted summation, as shown in Equation (27).
where
is the composite stiffness matrix of the shared node;
,
, ..., and
are the stiffness matrices of the n individual voxel units connected to this node;
is the weight coefficient of the
-th individual voxel unit, which is determined by the proportion of the voxel volume. When a voxel unit is removed, its volume becomes 0, and it is automatically removed from Equation (27).
As described above, once the micro-element milling forces and the stiffness matrix splitting rules for each level of voxel units are determined, the deformation of thin-walled workpieces can be further calculated. First, the deformation of the level 1 voxel unit is calculated, as shown in Equation (28). The deformation of the subsequent voxel units is calculated according to Equation (29), and the solution is continued until the deformation of the level 6 voxel unit is obtained. Since this paper selects side milling of thin-walled workpieces, the proportion of the main cutting force is much greater than that of the lateral cutting force, which reduces the risk of plastic deformation caused by bending moment. Therefore, this paper simplifies the workpiece deformation to elastic deformation for analysis. Finally, the complete deformation of the thin-walled workpiece is obtained by combining the deformation amounts using Equation (30).
where
and
are the milling force and stiffness matrix corresponding to the level 1 voxel unit;
to
are the stiffness matrix of the next level voxel unit;
to
are the deformation amount of the next level voxel unit; and
to
are the milling force corresponding to the next level voxel unit.
is the overall deformation amount, and
to
are the deformation amounts of each level voxel units, respectively.
Based on the proposed stiffness matrix update method, the local heat map of the thin-walled workpiece stiffness can be further obtained, as shown in
Figure 8. It can be seen that the bottom of the workpiece is fixedly constrained, so the stiffness is maximum, and along the positive z-axis direction, the stiffness gradually decreases. After side milling, due to material removal, the stiffness matrix of the voxel element is removed, and the stiffness matrix is also updated accordingly.