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 · 17. Project: a model alloy from lattice constant to Pareto front

School of Engineering, Nazarbayev University

Worked solutions to the three exercises of Lecture 17. 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. Screen all 12 cubic elements in constants.ELEMENTS_DB using lattices.element_crystal_summary, diffraction.simulate_powder_xrd, and elasticity.voigt_reuss_hill_cubic. Verify GVoigt≥GHill≥GReuss>0G_{\mathrm{Voigt}} \geq G_{\mathrm{Hill}} \geq G_{\mathrm{Reuss}} > 0 for every element, verify the first allowed XRD reflection is (111)(111) for FCC, (110)(110) for BCC, and (111)(111) for diamond-cubic (with (200)(200) systematically absent), and verify Pugh’s B/GHill>1.75B/G_{\mathrm{Hill}} > 1.75 classifies all 5 FCC metals as ductile and all 3 diamond-cubic semiconductors/insulators as brittle.


Exercise 1: High-Throughput Crystallographic, XRD & VRH Ductility Screening Across ELEMENTS_DB
==============================================================================================
      Sym |  Struct | rho [g/cm3] | 1st XRD Peak |    G_R <= G_H <= G_V [GPa] |  Pugh B/G | Ductile?
--------------------------------------------------------------------------------------------------
       Cu |     fcc |       8.935 |    (1, 1, 1) |     40.0 <=  47.3 <=  54.6 |      2.90 | True
       Al |     fcc |       2.699 |    (1, 1, 1) |     26.0 <=  26.2 <=  26.3 |      2.92 | True
       Ni |     fcc |       8.908 |    (1, 1, 1) |     77.7 <=  86.2 <=  94.7 |      2.09 | True
       Au |     fcc |      19.288 |    (1, 1, 1) |     24.0 <=  27.5 <=  31.0 |      6.28 | True
       Ag |     fcc |      10.508 |    (1, 1, 1) |     25.5 <=  29.7 <=  33.8 |      3.49 | True
       Fe |     bcc |       7.874 |    (1, 1, 0) |     74.5 <=  81.8 <=  89.2 |      2.04 | True
        W |     bcc |      19.254 |    (1, 1, 0) |    160.0 <= 160.0 <= 160.0 |      1.94 | True
       Mo |     bcc |      10.224 |    (1, 1, 0) |    123.3 <= 125.0 <= 126.7 |      2.08 | True
       Cr |     bcc |       7.008 |    (1, 1, 0) |    113.8 <= 115.4 <= 116.9 |      1.40 | False
       Si | diamond |       2.329 |    (1, 1, 1) |     65.0 <=  66.5 <=  68.1 |      1.47 | False
       Ge | diamond |       5.327 |    (1, 1, 1) |     52.8 <=  54.4 <=  56.1 |      1.38 | False
C-diamond | diamond |       3.516 |    (1, 1, 1) |    531.6 <= 534.0 <= 536.4 |      0.83 | False

Explanation. Directional sp3sp^3 covalent bonds in diamond-cubic Si\mathrm{Si}, Ge\mathrm{Ge}, and C\mathrm{C}-diamond strongly resist bond-bending shear (GHillG_{\mathrm{Hill}} is large relative to bulk compression BB, giving negative Cauchy pressure C12−C44<0C_{12} - C_{44} < 0 and B/GHill∈[0.83,1.47]<1.75B/G_{\mathrm{Hill}} \in [0.83, 1.47] < 1.75), whereas non-directional metallic bonding in FCC Cu,Al,Ni,Au,Ag\mathrm{Cu, Al, Ni, Au, Ag} yields positive Cauchy pressure and B/GHill∈[2.09,6.28]>1.75B/G_{\mathrm{Hill}} \in [2.09, 6.28] > 1.75.


Exercise 2

Problem. Audit two industrial ICME heat-treatment failure modes for Ω=14 500 J/mol\Omega = 14\,500\ \mathrm{J/mol} (Tc≈872 KT_c \approx 872\ \mathrm{K}): (a) furnace overshoot to Tbad=910 K>TcT_{\mathrm{bad}} = 910\ \mathrm{K} > T_c, where regular_solution_spinodal returns None and d2G/dx2>0d^2G/dx^2 > 0 everywhere; and (b) off-composition melt c0=0.08c_0 = 0.08 outside the Landau spinodal (0.2113,0.7887)(0.2113, 0.7887), where cahn_hilliard_1d_spectral damps composition fluctuations exponentially instead of forming precipitates.


Exercise 2: Heat-Treating Above T_c or Outside the Spinodal — Fluctuation Decay Failure Audit
=============================================================================================
Critical temp T_c = 871.97 K | At T_bad = 910 K: spinodal = None, min(d^2G/dx^2) = 1264.6 J/mol (> 0)
Outside spinodal (c0=0.08): fluctuation std decayed 0.0124 -> 0.000043 (DISSOLVED)
Inside  spinodal (c0=0.45): fluctuation std grew    0.0124 -> 0.3986 (PHASE SEPARATED)

Explanation. Whenever T>TcT > T_c or c0∉(cs,−,cs,+)c_0 \notin (c_{s,-}, c_{s,+}), the chemical curvature f′′(c0)>0f''(c_0) > 0 makes the effective diffusivity Deff=Mf′′(c0)>0D_{\mathrm{eff}} = M f''(c_0) > 0 strictly downhill. Every wavenumber k>0k > 0 has ω(k)=−Mk2[f′′(c0)+κk2]<0\omega(k) = -M k^2[f''(c_0) + \kappa k^2] < 0, so small fluctuations decay and the solution stays uniform.


Exercise 3

Problem. Implement icme_pareto_alloy_optimizer(x_ni_grid, d_grain_grid_um) for ductile Cu1−xNix\mathrm{Cu}_{1-x}\mathrm{Ni}_x FCC solid-solution structural alloys (assumed costs of 9 USD/kg for Cu and 18 USD/kg for Ni), coupling lattices, elasticity, and kinetics_selection (hall_petch_yield_strength + pareto_frontier_2d) to find all non-dominated schedules minimizing volumetric cost (USD/m3\mathrm{USD/m^3}) while maximizing specific yield strength (σy/ρ\sigma_y / \rho).


Exercise 3: Implement It Yourself — Multi-Objective Cu-Ni ICME Alloy & Grain-Size Pareto Optimizer
==================================================================================================
Found 8 Pareto-optimal Cu-Ni ICME schedules (sorted from lowest cost to highest specific strength):
  x_Ni=0.10, d=50.0 um | E=137.2 GPa | Pugh=2.76 | Cost=  90.0 k$/m3 | sigma_y=183.2 MPa | spec=0.0205
  x_Ni=0.10, d=16.0 um | E=137.2 GPa | Pugh=2.76 | Cost=  91.1 k$/m3 | sigma_y=209.3 MPa | spec=0.0234
  x_Ni=0.10, d= 4.0 um | E=137.2 GPa | Pugh=2.76 | Cost=  93.8 k$/m3 | sigma_y=269.3 MPa | spec=0.0301
  x_Ni=0.10, d= 1.0 um | E=137.2 GPa | Pugh=2.76 | Cost=  99.1 k$/m3 | sigma_y=389.3 MPa | spec=0.0436
  x_Ni=0.30, d= 1.0 um | E=156.7 GPa | Pugh=2.54 | Cost= 117.0 k$/m3 | sigma_y=449.9 MPa | spec=0.0504
  x_Ni=0.40, d= 1.0 um | E=166.3 GPa | Pugh=2.45 | Cost= 126.0 k$/m3 | sigma_y=463.8 MPa | spec=0.0519
  x_Ni=0.50, d= 1.0 um | E=175.8 GPa | Pugh=2.37 | Cost= 135.0 k$/m3 | sigma_y=469.2 MPa | spec=0.0526

Summary. The project connects the scales of the book: starting at the Ångström crystal unit cell (lattices, diffraction, atomistics), homogenizing single-crystal elasticity (elasticity), mapping thermodynamic phase stability and phase-field microstructure (phase_thermodynamics, phase_field), and closing the design loop on macroscopic multi-objective Pareto frontiers (kinetics_selection).