1 Introduction

Due to the better tool accessibility and the increased flexibility of machining, five-axis milling has been widely used in machining parts with complex sculpture surfaces, such as turbine blades, impellers, and dies. There have been significant researches reported in tool orientation planning and tool path generation, mainly based on geometry, kinematics, and mechanics[1, 2]. Interference and collision are the primary factors that need to be considered in geometrical analysis. Singularity and smoothness are the primary factors that need to be considered in kinematics. The deformation caused by statics and chatter caused by dynamics are the primary factors that need to be considered in mechanics. The neglect of process mechanics may lead to excessive cutting force and chatter, resulting in decreased productivity, and poor surface quality. To overcome this problem, this paper proposes a process mechanics-based method to generate chatter-free tool orientations along the tool path in five-axis ball-end milling of thin-walled parts.

Firstly, the studies of the influence of the tool orientation on the cutter-workpiece engagement (CWE), cutting force, and machining stability will be presented. Then, the research status of the tool orientation optimization based on statistics is described. Moreover, an overview of tool orientation optimization based on dynamics is presented.

Tool orientation in five-axis ball-end milling affects local undeformed chip thickness and CWE, which result in the cutting force and machining stability varying with tool orientation. The study [3] found that both the CWE and cutting force vector varied with the changes in tool orientation. Ozturk et al. [4] investigated the effect of tilt and lead angles on cutting forces, torque, form errors, and stability of five-axis ball-end milling processes. It was shown that the cutting geometry, mechanics, and dynamics vary significantly and non-linearly with tool posture. Zhan and Jiang et al. [5] analyzed the effect of tool orientation on the stability prediction of five-axis ball-end milling with variable pitch tools and regular tools. Tang and Peng et al. [6] compared and analyzed the effect of tool orientation on process damping and stability boundary, they found that the increment of critical cutting depth was significantly correlated with the tool orientation. Tang and Zhu et al. [7] investigated the effect of the lead and tilt angles on the critical cutting depth based on stability constraint. Falta et al. [8] proposed an alternative mathematical formulation of the ZOA-based machining stability prediction for 5-axis ball-end milling. They analyzed the influence of lead angle and tilt angle on the cutting force Jacobian and then explained the influence of lead angle and tilt angle on stability. They have not studied the generation of chatter-free tool orientations along the tool path. In addition, the studies [9,10,11,12] showed that the lead and tilt angles of tool orientation had a significant effect on the absolute stability limit. Hence, the process mechanics should be considered to optimize tool orientations.

To reduce the cutting force-induced deformation in milling thin-walled parts, Cai et al. [13] proposed a stiffness matching-based algorithm to optimize cutter orientation. Zhang et al. [14] developed an analytical method to calculate the instantaneous CWE conditions by incorporating tool orientation and cutter runout. Then they studied the influence of lead and tilt angles on the maximum cutting force and form error for three kinds of geometrical characteristics. Subsequently, a tool orientation optimization strategy was presented with different constraints in roughing and finishing for the plane, cylindrical, and spherical surfaces. Yigit et al. [15] proposed a mechanics-based approach to select the tool postures for five-axis ball-end milling of flexible parts, the proposed method involved cutting force, torque, vibration, and surface quality. However, the papers [13,14,15] only considered the influence of static cutting force, but they did not consider the influence of dynamic cutting force.

Although numerous researches on machining stability have been presented as described in the paper [16], there has been a very limited effort reported in optimizing the tool orientation to avoid chatter. Tunc et al. [17] proposed a process simulation integrated tool orientation selection approach to adjust the tool orientation along an already generated five-axis milling path for improved process in terms of cutting forces, stability, and machine tool motion. Wang et al. [18] constructed the posture stability graphs to select chatter-free cutter postures. In addition, Sun and Altintas [19] modelled the stability of five-axis ball-end milling, and they searched the chatter-free tool orientations using the Nyquist criterion. Then, they adjusted the tool orientation to avoid chatter along the tool path. Zhao and Wang et al. [20] constructed the posture accessibility and stability diagram (PASD) by identifying interference- and chatter-free cutter postures based on geometric analysis and machining dynamic analysis. Also, they analyzed the relationship between surface roughness and maximum cutter deformation force and proposed a surface roughness prediction model. Then, based on the proposed PASD and surface roughness prediction model, they proposed a cutter posture optimization algorithm to minimize surface roughness. However, in the papers [17,18,19], the regions of chatter-free tool orientation at each cutter location (CL) point should be obtained, the efficiency may be limited. To achieve a balance between the smooth tool orientations and suppression of chatter and surface location error, Huang et al. [21] presented a minimax optimization approach for planning tool orientations. This method did not need to get the regions of chatter-free tool orientation at each CL point in advance.

The studies [17,18,19,20,21] focused on the milling of rigid workpiece. The paper [11] studied the influence of lead and tilt angles on the stability limits during five-axis milling thin-walled workpiece, however, this paper did not propose a strategy to generate chatter-free and smooth tool orientations along the tool path. Karimi and Altintas [22] studied the effects of tool orientation on the cutting stability and forced vibration through simulations. Then tool orientation was optimized to mitigate chatter and forced vibration problems caused by the high flexibilities of thin-walled blades and slender cutting tools in five-axis ball-end milling operations. However, in the reference [22] the thickness of the thin-walled blades is 8 mm which is too thick. There is still a lack of efficient tool orientation planning strategy that is applied to the milling of curved thin-walled parts. The milling of thin-walled parts is more complicated than the milling of rigid parts. During the milling of thin-walled parts, the material removal causes a change in workpiece dynamics. Moreover, the change of local workpiece dynamics along the tool path will change the machining system from a flexible workpiece to a flexible tool. In the process of machining the free end of the workpiece, the workpiece is the flexible body, while in the process of machining the fixed end of the workpiece, the tool is the flexible body.

In this paper, a tool orientation optimization method is presented to generate a chatter-free tool path in the five-axis ball-end milling of curved thin-walled parts. To improve calculation efficiency, a binary search algorithm-based method is proposed to calculate limiting cutting depth for milling of thin-walled parts. A dynamic model considering both the flexible tool and workpiece is modeled in the tool coordinate system. Moreover, an iterative strategy of first generating the smooth tool orientations through the representative tool orientations (RTOs), and then checking the machining stability and adjusting the tool orientation is proposed to optimize tool orientation. A machining stability factor is proposed to select tool orientation, the tool orientation with a higher value of machining stability factor is selected as the RTO. The effectiveness of the presented method has been experimentally verified in the five-axis ball-end milling of the block workpiece and the curved thin-walled part.

The paper is organized as follows. In Section 2, the process coordinate systems and the transformations between these coordinate systems are defined. In Section 3, the stability prediction model for the milling thin-walled part is constructed. In Section 4, the tool orientation optimizing and smoothing strategy is proposed. In Section 5, simulations and tests are carried out to verify the effectiveness of the proposed method.

2 Definition of process coordinate systems and transformations

The configuration for the table-tilting type five-axis machine tool is shown in Fig. 1a, \(\theta _B\), and \(\theta _C\) are the rotation angles of the B and C axes of the machine tool, respectively. In order to illustrate the calculation process, four coordinate systems are defined, namely, machine coordinate system (MCS), feed coordinate system (FCS), workpiece coordinate system (WCS), and tool coordinate system (TCS). In the FCS, \({\varvec{F}}\) is the feed direction, \({\varvec{C}}\) is the cross-feed direction, and \({\varvec{N}}\) is the surface normal direction of the workpiece. The lead angle is defined as the angular rotation of the tool axis about \({\varvec{C}}\), and the tilt angle is defined as the angular rotation of the tool axis about \({\varvec{F}}\).

Fig. 1
figure 1

a Configuration for table-tilting five-axis machine tool, workpiece coordinate system (WCS), tool coordinate system (TCS), feed coordinate system (FCS), lead angle, and tilt angle of tool axis; and b the solution subspaces of \((\theta _B,\theta _C)\)

The surface normal \({\varvec{N}}\) can be obtained by setting the lead and tilt angles to be zero in the process of generating the CL file by CAD/CAM software, the surface normal is coincident with the tool orientation in the CL file, and the CL point is equal to the cutter contact (CC) point. The feed direction \({\varvec{F}}\) can be expressed as follows:

$$\begin{aligned} {{\varvec{F}}} = \frac{(x_{p+1}-x_p,y_{p+1}-y_p,z_{p+1}-z_p)}{\sqrt{(x_{p+1} - x_p)^2 + (y_{p+1} - y_p)^2 +(z_{p+1} - z_p)^2} } \end{aligned}$$
(1)

where \(({x_p},{y_p},{z_p})\) and \(({x_{p+1}},{y_{p+1}},{z_{p+1}})\) are the coordinates of the two consecutive CC points. The cross-feed direction \({\varvec{C}}\) is generated by the cross product of \({\varvec{N}}\) and \({\varvec{F}}\). For the lead angle \(\alpha \) and tilt angle \(\beta \), the tool orientation with respect to WCS can be obtained as follows:

$$\begin{aligned} {\varvec{A}}(\alpha ,\beta ) = {\varvec{R}}({\varvec{C}},\alpha ){\varvec{R}}({\varvec{F}},\beta ){\varvec{N}} \end{aligned}$$
(2)

The expressions of \({\varvec{R}}({\varvec{C}},\alpha )\) and \({\varvec{R}}({\varvec{F}},\beta )\) are shown in Appendix.

The CL point is written as follows:

$$\begin{aligned} {CL} (\alpha ,\beta )= {CC}+ R_0({\varvec{N}}-{\varvec{A(\alpha ,\beta )}}) \end{aligned}$$
(3)

where R is the radius of the tool. The axis directions of TCS are defined as follows:

$$\begin{aligned} \left\{ \begin{array}{l} {{\varvec{z}}_T(\alpha ,\beta )} = {\varvec{A}(\alpha ,\beta )} /{|{\varvec{A}(\alpha ,\beta )}|} \\ {{\varvec{y}}_T(\alpha ,\beta )} = ({\varvec{A}(\alpha ,\beta )} \times {{\varvec{F}}})/{|{\varvec{A}(\alpha ,\beta )} \times {\varvec{F}}|}, {\varvec{A}(\alpha ,\beta )} \times {{\varvec{F}} } \ne {\varvec{0}} \\ {{\varvec{x}}_T(\alpha ,\beta )} = {{\varvec{y}}_T}(\alpha ,\beta ) \times {{\varvec{z}}_T}(\alpha ,\beta ) \end{array} \right. \end{aligned}$$
(4)

The frequency response functions (FRFs) of the workpiece are measured in WCS, and the FRFs of the tool are measured in MCS, however, the cutting force is calculated in TCS. Thus, the transformations between WCS, MCS, and TCS should be constructed, and the stability of the machining system should be analyzed in TCS. The rotation matrix from TCS to WCS can be defined as:

$$\begin{aligned} _T^W{\varvec{R}}(\alpha ,\beta ) = [ \varvec{x}_T(\alpha ,\beta ),\varvec{y}_T(\alpha ,\beta ),\varvec{z}_T(\alpha ,\beta )] \end{aligned}$$
(5)

In this paper, when the rotation angles of the B and C axes of the machine tool are zero, the WCS is not aligned with the MCS, and the rotation matrix from MCS to WCS is written as:

$$\begin{aligned} _M^W{\varvec{R}_0}= \left[ {\begin{array}{*{20}{c}} 0& 1 & 0\\ -1& 0& 0\\ 0& 0& 1 \end{array}} \right] \end{aligned}$$
(6)

For the machine tool used in this paper, the tool orientation in CL file can be expressed as a function of \(\theta _B\) and \(\theta _C\):

$$\begin{aligned} {\varvec{A}(\alpha ,\beta )}= & \left[ \begin{array}{ccc} i(\alpha ,\beta )\\ j(\alpha ,\beta )\\ k(\alpha ,\beta ) \end{array}\right] = _M^W{{\varvec{R}}_{\varvec{0}}}{{\varvec{R}}_z}({\theta _C}){{\varvec{R}}_y}({\theta _B}){{\varvec{A}}^M} \nonumber \\= & \left[ \begin{array}{ccc} 0& 1& 0\\ { - 1}& 0& 0\\ 0& 0& 1 \end{array}\right] \left[ \begin{array}{ccc} {\cos {\theta _C}}& { - \sin {\theta _C}}& 0\\ {\sin {\theta _C}}& {\cos {\theta _C}}& 0\\ 0& 0& 1 \end{array}\right] \nonumber \\ & \left[ \begin{array}{ccc} {\cos {\theta _B}}& 0& {\sin {\theta _B}}\\ 0& 1& 0\\ { - \sin {\theta _B}}& 0& {\cos {\theta _B}} \end{array} \right] \left[ \begin{array}{ccc} 0\\ 0\\ 1 \end{array} \right] \nonumber \\= & \left[ \begin{array}{ccc} {\sin {\theta _C}\sin {\theta _B}}\\ { - \cos {\theta _C}\sin {\theta _B}}\\ {\cos {\theta _B}} \end{array}\right] \end{aligned}$$
(7)

where \({\varvec{A}}^M\) is the tool orientation with respect to MCS. Then:

$$\begin{aligned} \cos {\theta _B} = k(\alpha ,\beta ), \quad \tan {\theta _C} = {-i(\alpha ,\beta )/j(\alpha ,\beta )} \end{aligned}$$
(8)

The two solution subspaces of \((\theta _B,\theta _C)\) are given in Fig. 1b. After the rotational angles \(\theta _B\) and \(\theta _C\) are obtained, the transformation matrix from MCS to WCS can be written as:

$$\begin{aligned} _M^W{\varvec{R}}(\alpha ,\beta )= & _M^W{\varvec{R}_0}{{\varvec{R}}_z}({\theta _C}){{\varvec{R}}_y}({\theta _B}) \nonumber \\= & \left[ \begin{array}{ccc} {\sin {\theta _C}\cos {\theta _B}}& { \cos {\theta _C}} & {\sin {\theta _C}}\sin {\theta _B}\\ {-\cos {\theta _C}\cos {\theta _B}}& {\sin {\theta _C} }& { -\cos {\theta _C}\sin {\theta _B}}\\ {-\sin {\theta _B}}& 0& {\cos {\theta _B}} \end{array}\right] \end{aligned}$$
(9)

The transformation matrix from TCS to MCS can be written as:

$$\begin{aligned} _T^M{\varvec{R}}(\alpha ,\beta )= _M^W{\varvec{R}}^{-1}(\alpha ,\beta ) _T^W{\varvec{R}}(\alpha ,\beta ), _W^M{\varvec{R}}(\alpha ,\beta ) = _M^W{{\varvec{R}}^{ - 1}}(\alpha ,\beta ) \end{aligned}$$
(10)

where \( _M^W{\varvec{R}}^{-1}(\alpha ,\beta )\) is the inverse matrix of \( _M^W{\varvec{R}}(\alpha ,\beta )\).

3 Predicting stability for five-axis ball-end milling of thin-walled part

Ozturk and Budak [10] proposed an iterative method to calculate stability limits. The iteration was performed by incrementing the cutting depth of \(\Delta a\) until all the calculated limiting cutting depths were less than the cutting depth in the analysis. However, if an improper value is selected as the initial cutting depth, and the value of limiting cutting depth is great, this method is inefficient. Moreover, in industry practice, the acceptable chatter-free cutting parameters is often ensured by the lobe’s outer contour, which is also a single-valued function of spindle speed [23]. Hence, to improve calculation efficiency, a binary search algorithm-based single-frequency method is adopted to calculate limiting cutting depth. The iteration process for calculating limiting cutting depth b is described as follows:

  1. 1.

    Select a small cutting depth \(a_1\) and calculate the CWE, the calculated limiting cutting depth is \(b_1\), select the minimum cutting depth \(a_2\) which is greater than \(b_1\).

  2. 2.

    Set \(L=a_1\), \(U=a_2\), \(M=(a_1+a_2)/2\), the allowance error \(\epsilon =1\times 10^{-2}\) mm; for the cutting depth M, the calculated limiting cutting depth is B, and \(a_1<B<a_2\).

  3. 3.

    Compare M and B:

    1. 1.

      if \(B<M\) and \(M-B<\epsilon \), then \(b=B\);

    2. 2.

      if \(B<M\) and \(M-B>\epsilon \), set \(U=M\), if \(B>L\), set \(L=B\), then \(M=(L+U)/2\), for the cutting depth M, calculate the limiting cutting depth B, go to step 3;

    3. 3.

      if \(B>M\) and \(B-M<\epsilon \), then \(b=B\);

    4. 4.

      if \(B>M\) and \(B-M>\epsilon \), set \(L=M\), if \(U>B\), set \(U=B\), then \(M=(L+U)/2\), for the cutting depth M, calculate the limiting cutting depth B, go to step 3.

Next, the expression for limiting cutting depth will be presented. Generally, during finishing milling of thin-walled parts, the tool is regarded as a rigid body compared with the flexible workpiece [24]. However, for cantilever-shaped structures, as the cutter advances from the free end of the workpiece to the fixed end, the machining system will change from flexible workpiece and flexible tool to rigid workpiece and flexible tool as shown in Fig. 2. Both the flexible tool and flexible workpiece should be considered. To describe the calculation process conveniently, the tool paths are marked by \(curve \ h\) as shown in Fig. 2, where h is the distance from the cutting position to the upper surface of the part along the z direction, the unit is mm.

For ball-end milling, the dynamic cutting force acting on the lth disk can be expressed as:

$$\begin{aligned} \left[ {{F^d_{l,x,y,z}}(x,z,\alpha ,\beta ,t)}\right] =\Delta z{\varvec{A}}_l(x,z,\alpha ,\beta ,t)\left[ {{\Delta }^T(x,z,\alpha ,\beta ,t)}\right] \end{aligned}$$
(11)
Fig. 2
figure 2

Evolution of machining system as cutter advances from free-end to fixed-end

with

$$\begin{aligned} \begin{array}{l} \left[ {\Delta ^T(x,z,\alpha ,\beta ,t)}\right] =\left( {\left[ {\begin{array}{*{20}{l}} {x_T^T(x,z,\alpha ,\beta ,t)}\\ {y_T^T(x,z,\alpha ,\beta ,t)}\\ {z_T^T(x,z,\alpha ,\beta ,t)} \end{array}}\right] -\left[ {\begin{array}{*{20}{l}} {x_W^T(x,z,\alpha ,\beta ,t)}\\ {y_W^T(x,z,\alpha ,\beta ,t)}\\ {z_W^T(x,z,\alpha ,\beta ,t)} \end{array}}\right] }\right) \\ \hspace{2cm}-\left( {\left[ {\begin{array}{*{20}{l}} {x_T^T(x,z,\alpha ,\beta ,t-\tau )}\\ {y_T^T(x,z,\alpha ,\beta ,t-\tau )}\\ {z_T^T(x,z,\alpha ,\beta ,t-\tau )} \end{array}}\right] -\left[ {\begin{array}{*{20}{l}} {x_W^T(x,z,\alpha ,\beta ,t-\tau )}\\ {y_W^T(x,z,\alpha ,\beta ,t-\tau )}\\ {z_W^T(x,z,\alpha ,\beta ,t-\tau )} \end{array}}\right] }\right) \end{array} \end{aligned}$$
(12)

where \((x_T^T(t),y_T^T(t),z_T^T(t))^T\) and \((x_W^T(t),y_W^T(t),z_W^T(t))^T\) represent the dynamic displacements of the tool and workpiece at present tooth period in TCS frame, \((x_T^T(t-\tau ),y_T^T(t-\tau ),z_T^T(t-\tau ))^T\) and \((x_W^T(t-\tau ),y_W^T(t-\tau ),z_W^T(t-\tau ))^T\) represent the dynamic displacements of the tool and workpiece at previous tooth period, \(\Delta z\) is the height of the disk, \({\varvec{A}}_l(x,z,\alpha ,\beta ,t)\) is the directional coefficient matrix. When the single-frequency method [25] is adopted to calculate the limiting cutting depth, the average component of the Fourier series expansion is adopted to represent \(\left[ {A(t)} \right] \), then:

$$\begin{aligned} \left[ {{F^d_{l,x,y,z}}(x,z,\alpha ,\beta ,t)}\right] =\Delta z{\varvec{A}}_{l,0}(x,z,\alpha ,\beta )\left[ {{\Delta }^T(x,z,\alpha ,\beta ,t)}\right] \end{aligned}$$
(13)

where

$$\begin{aligned} \left\{ \begin{array}{l} \Delta z= \dfrac{{\Delta a}}{{\cos \gamma }(\alpha ,\beta ) }, \quad \gamma (\alpha ,\beta ) = {\cos ^{ - 1}}\left( {\dfrac{{{\varvec{N}} \cdot {\varvec{A}(\alpha ,\beta )}}}{{\sqrt{|{\varvec{N}} ||{\varvec{A}(\alpha ,\beta )} |} }}} \right) \\ {{\varvec{A}}_{l,0}}(x,z,\alpha ,\beta )=\dfrac{N}{{2\pi }}\left[ {\begin{array}{*{20}{c}} {{\alpha _{l,xx}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,xy}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,xz}^0(x,z,\alpha ,\beta )}}\\ {{\alpha _{l,yx}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,yy}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,yz}^0(x,z,\alpha ,\beta )}}\\ {{\alpha _{l,zx}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,zy}^0(x,z,\alpha ,\beta )}}& {{\alpha _{l,zz}^0(x,z,\alpha ,\beta )}} \end{array}}\right] \end{array} \right. \end{aligned}$$
(14)

where

$$\begin{aligned} \left\{ \begin{array}{l} {\alpha ^0_{l,xx}} = \dfrac{1}{4}\left[ {{K_{l,tc}}\cos 2\theta - {K_{l,rc}}(\sin \kappa _l )(2\theta - \sin 2\theta ) - {K_{l,ac}}(\cos \kappa _l )(2\theta - \sin 2\theta )} \right] |{_{{\theta _{l,st}}}^{{\theta _{l,ex}}}} \\ {\alpha ^0_{l,xy}} = \dfrac{1}{4}\left[ { - {K_{l,tc}}(2\theta + \sin 2\theta ) + {K_{l,rc}}\sin \kappa _l \cos 2\theta + {K_{l,ac}}\cos \kappa _l \cos 2\theta } \right] |{_{{\theta _{l,st}}}^{{\theta _{l,ex}}}} \\ {\alpha ^0_{l,xz}} = \dfrac{1}{2}\left[ {2{K_{l,tc}}\cot \kappa _l \sin \theta - 2{K_{l,rc}}\cos \kappa _l \cos \theta - 2{K_{l,ac}}\cos \kappa _l \cot \kappa _l \cos \theta } \right] |{_{{\theta _{l,st}}}^{{\theta _{l,ex}}}} \end{array} \right. \end{aligned}$$
(15a)
$$\begin{aligned} \left\{ \begin{array}{l} {\alpha ^0_{l,yx}} = \dfrac{1}{4}\left[ {{K_{l,tc}}(2\theta - \sin 2\theta ) + {K_{l,rc}}\sin \kappa _l \cos 2\theta + {K_{l,ac}}\cos \kappa _l \cos 2\theta } \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \\ {\alpha ^0_{l,yy}} = \dfrac{1}{4}\left[ {- {K_{tc}}\cos 2\theta - {K_{l,rc}}(\sin \kappa _l) (2\theta + \sin 2\theta ) - {K_{l,ac}}(\cos \kappa _l) (2\theta + \sin 2\theta )} \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \\ {\alpha ^0_{l,yz}} = \dfrac{1}{2}\left[ {2{K_{l,tc}}\cot \kappa _l \cos \theta + 2{K_{l,rc}}\cos \kappa _l \sin \theta + 2{K_{l,ac}}{{\cos } }\kappa _l \cot \kappa _l \sin \theta )} \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \end{array} \right. \end{aligned}$$
(15b)
$$\begin{aligned} \left\{ \begin{array}{l} {\alpha ^0_{l,zx}} = \left[ { - {K_{l,rc}}\cos \kappa _l \cos \theta + {K_{l,ac}}\sin \kappa _l \cos \theta } \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \\ {\alpha ^0_{l,zy}} = \left[ {{K_{l,rc}}\cos \kappa _l \sin \theta - {K_{l,ac}}\sin \kappa _l \sin \theta } \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \\ {\alpha ^0_{l,zz}} = \left[ {\left( { - {K_{l,rc}}{{\cos }}\kappa _l \cot \kappa _l + {K_{l,ac}}\cos \kappa _l } \right) \theta } \right] |{_{\theta _{l,st}}^{\theta _{l,ex}}} \end{array} \right. \end{aligned}$$
(15c)

where \(K_{tc}\), \(K_{rc}\), \(K_{ac}\) are the cutting force coefficients, they are calibrated by the method proposed in [26]; \(\theta _{l,st}\) and \(\theta _{l,ex}\) are engagement angles (start and exit angles) for the lth discrete slice, they are calculated by the triple dexel based method presented in [26].

According to Eq. 13, the dynamics of the system in the frequency domain can be expressed as

$$\begin{aligned} \left[ {{F^d_{x,y,z}}(x,z,\alpha ,\beta ,i\omega )}\right]= & \dfrac{{\Delta a}}{{\cos \gamma }}\left( {\sum \limits _{l=1}^m{{\varvec{A}}_{l,0}(x,z,\alpha ,\beta )}}\right) \left[ {{\Delta ^T}(x,z,\alpha ,\beta ,i\omega )}\right] \nonumber \\= & \dfrac{{\Delta a}}{{\cos \gamma }}\left( {\sum \limits _{l=1}^m{{\varvec{A}}_{l,0}(x,z,\alpha ,\beta )}}\right) (1-{e^{-i\omega \tau }})\nonumber \\ & {\varvec{\Phi }}_{TW}^T(x,z,\alpha ,\beta ,i\omega )\left[ {{F^d_{x,y,z}}(x,z,\alpha ,\beta ,i\omega )}\right] \end{aligned}$$
(16)

where m is the number of the disk along the tool axis; \(\Phi _{TW}^T(i\omega )\) is the relative FRF between the tool and workpiece in TCS, it can be written as:

$$\begin{aligned} \begin{array}{l} {\varvec{\Phi }}_{TW}^T(x,z,\alpha ,\beta ,i\omega )={( _T^W{\varvec{R}}(\alpha ,\beta ))^{-1}}{\varvec{\Phi }}_W^W(x,z,i\omega ) _T^W{\varvec{R}}(\alpha ,\beta )\\ +{( _T^W{\varvec{R}}(\alpha ,\beta ))^{-1}}{( _W^M{\varvec{R}}(\alpha ,\beta ))^{-1}}{\varvec{\Phi }}_T^M(i\omega ) _W^M{\varvec{R}}(\alpha ,\beta ) _T^W{\varvec{R}}(\alpha ,\beta ) \end{array} \end{aligned}$$
(17)

where \({\varvec{\Phi }}_W^W(x,z,i\omega )\) is the FRF of the workpiece in WCS, \({\varvec{\Phi }}_T^M(i\omega )\) is the FRF of the machine tool in MCS. When the cross FRFs are omitted, and only the direct FRFs are considered, the direct FRFs of the workpiece at point q can be expressed as follows:

$$\begin{aligned} {\varvec{\Phi }}_W^W(x,z,i\omega )=\left[ {\begin{array}{*{20}{c}} {\Phi _{W,x}^{qq}(x,z,i\omega )}& 0& 0\\ 0& {\Phi _{W,y}^{qq}(x,z,i\omega )}& 0\\ 0& 0& {\Phi _{W,z}^{qq}(x,z,i\omega )} \end{array}}\right] \end{aligned}$$
(18)

with

$$\begin{aligned} \left\{ \begin{array}{l} \Phi _{W,x}^{qq}(x,z,i\omega )=\sum \limits _{j=1}^n{\dfrac{{{{({\phi _{W,x,q,j}}(x,z))}^2}}}{{\omega _{n,W,j}^2-{\omega ^2}+i2{\xi _{W,j}}{\omega _{n,W,j}}\omega }}}\\ \Phi _{W,y}^{qq}(x,z,i\omega )=\sum \limits _{j=1}^n{\dfrac{{{{({\phi _{W,y,q,j}}(x,z))}^2}}}{{\omega _{n,W,j}^2-{\omega ^2}+i2{\xi _{W,j}}{\omega _{n,W,j}}\omega }}}\\ \Phi _{W,z}^{qq}(x,z,i\omega )=\sum \limits _{j=1}^n{\dfrac{{{{({\phi _{W,z,q,j}}(x,z))}^2}}}{{\omega _{n,W,j}^2-{\omega ^2}+i2{\xi _{W,j}}{\omega _{n,W,j}}\omega }}} \end{array}\right. \end{aligned}$$
(19)

where \({\omega _{n,W,j}}\) is the jth order natural frequency of workpiece; \({\xi _{{{w,j}}}}\) is the jth order damping ratio of workpiece; \({\phi _{W,x,q,j}}\), \({\phi _{W,y,q,j}}\), \({\phi _{W,z,q,j}}\) are the component of jth order modal shape at point q; \(\omega \) is the frequency of excitation. For the machine tool, the FRFs correspond to the most flexible points PX1 and PY1 (Fig. 5) are written as follows:

$$\begin{aligned} {\varvec{\Phi }}_T^M(i\omega ) = \left[ {\begin{array}{*{20}{c}} {\Phi _{T,xx}^M(i\omega )}& 0& 0\\ 0& {\Phi _{T,yy}^M(i\omega )}& 0\\ 0& 0& 0 \end{array}} \right] \end{aligned}$$
(20)

with

$$\begin{aligned} \left\{ \begin{array}{l} \Phi _{T,xx}^M\left( {i\omega }\right) =\sum \limits _{j=1}^n{\dfrac{{{{\left( {{\phi _{T,x,{PX1},j}}}\right) }^2}}}{{\omega _{n,T,x,j}^2-{\omega ^2}+i2{\xi _{T,x,j}}{\omega _{n,T,x,j}}\omega }}}\\ \Phi _{T,yy}^M\left( {i\omega }\right) =\sum \limits _{j=1}^n{\dfrac{{{{\left( {{\phi _{T,y,{PY1},j}}}\right) }^2}}}{{\omega _{n,T,y,j}^2-{\omega ^2}+i2{\xi _{T,y,j}}{\omega _{n,T,y,j}}\omega }}} \end{array}\right. \end{aligned}$$
(21)

where \(\phi _{T,x,j}\) and \(\phi _{T,y,j}\) are the jth order modal shapes of tool in x and y directions, respectively; \(\omega _{n,T,x,j}\) and \(\omega _{n,T,x,j}\) are the jth order natural frequency of tool in x and y directions, respectively; \(\xi _{T,x,j}\) and \(\xi _{T,y,j}\) are the jth order damping ratio of tool in x and y directions, respectively; \(\omega \) is the frequency of excitation.

Equation 16 has nontrivial solutions if the following determinant is equal to zero:

$$\begin{aligned} \det |{\varvec{I}} - \lambda (x,z,\alpha ,\beta ,i\omega ) {\varvec{\Phi }(x,z,\alpha ,\beta ,i\omega )} |= 0 \end{aligned}$$
(22)

with

$$\begin{aligned} \left\{ \begin{array}{l} \lambda (x,z,\alpha ,\beta ,i\omega )=\dfrac{{\Delta a(x,z,\alpha ,\beta ,i\omega )}}{{\cos \gamma (\alpha ,\beta )}}\left( {1-{e^{-i\omega \tau }}}\right) ={\lambda _R}(x,z,\alpha ,\beta ,i\omega )+i{\lambda _I}(x,z,\alpha ,\beta ,i\omega )\\ {\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega )=\left[ {\begin{array}{*{20}{c}} {{\Phi _{xx}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{xy}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{xz}}(x,z,\alpha ,\beta ,i\omega )}\\ {{\Phi _{yx}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{yy}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{yz}}(x,z,\alpha ,\beta ,i\omega )}\\ {{\Phi _{zx}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{zy}}(x,z,\alpha ,\beta ,i\omega )}& {{\Phi _{zz}}(x,z,\alpha ,\beta ,i\omega )} \end{array}}\right] \\ \mathrm{ }=\left( {\sum \limits _{l=1}^m{{\varvec{A}}_{l,0}(x,z,\alpha ,\beta )}}\right) {\varvec{\Phi }}_{TW}^T(x,z,\alpha ,\beta ,i\omega ) \end{array}\right. \end{aligned}$$
(23)

Since the size of the matrix \({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega )\) is \(3\times 3\), the solution of Eq. 22 has three different eigenvalues for each frequency \(\omega \). For each eigenvalue, the limiting cutting depth is calculated, and the eigenvalue that results in the minimum positive limiting depth is used in the stability diagrams. Defining \(\kappa (x,z,\alpha ,\beta ,i\omega )={\lambda _I(x,z,\alpha ,\beta ,i\omega )}/{\lambda _R(x,z,\alpha ,\beta ,i\omega )}\), for the CL point q, the elemental critical depth \(\Delta {a_{lim}}\) and the limiting cutting depth \({a_{\lim }}\) can be written as follows:

$$\begin{aligned} \left\{ \begin{array}{l} \Delta {a_{\lim }}(x,z,\alpha ,\beta ,i\omega )=\dfrac{1}{2}{\lambda _R}(x,z,\alpha ,\beta ,i\omega )\\ (1+{\kappa ^2}(x,z,\alpha ,\beta ,i\omega ))\cos \gamma (\alpha ,\beta )\\ {a_{\lim }}(x,z,\alpha ,\beta ,i\omega )=m\Delta {a_{\lim }}(x,z,\alpha ,\beta ,i\omega ) \end{array}\right. \end{aligned}$$
(24)

The corresponding spindle speed \({n_s}\) can be written as follows:

$$\begin{aligned} {n_s}(x,z,\alpha ,\beta ,i\omega )=\dfrac{{60\omega }}{{N\left[ {(2k+1)\pi -2\arctan \kappa }(x,z,\alpha ,\beta ,i\omega )\right] }} \end{aligned}$$
(25)

Compared with the iterative method presented in [10], which calculated the limiting cutting depth by incrementing the cutting depth of \(\Delta a\) until all the calculated limiting cutting depths were less than the cutting depth in the analysis, the binary search algorithm based method presented in this paper is efficient.

4 Tool orientation optimizing strategy

This section provides an efficient method to optimize tool orientation to suppress chatter during the five-axis milling process. It is supposed that the interference-free tool path has been already determined by a commercial CAM system.

The basic idea of the proposed method is to proceed iteratively by first generating the smooth tool orientations, and then checking the machining stability and adjusting tool orientations, the method contains three steps. The first step is to assign initial RTOs at crucial areas based on process mechanics. The second step is to interpolate smooth tool orientations at general areas from the RTOs by the quaternion interpolation (QI) algorithm. The third step is to check machining stability at each CL point, if chatter occurs, the chatter-free tool orientation is selected and added to the RTOs. Then, back to the second step to interpolate new tool orientations. This process is repeated until all tool orientations along the tool path are chatter-free.

After the crucial CL points are selected, the chatter-free tool orientations at each crucial CL point are obtained using the Nyquist criterion [27]. According to Eq. 22, the characteristic equation of the system can be rewritten as:

$$\begin{aligned} \begin{array}{*{20}{l}} \begin{array}{l} \left[ {1 - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{xx}}(i\omega )} \right] \times \left\{ {\begin{array}{*{20}{l}} \begin{array}{l} \left[ {1 - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{yy}}(i\omega )} \right] \\ \times \left[ {1 - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{zz}}(i\omega )} \right] \end{array}\\ { - \Delta {z^2}{{(1 - \cos \omega \tau + i\sin \omega \tau )}^2}{\Phi _{yz}}(i\omega ){\Phi _{zy}}(i\omega )} \end{array}} \right\} \end{array}\\ \begin{array}{l} + \left[ {\Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{xy}}(i\omega )} \right] \times \left\{ {\begin{array}{*{20}{l}} \begin{array}{l} \left[ { - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{yx}}(i\omega )} \right] \\ \times \left[ {1 - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{zz}}(i\omega )} \right] \end{array}\\ { - \Delta {z^2}{{(1 - \cos \omega \tau + i\sin \omega \tau )}^2}{\Phi _{yz}}(i\omega ){\Phi _{zx}}(i\omega )} \end{array}} \right\} \end{array}\\ \begin{array}{l} - \left[ {\Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{xz}}(i\omega )} \right] \times \left\{ {\begin{array}{*{20}{l}} \begin{array}{l} \left[ {\Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{zx}}(i\omega )} \right] \\ \times \left[ {1 - \Delta z(1 - \cos \omega \tau + i\sin \omega \tau ){\Phi _{yy}}(i\omega )} \right] \end{array}\\ { + \Delta {z^2}{{(1 - \cos \omega \tau + i\sin \omega \tau )}^2}{\Phi _{yx}}(i\omega ){\Phi _{zy}}(i\omega )} \end{array}} \right\} = 0 \end{array} \end{array} \end{aligned}$$
(26)

The stability can be investigated by separating the characteristic equation of the system into real and imaginary parts and plotting its real and imaginary parts on a complex plane. Since the characteristic equation represents the closed-loop system, the process is stable if the polar plot does not encircle the origin.

In the papers [18, 19], for the given spindle speed and cutting depth, the cutter postures are divided into stable and chatter zones by Nyquist stability criteria and Floquet theory, respectively. However, due to the errors in calibrating cutting force coefficients and calculating CWE, and the error caused by using linear cutting law, the tool orientations located in the boundary region between stable and unstable zones may lead to chatter. Moreover, the limiting cutting depth will change with the change of tool orientation. In order to improve machining stability, a machining stability factor is proposed as an index to select RTOs. Based on Eq. 24, the machining stability factor for the machining system is defined as:

$$\begin{aligned} \left\{ {\begin{array}{*{20}{l}} {\zeta (x,z,\alpha ,\beta )=\dfrac{{m\cos \gamma (\alpha ,\beta )}}{2}\text {min}pos\left[ \begin{array}{l} R(E({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega )))\\ \left( {1+{{\left( {\dfrac{{I(E({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega ))}}{{R(E({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega )))}}}\right) }^2}}\right) \end{array}\right] }\\ {\omega =(1+\xi ){\omega _n},\xi \in [{\xi _{n,T,x}},{\xi _{n,T,y}},{\xi _{n,W}}],\omega \in [{\omega _{n,T,x}},{\omega _{n,T,y}},{\omega _{n,W}}]} \end{array}}\right. \end{aligned}$$
(27)

where minpos represents to calculate the minimum positive value of the function, \(E({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega ))\) represents to calculate the eigenvalue of the matrix \({\varvec{\Phi }}(x,z,\alpha ,\beta ,i\omega )\). Equations 24 and 27 show that the tool orientation with a bigger value of machining stability factor would lead to a greater limiting cutting depth, and machining chatter is less likely to occur. The selection of RTOs at key CL points can be expressed as an optimization problem as follows:

$$\begin{aligned} \begin{array}{*{20}{l}} {Optimization \ Goal: \ \zeta (x,z,\alpha ,\beta ) \rightarrow \max }\\ {s.t.\quad chatter - free\;condition\;(Nyquist\;criterion)} \end{array} \end{aligned}$$
(28)

where \(\zeta (\alpha ,\beta ) \rightarrow \max \) means to take the larger value that tends to the maximum, the optimization constraint condition of chatter-free is checked using Eq. 26 according to Nyquist criterion [27].

For calculating the stable region of tool orientation at the typical CL points, the sampling range and interval for the lead angle and tilt angle are selected. For a given tool orientation, the CWEs, cutting force coefficient, and other parameters are calculated, and the stability of the tool orientation is judged according to the Nyquist stability criterion. After the machining stability of the tool orientations in the sampling range has been checked, the boundary between the stable region and the chatter region can be obtained. Meanwhile, the machining stability factors for the tool orientations are calculated. Then, the tool orientation located in the stable region and with a larger cutting stability factor is selected as the RTO of the typical CL point.

After the RTOs at crucial CL points are selected, spherical QI is used to interpolate smooth tool orientations at general areas. For the given two vectors \({{\varvec{A}}_1}\) and \({{\varvec{A}}_n}\), a formula for spherical QI from \({{\varvec{A}}_1}\) to \({{\varvec{A}}_n}\), with parameter i moving from 2 to \(n-1\), can be obtained as [28]:

$$\begin{aligned} {{\varvec{A}}_i} = \frac{{\sin (\theta - \frac{{i - 1}}{{n - 1}}\theta )}}{{\sin \theta }}{{\varvec{A}}_1} + \frac{{\sin (\frac{{i - 1}}{{n - 1}}\theta )}}{{\sin \theta }}{{\varvec{A}}_n},\mathrm{ }i \in \left[ {2,n - 1} \right] \end{aligned}$$
(29)

where \(\theta =\cos ^{-1}({\varvec{A}}_{1}\cdot {\varvec{A}}_{n})\), and \({{\varvec{A}}_i}\) is the interpolated tool orientation. If \({{\varvec{A}}_1}\) and \({{\varvec{A}}_n}\) are close, a linear interpolation is used to avoid division by zero.

In the third step, the algorithms of checking chatter and adjusting tool orientation are used to verify and correct the generated tool orientations, respectively. If there is no chatter occurs for the CL data generated by the previous step, the tool orientations generated from Eq. 29 are used for five-axis CNC machining. If chatter appears, the chatter CL points are identified, assuming the chatter tool orientation is \((\alpha _i,\beta _i)\) at the ith chatter CL point. Next, the chatter tool orientation is adjusted to the chatter-free direction. The chatter-free tool orientation is determined so that the smallest tool orientation distance, \(f_{min}(\alpha ^c_{i},\beta ^c_{i})\), is achieved between the chatter tool orientation \((\alpha _i,\beta _i)\) and its candidate chatter-free tool orientation \((\alpha _{i}^c,\beta _{i}^c)\). The tool orientation adjustment can be presented as a minimization problem as follows:

$$\begin{aligned} \begin{array}{l} \min \quad {f(\alpha ^c_{i},\beta ^c_{i}) } = \left\{ {{{(\alpha ^c_{i}-\alpha _i)}^2} + {{(\beta ^c_{i}-\beta _i )}^2} } \right\} \\ s.t. \quad chatter-free\ condition\ (Nyquist\ criterion) \end{array} \end{aligned}$$
(30)
Fig. 3
figure 3

The block diagram of the procedures of generating chatter-free and smooth tool path

Fig. 4
figure 4

Tool path for Example 1 with the cutting depth of 0.6 mm

According to the Nyquist criterion [27], the constraint condition of chatter-free is checked by Eq. 26. The gradient method [29] is adopted to solve the optimization problem presented in Eq. 30. After a set of chatter-free tool orientations is determined at chatter CL points, these tool orientations are added to the RTOs list. The procedures of generating the tool orientations and checking the machining stability are carried out again until the tool orientations for all CL points are chatter-free. In this paper, the cutting depths are selected through simulation to ensure that chatter-free tool paths can be generated through tool orientation optimization. If the cutting depth is too large, cutting chatter may occur for all tool orientations, and then Eq. 30 has no solution. At this time, stable cutting can be ensured by reducing the cutting depth, adjusting the cutting speed, or increasing the rigidity of the cutting system.

The procedure of generating chatter-free tool orientations is shown in Fig. 3, it can be summarized as follows:

  1. 1.

    Select the typical CL points along the cutting path, get the stable tool orientation region by Eq. 26 based on Nyquist criterion, calculate machining stability factor by Eq. 27, select the tool orientation, and obtain the RTOs.

  2. 2.

    Interpolate smooth tool orientations at general areas from the RTOs by the QI algorithm as shown in Eq. 29.

  3. 3.

    Check machining stability at each CL point by Eq. 26 based on Nyquist criterion, if no chatter occurs, the tool orientations generated in the previous step are used for five-axis CNC machining.

  4. 4.

    If chatter occurs, the steepest descent method is used to solve (30) to determine the chatter-free tool orientations at the chattering CL points, and then add these tool orientations to the RTOs, go to step 2.

5 Simulations and experimental verification

The milling of the block workpiece (Fig. 4), the thin-walled part with curved surfaces (Fig. 9a), and the thin-walled blade (Fig. 17a) were carried out on a five-axis machining center JD GR200-A10SH with the maximum spindle speed of 28,000 rpm. The workpiece material is titanium alloy with a density of 4500 \(\mathrm {kg/m^3}\), Young’s modulus of 104 GPa, and Poisson’s ratio of 0.305. The 4-fluted ball-end mills with 8 mm diameter were used in the tests. An impact hammer Dytran Model 5800B, an accelerometer Dytran 3224A1, and the data acquisition system ECON-AVANT-8008 were used in the tests.

To identify the state of the machining process, the accelerometer was used to collect acceleration signals of the machining system, the sampling rate was set to 25600 Hz. The mobile roughness measuring instrument Masurf M300C was used to measure the surface roughness of blades. For each area, measurements were repeated three times and the average value was calculated. The occurrence of chatter is identified by checking the spectrum of the acceleration signals at frequencies close to the natural frequencies of the machining system but not coinciding with the tooth passing frequency (TPF) and its harmonics. Moreover, the chatter can be identified by the appearance of chatter marks on the machined surface.

5.1 Example 1 − milling of block workpiece

Fig. 5
figure 5

Measurement points of impact tests and measured FRFs of tool

Table 1 Identified modal parameters in x and y directions for the tool with the overhang of 48 mm

The FRFs of the tool were measured at three locations in x and y directions, as shown in Fig. 5. Due to the inability to attach the sensor to the tipping point of the tool, when measuring the dynamic parameters of the tool axis system, the sensor was attached to the position located approximately 4 mm above the tipping point of the cutter. The measurement points PX1/PY1, PX2/PY2, and PX3/PY3 were located at 4, 15, and 30 mm away from the cutter tip. For the x-direction test, the accelerometer was fixed at PX1, while the tool was respectively excited at PX1, PX2, and PX3. For the y-direction test, the accelerometer was fixed at PY1, while the tool was excited at PY1, PY2, and PY3. The identified frequency, damping ratio and mode shapes of the tool are presented in Table 1.

Table 2 The fitted polynomial coefficients of \({K_{tc}}\), \({K_{rc}}\), \({K_{ac}}\), \({K_{te}}\), \({K_{re}}\), \({K_{ae}}\)
Table 3 The convergence process of the absolute stability limiting cutting depth calculated by the proposed method (unit: mm)

The fitting model of the cutting force coefficient proposed in [26] is used to calculate the cutting force coefficient. The fitting model is written as:

$$\begin{aligned} \begin{array}{l} {K_x} = {W_0} + {W_1}z + {W_2}{z^2} + {W_3}{z^3} + {W_4}{z^4} + {W_5}n + {W_6}{n^2} + {W_7}{n^3},\\ (x = tc,rc,ac,te,re,ae) \end{array} \end{aligned}$$
(31)

where z is the position of the cutting element, that is, the distance from the cutting element to the tool tip along the axial direction, and the unit of z is mm; n is the spindle speed, and the unit of n is rpm. The values of \(W_0\), \(W_1\), \(W_2\), \(W_3\), \(W_4\), \(W_5\), \(W_6\), and \(W_7\) are shown in Table 2.

To determine the cutting depth used in the simulation, the method proposed in Section 3 is used to calculate limiting cutting depth. Meanwhile, to illustrate the advantage of the proposed method in Section 3, a comparison analysis was conducted between the proposed method and the method presented in reference [10] for calculating the limiting cutting depth. For the CL point \(A_1\) and the tool orientation of \((\alpha ,\beta )=(20^\circ ,20^\circ )\), the convergence process of calculating the absolute stability limiting cutting depth is depicted in Table 3 and Table 4. It shows that compared with the method presented in reference [10], the method proposed in Section 3 can quickly calculate the limiting cutting depth. Moreover, the method proposed in the reference [10] relies on the selected initial cutting depth and the increment of cutting depth \(\Delta a\), the method proposed in this article does not have this shortcoming.

In this part, the tool is flexible and the workpiece is rigid, the dynamic parameters of the workpiece are set to 0 in the calculation process. The chatter-free tool orientations at each crucial CL point are obtained using Eq. 26 according to Nyquist criterion [27]. The predicted feasible tool orientations and calculated stability factor at location \(B_1\) are shown in Fig. 6. According to Fig. 6, at location \(B_1\), the inclination angle of \((\alpha ,\beta )=(10^\circ ,5^\circ )\) is an unstable tool orientation, the inclination angles of \((\alpha ,\beta )=(25^\circ ,5^\circ )\) and \((\alpha ,\beta )=(25^\circ ,20^\circ )\) are the stable tool orientations but with different stability factors. Figure 6 shows that the stability factor for the tool orientation of \((\alpha ,\beta )=(25^\circ ,20^\circ )\) is bigger than that for the tool orientation of \((\alpha ,\beta )=(25^\circ ,5^\circ )\), this means the machining process with \((\alpha ,\beta )=(25^\circ ,20^\circ )\) is more stable than the machining process with \((\alpha ,\beta )=(25^\circ ,5^\circ )\).

Table 4 The convergence process of the absolute stability limiting cutting depth calculated by the method presented in reference [10] (unit: mm)
Fig. 6
figure 6

The predicted feasible tool orientations and the changing trend of machining stability factor with the changes of tool orientation for location \(B_1\)

Fig. 7
figure 7figure 7

Machined surfaces, measured acceleration signals and spectrum of the acceleration signals for milling of block workpiece with unoptimized tool orientations: a \(\alpha =10^\circ \), \(\beta =5^\circ \); b \(\alpha =25^\circ \), \(\beta =5^\circ \); c \(\alpha =25^\circ \), \(\beta =20^\circ \)

Fig. 8
figure 8figure 8

a Generation of chatter-free and smooth tool orientations for milling of block workpiece; b machined surface, measured acceleration signal and spectrum of the acceleration signal for milling of block workpiece with optimized tool orientations

Fig. 9
figure 9

a Dimension parameters of thin-walled part; and b meshing of thin-walled part and numbering of nodes; and c first three orders of modal shapes of thin-walled part

Fig. 10
figure 10

Measurement points of impact tests and measured FRFs: a thin-walled part; and b tool

To verify the accuracy of the predictions, three tests were carried out and the tool orientations along the whole tool path were fixed at \((\alpha ,\beta )=(10^\circ ,5^\circ )\), \((\alpha ,\beta )=(25^\circ ,5^\circ )\) and \((\alpha ,\beta )=(25^\circ ,20^\circ )\), respectively. The accelerometer was attached to the stator of the spindle to measure the acceleration signals. The machined surfaces, the measured surface roughness, the measured acceleration signals, and the spectral analysis of the acceleration signals are shown in Fig. 7. For spectral analysis, the signals within a period of time near the CL points \(A_1\), \(B_1\), and \(C_1\) are selected for Fourier transform to determine the cutting status. In Fig. 7, \(A_{1,Adj}\), \(B_{1,Adj}\), and \(C_{1,Adj}\) respectively represent a segment of acceleration signals in the adjacent areas of CL points \(A_1\), \(B_1\), and \(C_1\).

As can be seen from Fig. 7, at the location \(B_1\), the tool orientation of \((\alpha ,\beta )=(10^\circ ,5^\circ )\) leads to the chatter at frequency 2945 Hz, and produces a rough finished surface, the chatter is caused by the fourth-order natural frequency of tool at 2875 Hz or 2954 Hz; the tool orientations of \((\alpha ,\beta )=(25^\circ ,5^\circ )\) and \((\alpha ,\beta )=(25^\circ ,20^\circ )\) diminish the chatter, the acceleration spectrum is dominated by the TPF (433 Hz) which is caused by forced vibrations. Moreover, compared with the tool orientation of \((\alpha ,\beta )=(25^\circ ,5^\circ )\), the tool orientation of \((\alpha ,\beta )=(25^\circ ,20^\circ )\) leads to the smaller amplitude of acceleration signal. The amplitude of the acceleration signal represents the vibration intensity of the machining system. In addition, the tool orientation of \((\alpha ,\beta )=(25^\circ ,5^\circ )\) leads to chatter at locations \(A_1\) and \(C_1\), the chatter frequency (CF) is 2946 Hz which is caused by the fourth-order natural frequency of tool at 2875 Hz or 2954 Hz. The tool orientation of \((\alpha ,\beta )=(25^\circ ,20^\circ )\) leads to chatter at location \(A_1\) and the CF is 2964 Hz which is caused by the fourth-order natural frequency of the tool at 2875 Hz or 2954 Hz, but this tool orientation diminishes the chatter at location \(C_1\). These results mean that compared with the tool orientation of \((\alpha ,\beta )=(25^\circ ,5^\circ )\), the tool orientation of \((\alpha ,\beta )=(25^\circ ,20^\circ )\) leads to a more stable machining process. The above experimental results are in accordance with the simulation results.

The experimental results show that the CF during the milling process is somewhat different from the measured natural frequency as shown in Table 1. This is because the contact between the tool and the workpiece during the machining process is equivalent to applying a support to the tool at the tip position, the rigidity and the natural frequency of the tool are improved.

The spectral analysis indicates that the tool orientation of \((\alpha ,\beta )=(25^\circ ,5^\circ )\) and the tool orientation of \((\alpha ,\beta )=(25^\circ ,20^\circ )\) can guarantee the milling stability at location \(B_1\), however, these two tool orientations cannot guarantee the milling stability on the whole tool path. This is because the change of feed direction (F) along the curved tool path leads to the continuous change of CWE, which leads to the milling process being stable at location \(B_1\) while it is unstable at location \(A_1\). Hence, the tool orientations need to be replanned.

In order to demonstrate the proposed tool orientation optimization method, according to the predicted feasible tool orientations and calculated machining stability factors, the inclination angles of tool at locations \(A_1\), \(B_1\) and \(C_1\) are set to \((\alpha ,\beta )=(30^\circ ,15^\circ )\), \((\alpha ,\beta )=(25^\circ ,20^\circ )\), \((\alpha ,\beta )=(20^\circ ,25^\circ )\), respectively. The method proposed in Sect. 4 is used to generate the tool path. In the simulation calculation, the number of CL points is set to 20, and the number of CL points will be increased in the actual milling process. The tool orientations along the tool path are interpolated from the three initial RTOs using Eq. 29, and then, the machining stability is checked at each CL point. It can be found that chatter occurs at CL 7, and the inclination angle of tool orientation is \((\alpha ,\beta )=(26.5734^\circ ,18.4735^\circ )\). The gradient method is used to solve the minimization problem as presented in Eq. 30, the initial candidate chatter-free tool orientation is selected as \((\alpha ,\beta )=(28^\circ ,19^\circ )\), and the step-size is set as 0.25. After calculation, the chatter-free tool orientation at CL 7 is set to \((\alpha ,\beta )=(27.2867^\circ ,18.7368^\circ )\), then, this tool orientation is added to the RTOs. The adjusted tool orientations are generated using Eq. 29 through the new RTOs. There is no chatter that occurs after the first adjustment, the generated tool orientations are used for five-axis CNC machining. The process for generating chatter-free and smooth tool orientations for milling of block workpiece is shown in Fig. 8a.

The machined surface, measured acceleration signal and the results of spectral analysis for the test with the optimized tool orientations are displayed in Fig. 8. The acceleration signal spectrum is dominated by the TPF of 433 Hz which is caused by forced vibration. Compared with the original tool orientations (Fig. 7), the optimized tool orientations (Fig. 8a) can ensure the stable machining along the whole tool path and obtain a smooth machined surface.

For the milling of the rectangular workpiece, 20 CL points are discretized along the tool path during simulation calculation, the ranges of lead and tilt angles are respectively set as \(\alpha \in [0,45^\circ ]\) and \(\beta \in [0,40^\circ ]\), and the sampling interval is set to \(1^{\circ }\). For the method presented in the reference [17,18,19], it is necessary to calculate the feasible tool orientation domain of 20 CL points, the number of calculations is \(45*40*20\). For the algorithm proposed in this article, only 3 CL points need to be calculated, then the machining stability of 17 CL points is checked, and then an iterative calculation which contains 4 steps is performed to obtain the stable tool orientation, then the machining stability of 16 CL points are checked. The number of calculations is about \(45*40*3+17+4+16\). From the above analysis, it can be seen that the proposed algorithm can improve computational efficiency.

5.2 Example 2 − milling of thin-walled part with curved surfaces

In this part, the milling of the curved thin-walled part (Fig. 9a) is used to validate the proposed tool orientation optimization algorithm. The overhang of tool was set at 50 mm, the depth of cut was fixed at 0.3 mm, the spindle speed was set at 7000 rpm, and the feed rate was set at 260 mm/min. The ranges of lead and tilt angles are respectively set as \(\alpha \in [0,45^\circ ]\) and \(\beta \in [0,40^\circ ]\), and the sampling interval is set to \(1^{\circ }\) for both lead and tilt angles.

The modal shapes of the thin-walled part are calculated by the method proposed in [30], the meshed model of the workpiece is shown in Fig. 9b, the calculated first three orders of modal shapes are shown in Fig. 9c. The damping ratio should be extracted from the impact test. For the impact test performed on the thin-walled part, the positions of the response and excitation points are shown in Fig. 10a. The accelerometer was fixed at point 3, while the thin-walled part was respectively excited at six points using an impact hammer. The identified natural frequency and damping ratio of the initial thin-walled part is presented in Table 5. For the tool with the overhang of 50 mm, the FRFs of the tool were measured at three locations in x and y directions, as shown in Fig. 10b. The measurement points PX1/PY1, PX2/PY2 and PX3/PY3 were located at 4, 15 and 30 mm away from the tool tip. The identified frequency, damping ratio, and mode shapes of the tool are presented in Table 6.

For the machining along \(curve \ 32.5\), the machining system will change from flexible workpiece to flexible tool, and then to flexible workpiece. The machining along \(curve \ 32.5\) is selected to verify the effectiveness of the proposed method, and the CL points \(A_2\), \(B_2\), and \(C_2\) are selected as the typical locations. At the locations \(A_2\) and \(C_2\), the dominant vibration mode is the second-order mode of the workpiece; at the location \(B_2\), the tool is flexible while the workpiece is relatively rigid.

Table 5 Identified modal parameters for the initial curved thin-walled part
Table 6 Identified modal parameters in x and y directions for the tool with the overhang of 50 mm

The relatively flexible body of the machining system will change during the milling of cantilever-shaped thin-walled parts. The dominant vibration mode of the machining system is determined by the limiting cutting depth, the mode with the lower limiting cutting depth is the dominant vibration mode. The workpiece is divided into three regions, the region where the dominant vibration mode is the first-order mode of the workpiece, the region where the dominant vibration mode is the second-order mode of the workpiece, the region where the tool is flexible, as shown in Fig. 11. The material removal will cause a change in workpiece dynamics in the milling process. The dynamic parameters of the thin-walled part during the milling process are calculated by the method proposed in the paper [30]. In order to calculate the dynamics of the workpiece in process, according to the cutting depth of 0.3 mm, the workpiece near the cutting area is meshed into elements with length of 3 mm along the z direction, as shown in Fig. 12. The process of obtaining stiffness and mass matrices of the workpiece in the process is shown in Fig. 12, then the workpiece dynamics can be calculated by the matrices. The calculated first three orders of frequency for different machining steps are shown in Table 7, and the calculated first three orders of modal shape along tool path for different machining steps are shown in Fig. 13. Step 1 to Step 5 respectively represents the workpiece has been machined along the tool path with the distance of 10 mm, 20 mm, 30 mm, 40 mm, and 50 mm. To improve the calculation accuracy, the dynamics of the workpiece in the process as shown in Table 7 and Fig. 13 are used for simulations.

Fig. 11
figure 11

Regions of thin-walled part which partitioned by dominant vibration modes of machining system

The predicted feasible tool orientations and calculated machining stability factors at the locations \(A_2\) and \(C_2\) are shown in Fig. 14. Moreover, in order to illustrate the necessity of considering both the flexible workpiece and tool during the milling of thin-walled parts, the model only considers the flexible workpiece and the model considers both flexible workpiece and tool respectively used to calculate the feasible tool orientations and machining stability factors at location \(B_2\). The feasible tool orientations and machining stability factors calculated by the model only considering flexible workpiece are shown in Fig. 15a, the results calculated by the model considering both flexible workpiece and tool are shown in Fig. 15b.

At location \(B_2\), Fig. 15a shows that the inclination angle of \((\alpha ,\beta )=(10^\circ ,15^\circ )\) is a stable tool orientation; however, Fig. 15b shows that this inclination angle is an unstable tool orientation, and the inclination angle of \((\alpha ,\beta )=(20^\circ ,20^\circ )\) is a stable tool orientation. Since the tool is more flexible than the workpiece at location B, and the result presented in Fig. 15a only considers flexible workpiece, hence, the result presented in Fig. 15b should be used to select chatter-free tool orientations. To verify the simulation results, two tests along curve 32.5 were carried out, and the tool orientations were fixed at \((\alpha ,\beta )=(10^\circ ,15^\circ )\) and \((\alpha ,\beta )=(20^\circ ,20^\circ )\), respectively. The vibration signals of the thin-walled part were obtained by the accelerometer attached to the free-end of workpiece.

Fig. 12
figure 12

Process of obtaining stiffness and mass matrices of workpiece in process

The machined workpiece surfaces, the measured acceleration signals and the results of spectral analysis are shown in Fig. 16a. In the figure, \(A_{2,Adj}\), \(B_{2,Adj}\), and \(C_{2,Adj}\) respectively represents a segment of acceleration signals in the adjacent areas of CL points \(A_2\), \(B_2\), and \(C_2\). The tool orientation of \((\alpha ,\beta )=(10^\circ ,15^\circ )\) leads to chatter along the whole tool path. The spectrums of acceleration signal are dominated by different vibration modes along the tool path. At location \(A_2\), the chatter frequencies are 1330 Hz and 3267 Hz, the frequency of 1330 Hz is the chatter frequency of tool (CFT) which is caused by mode 1 of tool, the frequency of 3267 Hz is the chatter frequency of workpiece (CFW) which is caused by mode 2 of workpiece. Moreover, since the value of the spectrum of CFW is greater than that of CFT, the mode 2 of workpiece is the dominant vibration mode. At location \(B_2\), the chatter frequencies are 1330 Hz and 3262 Hz which are respectively caused by mode 1 of tool and mode 2 of workpiece. The mode 1 of tool is the dominant vibration mode. At location \(C_2\), the chatter frequencies are 1330 Hz and 3256 Hz which are respectively caused by mode 1 of tool and mode 2 of workpiece. The mode 2 of the workpiece is the dominant vibration mode. The changes of the natural frequency of workpiece are caused by the material removal during milling process. For the tool orientation of \((\alpha ,\beta )=(20^\circ ,20^\circ )\), the changes of CWE and workpiece dynamics along the tool path lead to the milling process being stable at location \(B_2\), while it is unstable at locations \(A_2\) and \(C_2\). At location \(A_2\), the vibration frequencies are 1400 Hz and 3269 Hz, the frequency of 1400 Hz is the harmonic of TPF, and the frequency of 3269 Hz is the CFW which is caused by mode 2 of the workpiece. At location \(B_2\), the vibration frequency is 1400 Hz which is the harmonic of TPF. At location \(C_2\), the vibration frequencies are 1400 Hz and 3259 Hz, the frequency of 1400 Hz is the harmonic of TPF, and the frequency of 3259 Hz is the CFW which is caused by mode 2 of the workpiece. At CL points \(A_2\) and \(B_2\), the simulation results are consistent with the test results. However, at CL point \(C_2\), there is some difference between simulation and test. Figure 14 shows that the tool orientation of \((\alpha ,\beta )=(20^\circ ,20^\circ )\) is located in the machining stability region, but chatter occurs during milling process as shown in Fig. 16a. This is because there are calculation errors in the dynamic parameters of the thin-walled part, CWE, etc. As a result, there is a certain error in the calculated stable tool orientation region. As the tool orientation of \((\alpha ,\beta )=(20^\circ ,20^\circ )\) is located at the boundary region between the stable region and chatter region as shown in Fig. 14b. The predicted stable tool orientation causes chatter during machining. Therefore, the tool orientation farther from the boundary should be selected.

Table 7 First three orders of frequency (Hz) of thin-walled part for different machining steps

The results presented in Fig. 16a are consistent with the simulation results that at location \(B_2\), the angle of \((\alpha ,\beta )=(10^\circ ,15^\circ )\) is an unstable tool orientation while the angle of \((\alpha ,\beta )=(20^\circ ,20^\circ )\) is a stable tool orientation. And, at location \(B_2\), the mode of tool is the dominant vibration mode, while at locations \(A_2\) and \(C_2\), the mode 2 of the workpiece is the dominant vibration mode. The simulation and test results indicate that it is important to consider both the flexible workpiece and flexible tool during milling of thin-walled parts.

Fig. 13
figure 13

First three orders of the modal shape of the thin-walled part along tool path for different machining steps

Fig. 14
figure 14

The predicted feasible tool orientations and calculated machining stability factors at the point on curve 32.5: a \(A_2\); and b \(C_2\)

Fig. 15
figure 15

The predicted feasible tool orientations and calculated machining stability factors at the location \(B_2\) on curve 32.5: a calculated by the model only considers flexible workpiece; and b calculated by the model considers both flexible workpiece and tool

Fig. 16
figure 16figure 16

Machined surface, measured acceleration signals and spectrum of the acceleration signals for milling of thin-walled parts with: a unoptimized tool orientations; b chatter-free and smooth tool orientations generated by the proposed method

To generate chatter-free tool orientations along tool path, according to the predicted feasible tool orientations and calculated machining stability factors, the lead and tilt angles of tool at locations \(A_2\), \(B_2\) and \(C_2\) are set as \((\alpha ,\beta )=(30^\circ ,20^\circ )\), \((\alpha ,\beta )=(20^\circ ,20^\circ )\), \((\alpha ,\beta )=(30^\circ ,20^\circ )\), respectively. After the tool orientations along the tool path are interpolated from the three initial RTOs, the machining stability is checked at each CL point. In this case, there is no chatter occurs for the tool orientations generated by the second step of the proposed method, it does not need iterative calculations. The generated chatter-free tool orientations along the tool path, the machined workpiece surface, the measured acceleration signals, and the results of spectral analysis of the signal are shown in Fig. 16b.

Figure 16 shows that compared with the tool orientations of \((\alpha ,\beta )=(10^\circ ,15^\circ )\) and \((\alpha ,\beta )=(20^\circ ,20^\circ )\), the optimized tool orientations lead the amplitude of the acceleration signal to decrease significantly. Moreover, for the milling with optimized tool orientations, the spectrum of the acceleration signal is dominated by TPF (466 Hz) and its harmonic (1400 Hz) which means the machining process is stable along the whole tool path. Both the result of the frequency spectrum of the acceleration response and the quality of the machined surface show that the optimized tool orientations can suppress chatter and improve the machining stability in five-axis ball-end milling of curved thin-walled part.

5.3 Example 3 − milling of thin-walled blade

 

Fig. 17
figure 17figure 17

Milling of thin-wall blade: a typical CL points, b stable tool orientation region and machining stability factors at CL point 2, c stable tool orientation region and machining stability factors at CL point 4; (d) chatter-free and smooth tool orientations generated by the proposed method

Fig. 18
figure 18

Comparison of surface morphology of thin-walled blades machined by different tool orientations

In this section, the proposed method is used for the milling of thin-walled blade, as shown in Fig. 17a. The lengths of the inlet and exhaust sides are both 45.0 mm. The thicknesses at the thinnest and thickest positions of the blade are 0.83 mm and 2.45 mm respectively, which is a twisted structure. The points 1, 2, 3, 4, 5, 6, 7, and 8 are selected as the typical CL points, as shown in Fig. 17a.

The calculated feasible tool orientation regions and machining stability factors at CL points 2 and 4 are shown in Fig. 17b and c. According to the calculated results, the tool orientations at the CL points 2, 3, 4, 6, 7, and 8 are set to \((35^\circ ,30^\circ )\), the tool orientations at CL points 1 and 5 are set to \((45^\circ ,30^\circ )\). Then, the proposed method is used to generate the optimized and smooth tool orientations along the tool path, as shown in Fig. 17d

The milling of thin-walled blade was carried out on the five-axis machining center JD GR200-A10SH. The blank was a rectangular workpiece, its size was 50 mm\(\times \)20 mm\(\times \) 70 mm, and its material was titanium alloy TC4.

The blades were cut according to the rough machining, semi-finishing machining, and finishing machining process. During rough machining, the peripheral milling method was used to remove most of the allowance; the spiral circumferential milling method was used in semi-finishing/finishing, the tool path can form a closed loop, and the tool path is smooth and consistent, which can improve machining efficiency. At the same time, the tool path is uniform and the tool path is easy to control.

The 4-fluted ball-end mills with a diameter of 8 mm and a nominal helix angle of \(40^\circ \) were used in the test, the tool overhang \(L=50\) mm. In rough machining, the cutting depth \(a_p=0.6\) mm, the rotation speed \(n=3000\) rpm, the feed speed \(f=360\) mm/min. In semi-finishing, the cutting depth \(a_p=0.4\) mm, the transverse feed \(a_f=0.2\) mm, the rotation speed \(n=6500\) rpm, and the feed speed \(f=760\) mm/min. In finishing machining, the cutting depth \(a_p=0.1\) mm, the transverse feed \(a_f=0.1\) mm, the rotation speed \(n=7670\) rpm, and the feed speed \(f=760\) mm/min. In order to show the effectiveness of the proposed method, the tool orientation of \(\alpha =10^\circ \), \(\beta =10^\circ \), and the optimized tool orientations as shown in Fig. 17d were used for milling.

Due to the limitations of experimental conditions, a contact acceleration sensor was used to measure the vibration acceleration signal during the cutting process. Since the workpiece was rotating with the workbench during the machining process, the acceleration sensor was fixed on the stator of the spindle to measure the vibration acceleration during the machining process. However, due to the small cutting amount during the finishing process, the cutting vibration amplitude at the location of the acceleration sensor was small, and coupled with the influence of external interference signals, the measured acceleration signal data was poor, so the measurement is not presented. The surface morphology and surface roughness of the machined workpiece are used to analyze the difference in results obtained by machining with unoptimized tool orientation and optimized tool orientation. The mobile roughness measuring instrument Masurf M300C was used to measure the surface roughness of blades. For each area, measurements were repeated three times and the average value was calculated.

The surface morphology of the workpiece machined by different tool orientations is shown in Fig. 18. For workpiece 1, the tool orientation is \(\alpha =10^\circ \) and \(\beta =10^\circ \), there are obvious vibration marks on the machined surface of the blade tip part. The optimized tool orientations were used to machine workpiece 2, and the blade surface transition is smooth and there are no chatter marks. The measured surface roughness of the area A1 on workpieces 1 is 1.253 \(\mu m\). The measured surface roughness of the area A2 on workpiece 2 is 0.447 \(\mu m\). The above results show that for the tip part of blade, the unoptimized tool orientation causes chatter and result in poor surface quality; while the process is stale for the machining with optimized tool orientation, and the surface quality is better. The vibration suppression strategy based on tool orientation optimization proposed in this article can effectively suppress the cutting chatter during the milling process of thin-walled blades and improve the surface quality of thin-walled blades.

6 Conclusions

A process mechanics based method is presented to generate chatter-free and smooth tool orientations for milling curved thin-walled parts. Firstly, a coupling dynamic model considering both the flexible tool and workpiece is presented in the TCS, the model can predict the cutting stability of the entire process of milling thin-walled parts. Then, a binary search algorithm based single-frequency method is presented to calculate limiting cutting depth. The method does not rely on the initial cutting depth and the increment of cutting depth which selected for calculation, the proposed method can expedite the convergence process for calculating the limiting cutting depth. In addition, an iteratively strategy of first generating smooth tool orientation through the RTOs at the typical locations, and then checking the machining stability and adjusting tool orientation is proposed to generate chatter-free tool orientations along tool path. During this process, a machining stability factor is presented as a criterion to select tool orientation, and the tool orientations have higher value of stability factor are selected as the RTOs. The proposed method only needs to obtain the chatter-free tool orientation regions at typical CL point. Moreover, for the thin-walled part studied in this paper, the proposed method can generate the chatter-free tool orientations without iterative calculation, the calculation process is rapid. The simulations and milling tests performed on both block workpiece and curved thin-walled part indicate that the proposed method can effectively generate chatter-free and smooth tool orientations, and improve the quality of machined surface.