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.

14. The Allen–Cahn equation and motion by curvature

School of Engineering, Nazarbayev University

Not every microstructural field in metallurgy is conserved. While solute concentration c(r,t)c(\mathbf{r}, t) must obey mass continuity, crystallographic grain orientation, antiphase domain order in Fe3Al\mathrm{Fe_3Al} (B2/DO3\mathrm{B2}/\mathrm{DO_3}) intermetallics, and ferroelectric polarization are non-conserved order parameters η(r,t)\eta(\mathbf{r}, t) that can relax locally by short-range atomic jumps across a boundary without long-range diffusion. In 1979, Samuel M. Allen and John W. Cahn showed that such interfaces migrate along their normal at a speed directly proportional to local mean curvature (vn=−Lmobκ/Rv_n = -L_{\mathrm{mob}}\kappa / R), causing circular 2-D grains to shrink in area at a constant universal rate dA/dt=−2πLmobκdA/dt = -2\pi L_{\mathrm{mob}}\kappa independent of grain size. In this lecture we verify this area law for a shrinking circle with phase_field.allen_cahn_2d_spectral and contrast t1/2t^{1/2} curvature-driven coarsening against t1/3t^{1/3} diffusion-limited Cahn–Hilliard coarsening.

Learning objectives

  1. Distinguish non-conserved L2L^2 gradient flows (∂tη=−Lmob δF/δη\partial_t \eta = -L_{\mathrm{mob}}\,\delta\mathcal{F}/\delta\eta, Model A) from conserved H−1H^{-1} flows (∂tc=∇⋅(M∇δF/δc)\partial_t c = \nabla\cdot(M\nabla\delta\mathcal{F}/\delta c), Model B).

  2. Integrate 2-D non-conserved domain evolution via phase_field.allen_cahn_2d_spectral and contrast non-conserved phase_fractions against conserved cahn_hilliard_2d_spectral on the same circular island.

  3. Derive and quantitatively verify the Allen–Cahn sharp-interface curvature velocity vn=−Lmobκ/Rv_n = -L_{\mathrm{mob}}\kappa / R and linear shrinking-area law A(t)=A0−2πLmobκtA(t) = A_0 - 2\pi L_{\mathrm{mob}}\kappa t.

  4. Contrast multi-domain coarsening exponents: Allen–Cahn curvature-driven growth (Ld∝t1/2L_d \propto t^{1/2}) versus Cahn–Hilliard diffusion-limited Ostwald ripening (Ld∝t1/3L_d \propto t^{1/3}).

Time: about 60 min

1. Principles and governing equations

For a non-conserved crystallographic or antiphase order parameter η(r,t)∈[0,1]\eta(\mathbf{r}, t) \in [0, 1] governed by the Ginzburg–Landau free energy F[η]=∬[f(η)+κ2∣∇η∣2] dx dy\mathcal{F}[\eta] = \iint [f(\eta) + \frac{\kappa}{2}|\nabla\eta|^2]\,dx\,dy, the Allen–Cahn equation (Allen & Cahn, Acta Metall. 27, 1085, 1979) postulates local relaxation directly proportional to −δF/δη-\delta\mathcal{F}/\delta\eta with kinetic mobility Lmob>0L_{\mathrm{mob}} > 0:

∂η∂t=−Lmob δFδη=−Lmob[f′(η)−κ∇2η](1.1)\frac{\partial \eta}{\partial t} = -L_{\mathrm{mob}}\,\frac{\delta \mathcal{F}}{\delta \eta} = -L_{\mathrm{mob}}\left[ f'(\eta) - \kappa \nabla^2 \eta \right] \tag{1.1}

The equation contains the second-order Laplacian ∇2η\nabla^2\eta (semi-implicit Fourier denominator 1+ΔtLmobκk21 + \Delta t L_{\mathrm{mob}}\kappa k^2 in phase_field.allen_cahn_2d_spectral), in contrast to the fourth-order biharmonic −∇4c-\nabla^4 c of Cahn–Hilliard.

1.1 Matched Asymptotic Sharp-Interface Motion by Mean Curvature

Near a smoothly curved 2-D domain boundary of radius of curvature R(t)R(t) separating η=1\eta = 1 (r<Rr < R) from η=0\eta = 0 (r>Rr > R), the polar Laplacian expands as ∇2η=∂2η∂r2+1r∂η∂r\nabla^2\eta = \frac{\partial^2 \eta}{\partial r^2} + \frac{1}{r}\frac{\partial \eta}{\partial r}. Substituting the traveling diffuse profile η(r,t)≈12[1−tanh⁡ ⁣(r−R(t)ℓw)]\eta(r, t) \approx \frac{1}{2}\left[1 - \tanh\!\left(\frac{r - R(t)}{\ell_w}\right)\right], where f′(η)−κ∂2η∂r2=0f'(\eta) - \kappa \frac{\partial^2 \eta}{\partial r^2} = 0 cancels the planar equilibrium balance, leaves:

−dRdt∂η∂r=LmobκR∂η∂r  ⟹  vn=dRdt=−LmobκR(1.2)-\frac{dR}{dt}\frac{\partial \eta}{\partial r} = L_{\mathrm{mob}}\frac{\kappa}{R}\frac{\partial \eta}{\partial r} \implies v_n = \frac{dR}{dt} = -\frac{L_{\mathrm{mob}}\kappa}{R} \tag{1.2}

Multiplying by 2πR2\pi R yields the celebrated Allen–Cahn / Mullins–von Neumann shrinking-circle area law:

dAdt=2πRdRdt=−2πLmobκ  ⟹  A(t)=A0−2πLmobκ t(1.3)\frac{dA}{dt} = 2\pi R \frac{dR}{dt} = -2\pi L_{\mathrm{mob}}\kappa \implies A(t) = A_0 - 2\pi L_{\mathrm{mob}}\kappa\,t \tag{1.3}

Remarkably, the barrier height WW drops out of dA/dtdA/dt completely (vn=−Mgbσv_n = -M_{\mathrm{gb}}\sigma with grain-boundary mobility Mgb=Lmobκ/σM_{\mathrm{gb}} = L_{\mathrm{mob}}\kappa / \sigma), and the circular grain loses area at a constant rate until it vanishes at text=A0/(2πLmobκ)t_{\mathrm{ext}} = A_0 / (2\pi L_{\mathrm{mob}}\kappa).


Demonstration 1: Conserved Cahn-Hilliard vs Non-Conserved Allen-Cahn on an Identical Circular Island
====================================================================================================
Initial island area A(0) = 1028.21 (pi*R0^2 = 1017.88)
At t = 15.0: Allen-Cahn area = 840.75 vs analytical A0 - 2*pi*L*kappa*t = 839.72
At t = 15.0: Cahn-Hilliard conserved integral = 1028.211393 (drift = 0.00e+00)

What Demonstration 1 shows. Starting from the same circular domain (R0=18.0R_0 = 18.0, A0=1028.2A_0 = 1028.2), the conserved Cahn–Hilliard droplet (ch_circle) cannot shrink because there are no larger droplets to absorb its solute, its integrated mass stays at 1028.211393. Meanwhile, the non-conserved Allen–Cahn antiphase domain (ac_circle) shrinks inward under its own capillary curvature to A(15)≈841A(15) \approx 841, close to the sharp-interface prediction A0−2πLmobκt=839.7A_0 - 2\pi L_{\mathrm{mob}}\kappa t = 839.7 (difference 0.1%0.1\%).


2. Quantitative Verification of dA/dt=−2πLmobκdA/dt = -2\pi L_{\mathrm{mob}}\kappa & Independence from WW

Equation (1.3) makes two quantitative predictions:

  1. A(t)A(t) is a straight line of slope −2πLmobκ-2\pi L_{\mathrm{mob}}\kappa, and R(t)=A(t)/πR(t) = \sqrt{A(t)/\pi} follows the parabolic shrinking law R(t)=R02−2LmobκtR(t) = \sqrt{R_0^2 - 2 L_{\mathrm{mob}}\kappa t}.

  2. Doubling the bulk barrier height WW (which narrows the interface thickness ℓw\ell_w and raises surface tension σ=κW/18\sigma = \sqrt{\kappa W / 18} by 2\sqrt{2}) does not change dA/dtdA/dt at all. We test both predictions directly.


Demonstration 2: Linear Area Decay Slope & Invariance with Respect to Barrier Height W
======================================================================================
Analytical slope -2*pi*L_mob*kappa     = -12.56637
Measured slope for W = 1.0 (l_w = 2.0) = -12.49719 (rel err = 0.551%)
Measured slope for W = 2.0 (l_w = 1.4) = -12.34800 (rel err = 1.738%)
<Figure size 1210x440 with 2 Axes>

Figure 14.1. A shrinking circular domain. (a) Area against time for the Allen–Cahn equation with two barrier heights and for the Cahn–Hilliard equation, with the sharp-interface result. (b) Radius against time.

What Demonstration 2 shows. Both W=1.0W = 1.0 and W=2.0W = 2.0 give slopes within 0.6%0.6\% and 1.7%1.7\% of −2πLmobκ=−12.566-2\pi L_{\mathrm{mob}}\kappa = -12.566; the agreement is better for the wider interface, which the grid resolves better. In panel (b), as R(t)R(t) shrinks, local curvature 1/R(t)1/R(t) grows, so the inward interface velocity ∣dR/dt∣=Lmobκ/R|dR/dt| = L_{\mathrm{mob}}\kappa / R accelerates steeply toward final grain disappearance.


3. Multi-Domain Grain Coarsening: t1/2t^{1/2} (Allen–Cahn) vs. t1/3t^{1/3} (Cahn–Hilliard)

Why do antiphase domains and polycrystals coarsen faster than conserved precipitates?

  • Allen–Cahn (Model A, Non-Conserved): Characteristic domain radius LdL_d moves at curvature speed dLd/dt∼Lmobκ/Ld  ⟹  Ld2(t)−Ld2(0)∝t  ⟹  Ld(t)∝t1/2dL_d/dt \sim L_{\mathrm{mob}}\kappa / L_d \implies L_d^2(t) - L_d^2(0) \propto t \implies L_d(t) \propto t^{1/2} (parabolic grain growth law).

  • Cahn–Hilliard (Model B, Conserved): Solute must diffuse across a distance ∼Ld\sim L_d down a Gibbs–Thomson chemical potential gradient Δμ/Ld∼(σ/Ld)/Ld=σ/Ld2\Delta\mu / L_d \sim (\sigma / L_d) / L_d = \sigma / L_d^2, giving dLd/dt∼Mσ/Ld2  ⟹  Ld3(t)−Ld3(0)∝t  ⟹  Ld(t)∝t1/3dL_d/dt \sim M\sigma / L_d^2 \implies L_d^3(t) - L_d^3(0) \propto t \implies L_d(t) \propto t^{1/3} (LSW Ostwald ripening law).

We evolve the same random initial order field on a 48x48 domain under both allen_cahn_2d_spectral and cahn_hilliard_2d_spectral and compare their characteristic domain growth.


Demonstration 3: Multi-Domain Coarsening — Allen-Cahn (t^{1/2}) vs Cahn-Hilliard (t^{1/3})
==========================================================================================
  Time t |  L_d Allen-Cahn |  L_d Cahn-Hilliard |       F_AC |       F_CH
------------------------------------------------------------------------
     0.0 |            2.59 |               2.59 |     298.71 |     298.71
     8.0 |           18.18 |               7.49 |      81.04 |     214.40
    16.0 |           22.72 |               8.75 |      56.85 |     181.53
    24.0 |           24.15 |               9.78 |      50.53 |     159.58
    32.0 |           25.28 |              10.62 |      45.45 |     144.19
    40.0 |           26.50 |              11.35 |      40.59 |     133.69
<Figure size 1210x440 with 3 Axes>

Figure 14.2. (a) Domain size against time for non-conserved (Allen–Cahn) and conserved (Cahn–Hilliard) dynamics from the same initial noise. (b) The Allen–Cahn field at t=40t = 40.

What Demonstration 3 shows. Starting from identical random fluctuations at t=0t = 0, non-conserved Allen–Cahn order relaxation immediately coarsens long-wavelength patches without waiting for long-range diffusive transport, and reaches Ld(40)=26.5L_d(40) = 26.5, against 11.4 for conserved Cahn–Hilliard dynamics. The run is too short and the box too small to measure the exponents 1/21/2 and 1/31/3 themselves. Also, in Allen–Cahn, even the k=0k = 0 uniform mode is linearly unstable (ωAC(k)=−Lmob[f′′(η0)+κk2]\omega_{\mathrm{AC}}(k) = -L_{\mathrm{mob}}[f''(\eta_0) + \kappa k^2] peaks at k=0k = 0).


4. Sensitivity to the parameters

What happens in Allen–Cahn if the initial average order parameter is asymmetric (ηˉ0∈{0.35,0.45,0.50,0.55,0.65}\bar{\eta}_0 \in \{0.35, 0.45, 0.50, 0.55, 0.65\})? Unlike Cahn–Hilliard (which preserves minority droplets forever at cˉ=0.35\bar{c} = 0.35), an asymmetric non-conserved system has more convex curvature on the minority phase, causing the minority domains to shrink and disappear completely as the entire crystal orders into a single variant (η→0\eta \to 0 or η→1\eta \to 1).


Demonstration 4: Asymmetric Initial Bias Sweep — Minority Variant Elimination in Allen-Cahn
===========================================================================================
Initial <eta_0> |  <eta> at t=15 |  <eta> at t=35 |  Final F[eta] | Asymptotic Fate
------------------------------------------------------------------------------------
           0.35 |         0.0000 |         0.0000 |        0.0000 | Single-domain eta -> 0
           0.45 |         0.0000 |         0.0000 |        0.0000 | Single-domain eta -> 0
           0.50 |         0.4869 |         0.4412 |       55.3409 | Coarsening antiphase walls
           0.55 |         1.0000 |         1.0000 |        0.0000 | Single-domain eta -> 1
           0.65 |         1.0000 |         1.0000 |        0.0000 | Single-domain eta -> 1

Inside the algorithm

What Demonstration 4 shows. Because ωAC(k=0)=−Lmobf′′(η0)>0\omega_{\mathrm{AC}}(k=0) = -L_{\mathrm{mob}} f''(\eta_0) > 0, any macroscopic bias away from ηˉ0=0.50\bar{\eta}_0 = 0.50 is exponentially amplified. At ηˉ0=0.35\bar{\eta}_0 = 0.35 and 0.65, the minority antiphase domains collapse by t=35t = 35 (<eta> = 0.0000 and 1.0000, F[eta] = 0.0000), leaving a defect-free single-variant crystal.

Below we inspect phase_field.allen_cahn_2d_spectral and verify its semi-implicit 1+ΔtLmobκk21 + \Delta t L_{\mathrm{mob}}\kappa k^2 spectral update against a NumPy implementation.

Check against the library


Inside the Algorithm: phase_field.allen_cahn_2d_spectral
========================================================
def allen_cahn_2d_spectral(
    eta_init: np.ndarray,
    Lx: float,
    Ly: float,
    dt: float,
    n_steps: int,
    L_mob: float = 1.0,
    W: float = 1.0,
    kappa: float = 1.0,
    record_every: int = 25,
) -> dict:
    """Integrate 2-D periodic non-conserved Allen-Cahn equation d(eta)/dt = -L_mob*[f'(eta) - kappa*lap(eta)]."""
    eta = np.asarray(eta_init, dtype=float).copy()
    if eta.ndim != 2:
        raise ValueError("eta_init must be a 2-D array.")
    nx, ny = eta.shape
    dx, dy = float(Lx) / nx, float(Ly) / ny
    kx = 2.0 * np.pi * np.fft.fftfreq(nx, d=dx)
    ky = 2.0 * np.pi * np.fft.fftfreq(ny, d=dy)
    kx_2d, ky_2d = np.meshgrid(kx, ky, indexing="ij")
    k2 = kx_2d**2 + ky_2d**2
    denom = 1.0 + dt * L_mob * kappa * k2

    eta_hat = np.fft.fft2(eta)
    times = [0.0]
    snaps = [eta.copy()]
    energies = [ginzburg_landau_free_energy_2d(eta, Lx=Lx, Ly=Ly, W=W, kappa=kappa)]
    fractions = [float(np.mean(eta))]

    for step in range(1, n_steps + 1):
        df_hat = np.fft.fft2(double_well_potential(eta, W=W)["df_dc"])
        eta_hat = (eta_hat - dt * L_mob * df_hat) / denom
        eta = np.real(np.fft.ifft2(eta_hat))
        if step % record_every == 0 or step == n_steps:
            times.append(step * dt)
            snaps.append(eta.copy())
            energies.append(ginzburg_landau_free_energy_2d(eta, Lx=Lx, Ly=Ly, W=W, kappa=kappa))
            fractions.append(float(np.mean(eta)))

    return {
        "times": np.array(times, dtype=float),
        "snapshots": np.array(snaps, dtype=float),
        "free_energies": np.array(energies, dtype=float),
        "phase_fractions": np.array(fractions, dtype=float),
        "final": eta,
    }

Single-step max |eta_hand - eta_lib|: 0.0

Exercises

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

  1. Verify a result. Simulate a circular domain (R0=17.0R_0 = 17.0 on 64×6464\times 64, W=1.0W = 1.0, t∈[0,10]t \in [0, 10]) for (Lmob,κ)∈{(0.5,2.0),(1.0,2.0),(1.5,1.5)}(L_{\mathrm{mob}}, \kappa) \in \{(0.5, 2.0), (1.0, 2.0), (1.5, 1.5)\} via allen_cahn_2d_spectral (Δt=0.025\Delta t = 0.025) and verify that the fitted area rate dA/dtdA/dt agrees with −2πLmobκ-2\pi L_{\mathrm{mob}}\kappa within 2%2\%.

  2. Find how it fails. Verify allen_cahn_2d_spectral raises ValueError on 1-D input, and demonstrate the grid-pinning failure mode on 64×6464\times 64 (Δx=1.0\Delta x = 1.0): compare a resolved interface (κ=2.0,W=1.0  ⟹  ℓw=2.0\kappa = 2.0, W = 1.0 \implies \ell_w = 2.0) against an under-resolved interface (κ=0.05,W=10.0  ⟹  ℓw=0.10≪Δx\kappa = 0.05, W = 10.0 \implies \ell_w = 0.10 \ll \Delta x) and show that the under-resolved circle becomes artificially trapped on the grid.

  3. Implement it yourself. Implement track_circular_grain_extinction(R0=8.0, L_mob=1.0, kappa=2.0, W=1.0) on a 48×4848\times 48 domain to verify the analytical extinction time text=R02/(2Lmobκ)=16.0t_{\mathrm{ext}} = R_0^2 / (2 L_{\mathrm{mob}}\kappa) = 16.0: confirm R2(t)R^2(t) linearity (Rfit2>0.9995R^2_{\mathrm{fit}} > 0.9995) for t≤10.0t \leq 10.0 and complete grain disappearance (max⁡η<10−3\max \eta < 10^{-3}) by t=1.25 textt = 1.25\,t_{\mathrm{ext}}.


Self-check for the exercises
============================
Shrinking-circle dA/dt = -6.2723 vs exact -2*pi*L_mob*kappa = -6.2832
All checks passed.