1 Introduction

Lightweight materials and processing technology have attracted considerable interest due to the need for energy conservation, emission reduction and environmental protection. As a lightweight structural material, magnesium alloy is widely used in automotive, aerospace and electronics industries [1,2,3,4]. Among various magnesium alloys, Mg–Gd–Y–Zr alloy has received immense attention in the aerospace field because of its high strength, excellent creep resistance and corrosion resistance at room and elevated temperatures [5, 6].

The characteristics of the castings in the aerospace field, such as a complex shape, large size and non-uniform thickness, lead to different cooling rates during the casting process. The cooling rate influences the solidification microstructure of the castings. Numerous studies have investigated the effect of the cooling rate on the solidification microstructure of Mg–Gd–Y–Zr alloy [7,8,9]. As reported, the grain size of the Mg–12.07Gd–3.27Y–0.38Zr alloy decreased when the cooling rate increased from 17.4 to 253.5 °C·s−1, and the high cooling rate increased the solid solubility, which reduced the dendritic segregation of Gd and Y [10]. Pang et al. [11, 12] studied the effect of the cooling rate (from 0.7 to 3.6 °C·s−1) on the solidification microstructure of the Mg–10Gd–3Y–0.5Zr alloy with a sand mold. The average grain size decreased from 59 to 39 µm. The content of the secondary phase increased from 17.6 vol% to 24.5 vol%, and the plate-shaped eutectic compound exhibited a continuous network instead of a coarsening discontinuous network when the cooling rate increased from 0.7 to 3.6 °C·s−1. On the other hand, the Zr content, as a main nucleation agent, is important for controlling the grain size, thus affecting the mechanical properties in the as-cast Mg–Gd–Y–Zr alloys [13, 14]. Sun et al. [15, 16] reported that the grain size decreased, and the ultimate tensile strength (UTS) and elongation (EL) increased with an increasing Zr content from 0 wt% to 0.93 wt% in the Mg–10Gd–3Y alloy. Jiang et al. [17] found that the grain size decreased by approximately 50% when the Zr content increased from 0.3 wt% to 0.4 wt%, and they provided the relationship between the yield strength and grain size for the alloys with similar contents (Mg–10Gd–3Y–yZr, y = 0.3, 0.4, and 0.5). The above-mentioned studies show that the grain size is mainly affected by the cooling rate and Zr content. However, these studies focused on the individual effect of the cooling rate or Zr content. The grain size is associated with the nucleation process. A quantitative nucleation model describing the effect of the cooling rate and Zr content on the nucleation rate is required, especially to simulate the microstructure. However, this type of nucleation model has rarely been reported.

Recently, with the development of computer technology and numerical simulation techniques, cellular automaton (CA) and phase field (PF) have become important and effective methods for simulating microstructure evolution in materials processing [18,19,20,21,22,23,24,25,26,27,28]. One of the most important tasks in the CA model is to calculate the kinetics of the solid–liquid (S/L) interface, which is associated with the solute partition at the S/L interface [29,30,31,32,33]. In an equilibrium solidification, the chemical potentials on either side of the interface remain equal, and the concentrations of the solid and liquid phases at the S/L interface follow the equation \(k_{\text{e}} = C_{\text{s}} /C_{\text{l}}\), where \(k_{\text{e}}\) is the equilibrium partition coefficient and C s and C l are the concentrations of the solid and liquid phases, respectively. However, when the solidification velocity increases closely to the diffusion velocity, the Gd atom with a small diffusion coefficient could be caught by the solid phase, although there is a driving force for it to escape in the Mg–Gd–Y–Zr alloy. The actual ratio \(C_{\text{s}} /C_{\text{l}}\) deviates from \(k_{\text{e}}\), and a transition from equilibrium segregation to solute trapping occurs [34, 35]. If the effect of the solidification velocity on the solute partition coefficient is ignored, the solute field cannot be solved accurately, and the fraction of the eutectics cannot be calculated accurately in the simulation.

In engineering practices, there is a strong demand for engineers to predict the characteristics of the microstructure, such as the grain size and content of the secondary phase. However, the models or simulation tools for predicting the grain size and content of the secondary phase have not been established for the Mg–Gd–Y–Zr alloy. In this study, the effects of the cooling rate and Zr content on the grain size were studied experimentally. A quantitative model for calculating the heterogeneous nucleation rate of the Mg–Gd–Y–Zr alloy was developed based on the experimental data. The microstructure of the alloy was simulated using the CA method, where the nucleation model was used, and a solute partition coefficient was introduced to deal with the solute trapping in front of the S/L interface.

2 Experimental

2.1 Experiment procedure

The Mg–Gd–Y–Zr alloy was prepared using high-purity Mg (99.95 wt%) and master alloys, including Mg–25 wt% Gd, Mg–25 wt% Y and Mg–30 wt% Zr. The melting process was conducted in an electric resistance furnace under the mixed atmosphere of 1 vol% SF6 + 99 vol% CO2. The melt was refined at 750 °C for 5 min, cooled to 730 °C and poured into a permanent mold. Castings with five steps were produced, and thermocouples were used to record the temperature variation inside the castings during the solidification process. The geometry of the casting is shown in a previous study [7]. Samples for the optical microscope (OM, Zeiss Axio Scope A1) were taken from the temperature measurement point. The grain boundary for obtaining the data of the grain size should be identified. However, it is difficult to see the grain boundary in the OM image of the as-cast microstructure. The grain boundary could be observed clearly, if the samples were treated under the solution treatment at 500 °C for 6 h [36], and then they were corroded by 0.4 ml nitric acid and 20 ml anhydrous ethanol. The grain size was measured using a linear intercept technique referenced by ASTM Standard E 112-13.

2.2 Nucleation model

The aim of this section is to build a model which is capable of describing the heterogeneous nucleation during the solidification of the Mg–Gd–Y–Zr alloy based on the classical nucleation theory. A quantitative description of the nucleation process, incorporating the effects of the cooling rate and Zr content, is developed by determining the model parameters based on the experimental data. Christian [37] proposed the following equation for describing the heterogeneous nucleation rate (I he):

$$I_{\text{he}} = N_{\text{he}} \frac{{k_{\text{B}} T}}{h}\exp \left( { - \frac{{\Delta G_{\text{he}}^{*} + \Delta G_{\text{mo}} }}{{k_{\text{B}} T}}} \right) ,$$
(1)

where \(k_{\text{B}}\) is the Boltzmann constant; \(h\) is the Planck constant; \(T\) is the absolute temperature; \(\Delta G_{\text{mo}}\) is the activation energy for diffusion; \(N_{\text{he}}\) is the number of atoms on the effective nucleus surface; and \(\Delta G_{\text{he}}^{ *}\) is the heterogeneous nucleation activation energy. Here, \(\Delta G_{\text{he}}^{ *}\) and \(N_{\text{he}}\) can be given as follows:

$$\Delta G_{\text{he}}^{ *} = f(\theta )\Delta G^{ *}$$
(2)
$$N_{\text{he}} = K_{\text{he}} N$$
(3)

where \(\Delta G^{ *} = \frac{{\alpha \gamma^{3} T_{0}^{2} }}{{\left( {\Delta h_{0} \Delta T} \right)^{2} }}\); \(\gamma\) is the surface tension; \(T_{0}\) is the liquidus temperature; \(\Delta h_{0}\) is the melting enthalpy in a unit volume; \(\Delta T\) is the undercooling; and \(\alpha\) is a factor that accounts for the shape of the nucleus (\(\alpha = \frac{16\uppi }{3}\) for the spherical nucleus). The parameter \(f\left( \theta \right)\) is defined as the ratio of activation energies for heterogeneous and homogeneous nucleation; \(K_{\text{he}}\) is the heterogeneous nucleation coefficient, which can be determined based on the experimental data; and \(N\) is the number of atoms in a unit volume. The equation for describing the heterogeneous nucleation rate can be written as follows.

$$I_{\text{he}} = K_{\text{he}} N\frac{{k_{\text{B}} T}}{h}\exp \left( { - \frac{{\Delta G_{\text{mo}} }}{{k_{\text{B}} T}}} \right)\exp \left[ { - \frac{f\left( \theta \right)}{{k_{\text{B}} T}}\frac{{\alpha \gamma^{3} T_{0}^{2} }}{{\left( {\Delta h_{0} \Delta T} \right)^{2} }}} \right]$$
(4)

The reasonable values of \(N\) and \(\frac{{k_{\text{B}} T}}{h}\) for the general casting temperatures are 1 × 1028–1 × 1029 m−3 and 1 × 1013 s−3, respectively. The parameter \(K_{\text{he}} N\frac{{k_{\text{B}} T}}{h}\), as the coefficient to the exponential term, is evaluated as 1 × 1042 K ke. The term \(\frac{{\alpha \gamma^{3} T_{0}^{2} f\left( \theta \right)}}{{\left( {\Delta h_{0} } \right)^{2} }}\) is denoted by \(A_{\theta }\), and it is assumed that \(A_{\theta }\) changes with \(f\left( \theta \right)\). The above equation can be simplified as follows:

$$I_{\text{he}} = 10^{42} K_{\text{he}} {\text{exp}}\left[ { - \frac{{\Delta G_{\text{mo}} + A_{\theta } /\left( {\Delta T} \right)^{2} }}{{k_{\text{B}} T}}} \right]$$
(5)

Based on the assumption that the nucleation only occurs before the recalescence phenomenon in the solidification process, the grain density (n v) can be obtained by the following equation:

$$n_{\text{v}} = \int_{0}^{{\Delta T_{\hbox{max} } }} {\frac{{I_{\text{he}} }}{{R_{\text{c}} }}{\text{d}}\Delta T}$$
(6)

where \(\Delta T_{\hbox{max} }\) is the maximum undercooling, and \(R_{\text{c}}\) is the cooling rate. The nucleation rate is assumed to be a linear function of undercooling. Thus, Eq. (6) can be written as:

$$n_{\text{v}} = \frac{{I_{\text{he}}^{\text{N}} }}{{2R_{\text{c}} }}\Delta T_{\hbox{max} }$$
(7)

where \(I_{\text{he}}^{\text{N}}\) is the heterogeneous nucleation rate when the undercooling increases to \(\Delta T_{\hbox{max} }\).

The following equation is deduced by correlating Eqs. (5) and (7).

$$n_{\text{v}} = \frac{{\Delta T_{\hbox{max} } }}{{2R_{\text{c}} }}10^{42} K_{\text{he}} {\text{exp}}\left[ { - \frac{{\Delta G_{\text{mo}} + A_{\theta } /\left( {\Delta T_{\hbox{max} } } \right)^{2} }}{{k_{\text{B}} T}}} \right]$$
(8)

In the above equation, the proportion coefficient 0.5 can be incorporated into the heterogeneous nucleation coefficient (K he), which is associated with Zr content in the Mg–Gd–Y–Zr alloy. Here, \(\Delta G_{\text{mo}}\) and \(A_{\theta }\) are assumed to be constants for the particular nucleation agent (Zr) in the Mg–Gd–Y–Zr alloy. The model parameters \(K_{\text{he}}\), \(\Delta G_{\text{mo}}\) and \(A_{\theta }\) are determined by using the experimental data of \(n_{\text{v}}\), \(\Delta T_{\hbox{max} }\) and \(R_{\text{c}}\).

2.3 Solute partition coefficient

In our previous study [38], a CA model was developed to simulate the morphology evolution of cast Mg alloys. In this model, the growth kinetics of dendrite was determined by the difference between the solute concentration based on the thermodynamics and the local compositions obtained by solving the solute transport equation. With this computational method, the solid fraction of the interfacial CA cells could be obtained. The solute partition coefficient plays an important role in solving the diffusion equation and calculating the variation of the solid fraction at the S/L interface. For the stable and metastable local equilibrium, the chemical potentials of the chemical elements across the interface must be equal for the liquid and solid phases. However, this condition is not obeyed when the solidification velocity increases closely to the diffusive velocity, and the solute partition coefficient cannot be calculated by \(k_{\text{e}} = C_{\text{s}} /C_{\text{l}}\). Therefore, several models have been proposed to describe the dependence of the partition coefficient (\(k^{ *}\)) on the solidification velocity. The most widely accepted model was proposed by Aziz [39]:

$$k^{*} = \frac{{k_{\text{e}} + \delta_{\text{i}} V/D_{\text{i}} }}{{1 + \delta_{\text{i}} V/D_{\text{i}} }}$$
(9)

where \(k_{\text{e}}\) is the equilibrium partition coefficient; \(\delta_{\text{i}}\) is the atomic jump distance; \(D_{\text{i}}\) is the interfacial diffusion coefficient; and \(V\) is the solidification velocity. For \(V = 0\), \(k^{ *} = k_{\text{e}}\), and for large \(\delta_{\text{i}} V/D_{\text{i}}\), \(k^{*} = 1\). It is difficult to acquire the values of \(D_{\text{i}}\) and \(\delta_{\text{i}}\); therefore, the diffusion coefficient in the liquid phase (\(D_{\text{L}}\)) and the thickness of the diffusion layer in the liquid phase (\(\delta_{\text{L}}\)) are used in Eq. (9).

3 Results and discussion

3.1 Experimental results

The castings of the Mg–10Gd–3Y–Zr alloys with Zr contents of 0.58 wt%, 1.26 wt% and 1.94 wt% were produced. In the solidification process, the cooling curves were recorded by thermocouples. The transient cooling rate, which is the first-order derivative of the cooling curve, varies with time. The transient cooling rate curve of the alloy can be divided into four stages. The first stage describes the cooling process of the liquid phase, in which the temperature of the melt decreases sharply. The second and third stages correspond to the solidification of the primary phase and the formation of the eutectics, respectively. In these two stages, the release of latent heat reduces the transient cooling rate. The transient cooling rate begins to increase after the melt has solidified completely in the last stage. Based on the above-mentioned characteristics, some parameters of solidification can be identified, as shown in Fig. 1. The parameter \(T_{\text{s}}\) is the starting temperature of nucleation of the primary phase, and \(t_{\text{s}}\) is the time corresponding to \(T_{\text{s}}\). The parameter \(T_{\text{l}}\) is the temperature immediately before recalescence, at which nucleation of the primary phase is assumed finished. \(T_{\text{es}}\) is the starting temperature of the eutectics; \(T_{\text{e}}\) is the ending temperature of solidification; and \(t_{\text{e}}\) is the time corresponding to \(T_{\text{e}}\). The average cooling rate in the solidification process, which is denoted by \(R_{\text{c}}\), was calculated using Eq. (10). Here, \(R_{\text{c}}\) is a unique parameter corresponding to a particular cooling curve or dT/dt curve. The cooling rate mentioned later in this paper represents the average cooling rate \(R_{\text{c}}\).

$$R_{\text{c}} = \left( {T_{\text{s}} - T_{\text{e}} } \right) /\left( {t_{\text{s}} - t_{\text{e}} } \right)$$
(10)
Fig. 1
figure 1

Cooling curve and transient cooling rate curve (dT/dt) of Mg–Gd–Y–Zr alloy with 0.58 wt% Zr (when averaged cooling rate in solidification process being 2.6 °C·s−1)

The maximum undercooling (\(\Delta T_{\hbox{max} }\)) was calculated by Eq. (11).

$$\Delta T_{\hbox{max} } = T_{\text{s}} - T_{\text{l}}$$
(11)

The maximum undercooling increases from 1.0 to 9.3 °C when the cooling rate increases from 2.6 to 11.0 °C·s−1, according to Fig. 2, and the mathematic relation between the maximum undercooling and cooling rate can be expressed by the following equation.

$$\Delta T_{ \hbox{max} } = 0.99R_{\text{c}} - 1.57$$
(12)
Fig. 2
figure 2

Relationship between maximum undercooling (ΔT max) and cooling rate (R c) of Mg–Gd–Y–Zr alloy with 0.58 wt% Zr

The OM images of the Mg–Gd–Y–Zr alloy with 0.58 wt% Zr at different cooling rates are shown in Fig. 3. Figure 4 shows the grain sizes of the Mg–Gd–Y–Zr alloys with various Zr contents at different cooling rates. The grain size of the Mg–Gd–Y–Zr alloy decreases with an increase in Zr content at the same cooling rate. When Zr content is 0.58 wt%, the grain size decreases from 73.94 to 50.10 µm as the cooling rate changes from 2.6 to 6.7 °C·s−1. A further increase in the cooling rate has little effect on the grain size. When the cooling rate increases from 3.0 to 8.8 °C·s−1, the grain size of the Mg–Gd–Y–Zr alloy with 1.26 wt% Zr decreases from 49.04 to 42.26 µm. The grain size of the alloy with 1.94 wt% Zr decreases from 41.71 to 35.00 µm with an increase in the cooling rate from 2.6 to 7.8 °C·s−1.

Fig. 3
figure 3

OM images of Mg–Gd–Y–Zr alloy with 0.58 wt% Zr at various cooling rates: a 2.6 °C·s−1, b 3.3 °C·s−1, c 6.1 °C·s−1 and d 11.0 °C·s−1

Fig. 4
figure 4

Grain sizes of Mg–Gd–Y–Zr alloys with various Zr contents at different cooling rates

3.2 Determination of parameters in nucleation model

The grain density was determined using the procedure provided in a previous study referenced by ASTM Standard E 112-85, where the grain size (l) is related to the grain density (\(n_{\text{v}}\)) as \(n_{\text{v}} = 0.566l^{ - 3}\). The model parameters \(K_{\text{he}}\), \(\Delta G_{\text{mo}}\) and \(A_{\theta }\) were determined by substituting the experimental data of \(n_{\text{v}}\), \(\Delta T_{\hbox{max} }\) and \(R_{\text{c}}\) into Eq. (8), as listed in Table 1. Figure 5 shows the experimental results and the fitting results of the grain density. When the maximum undercooling increases, the grain density increases, and its increasing rate decreases. At the same maximum undercooling, the grain density of the Mg–Gd–Y–Zr alloy with a high Zr content is higher than that of the alloy with a low Zr content. When the maximum undercooling changes from 3 to 6 °C, the increment of the grain density increases with an increase in Zr content.

Table 1 Parameters in nucleation model
Fig. 5
figure 5

Effects of maximum undercooling (ΔT max) and Zr content on grain density (n v)

3.3 Quantitative value of solute partition coefficient

During solidification of Mg–Gd–Y–Zr alloy, the primary phase precipitates from the liquid phase, which is followed by the eutectic reaction. In the Mg–10Gd–3Y–Zr (0.58 wt%, 1.26 wt%, and 1.94 wt%) alloys, the contents of the main solute elements (Gd and Y) are higher than the nucleation agent (Zr). Wu et al. [7] proposed that the content of Gd in the secondary phase was higher than that in the primary phase, while the Y atoms uniformly distributed in the primary and secondary phases. It also means that Gd is easier to segregate due to its low diffusion coefficient. Therefore, the model of the binary alloy (Mg–Gd) could be applied to the CA program for simulating the solidification microstructure of the Mg–Gd–Y–Zr alloy.

In the CA program, some parameters of the Gd atom for calculating the partition coefficient are listed in Table 2, and the solute partition coefficient of Gd can be calculated by Eq. (9). The solidification velocity was calculated by \(v = \frac{l}{2t}\), where the growth time (\(t\)) was determined based on the cooling curve and dT/dt curve. Table 3 lists the results of the solute partition coefficient of the Mg–Gd–Y–Zr alloy with 0.58 wt% Zr. When the cooling rate increases from 2.6 to 11.0 °C·s−1, the solute partition coefficient increases from 0.607 to 0.800.

Table 2 Parameters of Gd atom for calculating partition coefficient
Table 3 Solidification velocity and partition coefficient at different cooling rates

3.4 Simulation results

The quantitative nucleation model that considered the effects of the cooling rate and Zr content on the grain size and the solute partition coefficient dealing with the solute trapping in the Mg–Gd–Y–Zr alloy was used in the CA simulation. Figure 6 shows the simulation results for the solidification microstructure of the Mg–Gd–Y–Zr alloy with 0.58 wt% Zr at various cooling rates. The average size of the secondary phase and the grain size decrease when the cooling rate increases from 2.6 to 6.1 °C·s−1. The solute partition coefficient increases with an increase in the cooling rate; therefore, the distribution of the Gd content in the primary phase tends to be more homogeneous. Figure 7a, b shows the OM images which were also shown in our previous study [7]. Figure 7c, d shows the CA simulation results corresponding to Fig. 7a, b, respectively. The Gd content is not uniform from the center to the edge of the primary phase, low at the center, while high at the edge of the grain. With an increasing cooling rate, more Gd atoms are trapped in the solid phase, and the Gd content in the residual liquid phase decreases. Thus, the content of the secondary phase decreases.

Fig. 6
figure 6

Simulation results of Mg–Gd–Y–Zr alloy with 0.58 wt% Zr at various cooling rates: a 2.6 °C·s−1, b 3.3 °C·s−1, c 4.4 °C·s−1 and d 6.1 °C·s−1

Fig. 7
figure 7

OM images and simulation results of Mg–Gd–Y–Zr alloy with 0.58 wt% Zr at different cooling rates: a experimental result at 11.0 °C·s−1 [7], b experimental result at 6.7 °C·s−1 [7], c simulation result at 11.0 °C·s−1, and d simulation result at 6.7 °C·s−1

Figure 8 shows the simulation results on the content of the eutectics in the Mg–Gd–Y–Zr alloy with 0.58 wt% Zr. The content of the eutectics calculated by CA method decreases with an increase in the cooling rate from 2.6 to 11.0 °C·s−1. As shown in our previous study [7], the experimental results for the content of the secondary phase decrease with an increase in the cooling rate from 2.6 to 11.0 °C·s−1. The eutectics is composed of \(\upalpha\)-Mg and the secondary phase; thus, the experimental data of the content of the secondary phase can be used to qualitatively verify the simulation results for the content of the eutectics.

Fig. 8
figure 8

Simulation results on fraction of eutectics

4 Conclusion

In this study, the solidification microstructure of the Mg–Gd–Y–Zr alloy was investigated via an experimental study and a CA simulation. The grain size of the Mg–Gd–Y–Zr alloy decreases with an increasing Zr content at the same cooling rate. When the cooling rate increases from 2.6 to 6.7 °C·s−1, the grain size of the Mg–Gd–Y–Zr alloy with 0.58 wt% Zr decreases from 73.94 to 50.10 µm. When the cooling rate increases from 3.0 to 8.8 °C·s−1, the grain size of the alloy with 1.26 wt% Zr decreases from 49.04 to 42.26 µm. When the cooling rate increases from 2.6 to 7.8 °C·s−1, the grain size of the alloy with 1.94 wt% Zr decreases from 41.71 to 35.00 µm. Based on the experimental data, a quantitative nucleation model describing the effects of the cooling rate and Zr content on the heterogeneous nucleation rate of the Mg–Gd–Y–Zr alloys was developed and the model parameters were determined. The solidification microstructure was simulated using the CA method, where the nucleation model was used and a solute partition coefficient was introduced to deal with solute trapping in front of the S/L interface. The simulation results of the grain size were in a good agreement with the experimental data. The simulation also shows that the fraction of the eutectics decreases with an increasing cooling rate in the range of 2.6–11.0 °C·s−1, which is verified indirectly by the experimental data.