Introduction

NiTi alloy with a near equal atomic ratio is often used in aerospace, communication, naval ships, and medical devices due to its good shape memory effect or super-elasticity, high wear-resistant performance and superior corrosion resistance1,2,3,4,5. It is mainly composed of high-temperature austenite (B2) and low-temperature martensite (B19’), which endow it with the shape memory effect by the solid-state transformation between the two phases1,4,5. However, the poor processability of NiTi alloy substantially restrict its extensive application6,7. Therefore, it is necessary to seek a reliable preparation method for NiTi alloy.

Additive manufacturing, commonly known as 3D printing, is a kind of near-net forming technology, which uses computer-aided system to discretize the three-dimensional structure of components into two-dimensional data model, and uses the method of limiting the accumulation of raw materials and the melting path of heat source to realize the layer-by-layer accumulation of components8,9,10,11,12. In order to solve the difficult machining problem of NiTi alloy, additive manufacturing can be adopted to create integral formation of complex components. At present, the most widely used additive manufacturing technologies are selective laser melting (SLM) and electron beam melting (EBM)13,14,15. The corrosion behavior of SLM Ti–6Al–4V alloy was studied by Dai et al. and they found that the corrosion resistance of the alloy was significantly lower than that of traditionally processed Grade 5 alloy, and this was mainly attributed to a large amount of acicular α’ phase and a small amount of β-Ti phase15. Furthermore, by increasing the heat treatment temperature, the metastable acicular α’ phase was eliminated, and the plate-like α phase and the lamella α + β in the SLM Ti–6Al–4V alloy was obtained. However, a decrease in corrosion resistance was recorded due to the increased grain size with the elevated heat treatment temperature13. In addition, it was reported that the Ti–5Cu alloy prepared by SLM had many inhomogeneous Ti2Cu phases and there also existed some α’ phases containing rare-earth elements at the boundary of the molten pool, which led to the decrease in corrosion resistance16. Compared with the SLM alloys, the EBM materials are usually prepared in a high vacuum environment, which can effectively prevent the introduction of O, N, and other impurity elements17. Meanwhile, EBM has the preheating of the fabricating substrate and the powder, and the preheating can significantly reduce the internal defects and the residual thermal stress of samples, thereby improving the mechanical properties and corrosion resistance18,19,20,21. Some researchers reported that the Ti–6Al–4V alloy produced by EBM had higher corrosion resistance compared with the wrought Ti–6Al–4V alloy, and they attributed it to the higher fraction of β phase and the remarkably refined lamellar α + β phases20,21. Gai et al. monitored the change of electrochemical corrosion behavior with the pore depth of a porous Ti–6Al–4V alloy fabricated by EBM in situ, and found that the deep pore position of the EBM sample demonstrated superior corrosion resistance18. However, to the best of our knowledge, the corrosion behavior of NiTi alloy prepared by EBM has not been reported.

The corrosion resistance of NiTi alloy made by EBM should be closely related to the internal defects including pores and cracks22,23. By adjusting the fabrication parameters, the internal structural defects of alloys can be optimized to improve their corrosion resistance. Among the EBM fabrication parameters, focus offset (FO) and speed function (SF) are two key parameters. During the fabrication process of EBM, some important fabrication parameters such as the transverse displacement rate of electron beam cannot be directly changed, but they can be indirectly controlled by adjusting the parameters of FO and SF24,25,26. With regard to FO, it is the additional current generated by the electromagnetic coil, which is the offset of the electron beam from the zero position of the focusing plane and controls the volume of the molten pool24,27. Changing the value of FO is a convenient way to adjust the type and number of internal defects27. With respect to SF, it is an index representing the relationship between the scanning rate of electron beam and the current on focusing plane, by which the molten pool depth can be kept relatively constant during the whole fabricating process regardless of the change in electron beam current. That is to say, when the electron beam current increases, the scanning rate of the electron beam increases accordingly to offset the influence of the change in electron beam power28. With other parameters fixed, the increase of FO will lead to an increase in spot size and a decrease in energy density. When the electron beam current is determined, the scanning rate of the electron beam increases and the energy density decreases with the increase of SF24. Therefore, the changes of FO and SF can significantly affect the defects in NiTi alloy fabricated by EBM, and further influence the corrosion behavior of NiTi alloy. Up to now, there is no systematic research on the influence of fabrication parameters on the corrosion behavior of EBM NiTi alloy.

Herein, the NiTi alloy samples were fabricated by EBM with variation in FO and SF. The phase composition and surface morphology of EBM NiTi alloys were characterized by X-ray diffraction (XRD) and scanning electron microscopy. The type and distribution of defects in different NiTi alloys were detected using X-ray micro-tomography system. The corrosion behavior of EBM samples with different fabrication parameters was evaluated by electrochemical impedance, potentiodynamic polarization, and Mott–Schottky techniques, and the influence of pores and cracks on the corrosion resistance of EBM NiTi alloys was discussed in detail. This research provides some important insights for the preparation of NiTi alloy with superior corrosion resistance by EBM.

Results and discussion

Microstructure and phase composition of NiTi alloys

Figure 1a shows the morphology of NiTi powders selected for EBM. As observed, the morphology of powders is spherical with relatively smooth surfaces, although a few small satellite powders are adhered to the surface. The size distribution of the powder as shown in Fig. 1b ranges from 53 to 106 μm. The average diameter (D50) of the powder is about 62.48 μm. With the cumulative volume percent distribution of powder reaching 10% (D10) and 90% (D90), the corresponding diameters are 45.18 μm and 82.17 μm, respectively. It should be noted that the powder with this size range showed superior fabricating performance of titanium alloy in previous research17. XRD results demonstrate that the alloy powder is mainly composed of B19’ and NiTi2 phases (Fig. 1c), and the DSC curve of the powder is presented in Supplementary Fig. 1. Furthermore, seven kinds of NiTi alloys are prepared by adjusting different EBM fabrication parameters using the alloy powder, and the XRD results of different EBM NiTi alloys are shown in Fig. 1d. Obviously, the phase composition of the different NiTi alloys with changed FO and SF remains consistent, and all samples only contain B19’ phase and NiTi2 phase, which is consistent with the used NiTi alloy powder. It should be noted that the testing plane for XRD is the building direction plane, and no obvious B2 phase is recorded probably due to its low content, therefore displaying a different result compared with the result perpendicular to the building plane which has some small B2 peaks. Since the phase composition of all samples is the same, a representative image of scanning electron microscope (SEM) for S5 is shown in Fig. 1e (the detailed surface morphologies perpendicular and parallel to the building direction of S1, S5 and S7 are displayed in Supplementary Fig. 2 to Supplementary Fig. 6). It can be seen that there are two different phases with significant color differences, where the black dot corresponds to the NiTi2 phase and the other represents the B19’ phase based on the analysis of XRD. Furthermore, the microstructure of S5 is characterized by transmission electron microscope (TEM), as displayed in Fig. 1f. The results of bright-field image show obvious lath distribution and a large number of dislocations between the laths are recorded. The selected area electron diffraction (inset diagram in Fig. 1f) indicates that these bright laths are B19’ twins, which are similar to the microstructure of the traditional wrought NiTi alloy29.

Fig. 1: Microstructure and phase composition of NiTi powders and EBM NiTi alloys.
figure 1

a SEM morphology, b size distribution, and c XRD phase composition of NiTi alloy powder; d XRD phase composition of different EBM NiTi alloys, e backscattered electron image of S5, f TEM bright field image of S5 (the inset is SAED).

Defect analysis of different EBM NiTi alloys

Pores and cracks are two kinds of key defects weakening the corrosion resistance as well as the mechanical properties of materials. In order to analyze the influence of different fabrication parameters on the defects of EBM NiTi alloys, S5, S7 and S1 were selected for the defect analysis since these three kinds of samples have the maximum, the medium and the minimum compressive strength and compressive plasticity, respectively, according to the test results shown in Supplementary Fig. 7. Figure 2a–c shows the three-dimensional X-ray tomography (XRT) of S1, S5 and S7, respectively. Since the different absorption ability of X-ray by the pores/cracks and the alloy, black points and lines correspond to pores and cracks, respectively, based on relevant analysis, while the gray area indicates the NiTi alloy with dense structure. It is observed that the main defect of S1 is through cracks, and a few scattered pores distributed on the surface are detected. In regard of S5, the main defects are pores and no cracks are observed. For S7, cracks and pores are all observed on the alloy surface, however, the crack length is shorter compared with that in S1. Furthermore, the three-dimensional distribution of pores and cracks in the three kinds of samples is presented in Fig. 2d–f. For S1 and S7, obvious cracks (pink and yellow areas) are recorded. The cracks in S1 are relatively straight and continuous, which seems that they can directly cut the sample into different parts. In contrast, the cracks in S7 are short and only locally cut the sample. However, S5 is completely different from the above two samples. There are some small pores uniformly distributed in the sample without cracks. The results of defect analysis indicate that S5 has the least defects, followed by S7 and S1. The main reason for the formation of pores in the EBM NiTi alloy may be related to the protective inert gas in the powders after the gas atomization preparation. At the same time, the unmelted powder due to insufficient energy input or the poor bonding between the melted layers can also play an important role in the formation of pores. For the generation of cracks, the following reasons are viable; firstly, the material in the melting pool and in the boundary area of the melting pool may be limited by the material in the low-temperature area during the fabricating process, causing compressive stress. Meanwhile, the yield strength of the material in the heated area will decrease due to the rising temperature, and the material will be in the plastic thermal compression state when the compressive stress is larger than the reduced yield strength. Also, the material will be constrained by the cooling shrinkage of the surrounding material as it cools. At this time, residual stress will appear in the cladding layer, and cracks will occur when the residual stress exceeds the strength limit of the material30. It is worth noting that the changes in FO and SF have significant effects on the formation of defects in EBM NiTi alloy. Concerning FO, it is the additional current generated by the electromagnetic coil that can control the volume of the molten pool to some extent24,27. With other parameters fixed, the increase of FO will lead to the increase in spot size and the decrease in energy density27. That is, a large FO usually means an insufficient energy density resulting in the poor powder melting effect, and a very small FO may cause volatilization or burning loss of alloy components. In retrospect, S5 has a suitable value of FO just showing fewer defects, while S1 has a small FO value displaying more defects, especially cracks. With respect to SF, it is an index representing the relationship between the scanning rate of electron beam and the current on focusing plane, by which the molten pool depth can be kept relatively constant during the whole fabrication process regardless of the change in electron beam current28. When the electron beam current is determined, the scanning rate of the electron beam increases, and the energy density decreases with the increase of SF24, which means that proper energy input can only be generated when SF maintains an appropriate value, otherwise more defects will be formed. As shown in Fig. 2, S1 and S7 corresponding to a small and a large value of SF, respectively, present more defects, while S5 with a proper SF value shows fewer defects. Overall, S5 prepared with appropriate SF and FO of 70 mm s−1 and 15 mA by EBM actually possesses a denser structure.

Fig. 2: XRT three-dimensional reconstruction images of different EBM NiTi alloys.
figure 2

ac Corresponding to the reconstructed morphologies of S1, S5, and S7 respectively, df corresponding to defect distribution in the three-dimensional space of S1, S5 and S7 respectively.

Corrosion behavior of different EBM NiTi alloys

A large number of studies have shown that pores and cracks can significantly weaken the corrosion resistance of alloys22,23. Corrosive media can enter into the alloys through pores or cracks, thus it is easy to produce local acidification due to the relatively closed environment in the pores or cracks, accelerating the corrosion of alloys. Pores and cracks are also the most harmful defects in additive manufacturing alloys. Under the action of corrosive media and load, the alloys with pores or cracks are prone to stress corrosion cracking and corrosion fatigue, leading to material failure. Generally, the formation of pores and cracks needs to be strictly avoided for alloys or coatings used in corrosive media.

To reveal the corrosion behavior of EBM NiTi alloys with different fabrication parameters, electrochemical impedance spectroscopy (EIS) tests are conducted in 3.5 wt.% NaCl solution. The Bode frequency-impedance results (Fig. 3a) of EIS show that S5 has the highest impedance value in the low-frequency region among the different EBM NiTi alloys, which is almost equivalent to the impedance value of the wrought NiTi alloy, while S1 has the lowest impedance value in the same frequency range. The impedance value in the low-frequency region usually reflects the protection of passive films, so it can be concluded that S5 and the wrought NiTi alloy have better corrosion resistance. In the high-frequency region, the impedance value reflects the solution resistance, and it can be seen that the impedance values of the four samples are all less than 10 Ω cm2, which is consistent with the reports of literature indicating the high reliability of the test results31. Figure 3b shows the Bode frequency-phase angle plots of different NiTi alloys, it is apparent that S1 and S7 have two phase angle peaks thus containing two time constants. Both S5 and the wrought NiTi alloy show a broad phase angle peak in the same frequency range, which is usually generated by the superposition of at least two phase angle peaks thereby containing at least two time constants. The results of the Nyquist plot (Fig. 3c) show that S5 has a larger capacitive arc radius, followed by S7 and S1 in sequence. From the radius of the capacitive arc, it therefore follows that S5 has a better corrosion resistance than S7 and S1. The fitted EIS plots from the equivalent circuit as shown in the insert of Fig. 3a, where CPEdl and CPEf are constant phase elements of electric double layer and passive films, respectively, Rct is the resistance of charge transfer, Rf is film resistance, Rs is solution resistance. The reliability of the equivalent circuit can be verified by the values of the electric double layer capacitance (Cdl), which can be calculated according to Brug’s formula32,33:

$$C_{{{{\mathrm{dl}}}}} = Q^{1/\alpha }\left( {R_{{{\mathrm{s}}}}^{ - 1} + R_{{{{\mathrm{ct}}}}}^{ - 1}} \right)^{\left( {\alpha - 1} \right)/\alpha }$$
(1)
$$C_{{{{\mathrm{dl}}}}} = Q^{1/\alpha }\left( {\frac{{R_{{{\mathrm{s}}}}R_{{{{\mathrm{ct}}}}}}}{{R_{{{\mathrm{s}}}} + R_{{{{\mathrm{ct}}}}}}}} \right)^{\left( {1 - \alpha } \right)/\alpha }$$
(2)

where Q and α are the CPEdl parameters. In most cases, the value of Rct is much larger than that of Rs, so the aforementioned formula can be simplified as follows:

$$C_{{{{\mathrm{dl}}}}} = Q^{1/\alpha }R_{{{\mathrm{s}}}}^{\left( {1 - \alpha } \right)/\alpha }$$
(3)

Using this formula, the Cdl values of different EBM NiTi alloys can be obtained based on the fitting results of Q, Rs, and α as shown in Table 1. The calculated values of Cdl for S1, S5, S7 and the wrought NiTi alloy are about 15.7, 11.0, 12.1, and 12.2 μF cm−2, respectively, which are consistent with the Cdl values reported in the literature34,35,36, indicating the reliability of the selected equivalent circuit. Additionally, the Rf values of different NiTi alloys indicate that S5 has a larger film resistance than S1 and S7, implying better corrosion resistance.

Fig. 3: Electrochemical curves of EBM NiTi alloys with different fabrication parameters.
figure 3

a Frequency-impedance plots (the insert diagram referring to the equivalent circuit of EIS), b frequency-phase angle plots, c Nyquist plots, d potentiodynamic polarization plots of S1, S5, S7 and the wrought NiTi alloy, e distribution of Epit and icorr of different EBN NiTi alloys for six experiments, and f the Mott–Schottky curves of S5 and the wrought NiTi alloy.

Table 1 Electrochemical parameters obtained by fitting EIS curves for the wrought alloy, S1, S5, and S7.

Figure 3e presents the potentiodynamic polarization plots of different EBM NiTi alloys in 3.5 wt.% NaCl solution. It is clear that with the increase in alloy defects, the width of the passivation zone becomes narrow, the pitting potential (Epit) decreases and the corrosion current density (icorr) increases. Specifically, S5 and the wrought sample present the highest Epit of 1.2 VSCE, and S1 displays the lowest Epit of 0.55 VSCE. Meanwhile, the icorr of S1, S5 and S7 are about 0.10 μF cm−2, 0.02 μF cm−2 and 0.07 μF cm−2, respectively, indicating that S5 has better corrosion resistance. It is worth noting that S5 exhibits almost the same corrosion resistance as the wrought NiTi alloy, although the former contains some poresity defects. Furthermore, the protection ability of passive films formed on the wrought sample and S5 is evaluated by Mott–Schottky plots (Mott–Schottky plots of S1 and S7 are shown in Supplementary Fig. 8). A positive linear zone from +0.2 VSCE to +0.6 VSCE is observed, indicating that the passive films formed on the wrought sample and S5 present a characteristic of n-type semiconductors. The carrier density (ND) can be calculated according to the equation as follows:

$$C^{ - 2} = \frac{2}{{\varepsilon _{{{\mathrm{r}}}}\varepsilon _0{{{e}}}N_{{{\mathrm{D}}}}}}\left( {E - E_{{{{\mathrm{FB}}}}} - \frac{{{{{k}}}T}}{{{{e}}}}} \right)$$
(4)

where Csc is the space-charge capacitance, εr represents the dielectric of titanium oxide film, taken as 80 according to relevant literatures37,38, ε0 is the vacuum permittivity (8.845 × 10−14 F cm−1), ND and E are the carrier density in n-type passive films and the applied potential (VSCE), respectively, e is the electron charge (1.6 × 10−19 C), and T is the absolute temperature, taken as 298 K. In addition, EFB and k represent the flat-band potential (VSCE) and Boltzmann constant (1.38 × 10−23 J K−1), respectively. Kslope can be obtained by linear fitting the slope of the Mott-Schottky curve, and the value of ND can be expressed as follows:

$$K_{{{{\mathrm{slope}}}}} = \frac{{{{{\mathrm{d}}}}C^{ - 2}}}{{{{{\mathrm{d}}}}E}} = \frac{2}{{\varepsilon _{{{\mathrm{r}}}}\varepsilon _0{{{e}}}N_{{{\mathrm{D}}}}}}$$
(5)
$$N_{{{\mathrm{D}}}}{{{\mathrm{ = }}}}\frac{2}{{\varepsilon _{{{\mathrm{r}}}}\varepsilon _0{{{e}}}}}\left( {\frac{{{{{\mathrm{d}}}}C^{ - 2}}}{{{{{\mathrm{d}}}}E}}} \right)^{ - 1}$$
(6)

The linear fitting results of Mott–Schottky plots are shown in Table 2, where R2 represents the level of linear fitting. The ND values of the passive films formed on the wrought sample and S5 are 1.57 × 1020 cm−3 and 1.62 × 1020 cm−3, respectively, which are significantly lower than those of passive films for stainless steels and aluminum alloys39,40,41,42. Generally, a low ND value reflects the weak conductivity indicating good protection of passive films. Combining the results of EIS and potentiodynamic polarization as well as relevant reports, it can be established that the EBM NiTi alloys with proper fabrication parameters have better corrosion resistance than the NiTi alloys fabricated by vacuum plasma spraying43, low-pressure plasma spraying44, high velocity oxygen-fuel spraying7,45, and laser-plasma hybrid spraying46,47, displaying potential engineering application value. Therefore, the preparation of NiTi alloy by EBM can be a very promising engineering preparation technology.

Table 2 Fitting parameters of Mott–Schottky plots and the calculated values of ND for S5 and the wrought alloy.

In summary, the NiTi alloy with superior corrosion resistance is successfully fabricated by EBM, and the influence of fabrication parameters on the corrosion behavior of EBM NiTi alloys is investigated. Results indicate that the variation in fabrication parameters result in different defect types and defect number of NiTi alloys, thus, affecting the corrosion resistance. Excessive or insufficient SF and FO values can cause high susceptibility to defects during the fabrication process, especially in the formation of cracks, whereas there exist a few relatively uniformly-distributed pores in the EBM NiTi alloy when appropriate SF and FO values are selected. The alloys with the maximum cracks display the lowest corrosion resistance, whereas those with a few small pores uniformly distributed in the alloys possess superior corrosion resistance comparable to wrought NiTi alloys. The electrochemical results demonstrate that the EBM NiTi alloy with optimized fabrication parameters including SF of 70 mm s−1 and FO of 15 mA presents a higher Epit and a lower icorr, indicating good corrosion resistance. Meanwhile, a low carrier density of passive films equivalent to the wrought alloy is also displayed for the optimized EBM NiTi alloy, implying superior protection of passive films.

Methods

Preparation of EBM NiTi alloys

NiTi alloy powder with equal atomic ratio was prepared by gas atomization. The EBM equipment with model Arcam A1 was used to prepare the NiTi bulk alloy with the size of 12 mm × 12 mm × 12 mm. EBM adopted a zigzag scanning path and rotated 90o between adjacent fabricating layers. The thickness of the powder layer was about 50 μm, the scanning rate was 1500 mm s−1 and the scanning distance was 0.2 mm. The acceleration voltage and the scanning current were 60 kV and 19 mA, respectively. Meanwhile, the preheating was operated before the fabrication process and the selected temperature of preheating for the bottom plate and the powder layer was 750 oC. Seven kinds of NiTi samples were fabricated using EBM by adjusting SF and FO parameters to reveal the influence of fabrication parameters on the corrosion resistance of NiTi alloy. The specific parameters of (SF, FO) for S1, S2, S3, S4, S5, S6, and S7 were (25 mm s−1, 8 mA), (25 mm s−1, 15 mA), (25 mm s−1, 35 mA), (25 mm s−1, 40 mA), (70 mm s−1, 15 mA), (80 mm s−1, 15 mA) and (100 mm s−1, 15 mA), respectively.

Microstructure characterization

XRD (D/Max-2500PC) was used for phase analysis with radiation source of Cu Kα, and the scanning rate was 2o min−1. To reduce the effect of rough surface on XRD tests, the same rough surface was kept by grinding with 400, 800, and 2000 grit silicon carbide sandpapers in sequence for different EBM NiTi alloy samples, and each XRD test was repeated twice to ensure the test accuracy. SEM (Maia 3) was used to characterize the morphology of EBM NiTi alloy. TEM (Tecnai G2 F20) was used to further characterize the microstructure of EBM NiTi alloy, and the samples for TEM observation were prepared by the precision ion etcher with model RES 101. The defect distribution of different EBM NiTi alloys was measured by a three-dimensional XRT (Versa xrm-500) system with sub-micron resolution.

Electrochemical tests

The corrosion behavior of NiTi alloys with different EBM fabrication parameters in 3.5 wt.% NaCl solution (pH 6) was measured by Gamry 600+ electrochemical workstation. A traditional three-electrode cell (i.e., platinum sheet, saturated calomel electrode (SCE) and sample as the counter electrode, the reference electrode and the working electrode, respectively) was used for all electrochemical tests. EIS was conducted at open circuit potential (OCP), and the test frequency was from 100 kHz to 10 mHz. The OCP test with 3600 s was firstly carried out to get a stable potential before the EIS measurement. After the EIS tests, potentiodynamic polarization measurements were carried out at a scanning rate of 0.5 mV s−1 from −0.3 V versus OCP to +1.2 V versus SCE. Additionally, Mott-Schottky tests were operated to evaluate the protection capability of passive films with a scanning rate of 20 mV s−1 and a test frequency of 1000 Hz. Before the electrochemical tests, the EBM NiTi samples with the dimension of 10 mm (length) ×10 mm (width) ×4 mm (height) were sealed using epoxy resin with an exposed surface area of 1 cm2, then the working surfaces were wet-ground with 400, 800, and 2000 grit silicon carbide sandpapers in sequence and thereafter polished using the diamond polish paste with 1.5 μm diameter. Each electrochemical test was repeated at least three times, and the results representing the average value were selected.