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.

Solutions · 10. Common tangents, binodals and binary phase diagrams

School of Engineering, Nazarbayev University

Worked solutions to the three exercises of Lecture 10. Each solution is computed here and checked with assert statements against an exact identity or an independent calculation. The first code cell sets up the notebook and runs Demonstration 1 of the lecture without showing its output, because some of the solutions use its variables.

Exercise 1

Problem. Verify on an asymmetric Redlich–Kister curve (L0=20 000,L1=−4 500 J/mol,T=800 KL_0 = 20\,000, L_1 = -4\,500\ \mathrm{J/mol}, T = 800\ \mathrm{K}) that common_tangent_binodal yields mu_A_eq and mu_B_eq matching analytical dmu_A, dmu_B at both tie-line endpoints, and verify Seltz’s partition identities (1−xS)/(1−xL)=cA(T)(1-x_S)/(1-x_L) = c_A(T) and xS/xL=cB(T)x_S/x_L = c_B(T) across Cu–Ni to 10-14.


Exercise 1: Common-Tangent Chemical-Potential Intercepts & Seltz Partition Identities
=====================================================================================
Skewed tie-line: x_left = 0.12694, x_right = 0.96989, slope = +587.78 J/mol
mu_A_eq = -761.30 vs dmu_A(left) = -761.39, dmu_A(right) = -762.54
Seltz A and B chemical-potential partition ratios verified across 50 temperatures to 1e-14

Explanation. A line y(x)=mx+by(x) = m x + b tangent to ΔGmix\Delta G_{\mathrm{mix}} at both x1x_1 and x2x_2 satisfies y(0)=b=ΔG(x1)−x1G′(x1)=ΔμA(x1)=ΔμA(x2)y(0) = b = \Delta G(x_1) - x_1 G'(x_1) = \Delta\mu_A(x_1) = \Delta\mu_A(x_2) and y(1)=b+m=ΔG(x2)+(1−x2)G′(x2)=ΔμB(x1)=ΔμB(x2)y(1) = b + m = \Delta G(x_2) + (1 - x_2)G'(x_2) = \Delta\mu_B(x_1) = \Delta\mu_B(x_2), demonstrating geometrically why equal chemical potentials require a shared non-horizontal tangent whenever ΔG\Delta G is asymmetric.


Exercise 2

Problem. Demonstrate the local-minima fallacy on G(x)=2000x+ΔGRK(x;T=700 K,L0=22 000,L1=−3 000)G(x) = 2000 x + \Delta G_{\mathrm{RK}}(x; T=700\ \mathrm{K}, L_0=22\,000, L_1=-3\,000): find the two local minima where ∂G/∂x=0\partial G/\partial x = 0, compare them with the true common_tangent_binodal tie-line, and show that the common tangent yields a strictly lower two-phase Gibbs energy at x0=0.50x_0 = 0.50.


Exercise 2: Diagnostic Audit — Local-Minima Fallacy (dG/dx = 0) vs Global Common Tangent
========================================================================================
False local minima (dG/dx=0): x1 = 0.0301, x2 = 0.9757 | G_mix(0.50) = +848.23 J/mol
True common tangent         : x1 = 0.0464, x2 = 0.9846 | G_mix(0.50) = +834.85 J/mol
Gibbs energy penalty of local-minima fallacy = +13.38 J/mol | Max solvus error = 0.0163

Explanation. Adding a linear reference-state offset +2000 x+2000\,x shifts μB∘−μA∘\mu_B^\circ - \mu_A^\circ without changing physical mixing thermodynamics at all, yet it shifts the zeros of ∂G/∂x=0\partial G/\partial x = 0 and leaves an unrelaxed Gibbs free-energy penalty. By contrast, the common-tangent compositions (xleft,xright)(x_{\mathrm{left}}, x_{\mathrm{right}}) are 100% invariant to adding any linear function a+bxa + b x to G(x)G(x).


Exercise 3

Problem. Implement hull_isomorphous_tie_line(T_K, Tm_A, dHm_A, Tm_B, dHm_B, n_grid=4000) by constructing GL(x,T)=RT[xln⁡x+(1−x)ln⁡(1−x)]G^L(x, T) = R T[x\ln x + (1-x)\ln(1-x)] and GS(x,T)=−(1−x)ΔHm,A(1−T/Tm,A)−xΔHm,B(1−T/Tm,B)+GL(x,T)G^S(x, T) = -(1-x)\Delta H_{m,A}(1 - T/T_{m,A}) - x\Delta H_{m,B}(1 - T/T_{m,B}) + G^L(x, T) and calling common_tangent_binodal(x_grid, G_L, G_S). Verify agreement with isomorphous_phase_boundaries across 6 Cu–Ni temperatures to < 1e-3.


Exercise 3: Implement It Yourself — Unifying Convex-Hull CALPHAD with Analytical Seltz Isomorphous Lens
=======================================================================================================
   T [K] |  xL (Hull) | xL (Seltz) |  xS (Hull) | xS (Seltz) |  Max |Err|
------------------------------------------------------------------------
  1400.0 |    0.09553 |    0.09547 |    0.12704 |    0.12695 |   8.50e-05
  1460.0 |    0.23982 |    0.23985 |    0.29983 |    0.29986 |   3.31e-05
  1520.0 |    0.39410 |    0.39409 |    0.46537 |    0.46548 |   1.18e-04
  1580.0 |    0.55789 |    0.55782 |    0.62515 |    0.62516 |   6.65e-05
  1640.0 |    0.73068 |    0.73067 |    0.77994 |    0.77996 |   2.09e-05
  1690.0 |    0.88146 |    0.88144 |    0.90597 |    0.90588 |   8.48e-05

Summary. Constructing explicit GL(x,T)G^L(x, T) and GS(x,T)G^S(x, T) curves and taking their lower convex hull reproduces Seltz’s analytical Cu–Ni liquidus and solidus within half a grid step (∼2×10−4\sim 2\times 10^{-4}), showing how modern CALPHAD software generalizes seamlessly to arbitrary Redlich–Kister non-ideality and multi-phase competition.