1 Introduction

The DED process involves transporting powder material to the substrate through an inert gas, typically argon (Ar) or helium (He). The laser head focuses on the desired position, emitting a laser beam from its center to heat the powder material at that location. This process results in the melting of the material above the substrate, which cools and solidifies into the desired shape. According to research conducted by the British Welding Institute [1], the DED process is ten times faster than the PBF process in terms of manufacturing speed and has a cost that is five times lower than that of the PBF process. Its advantages include the ability to repair workpieces, manufacture products with mixed material structures, and create large workpieces. These advantages make DED a highly desirable manufacturing process.

Research in the field of DED can be broadly classified into three directions. Firstly, the optimization of process parameters through experimental design methods. Secondly, the advancement of DED technology to manufacture products using different toolpath planning methods and study the product’s appearance. Lastly, research on composite materials by mixing powders or stacking two different materials alternately to investigate the mechanical properties and microstructural characteristics of the product.

In the field of experimental design and process parameter optimization, various studies have been conducted. For example, Guo et al. [2] used the central composite design (CCD) method in the response surface methodology (RSM) to perform experiments with four factors and five levels. The study aimed to explore the interaction of factors on surface roughness, deposition width, and melting area of rectangular geometry to understand the influence of process parameters on geometric characteristics. Ansari et al. [3] conducted two-factor and three-level experiments using the central composite design method, with energy density and powder density as control factors, to explore the most objective performance of process parameters through single-track deposition. They studied the deposition after wire cutting and observed the microstructure of the deposition zone (DZ), heat-affected zone (HAZ), and dilution zone to interpret the influence of process parameters on the deposition product from a microscopic perspective. Svetlizky et al. [4] used Al5083 as the experimental material and applied the central composite design method to carry out the DED double-track deposition experiment to study the influence of process factors on deposition height and dilution rate. They explored the interaction relationship between factors using the second-order analysis of variance (ANOVA) method and established a second-order regression model. The study found that the powder feed rate had a significant impact on the deposition height, and the interaction between powder feed rate and hatching space (HS) showed a significant effect. Lastly, Fujishima et al. [5] studied the influence of different process factors on the deposition results during multi-layer and single-track deposition. They used a high-speed camera to record the deposition process and observed changes in the melt pool between different parameters. The study found that improper parameter selection could cause product defects, such as incomplete melting due to low laser power, leading to cracks caused by unmelted powder particles wrapped in the deposited layer, and excessive energy density causing local vaporization to form pores called keyholes.

In order to industrialize the DED process, toolpath planning is an important area of research. Ribeiro et al. [6] investigated the effects of different deposition paths on the geometric appearance, microhardness, and microstructure of the product. Four toolpaths were used: linear, zigzag, contour, and chessboard. Two sets of experiments were conducted with different overlapping ratios. The results showed that the contour toolpath produced the best geometric structure and surface roughness performance. However, the deep valley effect was influenced by different overlapping ratios. Too small an overlap ratio resulted in deeper valleys and degraded surface roughness, while too large an overlap ratio increased material consumption and decreased cladding efficiency. Kaji et al. [7] studied the feasibility of additive manufacturing with multi-axis machining. The research verified the possibility of multi-axis machining by manufacturing a hollow suspended hemisphere and preventing deposition from being affected by gravity, viscous force, and surface tension. Oh et al. [8] used toolpath planning to repair damaged workpieces through the DED process. The feasibility and method of repairing workpieces with DED were verified, and the effects of thermal stress on the mechanical properties of the repaired product were observed. Li et al. [9] studied the influence of different groove geometries on DED process repair by grooving the damaged part before repair. The results showed that the trapezoidal groove enabled the laser head to be filled layer by layer, resulting in a slightly lower tensile stress of the repaired parts than that of the original material. However, the DED process still caused cracks when the repaired part cooled and shrank after repair, which further deteriorated the repairing effect.

When it comes to material properties, composite materials are increasingly being used in DED, and research on their structural and mechanical properties is emerging as a key area. In a study by Aydogan et al. [10], two different powders were mixed using the DED process, and mechanical properties were compared between products with different mixing ratios. The products were also heat-treated to assess changes in their microstructure. Results indicated that an increase in the proportion of nickel-based (Ni) material led to reduced cracks between products and a more uniform structure after heat treatment. In another study, Melzer et al. [11] used stainless steel SS316L and nickel-based superalloy IN718 for composite deposition. During the DED process, the material was alternately deposited into a three-dimensional rectangular workpiece, which was then subjected to tensile and miniaturized compact tension (MCT) tests. As the melting points of the two materials were different, different process parameters were used during manufacturing. When SS316L was deposited on IN718, high laser power caused the materials to melt simultaneously, resulting in good bonding at the deposition interface. Conversely, low laser power when depositing IN718 on SS316L led to poor bonding due to insufficient melting of the existing SS316L layer. Tensile and MCT tests showed that the interface layer with better bonding performed better overall. Lastly, Wei et al. [12] investigated the influence of different deposition methods on the mechanical properties and microstructure of a product, using copper alloy (Cu10Sn), stainless steel (SS316L), and tungsten (W) for deposition using the PBF method. The study found that direct deposition or mixed materials led to incomplete melting, causing unmelted powders to become trapped and leading to cracks and reduced mechanical strength. However, using nickel-rich stainless steel as an intermediate transition layer led to better bonding, as nickel-based metals have higher wettability and diffusion coefficients that enable better material combination.

In this study, we utilized the central composite design method to establish an experimental parameter table and designed a 3-factor 5-level experiment. Initially, a single-track experiment was conducted to confirm the single-track width and height of each set of process parameters. Next, the cladding efficiency, deposition rate, and porosity were selected as the quality factors to carry out multi-layer and multi-track experiments. The experimental results were analyzed by two-way ANOVA to identify significant factors and their interactions. Additionally, a regression analysis method was used to establish a regression model, enabling users to predict process quality, avoid unnecessary waste, and reduce costs.

To validate the optimization results of the DED process factors, we also conducted path planning research using NX CAM software. Specifically, we designed the nozzle geometry as the target workpiece and employed different toolpath planning methods. Using the optimal combination of process parameters obtained in the response surface experiments, we verified the reliability and formability of the parameters and successfully produced a geometric workpiece with an overhanging angle and torsion.

2 Materials and methods

2.1 Equipment and materials

The equipment used in this research for the DED system is displayed in Fig. 1. The laser head was installed on the Tongtai TMV-710A machine tool which is capable of five-axis simultaneous movement and equipped with a double rotary table. The laser system utilized the IPG-YLS-3000 fiber laser with a maximum power of 3000 W and a wavelength of 1070 nm. The laser spot diameter was 3 mm, and it had a flat-top energy distribution. The Precitec YC30 laser head used was a coaxial four-way powder feeding type with a hub that could adjust the laser focus position. The GTV PF 2/2 LC powder feeder was used to transport metal powder to the laser head. It included a rotating powder disk, and the transporting unit was measured in rpm, with 1 rpm equivalent to 10.08 g/min. Argon gas was used for powder supply and laser head protective gas.

Fig. 1
figure 1

DED system

Both the powder and substrate materials used in this study were nickel-based superalloy IN 718, a material known for its outstanding properties at high temperatures (up to 980 °C), as well as its excellent oxidation and corrosion resistance. It is widely used in the aeronautical sector [13]. The substrate geometry used in this study was L100 x W100 x H15 mm3. The IN 718 powder was generated by gas atomization, and its particle size distribution range was 53–150 μm. The detailed analysis results of the particle size distribution are displayed in Tables 1,  2, and 3.

Table 1 IN 718 powder particle size distribution
Table 2 IN 718 powder composition
Table 3 IN 718 powder composition

2.2 Design of RSM experiment

The response surface method is widely used in research fields such as electronics, machinery, agriculture, material science, food science, and industrial process improvement. It aids researchers in providing solutions to problems such as optimal product design, process improvement, and system optimization in scientific systems or industrial processes.

In this study, response surface methodology (RSM) was employed as the experimental design method, which encompasses various experimental design techniques. Central composite design (CCD) was chosen for experimental design in this study. CCD consists of corner points, axial points, and center points. Corner points represent experimental combinations generated by setting control factors at different levels in the experimental design. Axial points are selected to be higher and lower than the levels of control factors. To achieve rotatability in the experimental design, experiments are conducted at distances α from the center point (both ends) along the axis, where α is defined as follows:

$$\alpha=\sqrt[4]f$$
(1)

In this process, F represents the number of experiments in the corner point design, while the center point experiment consists of the median level of each control factor, serving as the midpoint of the control factor levels in the experimental design. To enhance experimental precision, center point experiments are typically repeated to reduce experimental errors.

The experimental procedure for response surface methodology is as follows: (1) Select control factors and define the experimental quality, (2) determine the levels of variation for control factors, (3) design an orthogonal array, (4) conduct experiments according to the orthogonal array, (5) record the quality of experimental results, (6) analyze the experimental results to determine the optimal combination of factors, and (7) perform verification experiments.

To explore the interaction effects of process parameters, laser power, powder feed rate, and scanning speed were chosen as control factors, and a multi-layer geometry with 8 tracks and 5 layers was used as an experimental product (as shown in Fig. 2). The purpose was to investigate the influence of different parameter combinations on three-dimensional products and the interaction relationships between parameters.

Fig. 2
figure 2

Schematic of RSM experiment workpiece

In the DED process, there are numerous factors that can significantly impact product quality. To eliminate the influence of these factors on experimental results, this study fixed the following parameters:

  • (1) Laser defocus distance

    The setting of the laser defocus distance is the relative position of the laser focus (FL) and deposition surface (FS) under the premise that the powder focus (FP) and FS are the same. As shown in the Fig. 3, positive/negative indicates the position above/below the deposit, while the value represents the distance. After conducting research, it was discovered that the deposition process could be repaired when the laser focus was located below the substrate. This enabled the surface of the workpiece to be filled to the same height. As a result, the laser focus distance was fixed at 2 mm below the substrate in this study.

    Fig. 3
    figure 3

    Schematic of laser defocus distance

  • (2) Overlap ratio

    During the DED process of multi-track geometric workpieces, tracks tend to overlap each other. As shown in the Fig. 4, the overlapping ratio can be adjusted by changing the hatching space distance. The formula for calculating the overlap ratio is as follows:

    $$Overlap\;ratio=\frac{W-H}W100\%$$
    (2)

    where W is the width of a single track, and H is the hatching space between the track and the center of the track. In this study, the overlap ratio is fixed at 60%.

    Fig. 4
    figure 4

    Schematic of overlap ratio

  • (3) Rising distance of laser head (Z-offset)

    When processing a three-dimensional workpiece with a multi-layer geometry, thermal deformation often occurs, causing the original deposition layer to shrink as the processing layers are stacked upwards. This results in the deposition height being below the set value, as shown in the Fig. 5.

    Fig. 5
    figure 5

    Schematic of thermal deformation

The definition of Z-offset is shown as follows:

$$Z-offset-H_1\cdot\frac{H_2}{H_1}=H_1\cdot D_h=H_1\cdot\left(1-\delta\right)$$
(3)
$$D_h\frac{H_2}{H_1}$$
$$\delta=\frac{H_1-H_2}{H_1}=1-D_h$$

while H1 is the height of the first layer. H2 is the height of the first layer after thermal deformation. Dh is the reduction degree of the height of the old layer when heated. δ is the shrinkage of the height of the old layer. According to previous research findings: “The shrinkage of the old layer height caused by thermal deformation is the same as the single layer deposition dilution d,” so this study set the laser head lift height at 50%.

After introducing the control and fixed factors, the experimental design was conducted using Minitab, an experimental design software. The central composite design method was employed to establish a response surface experiment with 3 factors and 5 levels. The design is presented in Tables 4, 5 and 6.

Table 4 Control factors and its level values
Table 5 Setting values of fixed factors
Table 6 Central composite design

2.3 Product properties

In the DED process, several problems and challenges remain to be addressed, including inadequate cladding efficiency, internal pores in the workpiece, and suboptimal surface roughness. Hence, this study focuses on improving product quality by optimizing cladding efficiency, deposition rate, and porosity using the response surface experiment method. This approach aims to identify the interaction between process parameters and determine the optimal combination of process parameters.

The following sections will introduce the definition of each product quality in detail:

  • (1) Cladding efficiency (CE)

    Cladding efficiency is defined as the ratio of the actual weight of the powder that is successfully deposited on the workpiece to the overall weight change of the substrate before and after processing. It indicates how effectively the powder is deposited on the workpiece during processing. The calculation formula of cladding efficiency is as follows:

    $$CE=\frac{W_{cald}}{W_{feed}}\cdot100\%$$
    (4)

    where Wclad is the increase of substrate weight after cladding and Wfeed is the weight of input powder, which is equal to the product of powder feed rate and cladding time.

  • (2) Deposition rate (DR)

    If cladding efficiency is the product quality set for the cost of material, then deposition rate is the target set for the cost of time. In this study, deposition rate is defined as the weight of powder deposited on the substrate per unit time. The formula of calculating the deposition rate is as follows:

    $$DR=\frac{W_{clad}}t\cdot60$$
    (5)

    where the unit of DR is g/min and Wclad is the increase of substrate weight after cladding. t is the processing time (Unit: sec).

  • (3) Porosity (Pt)

    In the DED process, pores are a critical product quality that can significantly affect the mechanical properties of the workpiece. Pores can form due to various reasons such as the entrapment of transport gas during the solidification process of the molten pool, or when the energy density per unit area is too high due to inappropriate process parameter selection, resulting in vaporization of the material and the formation of keyholes. These pores can have a significant negative impact on mechanical properties such as tensile strength and microhardness of the product. Therefore, reducing porosity is a crucial quality target for DED process optimization. As show in Fig. 6, optical microscope images were captured, and Image J software was employed to calculate pore areas in the specimen cross-sections.

Fig. 6
figure 6

Cross-section image

The formula of porosity is as follows:

$$P_t=\frac{\sum_{i=1}^nA_i}{A_C+A_M}\cdot100\%$$
(6)

where \(\sum_{\mathrm{i=1}}^{\mathrm{n}}{\mathrm{A}}{\mathrm{i}}\) is sum of cross-section area of pores, AC is the cross-section area of cladded material, and AM is the cross-section area of melt pool.

2.4 Optimization of RSM experiment

This study utilizes the response surface experiment method for multi-objective quality optimization proposed by Derringer and Suich [14] in 1980. Their procedure employs desirability functions to combine multiple qualities, where each response value yi is converted into a desirability function di, with 0 < di < 1. The desirability function is used to optimize multiple response surfaces and can be calculated using the weight geometric mean, which is defined mathematically as follows:

$$D=\left(d_1\cdots d_m\right)^\frac1m$$
(7)

where m is the number of response experiments, and the desirability function depends on the solution target, which is the same as the Taguchi experiment method. It is divided into three categories: larger-the-better, smaller-the-better, and nominal-the-best. The mathematical formula is defined as follows:

  • (1) Larger-the-better

    When the ideal target of the response value is the maximum response value, the desirability function can be calculated by the following mathematical formula:

    $$d=\left\{\begin{array}{c}0\\\left(\frac{y-L}{T-L}\right)^r\\1\end{array}\right.\begin{array}{c}y<L\\ L\leq y\leq T\\y>T\end{array}$$
    (8)
  • (2) Smaller-the-better

    When the ideal target of the response value is the minimum response value, the desirability function can be calculated by the following mathematical formula:

    $$d=\left\{\begin{array}{c}1\\\left(\frac{U-y}{U-T}\right)^r\\0\end{array}\right.\begin{array}{c}y<T\\T\leq y\leq U\\y>U\end{array}$$
    (9)
  • (3) Nominal-the-best

    When the ideal target of the response value is between the upper and lower limits of the maximum and minimum response values, the desirability function can be calculated by the following mathematical formula:

    $$d=\left\{\begin{array}{c}0\\\left(\frac{y-L}{T-L}\right)^{r_1}\\\left(\frac{U-y}{U-T}\right)^{r_2}\\0\end{array}\right.\begin{array}{c}y<L\\ L\leq y\leq T\\T\leq y\leq U\\y>U\end{array}$$
    (10)

    where T represents the target response value, U represents the maximum upper limit of the response value, and L represents the minimum lower limit of the response value. The variable r represents the relative importance of each quality, where r = 1 represents equal importance among the different qualities, and r > 1 means that the closer the response value is to the target value, the more important it is. Conversely, when 0 < r < 1, it means that the response value is less important. In this study, the importance of each quality is set to 1, assuming equal importance for all qualities.

Based on the above sections, this study has set the larger-the-better criterion for cladding efficiency and deposition rate, and the smaller-the-better criterion for porosity. The experiment results were optimized using Minitab software.

3 Results and discussion

The target workpiece was deposited according to the central composite design experiment table. To minimize the error in experimental results caused by heat accumulation during the deposition process, test pieces were deposited on two substrates alternately during processing. The experimental results are shown in the Fig. 7 and Table 7.

Fig. 7
figure 7

Image of RSM experiment: a run 1–10 and b Run 11–20

Table 7 Results of RSM experiment

3.1 Cladding efficiency

As shown in Table 8 and Fig. 8, based on the variance of the range of change, the significant degree of influence is as follows: powder feed rate (B) > laser power (A) > scanning speed (C).

Table 8 The average value of cladding efficiency at each level (unit: %)
Fig. 8
figure 8

Response graph of cladding efficiency

As laser power increases, the energy density also increases, which enhances the laser’s ability to melt powder per unit area. This leads to the melting of more powder materials and an improvement in cladding efficiency. Powder amount is the most significant factor affecting cladding efficiency. When the powder feed rate is increased, the cladding efficiency decreases significantly. When the powder supply is minimal, the powder material per unit area absorbs more energy, and the powder material can absorb energy uniformly and deposit on the substrate. However, when the powder supply is increased beyond a certain point, the laser’s melting ability becomes limited, and too much powder material sprayed cannot effectively absorb the laser energy. Consequently, the powder material is not completely deposited on the substrate, resulting in a decrease in cladding efficiency. Table 7 shows that the highest cladding efficiency is achieved when the powder amount is 0.3 rpm (Run 15). However, this small powder amount also leads to a smaller workpiece size, which negatively impacts the geometric structure. While scanning speed is a less significant controlling factor, the deposition efficiency is mainly dependent on the interaction between laser power and powder supply amount, and therefore, scanning speed does not have a direct impact.

The ANOVA analysis of cladding efficiency is presented in Table 9. The results indicate that the powder feed rate has the highest F value of 36.9703, suggesting that it is the most significant factor affecting cladding efficiency. On the other hand, the F values for laser power and scanning speed are 1.4841 and 0.8995, respectively, indicating that their influence is not as significant. Regarding the factor interactions, there is no apparent interaction among the three factors. However, the F value of the powder feed rate and scanning speed interaction is the highest, which is related to how the deposition efficiency is calculated in this study. Since the scanning speed affects the processing time, and the processing time affects the total powder supply, the interaction among the three factors has the most significant impact on cladding efficiency.

Table 9 ANOVA of cladding efficiency

3.2 Deposition rate

As shown in Table 10 and Fig. 9, based on the variance of the range of change, the significant degree of influence is as follows: powder feed rate (B) > laser power (A) > scanning speed (C).

Table 10 The average value of deposition rate at each level (unit: g/min)
Fig. 9
figure 9

Response graph of deposition rate

As the powder feed rate increases, the deposition rate gradually increases. The deposition rate is mainly affected by the powder feed rate and processing time. Therefore, when the powder feed rate increases, more powder enters the molten pool per unit time. The workpiece can obtain more material. According to the research of Svetlizky et al. [4], the amount of powder feed rate has a significant impact on the height of the workpiece. The main reason is that the powder feed rate affects the amount of material entering the molten pool. In turn, the molten pool can obtain more materials so that the workpiece can grow higher. In addition, as the laser power increases, the deposition rate is slightly affected. The main reason is that the laser power has the ability to melt powder at all levels, as shown in the experimental results of run 14 in the Table 7. When the laser power is fixed at 1400 W, the larger the powder feed rate, the better the deposition rate. Therefore, the increase in laser power is helpful to the melting ability of the material, but the powder feed rate is still the most significant factor affecting the deposition rate. The scanning speed has the least significant effect on the deposition rate; the main reason is that in this study, the change of scanning speed has little difference in the processing time. When the scanning speed increases, the amount of powder supplied per unit time decreases instead. In the case of small processing time changes, the reduction of powder feed rate has a more significant impact on the deposition rate.

The ANOVA analysis of the deposition rate is shown in the Table 11; the F value of the powder feed rate is as high as 728.0751, which means that its influence on the deposition rate is extremely significant. There is an interaction between laser power and powder feed rate (AB); the main reason is that the laser power affects the powder melting ability, and the two must cooperate with each other. There is also an interaction between powder feed rate and scanning speed (BC). The scanning speed not only affects the powder density, but also variance the overall processing time, resulting in changes in the total powder feed rate. Therefore, the coordination between the powder feed rate and the scanning speed is also very important.

Table 11 ANOVA of deposition rate

3.3 Porosity

As shown in Table 12 and Fig. 10, Based on the variance of the range of change, the significant degree of influence is as follows: laser power (A) > scanning speed (C) > powder feed rate (B).

Table 12 The average value of porosity at each level (unit: ‰)
Fig. 10
figure 10

Response graph of porosity

The laser power is the most significant factor, and the main reasons are as follows: (1) When the laser power is too large, the energy density will be too high, which will increase the energy per unit area, cause the material to vaporize locally, and then generate pores. This phenomenon is called the keyhole phenomenon. (2) During processing, when the inert gas used to transport the powder material is sprayed into the molten pool, a large laser power can result in a larger molten pool. If the gas does not leave the molten pool in time, bubbles may become trapped. Moreover, the laser power affects the energy density, leading to differences in processing temperature, varied cooling rates, and shortened gas evacuation times, all contributing to pore formation. (3) When the laser power is insufficient, the bond between the material and the substrate will be poor, and the material will not be completely melted in the substrate so that the unmelted powder particles will be wrapped in it. When the workpiece is cooled, it will be affected by thermal expansion. It will cause cracks, which will cause large-scale faults inside the material.

The scanning speed affects the length of the laser irradiation time per unit area. If the scanning speed is fast, the material will not completely melt and lose energy, and the energy received per unit area will decrease, which will make the material and the substrate bond poorly, resulting in crack. The powder feed rate does not have a direct effect on the porosity. In this study, the method of changing the powder feed rate is to adjust the rotation speed of the powder supply disk, and the gas flow rate of each level is a fixed pressure, so it has no significant impact on the formation of pores.

The variance analysis of each factor is shown in the Table 13; the F values of laser power and scanning speed are 20.1256 and 6.3481, which represent that the two control factors are significant factors. And there is an interaction between the three factors. The interaction between the powder feed rate and the scanning speed (BC) is the most significant, because the powder density affects the amount of material entering the molten pool. If there is too much powder material, the powder particles will not be able to receive energy uniformly so that the unmelted powder will be wrapped in it. The interaction between the laser power and the scanning speed (AC) affects the energy density. If the energy density is low, the ability of the molten pool to melt powder will decrease, and the substrate will be heated less, which will make the substrate cool faster, causing more gas to be discharged from the molten pool. This creates bubbles, as shown in Fig. 11.

Table 13 ANOVA of porosity
Fig. 11
figure 11

Image of bubble wrapped in the workpieces (Run 5)

3.4 Regression models

Through the factor response graph and ANOVA analysis, the degree of influence of the three factors on product quality was obtained. Then this study established a second-order polynomial regression model to verify the experimental results and establish a parameter prediction model. Since the units and levels of the three factors are different, each control factor must be normalized before the regression model is established to retain the level distribution of the factors and remove the unit to narrow the value range to [-1, 1]. The following is the numerical normalization calculation equation:

$$U_{Nor\_FK}=\frac{U_{FK}-\overline{U_F}}{Max\left(U_{FK}\right)-Min\left(U_{FK}\right)}\in\left[-1,1\right]$$
(11)

where UNor_FK is the normalized value of K level of control factor. UFK is the value before normalization of K level of control factor. \(\overline{U_{F}}\) is the average values of control factor. The comparison table between normalized factors and product quality is shown in the Table 14.

Table 14 Control factor after normalization and measurement result

The prediction models of each product quality are shown as below:

$$\begin{aligned}\mathrm{CE}&{}=0.475-0.0511\cdot\mathrm{A}-0.2667\cdot\mathrm{B}+0.0376\cdot\mathrm{C}\\&{}+0.0333\cdot\mathrm{A}\cdot\mathrm{B}+0.0528\cdot\mathrm{A}\cdot\mathrm{C}-0.1978\cdot\mathrm{B}\cdot\mathrm{C}\\&{}-0.0654\cdot\mathrm{A}^2+0.3541\cdot\mathrm{B}^2-0.0086\cdot\mathrm{C}^2\end{aligned}$$
(12)
$$\begin{aligned}\mathrm{DR}&{}=3.362+0.3689\cdot\mathrm{A}+2.3764\cdot\mathrm{B}+0.2155\cdot\mathrm{C}\\&{}+0.7457\cdot\mathrm{A}\cdot\mathrm{B}+0.3388\cdot\mathrm{A}\cdot\mathrm{C}-0.8409\cdot\mathrm{B}\cdot\mathrm{C}\\&{}-0.38\cdot\mathrm{A}^2-0.0196\cdot\mathrm{B}^2+0.0207\cdot\mathrm{C}^2\end{aligned}$$
(13)
$$\begin{aligned}P_t&{}=0.132-0.9477\cdot A+0.0485\cdot B+0.5308\\ &{} \cdot C\cdot1.2331\cdot A\cdot B-1.405\cdot A\cdot C-2.2221\\ &{} \cdot B\cdot C+0.8043\cdot A^2-0.6512\cdot B^2+0.443\cdot C^2\end{aligned}$$
(14)

The R2 values of the regression model of cladding efficiency, deposition rate, and porosity are 0.9461, 0.9879, and 0.7887 respectively. This means that the regression model established with the significant control factors of the two qualities as variables has a certain degree of explanatory power. And it can be used as a tool for preliminary prediction of deposition efficiency in the process. The follow-up of this study will analyze the relationship between the experimental results and the prediction model in detail in Chapter 4.

3.5 Optimization of RSM experiments

Since the quality criteria of each product are not the same, the optimal process parameters for each quality are also different. Therefore, in order to obtain optimized parameter combinations for each quality, this study uses Minitab software for parameter optimization. Before optimization, it is also necessary to normalize each control factor to avoid unification of the optimization standard due to different unit magnitudes. The level of each group of control factors is planned between [-1, 1], as shown in Table 14. The parameter optimization of the response surface method introduced in Section 2.4 is used for calculation. The cladding efficiency and deposition rate are based on the lager-the-best criterion, and the porosity is based on the smaller-the-best criterion.

By optimizing the process parameters through Minitab, the optimal solutions for the three product qualities are obtained, as shown in the Table 15. The laser power is 1800 W, the powder feed rate is 0.8 rpm, and the scanning speed is 12 mm/s. The subsequent Chapter 4 will conduct verification experiments to confirm the correctness of the optimization results.

Table 15 Optimal process parameters calculated by Minitab

4 Verification experiment and microstructure analysis

4.1 Design of verification experiment

According to the literature review and previous laboratory research results, the optimization of laser power is different from the previous laboratory setting. Considering that in the actual processing process, in order to avoid the overheating of the workpiece and the waste of energy, this study uses a one-factor-at-a-time experiment (OFAT experiment) to fine-tune the laser power. To assess the optimal laser power under identical powder supply and scanning speed conditions and concurrently validate the process parameters determined by Minitab, this study used factor combinations that had been previously validated in the laboratory as controls. The laser power was 1000 W, the powder feed rate was 1.1 rpm, and the scanning speed was 7 mm/s. Similarly, a rectangular block with a length of 25 mm, a width and a height of 8 tracks, and 5 layers is processed for analysis, and the experimental design is shown in the Table 16.

Table 16 Design of verification experiment

4.2 Results of verification experiment

The verification experiment results are shown in Table 17, where it can be found that the optimized parameters (V2–V6) have been greatly improved compared with the previous process parameters (V1) in the laboratory. Prove that the parameter optimization experiment results of the response surface experiment method used in this study are correct and effectively optimize product quality. As shown in Fig. 12, compared with the workpieces manufactured by the parameter combination used in the previous laboratory, the V1 workpiece has a large number of pores, and there are a large number of sticky particles on the surface of the workpiece, and the cladding efficiency and porosity are worse than the V3 process. Based on the results of the verification experiment, the V3 process has the best product quality.

Table 17 Results of verification experiment
Fig. 12
figure 12

Image of cross-section of verification experiment: a V1 and b V3

The results of the laser power corresponding to the quality of each product are shown from Figs. 13, 14, 15. Through the one-factor-at-a-time experiment, the V3 process parameter combination has the best process quality. Therefore, this study selects the combination of V3 process parameters as the optimal process parameters, including laser power 1700 W, powder feed rate 0.8 rpm, and scanning speed 12 mm/s. The subsequent chapter 5 will use this process parameter to actually manufacture the workpiece product to verify the reliability and practicability of the parameter.

Fig. 13
figure 13

Variation trends of cladding efficiency under adjusting laser power

Fig. 14
figure 14

Variation trends of deposition rate under adjusting laser power

Fig. 15
figure 15

Variation trends of porosity under adjusting laser power

Based on the analysis in the preceding section, this study normalizes the verification experiment data within the range of [-1, 1] and incorporates it into the regression model established in Chapter 3. The objective is to calculate and compare the errors between the predicted values from the experimental model and the actual experimental data, assessing the predictive capability of the regression model.

As shown in Table 18, it can be found that the average error of cladding efficiency between the predicted value and the actual value is 6.98%, indicating that the regression model has excellent quality prediction ability and can be used as one of the methods for predicting product quality before future experiments.

Table 18 Results of cladding efficiency comparison

As shown in Table 19, it can be found that the average error of deposition rate between the predicted value and the actual value is 4.94%. And the error value of each group is not more than 11%. It means that this regression model has excellent quality prediction ability and can be used as one of the methods to predict product quality before future experiments.

Table 19 Results of deposition rate comparison

As shown in Table 20, it can be found that the average error of porosity between the predicted value and the actual value is 36.1%, which is the highest error among the three regression models. The reason is that the porosity is significantly affected by various control factors, and the interaction between factors will affect the porosity, so it is very difficult to accurately predict the porosity. In the past research [15] of our laboratory, the prediction error of porosity reached 358%, and the prediction accuracy was not very satisfactory. The main reason was that the interaction between factors was not considered in the experimental design, so too many interference factors were not calculated. In this study, the response surface experiment method was used to incorporate the interaction between factors into the calculation. From the research results in Chapter 3, it can be found that there is a significant interaction between the factors. Therefore, when establishing a prediction model, compared with previous studies, the error amount significantly reduced, and the accuracy still reaches 70%, so it can still be used as one of the methods for predicting product quality before the experiment.

Table 20 Results of porosity comparison

5 Toolpath planning and parts fabrication

In order to verify the reliability and practicability of the parameters in the above chapters, this study started the research on deposition path planning and manufactured workpieces by verifying the optimal combination of process parameters in experiments. While workpiece modeling, toolpath planning and machine simulation are all carried out on NX CAM software, the version used is NX 1953.

The overall process of this study is summarized as follows: (1) Use CAD to establish workpiece and machine models; (2) use CAM to plan the deposition path; (3) combine the generated workpiece model and path with the machine model for machine simulation verification and correction of tool paths; (4) use post-processing to translate the original path into NC code that can be executed on the machine and add the laser M code customized by the machine; (5) when the laser function is not turned on, run on the machine to confirm that the NC code is correct; (6) turn on the laser function to start making workpieces; and (7) analyze the deposition results. The experiment flow chart is shown in Fig. 16.

Fig. 16
figure 16

Flowchart of toolpath experiment

5.1 Part geometries

This research intends to establish a nozzle structure. The workpiece has characteristics such as tilting, twisting, and suspension. Therefore, it is necessary to combine five-axis simultaneous machining in manufacturing. According to the research of Shi et al. [16], when three-axis machining is used to manufacture inclined workpieces, there will be a step phenomenon on the surface of the workpiece. When the Inclined angle is too large, the workpiece will collapse. Therefore, it is necessary to carefully calculate the inclination angle during processing. The multi-axis synchronous processing can keep the processing plane perpendicular to the laser head, and there will be no step effect when manufacturing inclined workpieces, and the inclination angle of the workpiece can be larger.

The target workpiece of this research design is shown in the Fig. 17. The workpiece design height is 49 mm, the diameter of the bottom circle is 30 mm, and the diameter of the top circle is 70 mm. The manufacturing parameters used is from the research results in Chapter 4, as shown in the Table 21.

Fig. 17
figure 17

Schematic of target workpieces (unit: mm)

Table 21 Process parameter of toolpath experiment

5.2 Toolpath planning

In the DED process, the machining process often responds to different geometric shapes, resulting in the path not being continuous. Therefore, whenever the tool is moved to the next starting point, the machine needs to switch on and off the laser frequently, and the acceleration and deceleration of the starting and ending points also cause depressions or protrusions on the surface of the workpiece. The spiral rising method has continuous processing characteristics. During processing, the initial layer will be deposited for one week, and then the Z-axis height will be raised simultaneously during the deposition process for several weeks, until the preset height and then return to the level for the next week of deposition. This solves the problem of frequent switching of lasers required for the separation of each layer of the path. There are no breakpoints in the processing process, and workpieces with relatively flat surfaces and smooth side walls can be manufactured, as shown in the Fig. 18. The target workpiece of this research adopts the “spiral method” as the toolpath planning method.

Fig. 18
figure 18

Schematic of spiral toolpath

5.3 Fabrication results of target part

In this study, the optimal combination of process parameters is used. First, a single-track single-layer is produced to obtain the width and height of the single-track of the optimal process parameter combination. The target workpiece processing parameters are set as shown in the Table 22.

Table 22 The setting of process parameters for fabricating target workpiece

The deposition results are shown in the Fig. 19 and Table 23. When the target workpiece is deposited to about 90 layers, the surface of the workpiece begins to collapse obviously, and the height of the workpiece gradually fails to keep up with the design height, resulting in the laser defocus not in the processing position. In the end, subsequent workpieces cannot continue to grow. Therefore, the processing is suspended at the 105 layers.

Fig. 19
figure 19

Image of first toolpath experiment: a front view and b top view

Table 23 Results of first toolpath experiment

In this study, the reasons for the deposition failure are summarized as follows:

  1. (1)

    By using the spiral rising method, the laser will be turned on during the processing until the five-layer processing is completed, leading to excessive heat accumulation. As a result, thermal shrinkage occurs on the surface of the workpiece, and the deterioration of the surface roughness affects the laser defocus, leading to poor deposition result. The height of the workpiece gradually falls behind the design height until the laser shifts and the deposition fails.

  2. (2)

    Another reason is related to the Z-offset setting. It can be found from the NX software that the designed height of each layer is along the positive Z-axis of the workpiece. However, when processing irregular geometric workpieces with overhangs and twists, the actual deposition height exceeds the design height, as shown in Fig. 20. As a result, the laser head is lifted too much, and the deposition speed of the workpiece cannot keep up with the lifting speed, making the laser gradually defocused.

Fig. 20
figure 20

Schematic of deposition height greater than design height

In order to improve the error of the height setting of the above NX software, in this study, the “Mixture Z-offset” setting is used to process the target workpiece, as shown in the Fig. 21. The workpiece is manufactured with Z-offset 50% between the 1 layer and the 70 layers. From the 71 layers to the 100 layers, due to the increased overhang angle and twist of the workpiece, the Z-offset is reduced to 30% to ensure that the deposition height is equivalent to the lift height. From the 101 layers to the 150 layers, the Z-offset is restored by 50% to save processing time and material consumption, so as to take into account the cladding efficiency and deposition rate, and at the same time ensure smooth processing of complex geometries. The parameter settings are shown in Table 24.

Fig. 21
figure 21

Schematic of “Mixture Z-offset” setting

Table 24 Processing parameter of “Mixture Z-offset”

After improving the engage movement and mixture Z-offset settings, the target workpiece was successfully manufactured. As shown in Fig. 22 and Table 25, the contour of the workpiece is smooth and even, and there are no obvious defects or cracks between layers. The cladding efficiency is 67.15%, and the deposition rate is 5.42 g/min. It proves the reliability and practicability of the optimized process parameter combination in this research, with proper toolpath planning, which can produce high-efficiency and high-quality product workpieces.

Fig. 22
figure 22

Image of final toolpath experiment: a front view and b top view

Table 25 Results of final toolpath experiment

6 Conclusion

This study optimized the parameters of the directed energy deposition (DED) process using response surface methodology and central composite design. By analyzing three key process factors, i.e., laser power, powder feed rate, and scanning speed, the following conclusions were drawn:

  1. (1)

    Cladding efficiency is primarily influenced by the powder feed rate, while deposition rate is mainly controlled by the powder feed rate, and porosity is primarily regulated by laser power.

  2. (2)

    In the analysis of deposition rate as a quality parameter, a significant interaction between powder feed rate and scanning speed is observed. This interaction is primarily attributed to the influence of powder density on the amount of material deposited in the molten pool. In the analysis of porosity as a quality parameter, a strong interaction between powder feed rate and scanning speed is evident. This is mainly due to an excess of material entering the molten pool, resulting in the entrapment of unmelted powder, which forms pores and leads to an increase in porosity.

  3. (3)

    Through regression analysis to establish a quality prediction model. The R2 values of cladding efficiency, deposition rate, and porosity are 0.9461, 0.9879, and 0.7887 respectively. It represents the predictive model with excellent explanatory power. After verifying the experimental analysis results, the three quality prediction models can effectively predict product quality.

  4. (4)

    Utilizing parameter optimization through response surface methodology, we obtained the optimal process parameter combinations for cladding efficiency, deposition rate, and porosity. Following validation experiments, these optimized parameters were applied to actual workpiece manufacturing, confirming their reliability and practicality.

  5. (5)

    Through the construction of the nozzle geometry, we validated the reliability of optimized process parameters. Additionally, by improving tool paths and implementing a “mixture Z-offset” machining method, challenges such as starting point collapse and processing steep overhang angles were addressed, providing a solution for manufacturing complex geometries.