1 Introduction

In recent years, magnesium (Mg) alloys as one of the lightest structural material have received significant attention as potential functional parts in automobiles, rail transportation, airplane and biomedical implant materials owing to their specific properties such as lightweight, high damping capacity and good impact energy absorption. However, the poor corrosion resistance and mechanical properties of magnesium alloys limited their widespread applications. Mg alloys have weak corrosion resistance in brine solutions, especially in the presence of aggressive chloride ions, and this has become a significant obstacle to use in corrosion‐sensitive applications (Ref 1, 2). On the other hand, Mg alloys exhibits relatively low formability and poor ductility at room temperature, due to their hexagonal close-packed crystal structure (Ref 3). Furthermore, it has been reported that shear banding plays a key role in recrystallization behavior and texture evolution of Mg alloys. In recent decades, several methods have been proposed to enhance the mechanical properties and corrosion resistance of Mg alloys. Grain refinement through thermomechanical processing and severe plastic deformation methods, including accumulative roll bonding, equal channel angular extrusion, twist extrusion, simple shear extrusion and high-pressure torsion are well-known approaches to improve the mechanical properties of Mg alloys. However, the above-mentioned techniques are not suitable for industrial production, and are still limited to the laboratory scale.

The addition of alloying elements is an effective strategy for improving the mechanical behavior of Mg alloys. The effects of various alloying elements including Al, Li, Mn, Zn, Zr, Ca, Sr on the microstructure, mechanical properties and corrosion behavior of Mg alloys have been studied. However, a solid solution composed of binary or ternary compounds is typically found in Mg alloys because of their low solubility. For high-strength Mg-RE alloys, process control is crucial in addition to alloying design, particularly for Mg alloys with low RE content (Ref 4). Despite the rapid development of RE-free Mg alloys, Mg-RE-based alloys are the most promising high-strength Mg alloys (Ref 5, 6). Rare earth elements (REEs) have been used in Mg-Al alloy for many years. The Mg17Al12 phase formation is diminished by rare earth elements in the Mg-Al-Zn alloys during solidification, as the rare earth (RE) favors the formation of Al-RE intermetallic phases. The addition of rare earth elements into AZ31 alloys leads to the formation of the Al2RE and Al11RE3 phases. However, the phase stability of Al2RE intermetallic compound is higher than that of Al11RE3. At above 150 °C, the Al11RE3 phase decomposes from Al2RE and Al due to the unstable Al11RE3. After phase transformation, the Al retains in the solid solution and forms the β phase which deteriorate the properties at elevated temperature (Ref 7,8,9,10,11,12). Among the rare earth elements, Nd and Dy are effective alternative strengthening elements in Mg alloy for elevated temperature applications. Nd forms a more stable intermetallic with Al and thus restricts the β phase formation (Ref 13, 14). Therefore, the precipitations of REE hardening the Mg alloys are stable and would increase the mechanical strength and corrosion resistance of the magnesium alloys (Ref 15,16,17).

The aim of the present work is to investigate the effect of rare earth alloying on the microstructure evolution, mechanical properties and the corrosion behavior of as-cast Mg-Al-REE alloys in 5 wt.% Nacl aqueous solution at ambient temperature.

2 Experimental Section

2.1 Materials Preparation

In this research, AZ31-1 wt.% RE (RE = Nd, Dy, Nd+Dy) alloys were prepared using the conventional casting method at a temperature of about 730 °C (± 20 when added REE) in a protective atmosphere of SF6. For our designed alloy preparation, commercially pure Mg, Al and Zn were melted in a graphite crucible using an induction furnace. REE were added to the above-mentioned alloys by melting commercially pure Nd and Dy in a crucible with an electric resistance furnace at 750 °C. Thereafter, the required amount of REE was added to the melt at 730 °C. Finally, a cast sample was produced with a diameter of about 54.4 mm and a height of 160 mm. The middle portion of the ingots were chosen for metallographic analysis. Then, the effect of the single and combined addition of rare earth Nd and Dy on microstructures, mechanical properties and corrosion weight loss test of as-cast AZ31 magnesium alloys were investigated between ambient temperature and after heat treatment at 400 °C for 1 h. Fig. 1(a) shows the heat treatment cycle used for the AZ31 Mg alloys.

Fig. 1
figure 1

(a) Heat treatment cycle for the AZ31 Mg Alloys. (b) Dimensions of the AZ31 Mg Alloy tensile test specimen

2.2 Mechanical Properties

Tensile strength was measured with a universal tensile tester (SHIMAZU) at room temperature with a strain rate of 1 × 10−3 s−1. Two specimens of each kind of considered alloy were evaluated, and the calculated average value (the average of two measurements value) was used as the final test result. The precise dimensions of the tensile test specimen are shown in Fig. 1(b). All samples tested in this work were cut from the middle portion of the cast ingot to have the similar microstructure throuout the specimen with respect to grain size and precipitate distribution.

2.3 Corrosion Tests

To perform corrosion test, the specimens were cut into φ 12 mm × 5 mm dimensions. Then, the specimens were surface polished with abrasive paper. After polishing, they were immersed into the corrosion solution (5 wt.% NaCl solution). The immersion test was conducted at room temperature and the erosion times were set to 2, 4, 6, 8, 10, 12, and 14 h. At each time point, eight specimens were taken out and the surface corrosion products were removed with a chromic silver nitrate solution (i.e.,, 200 g of CrO3 and 10 g of AgNO3 dissolved in 1 L of deionized water), and then washed with alcohols, to ensure the corrosion products were complete expelled without eliminating any Mg metal. After drying in warm flowing air, the specimens were stored. Finally, the corrosion weight loss was measured.

2.4 Microstructural Analysis

For metallographic examination, specimens were prepared by mounting and polishing in epoxy resin, and were then etched by solutions, including 10 mL acetic acid, 5 g picric acid, and 95 mL ethanol, for 10-20 s. Then, the microstructure and phase distribution were characterized using field emission scanning electron microscopy FESEM-MIRA-LMH II (TESKAN) and the transmission electron microscope (TEM, JEM-F200) equipped with energy-dispersive spectrometer (EDS).

3 Results and Discussion

3.1 Microstructure and Phase Characterizations

The microstructure of both as-cast and heat-treated samples were investigated. Fig. 2 shows the typical SEM morphologies of the various phases in the AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys. There were only small amount of white precipitates in the RE free AZ31 alloy, as shown in Fig. 2. The α-Mg matrix and widely distributed granular β-Mg17Al12 were found in the microstructure of AZ31. Noticeably, AZ31-RE contained dark α-Mg, a bigger grayish white globular-like β-Mg17Al12, white brighter weed-like Al-RE (RE = Nd, Dy, Nd+Dy) and other intermetallic compounds.

Fig. 2
figure 2

SEM morphologies of various phases in AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys before HT and after HT

When REE is added to the AZ31 alloy, the reaction between the REE and aluminum results in the formation of Al-RE compounds and, the amount of β-precipitates decreases, even diminishes completely, because the preferential reaction of aluminum (Al) and rare earth (RE) leads to the formation of the Al11RE3. The needle-like (or weed-like) Al11RE3 phase was observed at any REE content. It is revealed that, the addition of Nd into AZ31 lead to the formation of Al-Nd, while the addition of Dy resulted in the appearing of Al-Dy phase. The co-addition of Nd and Dy did not induce any new phases, and only the REE-enriched phases appeared after the single addition of Nd or Dy.

To confirm the RE-containing precipitates, EDS measurements of each phase at marked points 1 and 2 are performed for all specimens. The EDS spectrum and elemental compositions are tabulated as in Fig. 3(a) and (b). Fig. 3 represents the SEM images of AZ31 Mg-alloys and the intermetallic phases containing in AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys (a) before HT (as-casted) and (b) after HT (as-annealed) samples, respectively.

Fig. 3
figure 3

High magnified SEM morphologies and corresponding EDS spectra of various phases in AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys: (a) before HT (as-casted) and (b) after HT (as-annealed) samples

3.2 Mechanical Properties

To compare the mechanical properties of AZ31 alloys with and without REE, the tensile test was conducted. In addition to investigate the effects of REE on the mechanical properties and work-hardening rate alloys, their microstructures were examined using TEM. The engineering stress-strain curves of the AZ31 alloys obtained from the uniaxial tensile tests at RT and strain rate of 1 × 10−3 s−1 in as-cast and as-annealed states are shown in Fig. 4. As shown in Fig. 4(a) and (b), the yield strength (YS), ultimate tensile strength (UTS), and elongation of the AZ31 sample in as-cast and/as-annealed states were 95/108 MPa, 167/213 MPa, and 9%/23%, respectively. The results demonstrated that the mechanical properties of AZ31 increased after annealing which could be mainly associated with solid-solution hardening and the presence of MgAl secondary phases in the matrix. On the other hand, it has been reported that the size of precipitations, the amount of distribution and the morphology of the β-Mg17Al12 phase provides the mechanical strength and plasticity to Mg-Al alloys (Ref 18). Although, the formation of coarse secondary phase precipitates in the grain boundary region leads to lower elongation neverthless elongation enhancement of HT-AZ31 alloys can be attributed to the microstructural changes induced by the heat treatment of the alloys. After the addition of rare earth elements, the YS/UTS values significantly changed in both as-cast and annealed states, particualrly the elongation relatively increased for as-cast state samples. The ductility of the AZ31 alloy in as-cast state not only increased with the addition of REEs, but also the tensile strength of the AZ31 alloy increased markedly after adding Nd. It has been reported that the existence of the secondary phase to the metal matrix induces more stress concentration in the matrix, which leads to the nucleation of voids by debonding of the matrix (Ref 19). In addition, the dislocation pile-up at the interface of precipitates-matrix led to initiation and propagation of cracks due to the brittleness of the secondary phases which decrease the ductility of the alloy (Ref 20, 21). An excellent UTS/ductility combination of 209 MPa/21% and 192 MPa/17% with the adequate YS of 90 MPa was observed for AZ31+Nd sample in as-cast and annealed states, respectively. The work-hardening behavior of the alloys under uniaxial tension for as-cast and annealed samples are shown in Fig. 4(c) and (d). The work-hardening rate of the AZ31 in as-cast state was higher than those of the other three REE added samples, suggesting that the accumulation of dislocations is more significant for AZ31 in as-cast state. The work-hardening behavior of alloys after annealing in Fig. 4(d) shown that the work-hardening rate of the AZ31 alloy contain both Nd and Dy elements increased significantly after annealing compared to those of as-cast state. TEM studies were conducted to investigate the work-hardening behaviors and dislocation configuration of alloys during the tensile deformation. Fig. 5 shows TEM images of the AZ31 alloy showing deformed microstructure evolution before and after annealing. The accumulated dislocation density in AZ31 in as-cast state (Fig. 5a, b) appears to be higher than AZ31 alloy after annealing which consistent with the larger hardening rate as shown in Fig. 4(c). All rare earth elements (REEs) form simple eutectic systems with Mg, especially when the alloy contains aluminum. The precipitation hardening can easily occur in magnesium alloys after adding rare earth elements (Ref 22). The hardness of AZ31 alloys correlated to the enhancement of tensile strength with the addition of Nd (RE) because the solubility of Nd (RE) in Mg is low (Ref 22). However, the addition of Dy and Nd+Dy (RE) to the AZ31 alloy fails to enhance the tensile strength of the alloy.

Fig. 4
figure 4

Engineering stress-strain curves of (a) before and (b) after heat treatment and strain-hardening rate vs. true strain curves of (c) before and (d) after heat treatment of AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy) specimens, respectively

Fig. 5
figure 5

TEM images of the AZ31 alloy tensile deformed (a) typical bright-filed TEM images showing the microstructure evolution and dislocation accumulation, (b) higher magnifications illustrating the interaction of dislocation with intermetallics in the AZ31 alloy deformed before heat treatment, (c) TEM image and (d) the corresponding diffraction pattern of AZ31 alloy tensile deformed after heat treatment

3.3 Fracture Morphology

Magnesium alloys tend to crack easily in the form of a cleavage fracture or quasi cleavage fracture, due to their limited slip systems (Ref 23). To investigate the failure mechanisms, the fracture surfaces of the broken tensile specimens were analyzed. Figure 6 shows the SEM images of the room temperature fracture surface and their magnified images of highlighted areas in NHT and HT specimens of the AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys. The fracture morphology of all specimens exhibited hybrid fractures with cleavages and dimples. But the fracture surfaces of the NHT specimens showed a little ductile fracture, which indicates a much higher volume fraction of dimples.

Fig. 6
figure 6

SEM images of the fracture surface and their magnified images of highlighted zones of AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy): before heat treatment and after heat treatment

Generally, the failure mechanism of both the AZ31 and AZ31-RE alloys specimens are in fact a combination of trans-granular and inter-granular fractures. In detail, the dimples produced on the fracture surfaces of the NHT and HT specimens of AZ31 and AZ31-Nd appeared to be deep conical dimples, which are inherent in the fracture of plastic materials. Therefore, it can be presumed that an increase in crack resistance is accompanied by an increase in the relative visual depth of dimples, as seen in Fig. 6. But, for AZ31-Dy and AZ31-Nd+Dy, the inter-granular fracture tends to be smaller and shallower than those of AZ31 and AZ31-Nd samples before and after heat treatments. There are some tinier microcracks were noticed in the fracture surfaces of the AZ31-RE (RE = Dy and Nd+Dy) alloys, shown in Fig. 7. These microscopic observations indicates that the change in mechanical properties attributed to the microstructural changes.

Fig. 7
figure 7

SEM images of the cross-sectional tensile surface of AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy): before heat treatment and after heat treatment

3.4 Corrosion Behavior

Immersion tests are commonly conducted using a concentrated chloride solution such as 3.5 wt.% NaCl saturated with Mg (OH)2. Mg corrosion in such a concentrated solution converts metallic Mg to the stable ion Mg2+ via the following reaction: (Ref 24)

$$Mg+2{H}_{2}O \to {Mg}^{2+}+2\left({OH}^{-}\right)+ {H}_{2} \to Mg( O{H)}_{2}+ {H}_{2}$$
(1)

In our study, the corrosion rate of the AZ31 magnesium alloy in 5 wt.% NaCl solution accelerated from an initial level and reached a stable corrosion rate after a certain immersion period. The corrosion properties could be altered in the AZ series Mg alloys by varying the amount of additive REE content. The corrosion resistance was improved by adding rare earth metals, since rare earth metals can refine recrystallized grains, which benefits the corrosion resistance (Ref 25). Moreover, AZ31, the wrought alloy, contained a major fraction of solid solution Mg and Al (called the α-phase) and a lower amount of secondary phase (β, Mg17Al12). Despite the fact that the presence of β-phase enhances the performance of Mg-Al-Zn series (AZ series), but it has a negative impact on corrosion properties (Ref 26). Compared with the AZ31 alloy, the AZ31-REE alloys exhibits improved corrosion resistance.

Figure 8 shows the corrosion weight loss curves of HT and NHT samples with respect to immersion time. All samples were soaked in the corrosion solution for a certain time. Initially, there were some bubbles on the surfaces of the samples. One hour later, each sample was corroded to different degrees. The weight loss of AZ31-REE increased steadily with erosion time, which can control the speedy corrosion rate of AZ31 series Mg alloys to some extent. According to the corrosion weight loss of the alloys, the corrosion rates ranked as AZ31 > AZ31Dy > AZ31NdDy > AZ31Nd for samples without heat treatment, and AZ31 > AZ31Dy > AZ31Nd > AZ31NdDy for samples with heat treatment, respectively.

Fig. 8
figure 8

Weight loss vs. erosion time of AZ31 and AZ31-REE alloys (REE = Nd, Dy and Nd+Dy) (a) without and (b) with heat-treated at different intervals of time

Among the NHT specimens, the corrosion rate following the co-addition of two REE was in between those of the two single-REE alloys, indicating that Nd improved the corrosion resistance of AZ31 than Dy. This was mainly because Nd can purify the melts and interact with Al to form the Al-Nd phase, which upgraded the corrosion resistance of the alloys. But, interestingly among the HT specimens, the corrosion of the co-modified AZ31 Mg alloys was less critical than the single-REE modified AZ31 Mg alloys, indicating that the addition of both Nd and Dy stabilized the corrosion rate and could also enhance the corrosion resistance of the alloys, as the erosion time increased by 2-14 h.

Moreover, the percentage of weight loss of the heat-treated AZ31+Nd, Dy was more stable compared with the first 8 h. The corrosion rate of samples with Dy alone was higher than that with Nd in both the HT and NHT cases. This may be because the Al-Dy phase was more active in Cl- than the Al-Nd phase. This leads to slightly worse corrosion resistance in the AZ31+Dy compared to AZ31+Nd. Hence from these interesting results, it can be understood that the presence of REE in the AZ series Mg alloys has a great influence on corrosion behavior, especially AZ31+Nd, Dy after being heat-treated, and this approach is suggested if the application intended for a corrosive environment.

The microstructures of the corroded surface of the AZ31 cast alloys containing various REE (Nd, Dy and Nd+Dy) exposed in 5 wt.% NaCl for 14 h are shown Fig. 9. This microstructure shows that the surface corrosion is distributed to some extent on the surface of the specimens. The corrosion of HT-AZ31 was much more severe than the other specimens. This corrosion is suspected to be sites with the β-Mg17Al12 phase (see in Fig. 2) which exhibit a more passive behavior in NaCl solution than either Al or Mg. Similarly, very small pits were observed in AZ31+Dy and HT-AZ31+Dy. However, the shapes of the pitting corrosion were dissimilar; elliptical in AZ31+Dy and horizontal in HT-AZ31+Dy, before and after heat treatment. Nevertheless, AZ31+Nd, Dy and HT-AZ31+Nd, Dy still suffered much less corrosive attack compared to other AZ31 specimens. Several small shallow corroded pits were found on the surface of the AZ31+Nd and HT-AZ31+Nd specimens. We analyzed the compositions of the corroded surfaces to demonstrate the corrosion inhibition effects of alloying with REE. High-magnification SEM pictures of corroded surfaces are shown in Fig. 10(a) and (b) along with the associated EDS spectra of identified locations. The EDS results of AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys with different RE contents, at.% are tabulated. It is found that the corrosion inhibition effects of AZ31 and AZ31+Dy specimens in the as-casted state (before HT) and in the annealed condition (after HT) seem to have no apparent impact on the distribution of the secondary phase. However, the morphology, size, and composition of precipitate (Al-NdDy) on the corroded surface of HT-AZ31+Nd, Dy specimen, is relatively changed, especially at.% of Dy (RE) contents dramatically decreased. It can turn the inhibition of corrosion effects.

Fig. 9
figure 9

SEM images of the surface corrosion of AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy): before heat treatment and after heat treatment

Fig. 10
figure 10

High magnification SEM images of corroded surfaces and corresponding EDS spectra of various phases in AZ31 and AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys: (a) before HT (as-casted) and (b) and after HT. (as-annealed) samples

Figure 11 shows the morphology of the cross-sectional corroded surfaces of the AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy). It is evident that erosion of the AZ31 magnesium alloys before heat treatment was more severe than samples after heat treatment. Cracking may occur along the grain boundaries, and precipitation can produce regions of minimal corrosion resistance in the immediate vicinity. The corrosion attack was restricted to along the grain boundaries, or immediately adjacent to grain boundaries, since the Al-RE phases are precipitated along the grain boundaries. This type of attack may result from the different compositions of the internal casting alloy, such as coring encountered in it. As we discussed in the former section, the reaction between RE and Al, which are soluble in the α-Mg matrix, originally results in the formation of Al-RE compounds and decreases Al content in the α-Mg matrix. The regions where Al is consumed become the preferential path for corrosion attack or, crack propagation, as illustrated in Fig. 12. The increase in corrosion resistance after heat treatment can be attributed to relieving of stress, and thus, heat treatment has an increasing effect, reducing the amount and distribution of the β-phase, as a result generating supersaturated α-grain.

Fig. 11
figure 11

Microstructure of cross-sectional corroded surface of AZ31 and AZ31-RE alloys (REE = Nd, Dy and Nd+Dy): before heat treatment and after heat treatment

Fig. 12
figure 12

Illustration of the possible mechanism of the corrosion attack on AZ31-REE Mg alloys in NaCl solution at different intervals of time

In the present investigation, the AZ31-RE (RE = Nd, Dy, Nd+Dy) alloys exhibited more corrosion resistance than pure AZ31 alloy. The stability and dissolution kinetics of the surface protection altered by adding alloying elements, particularly rare earth (RE) elements, which increases the corrosion resistance of the Mg alloys (Ref 27). Based on the following factors, microstructural influences on corrosion mechanisms: Under heat treatment conditions, the formation of precipitates are minimized in the morphology of the specimens because this condition has a growing impact on the diminishing amount and distribution of β-phase, as result producing supersaturated α-grains. Cracking occurs at the grain boundaries, and nearby areas that are more susceptible to corrosion due to precipitation develops. As a result of the Al-RE phases precipitating along the grain boundaries, localized corrosion assaults may develop there. The potential mechanism underlying the corrosion attack on AZ31-REE Mg alloys in NaCl solution at various time intervals was illustrated in Fig. 12.

4 Conclusions

We investigated the effect of single and co-addition of rare earth elements (REEs) on the mechanical and corrosion properties of the Mg alloys. The findings showed that annealing improved the mechanical characteristics of AZ31, which may primarily be attributed to solid-solution hardening and the existence of MgAl secondary phases in the matrix. The YS/UTS values dramatically changed in both the as-cast and annealed states after the presence of rare earth elements. Interstingly, not only the inclusion of REEs boost the elasticity of the AZ31 alloy in its as-cast form, but also the addition of Nd significantly increased the tensile strength of the alloy. The AZ31 in as-cast form had a higher work-hardening rate than the other three REE-added samples, indicating that the buildup of dislocations in the AZ31 in the as-cast condition. On the other hand, the corrosion resistance was also enhanced by introducing rare earth elements into AZ31 Mg alloys. According to as-cast specimens, the corrosion rate following the co-addition of Nd+Dy elements was in between the values seen for the inclusion of single Nd and Dy elements, indicating that Nd improved the AZ31's corrosion resistance more than Dy because Nd could purify the melts and interact with Al to form the Al-Nd phase, which improved the alloys' corrosion resistance. We can categorically state that the co-REE modified AZ31 Mg alloys in as-annealed specimens stabilized the corrosion rate and suggesting that it would be more promising in the corrosive environment conditions.