Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

9. Regular and Redlich–Kister solutions and the spinodal

School of Engineering, Nazarbayev University

Gold and nickel form a single FCC solid solution at high temperature and separate into Au-rich and Ni-rich regions when cooled into a miscibility gap. Inside part of that gap the separation needs no nucleation barrier. Both facts follow from the competition between interaction enthalpy ΔHmix\Delta H_{\mathrm{mix}} (which favors A–A and B–B clustering when Ω>0\Omega > 0) and configurational entropy −TΔSmix-T\Delta S_{\mathrm{mix}} (whose vertical logarithmic walls at x→0,1x \to 0, 1 always enforce finite terminal solubility). In this lecture we evaluate regular and CALPHAD subregular Redlich–Kister solution models (phase_thermodynamics), verify Euler homogeneity and the Gibbs–Duhem identity for chemical potentials ΔμA,ΔμB\Delta\mu_A, \Delta\mu_B, and map out consolute critical temperatures Tc=Ω/(2R)T_c = \Omega/(2R) and spinodal instability loci (∂2G/∂x2=0\partial^2 G / \partial x^2 = 0).

Learning objectives

  1. Analyze the competition between mixing enthalpy ΔHmix\Delta H_{\mathrm{mix}} and configurational entropy −TΔSmix-T\Delta S_{\mathrm{mix}} in phase_thermodynamics.regular_solution_free_energy.

  2. Evaluate asymmetric CALPHAD excess free energies via phase_thermodynamics.redlich_kister_free_energy (L0,L1,L2L_0, L_1, L_2) and verify Euler homogeneity and the isothermal Gibbs–Duhem relation.

  3. Derive and verify the exact consolute critical temperature Tc=Ω/(2R)T_c = \Omega/(2R) (regular_solution_critical_temp) and spinodal boundary ∂2G/∂x2=0\partial^2 G / \partial x^2 = 0 (regular_solution_spinodal).

  4. Explore parameter sensitivity across ordering (Ω<0\Omega < 0), ideal (Ω=0\Omega = 0), and skewed subregular (L1≠0L_1 \neq 0) alloy solutions.

Time: about 60 min

1. Regular Solution Thermodynamics: Enthalpy vs. Entropy

In Hildebrand’s regular solution model (phase_thermodynamics.regular_solution_free_energy), A and B atoms mix randomly on a crystal lattice (ΔSmix=ΔSmixideal\Delta S_{\mathrm{mix}} = \Delta S_{\mathrm{mix}}^{\mathrm{ideal}}) while pairwise A–B bond mismatch (2εAB−εAA−εBB2\varepsilon_{AB} - \varepsilon_{AA} - \varepsilon_{BB}) produces a parabolic mixing enthalpy with interaction parameter Ω [J/mol]\Omega\ [\mathrm{J/mol}]:

ΔHmix(x)=Ωx(1−x),ΔSmix(x)=−R[xln⁡x+(1−x)ln⁡(1−x)](1.1)\Delta H_{\mathrm{mix}}(x) = \Omega x(1 - x), \qquad \Delta S_{\mathrm{mix}}(x) = -R\bigl[x\ln x + (1 - x)\ln(1 - x)\bigr] \tag{1.1}
ΔGmix(x,T)=Ωx(1−x)+RT[xln⁡x+(1−x)ln⁡(1−x)](1.2)\Delta G_{\mathrm{mix}}(x, T) = \Omega x(1 - x) + R T\bigl[x\ln x + (1 - x)\ln(1 - x)\bigr] \tag{1.2}

Differentiating twice with respect to mole fraction x=xBx = x_B reveals the local compositional stiffness (curvature):

∂2ΔGmix∂x2=RTx(1−x)−2Ω(1.3)\frac{\partial^2 \Delta G_{\mathrm{mix}}}{\partial x^2} = \frac{R T}{x(1 - x)} - 2\Omega \tag{1.3}

When Ω>0\Omega > 0 (clustering / endothermic mixing), RTx(1−x)\frac{R T}{x(1-x)} attains its minimum 4RT4 R T at x=0.5x = 0.5. Thus ΔGmix\Delta G_{\mathrm{mix}} is globally convex above Tc=Ω2RT_c = \frac{\Omega}{2R}, whereas for T<TcT < T_c its center buckles upward into an unstable spinodal dome (∂2ΔGmix∂x2<0\frac{\partial^2 \Delta G_{\mathrm{mix}}}{\partial x^2} < 0).


Demonstration 1: Enthalpy-Entropy Competition Above and Below Tc = Omega / (2R)
===============================================================================
Omega = 18000 J/mol -> Consolute Critical Temperature Tc = 1082.45 K
At T =  750 K (< Tc): dG_mix(0.5) =   +177.6 J/mol | d2G/dx2(0.5) =  -11056.6 J/mol (UNSTABLE < 0)
At T = 1300 K (> Tc): dG_mix(0.5) =  -2992.1 J/mol | d2G/dx2(0.5) =   +7235.2 J/mol (STABLE > 0)
<Figure size 1034x429 with 2 Axes>

Figure 9.1. Regular solution with the assumed Ω=18 kJ/mol\Omega = 18\ \mathrm{kJ/mol}. (a) Enthalpy, entropy term and Gibbs energy of mixing below and above TcT_c. (b) Second derivative of the Gibbs energy; it is negative inside the spinodal.

What Demonstration 1 shows. Even at 750 K750\ \mathrm{K} where ΔHmix(0.5)=+4.50 kJ/mol\Delta H_{\mathrm{mix}}(0.5) = +4.50\ \mathrm{kJ/mol} pushes the equiatomic solution upward into an unstable barrier (∂2G/∂x2=−11.06 kJ/mol<0\partial^2 G/\partial x^2 = -11.06\ \mathrm{kJ/mol} < 0), the infinite downward slope of −TΔSmix-T\Delta S_{\mathrm{mix}} at x→0+x \to 0^+ and x→1−x \to 1^- produces two symmetric free-energy minima below 0 kJ/mol0\ \mathrm{kJ/mol}. This is why a pure element always dissolves a finite equilibrium concentration of a second element. The interaction parameter Ω=18 kJ/mol\Omega = 18\ \mathrm{kJ/mol} is an assumed value.


2. Subregular Redlich–Kister CALPHAD Expansion, Euler Homogeneity & Gibbs–Duhem

Real binary alloys rarely have equal atomic radii (for example, rAu=1.44 A˚r_{\mathrm{Au}} = 1.44\ \text{\AA} vs. rNi=1.25 A˚r_{\mathrm{Ni}} = 1.25\ \text{\AA}, making it much costlier in elastic strain energy to squeeze a large Au atom into a stiff Ni lattice than vice versa). CALPHAD databases represent asymmetric excess Gibbs energy via the Redlich–Kister (1948) polynomial (phase_thermodynamics.redlich_kister_free_energy):

Gex(x)=x(1−x)[L0+L1(1−2x)+L2(1−2x)2](2.1)G^{\mathrm{ex}}(x) = x(1 - x)\bigl[L_0 + L_1(1 - 2x) + L_2(1 - 2x)^2\bigr] \tag{2.1}

The partial molar mixing chemical potentials follow from the tangent-intercept relations:

ΔμA=ΔGmix−x∂ΔGmix∂x,ΔμB=ΔGmix+(1−x)∂ΔGmix∂x(2.2)\Delta\mu_A = \Delta G_{\mathrm{mix}} - x\frac{\partial \Delta G_{\mathrm{mix}}}{\partial x}, \qquad \Delta\mu_B = \Delta G_{\mathrm{mix}} + (1 - x)\frac{\partial \Delta G_{\mathrm{mix}}}{\partial x} \tag{2.2}

which automatically enforce Euler’s homogeneity theorem (1−x)ΔμA+xΔμB≡ΔGmix(1-x)\Delta\mu_A + x\Delta\mu_B \equiv \Delta G_{\mathrm{mix}} and the Gibbs–Duhem differential constraint (1−x)∂ΔμA∂x+x∂ΔμB∂x≡0(1-x)\frac{\partial\Delta\mu_A}{\partial x} + x\frac{\partial\Delta\mu_B}{\partial x} \equiv 0.


Demonstration 2: Redlich-Kister Asymmetric Alloy Verification — Euler & Gibbs-Duhem Identities
==============================================================================================
Max Euler homogeneity residual |(1-x)dmu_A + x*dmu_B - dG| = 1.137e-13 J/mol
Max Gibbs-Duhem residual       |(1-x)dmuA/dx + x*dmuB/dx|  = 2.700e-06 J/mol

What Demonstration 2 shows. Regardless of how strongly L1L_1 and L2L_2 skew Gex(x)G^{\mathrm{ex}}(x), Euler’s theorem holds to 10−12 J/mol10^{-12}\ \mathrm{J/mol} and Gibbs–Duhem holds across the entire composition interval, meaning ΔμA(x)\Delta\mu_A(x) and ΔμB(x)\Delta\mu_B(x) can never vary independently at constant (T,P)(T, P): wherever ΔμB\Delta\mu_B rises with xx, ΔμA\Delta\mu_A must fall with slope −x1−x∂ΔμB∂x-\frac{x}{1-x}\frac{\partial\Delta\mu_B}{\partial x}.


3. Critical Temperature TcT_c & Exact Spinodal Locus (regular_solution_spinodal)

Setting ∂2ΔGmix∂x2=RTx(1−x)−2Ω=0\frac{\partial^2 \Delta G_{\mathrm{mix}}}{\partial x^2} = \frac{R T}{x(1-x)} - 2\Omega = 0 yields the quadratic x(1−x)=RT2Ω=T4Tcx(1 - x) = \frac{R T}{2\Omega} = \frac{T}{4 T_c}, whose roots define the chemical spinodal curve (phase_thermodynamics.regular_solution_spinodal):

Tc=Ω2R,xs1,s2(T)=12(1∓1−TTc)(0<T<Tc)(3.1)T_c = \frac{\Omega}{2 R}, \qquad x_{s1, s2}(T) = \frac{1}{2}\left(1 \mp \sqrt{1 - \frac{T}{T_c}}\right) \quad (0 < T < T_c) \tag{3.1}

Inside (xs1,xs2)(x_{s1}, x_{s2}), ∂2G∂x2<0\frac{\partial^2 G}{\partial x^2} < 0: uphill interdiffusion (Deff∝M∂2G∂x2<0D_{\mathrm{eff}} \propto M \frac{\partial^2 G}{\partial x^2} < 0) amplifies infinitesimal composition waves spontaneously (spinodal decomposition, Cahn 1961).


Demonstration 3: Regular-Solution Critical Point & Spinodal Dome Verification
=============================================================================
Omega = 20000 J/mol -> Exact Tc = 1202.7236 K
  T / Tc |     T [K] |       x_s1 |       x_s2 |   d2G/dx2(x_s1) |    d2G/dx2(0.5)
--------------------------------------------------------------------------------
    0.35 |    420.95 |   0.096887 |   0.903113 |       7.276e-12 |       -26000.00
    0.50 |    601.36 |   0.146447 |   0.853553 |       7.276e-12 |       -20000.00
    0.65 |    781.77 |   0.204196 |   0.795804 |       0.000e+00 |       -14000.00
    0.80 |    962.18 |   0.276393 |   0.723607 |       0.000e+00 |        -8000.00
    0.92 |   1106.51 |   0.358579 |   0.641421 |      -7.276e-12 |        -3200.00
    0.99 |   1190.70 |   0.450000 |   0.550000 |       0.000e+00 |         -400.00

What Demonstration 3 shows. As TT rises toward Tc=1202.72 KT_c = 1202.72\ \mathrm{K}, the spinodal roots (xs1,xs2)(x_{s1}, x_{s2}) pinch together parabolically as 1−T/Tc\sqrt{1 - T/T_c} and merge at the critical consolute point (xc=0.5,Tc)(x_c = 0.5, T_c) where both ∂2G∂x2=0\frac{\partial^2 G}{\partial x^2} = 0 and ∂3G∂x3=0\frac{\partial^3 G}{\partial x^3} = 0.


4. Conceptual Exploration & Parameter Sensitivity (“What-If”: Ordering vs. Subregular Skewness)

How does changing the sign of Ω\Omega (Ω<0\Omega < 0 ordering/intermetallic tendency vs. Ω>0\Omega > 0 clustering) or introducing subregular asymmetry L1≠0L_1 \neq 0 reshape Gex(x)G^{\mathrm{ex}}(x) and shift the spinodal instability zone?


Demonstration 4: Ordering (Omega < 0) Guard & Subregular Skewness Sweep (L1 / L0)
=================================================================================
 L1 / L0 |  Peak G_ex x* |  Min d2G/dx2 x* |  Min d2G/dx2 [J/mol]
------------------------------------------------------------------
   -0.45 |         0.599 |           0.751 |             -27091.7
   +0.00 |         0.499 |           0.499 |             -10067.8
   +0.45 |         0.401 |           0.249 |             -27091.7
<Figure size 1034x429 with 2 Axes>

Figure 9.2. Redlich–Kister solution for three values of L1/L0L_1/L_0. (a) Excess Gibbs energy. (b) Second derivative of the Gibbs energy of mixing.

Inside the algorithm

In Demonstration 4, because ∂2∂x2[x(1−x)(1−2x)]=−6(1−2x)\frac{\partial^2}{\partial x^2}\bigl[x(1-x)(1-2x)\bigr] = -6(1 - 2x), setting L1>0L_1 > 0 adds −6L1(1−2x)-6 L_1(1 - 2x) to ∂2Gex∂x2\frac{\partial^2 G^{\mathrm{ex}}}{\partial x^2}, making the curvature most negative on the A-rich side (x<0.5x < 0.5, right where GexG^{\mathrm{ex}} peaks), whereas L1<0L_1 < 0 shifts both the excess-enthalpy peak and the spinodal core toward B-rich compositions (x>0.5x > 0.5).

Below we inspect phase_thermodynamics.redlich_kister_free_energy and verify its exact polynomial derivatives from scratch.

Check against the library


Inside the Algorithm: phase_thermodynamics.redlich_kister_free_energy
=====================================================================
def redlich_kister_free_energy(
    x: float | np.ndarray,
    T_K: float,
    L0: float,
    L1: float = 0.0,
    L2: float = 0.0,
) -> dict:
    """Evaluate subregular Redlich-Kister mixing Gibbs energy G_ex = x*(1-x)*[L0 + L1*(1-2x) + L2*(1-2x)^2]."""
    if T_K <= 0.0:
        raise ValueError("Temperature T_K must be strictly positive.")
    x_arr = np.asarray(x, dtype=float)
    if np.any((x_arr < 0.0) | (x_arr > 1.0)):
        raise ValueError("Mole fraction x must lie in [0, 1].")
    xc = np.clip(x_arr, 1e-15, 1.0 - 1e-15)
    u = 1.0 - 2.0 * x_arr
    poly = L0 + L1 * u + L2 * (u**2)
    dpoly_dx = -2.0 * L1 - 4.0 * L2 * u
    d2poly_dx2 = 8.0 * L2

    g_ex = x_arr * (1.0 - x_arr) * poly
    dg_ex_dx = u * poly + x_arr * (1.0 - x_arr) * dpoly_dx
    d2g_ex_dx2 = -2.0 * poly + 2.0 * u * dpoly_dx + x_arr * (1.0 - x_arr) * d2poly_dx2

    g_id = np.where((x_arr > 0.0) & (x_arr < 1.0), R * T_K * (xc * np.log(xc) + (1.0 - xc) * np.log(1.0 - xc)), 0.0)
    dg_id_dx = R * T_K * np.log(xc / (1.0 - xc))
    d2g_id_dx2 = (R * T_K) / (xc * (1.0 - xc))

    dg = g_id + g_ex
    dg_dx = dg_id_dx + dg_ex_dx
    d2g = d2g_id_dx2 + d2g_ex_dx2
    dmu_a = dg - x_arr * dg_dx
    dmu_b = dg + (1.0 - x_arr) * dg_dx

    if np.ndim(x) == 0:
        return {
            "dG_mix": float(dg),
            "G_excess": float(g_ex),
            "dG_dx": float(dg_dx),
            "d2G_dx2": float(d2g),
            "dmu_A": float(dmu_a),
            "dmu_B": float(dmu_b),
        }
    return {
        "dG_mix": dg,
        "G_excess": g_ex,
        "dG_dx": dg_dx,
        "d2G_dx2": d2g,
        "dmu_A": dmu_a,
        "dmu_B": dmu_b,
    }

Exact Redlich-Kister polynomial & derivative match verified to machine precision

Exercises

Worked solutions are in 09_solutions.ipynb. The cell below the list is a short self-check to start from.

  1. Verify a result. Evaluate RTln⁡γA=ΔμA−RTln⁡(1−x)R T \ln\gamma_A = \Delta\mu_A - R T \ln(1 - x) and RTln⁡γB=ΔμB−RTln⁡xR T \ln\gamma_B = \Delta\mu_B - R T \ln x from redlich_kister_free_energy with (L0,L1,L2)=(21 000,−5 500,2 400) J/mol(L_0, L_1, L_2) = (21\,000, -5\,500, 2\,400)\ \mathrm{J/mol} at T=1000 KT = 1000\ \mathrm{K}, verifying Raoult’s law (γA→1\gamma_A \to 1 as x→0+x \to 0^+) and Henry’s infinite-dilution enthalpies RTln⁡γB∞=L0+L1+L2R T \ln\gamma_B^\infty = L_0 + L_1 + L_2 (x→0+x \to 0^+) and RTln⁡γA∞=L0−L1+L2R T \ln\gamma_A^\infty = L_0 - L_1 + L_2 (x→1−x \to 1^-).

  2. Find how it fails. Verify that pure-component endpoints x∈{0.0,1.0}x \in \{0.0, 1.0\} return exact zero mixing energy (dG_mix == 0.0) without 0 * (-inf) = NaN corruption in both regular_solution_free_energy and redlich_kister_free_energy, and confirm that invalid compositions (x=−0.01,1.02x = -0.01, 1.02) or T≤0T \leq 0 raise ValueError.

  3. Implement it yourself. Implement subregular_spinodal_roots(T_K, L0, L1, L2=0.0) to find the spinodal compositions where redlich_kister_free_energy(..., L0, L1, L2)['d2G_dx2'] == 0 via sign-change bracketing and 60-step bisection. Verify exact match with regular_solution_spinodal when L1=L2=0L_1 = L_2 = 0, and compute the skewed spinodal roots for (L0,L1)=(18 500,−6 000) J/mol(L_0, L_1) = (18\,500, -6\,000)\ \mathrm{J/mol} at T=850 KT = 850\ \mathrm{K}.


Self-check for the exercises
============================
Verified exact Tc = 1000.00 K and spinodal roots at T/Tc = 0.75: (0.25000000000000006, 0.75).
All checks passed.