1. Introduction
Magnetorheological finishing (MRF), a new and representative advanced optical manufacturing method [
1,
2,
3,
4,
5,
6,
7], has broad development prospects due to its advantages of strong stability in removal, high surface machining accuracy, and good surface and sub-surface quality [
8,
9,
10]. It has been widely used in the processing of high-precision optical components [
11]. Based on the Preston equation, MRF is a processing technique for correcting the surface error of optical components by presetting the trajectory, selecting the appropriate process parameters, and calculating the dwell time and corresponding residual error. Obtaining a highly precise dwell time determines the machining accuracy of the optical element.
Given that aspherical optics components can be used to correct phase difference, increase field of view, and improve image quality [
12,
13,
14], and given the developments in their design technology, aspherical optics has been widely used [
15]. However, due to the complexity of the surfaces of aspherical optical components and the fact that the requirements of modern optical systems regarding the surface accuracy, surface roughness, and subsurface damage of aspherical surfaces are more stringent, the corresponding manufacturing process is more difficult than that of spherical optical components [
16,
17,
18]. Most previous studies employed an iterative method to calculate the dwell time of magnetorheological finishing to realize component machining [
19] (pp. 25–29), but this method has problems related to low calculation accuracy and an obvious middle–high-frequency error [
20] (pp. 131–138). As a parallel algorithm, particle swarm optimization (PSO) has high efficiency and relatively few parameters. More importantly [
21] (pp. 12–15), it can be used to find the optimal solution in an iterative process [
22,
23,
24]. Therefore, in order to achieve high-precision magnetorheological finishing of optical components, PSO was introduced into the dwell time calculation in this study, and an optimization algorithm based on PSO was then proposed to explore the optimal solution in the global optimization process. This method is a dwell time optimization algorithm designed to improve polishing quality. Based on the iteration method, the PSO algorithm realized the optimal selection of the dwell time point, thereby achieving the goal of high-precision surface machining. The feasibility of the scheme was verified via simulation processing on an aspherical surface, error compensation, and an experiment, and the ideal result was obtained.
2. Calculation Method of Dwell Time
Since the basic model for solving the dwell time is the convolution of the desired material removal function and the dwell time generated by the grinding head, the high-precision calculation of the dwell time and the post-processing algorithm are crucial for ultra-precision NC machining [
25] (pp. 96–115).
The existing methods for determining dwell time include the Fourier transform method, the iteration method, and the linear equations method.
The Fourier transform method transforms a convolution operation into a product operation according to the equivalence between the convolution in the time domain and the product in the frequency domain. It requires the dwell points to be evenly divided. In addition, in order to ensure that the dwell time solution is not negative, the iterative parameters need to be adjusted several times. In recent years, the Fourier transform method has been widely applied to solve dwell time problems. Li et al. [
26] determined dwell time using Fourier transform, which greatly reduced the number of convolution calculation processes.
Given the positive correlation between the dwell time of the optical element surface and the removal of surface error, the iterative method refers to obtaining the dwell time through several iterations based on linear time-invariant material removal theory. This method is widely used in computer-controlled machining due to its advantages of requiring a small number of calculations, having a fast calculation speed, and allowing for the acquisition of an ideal solution result. Nevertheless, the method also exhibits disadvantages, including low precision and an obvious error at middle and high frequencies. Zhou [
27] (pp. 43–46) compared the characteristics of two iterative methods based on machining time and machining accuracy. Zhou [
28] (pp. 37–38) added a relaxation factor in the process of correcting dwell time via the pulse iteration method, which allowed the rate of residual error convergence to be controlled. Wang et al. [
29] proposed an adaptive iterative algorithm.
The principle of the linear equations method is to discretize the surface error and dwell time according to the motion trajectory and then solve the corresponding linear equation. This method has limitations in its application due to its high computational complexity, morbid matrix state, and slow computational speed. Luo et al. [
30] determined the dwell time in the computer-controlled optical surfacing (CCOS) of optical elements with large diameters using a non-negative least squares method based on a sparse matrix and researched the regularization of the method. Based on introducing the regularization weight factor into the dwell time matrix equation, Wu et al. [
31] added extra removal amounts to expand the freedom of the dwell time solution. Deng et al. [
32] used the Tikhonov regularization method to solve established linear equations about dwell time, and the regularization parameter was determined via the adaptive method without any prior knowledge. Zhou et al. [
33] proposed the application of the truncated singular value decomposition (TSVD) method to solve a dwell time linear model, balancing the relationship between the incompatibility of the solution and the residual surface error. Shi et al. [
34] solved a dwell time vector by using the non-negative least squares method. Dong et al. [
35] solved a matrix equation through the Tikhonov regularization and least squares QR decomposition (LSQR) methods, and a constrained LSQR method was presented to increase the robustness of the damped factor. Cheng et al. [
36] proposed a coefficient matrix method in which sparse matrix operations were used to construct and store linear equations, greatly reducing the memory required for computing dwell time.
In this paper, to solve the problems related to dwell time calculation encountered when using existing methods and achieve high-precision magnetorheological finishing of optical components, a particle swarm optimization (PSO) algorithm is introduced based on the pulse iteration method. Since the solution of the dwell time is a deconvolution process, for which there is no exact solution, and the dwell time is non-negative, exploring the optimal solution is therefore the main problem associated with the dwell time algorithm. The PSO method achieves the global optimization of the dwell time solution by judging the surface residual value; thus, each dwell time point can be optimally selected. Introducing a particle swarm into the dwell time calculation method offers the advantages of a fast calculation speed and high accuracy and can effectively improve the mid-spatial error.
4. Simulation Analysis
Off-axis aspherical mirrors 1
# and 2
#, with a diameter of 156 mm, a curvature radius of −425.15 mm, an off-axis quantity of 121.23 mm, and a K coefficient of −1, were used as the components to be machined. The XY grating scanning path was used to carry out the simulation of magnetorheological finishing. The process flow chart is shown in
Figure 2.
The initial surface error distribution
of 1
# is shown in
Figure 3a, and its surface peak–valley (PV) and root-mean-square (RMS) values were 1161.69 nm and 169.16 nm, respectively. The initial surface error distribution
of 2
# is shown in
Figure 3b, and its surface peak–valley (PV) and root-mean-square (RMS) values were 1694.05 nm and 187.27 nm, respectively. The removal function used in the machining process is shown in
Figure 4. The length and width of the removal function were 16 mm and 8 mm. In addition, the peak removal efficiency was 17.17 μm/min; the volume removal efficiency was 0.89 mm/min.
By substituting the surface error distribution and removal function of the components to be processed into Equations (4) and (5), the initial dwell time and corresponding surface residual error of the pulse iteration method can be obtained. For the initial dwell time , the dwell time distribution after particle swarm optimization can be obtained by optimizing according to Equations (9)–(11). Moreover, the residual error after using the optimization method can be calculated using Equation (12).
When the pulse iteration method was not used for optimization, the calculated residual error was taken as the surface error of the component to be machined and entered into the cycle for iterative calculation. When the particle swarm optimization algorithm was used, the calculated residual error was taken as the surface error of the product to be machined and entered into the loop for iterative calculation.
In the case where the optimization method was not used for 1
#, the residual error of the surface after seven iterations is shown in
Figure 5a. The corresponding peak–valley (PV) value of the surface was 912.14 nm, and the root-mean-square (RMS) value was 29.33 nm. Using the optimization method, the residual error of the surface was obtained after thirteen iterations (
Figure 5b). The corresponding peak–valley (PV) value of the surface was 911.53 nm, and the root-mean-square (RMS) value was 24.79 nm. In the case where the optimization method was not used for 2
#, the residual error of the surface after eleven iterations is shown in
Figure 5c. The corresponding peak–valley (PV) value of the surface was 1187.25 nm, and the root-mean-square (RMS) value was 38.88 nm. Using the optimization method, the residual error of the surface was obtained after fourteen iterations (
Figure 5d). The corresponding peak–valley (PV) value of the surface was 1045.61 nm, and the root-mean-square (RMS) value was 31.76 nm. Compared with
Figure 5a,c, the surface distributions corresponding to
Figure 5b,d were smoother, and the peak–valley (PV) and root-mean-square (RMS) values were also smaller, indicating that the optimization method can improve the surface accuracy of components.
By comparing the power spectral density (PSD) curves of the residual error of 1
# obtained using the particle swarm optimization and pulse iteration methods, it was found that, after using the optimization method, the PSD values decreased in the spatial frequency band of 0.05 mm
−1 to 0.16 mm
−1, indicating that the particle swarm optimization method can reduce the corresponding middle-and low-frequency surface errors during processing (
Figure 6a). Although the spatial frequency was improved below 0.05 mm
−1, the overall surface error peak–valley value (PV) and root-mean-square value (RMS) values were reduced; thus, this part could not be considered. By comparing the PSD curves of the residual error of 2
# obtained using the particle swarm optimization and pulse iteration methods, it was found that, after using the optimization method, the PSD values decreased in the spatial frequency band of 0.06 mm
−1 to 0.16 mm
−1, indicating that the particle swarm optimization method can reduce the corresponding middle-and low-frequency surface errors during processing (
Figure 6b). Although the spatial frequency was improved to below 0.03 mm
−1, the overall surface error PV and RMS values were reduced; thus, this part could not be considered.
In the case where the optimization method was not used for 1
#, the high-frequency error of the surface is shown in
Figure 7a. The corresponding peak–valley (PV) value of the surface was 156.63 nm, and the root-mean-square (RMS) value was 3.38 nm. The high-frequency error of the surface obtained using the optimization method is shown in
Figure 7b. The corresponding peak–valley (PV) value of the surface was 158.60 nm, and the root-mean-square (RMS) value was 3.45 nm. For the case where the optimization method was not used for 2
#, the high-frequency error of the surface is shown in
Figure 7c. The corresponding peak–valley (PV) value of the surface was 101.56 nm, and the root-mean-square (RMS) value was 2.30 nm. The high-frequency error of the surface obtained using the optimization method is shown in
Figure 7d. The corresponding peak–valley (PV) value of the surface was 100.82 nm, and the root-mean-square (RMS) value was 2.39 nm. Given that magnetorheological finishing is not sensitive to high-frequency information, the removal process is only applicable to low-frequency and mid-frequency errors. Therefore, the high-frequency errors obtained by filtering are similar regardless of whether they are processed using the pulse iteration method or the particle swarm optimization method.
Furthermore, the feed velocity distributions of the polishing wheel for 1
# obtained with and without the particle swarm optimization method were compared (
Figure 8a,b). Specifically, when the particle swarm optimization method was not used, the total dwell time distribution
obtained after the seventh iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 507.20 mm/min. In comparison, by using the particle swarm optimization method, the total dwell time distribution
obtained after the thirteenth iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 205.85 mm/min. The feed velocity distributions of the polishing wheel for 2
# obtained with and without the particle swarm optimization method were also compared (
Figure 8c,d). Specifically, when the particle swarm optimization method was not used, the total dwell time distribution
obtained after the eleventh iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 350.41 mm/min. In comparison, by using the particle swarm optimization method, the total dwell time distribution
obtained after the fourteenth iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 178.44 mm/min. The above observations indicate that after using the optimization method, although the peak–valley (PV) value of the polishing wheel’s feed speed obtained via solving did not change, the root-mean-square (RMS) value of the obtained polishing wheel feed speed decreased, and the speed distribution was gentler. Therefore, it can be concluded that the optimization method can render the polishing wheel’s feed speed more uniform, reduce instantaneous acceleration and deceleration movement, and ensure the stability of the machine tool. Thus, the particle swam optimization method reduced the introduction of mid-spatial errors and ensured the high precision of the processing of the surface.
In the process of solving the dwell time, it is necessary to set the expected value of the surface residual error. When the residual error does not reach the expected value, the dwell time needs to be superimposed k + 1 times until it reaches the expected value or the surface no longer converges, and then the number of iterations of the dwell time and the total dwell time can be obtained. After using the optimization method, both the dwell time of each point and the residual error changed, resulting in the iterations of the dwell time being different from those obtained without the optimization method.
Finally, the dwell time distributions of 1
# obtained with and without the particle swarm optimization method were compared (
Figure 9a,b). When the particle swarm optimization method was not used, the total dwell time required was 145.56 min. Meanwhile, when particle swarm optimization was used, the total dwell time required was 168.93 min. The dwell time distributions of 2
# obtained with and without the particle swarm optimization method were also compared (
Figure 9c,d). When the particle swarm optimization method was not used, the total dwell time required was 208.12 min. Meanwhile, when particle swarm optimization was used, the total dwell time required was 222.46 min. Consequently, in the case where there was no significant difference in dwell time, the surface accuracy of the component was improved by using particle swarm optimization.
In the area of the optimization of dwell time, the particle swarm optimization algorithm is a global optimization process. Therefore, to obtain a better surface, the optimization of each dwell point should be achieved during the calculation process, thereby achieving better control of the surface. However, this requires more iterations in the dwell time, thus increasing the processing time.
The simulation results for 1
# and 2
# are shown in
Table 1. It can also be concluded that with almost the same dwell time, particle swarm optimization can increase the uniformity of the feed speed of the polishing wheel in the machining process, reduce instantaneous acceleration and deceleration movement, and ensure the stability of the machine tool during machining. Therefore, particle swarm optimization reduced the introduction of mid-spatial error, subsequently improving the surface accuracy of the components after processing.
5. Experimental Verification
In order to verify the performance of the optimization algorithm, an experimental test was conducted with an aspheric mirror. The processing and testing platforms are shown in
Figure 10a,b, respectively. The processing equipment for the components was employed using a KDUPF-650 magnetorheological finishing machine (National University of Defense Technology, Changsha, China.). The precise detection of the surface was performed using LuphoScan-600HD (TAYLOR HOBSON, Leicester, UK), a high-speed non-contact 3D optical surface measurement system, and the scanning process was carried out using multi-wavelength interference (MWLI) technology. The components to be processed were aspherical K9 mirrors with a diameter of 148 mm, a curvature radius of 162.75 mm, and a K coefficient of −0.5319. An XY grating scanning path was used to carry out magnetorheological finishing. The magnetorheological slurry was mainly composed of a bi-phase base fluid, carbonyl iron particles (CIPs), additives, a pH regulator, and abrasive particles.
The initial surface error distribution of the component after the initial detection is shown in
Figure 11. The peak-and-valley (PV) value of the surface was 1545.13 nm, and the root-mean-square (RMS) value was 345.51 nm. The removal function used during processing is also shown in
Figure 4.
Before processing, the two processing methods were also compared via simulation. Because the initial surface distribution of the optical element used for processing was different from the simulated surface in
Section 3, based on the characteristics of magnetorheological finishing, only a small amount of surface error was removed in the machining process.
First, the feed velocity distributions of the polishing wheel obtained with and without the particle swarm optimization method were compared through simulation (
Figure 12a,b). Specifically, when the particle swarm optimization method was not used, the total dwell time distribution
obtained after the seventh iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 439.89 mm/min. In comparison, by using the particle swarm optimization method, the total dwell time distribution
obtained after the eleventh iteration was satisfied:
. The feed speed corresponds to a peak–valley (PV) value of 4000 mm/min and a root-mean-square (RMS) value of 124.74 mm/min. The above observations indicate that after using the optimization method, although the peak–valley (PV) value of the polishing wheel’s feed speed obtained via solving did not change, the root-mean-square (RMS) value of the obtained polishing wheel feed speed decreased, and the speed distribution was gentler. Therefore, the optimization method can increase the uniformity of the polishing wheel’s feed speed, reduce instantaneous acceleration and deceleration movement, and ensure the stability of the machine tool. Thus, particle swarm optimization reduced the introduction of mid-spatial error and ensured the high precision of the processing of the surface.
Secondly, the dwell time distributions obtained with and without particle swarm optimization were compared (
Figure 13a,b). When the particle swarm optimization method was not used, the total dwell time required was 153.73 min, while a dwell time distribution of 178.93 min was obtained using particle swarm optimization.
Then, after processing using the two methods, the surfaces were compared through simulation. For the case where the optimization method was not used, the residual error of the surface after seven iterations is shown in
Figure 14a. The corresponding peak–valley (PV) value of the surface was 1095.65 nm, and the root-mean-square (RMS) value was 301.44 nm. For the case where the optimization method was used, the residual error of the surface after eleven iterations is shown in
Figure 14b. The corresponding peak–valley (PV) value of the surface was 1059.10 nm, and the root-mean-square (RMS) value was 295.27 nm. Compared with
Figure 14a, the surface distribution corresponding to
Figure 14b was smoother, and the peak–valley (PV) and root-mean-square (RMS) values were also smaller, demonstrating that the optimization method can improve the surface accuracy of components.
Finally, the particle swarm optimization algorithm was used to process the optical components. The polishing wheel velocity distribution (
Figure 12b) and dwell time distribution (
Figure 13b) calculated by the above particle swarm optimization algorithm were tested to verify the process. The surface after processing is shown in
Figure 15, and the corresponding peak–valley (PV) and root mean square (RMS) values were 1526.55 nm and 312.35 nm, respectively.
The residual power spectral density curves of the simulation process using the particle swarm optimization (PSO-1) method and the pulse iteration method (PI) were compared with the residual power spectral density curve of the actual process using the particle swarm optimization method (PSO-2), as shown in
Figure 16. The results show that after using the optimization method (PSO-1), the PSD values in the frequency range of 0.03 mm
−1 to 0.37 mm
−1 were reduced compared to those obtained using the pulse iteration method (PI), indicating that the particle swarm optimization method can reduce the corresponding middle- and low-frequency surface errors in the machining process. Under the condition of a similar convergence rate and dwell time, lower PV and RMS values could be obtained after optimization. After the machining experiment, compared with the PSO-2 and PI curves, the PSD value of the spatial frequency in the band from 0.035 mm
−1 to 0.16 mm
−1 decreased, indicating that the optimization algorithm effectively reduced the middle- and low-frequency bands in the actual machining process. In addition, there was no significant difference in the PSD values between the values of the PSO-2 and PSO-1 curves in the spatial frequency band of 0.16 mm
−1 to 0.37 mm
−1, and this finding was attributed to an error in the actual machining process.
Table 2 shows the results obtained in the experimental process. The results indicate that the values obtained in the actual optimization process did not reach the theoretical value due to the existence of errors. Nonetheless, after using particle swarm optimization, the feed speed of the polishing wheel in the machining process was more uniform. Moreover, particle swarm optimization reduced instantaneous acceleration and deceleration movement and ensured the stability of the machine tool during machining, thus reducing the introduction of mid-spatial errors and improving the surface accuracy of the components after processing.