Notes · phase separation with a passive species
Self-Propelled Cahn–Hilliard Droplets
A phase-separating field coupled to a passive, purely diffusing field by cross-diffusion. When the coupling is non-reciprocal, the droplets push the passive matter into a bow wave and chase it across the plane.
1The Cahn–Hilliard equation
The Cahn–Hilliard equation models phase separation of a binary mixture with a conserved order parameter \(c\). It is a gradient flow of the Ginzburg–Landau free energy
\[ \begin{equation} F[c] = \int_\Omega \Big( f(c) + \tfrac{\varepsilon^2}{2}|\nabla c|^2 \Big)\, dV, \qquad f(c) = \tfrac14 (c^2-1)^2 \tag{1}\label{eq:F} \end{equation} \] \[ \begin{equation} \frac{\partial c}{\partial t} = \nabla\cdot\big(M\nabla\mu\big), \qquad \mu = \frac{\delta F}{\delta c} = f'(c) - \varepsilon^2\nabla^2 c \tag{2}\label{eq:CHgen} \end{equation} \]With constant mobility this is the familiar form
\[ \begin{equation} \frac{\partial c}{\partial t} = M\,\nabla^2\big(c^3 - c - \varepsilon^2\nabla^2 c\big). \tag{3}\label{eq:CH} \end{equation} \]- Mass is conserved: \(\int c\,dV\) is constant with periodic or no-flux boundaries.
- Energy decreases: \(dF/dt = -\int M|\nabla\mu|^2\,dV \le 0\).
- Uniform states inside the spinodal are unstable for \(0 \lt k \lt 1/\varepsilon\); domains then coarsen as \(L \sim t^{1/3}\).
- The equation is fourth order, so explicit stepping needs \(\Delta t \sim \Delta x^4\). Semi-implicit spectral, convex-splitting, or SAV schemes avoid this.
2Coupling to a passive field
A second density \(\rho\) that only diffuses is trivially decoupled unless something links it to \(c\). Three common links:
- Free energy. Add an ideal-solution term and a cross term, \(F \to F + \int [k_BT\,\rho(\ln\rho-1) + \chi c\rho]\,dV\). Then \[ \begin{equation} \partial_t c = M\nabla^2\big(c^3 - c - \varepsilon^2\nabla^2 c + \chi\rho\big), \qquad \partial_t\rho = D\nabla^2\rho + \tfrac{D\chi}{k_BT}\nabla\cdot(\rho\nabla c). \tag{4}\label{eq:partition} \end{equation} \] The passive species partitions into one phase or onto interfaces, as client molecules do in condensates.
- Kinetics only. \(D = D(c)\) or \(M = M(\rho)\), as in crowded media.
- Reactions. Source and sink terms that convert or consume species, as in phase-field tumour models and chemically active droplets (Section 7).
3The cross-diffusion model
The system studied here couples a Cahn–Hilliard field \(A\) to a passive field \(P\) through four diffusion constants. It is linear apart from the cubic and \(\kappa\) terms:
\[ \begin{equation} \frac{\partial A}{\partial t} = \nabla^2\Big[ D_A\big(A^3 - A - \kappa\nabla^2 A\big) + D_{AP}\,P \Big] \tag{5}\label{eq:A} \end{equation} \] \[ \begin{equation} \frac{\partial P}{\partial t} = \nabla^2\Big[ D_P\,P + D_{PA}\,A \Big] \tag{6}\label{eq:P} \end{equation} \]When a free energy exists
Writing each equation as \(\partial_t\phi_i = D_i\nabla^2\mu_i\), the cross terms come from a single \(\chi AP\) in a free energy only if
\[ \begin{equation} D_{AP}\,D_P = D_{PA}\,D_A. \tag{7}\label{eq:recip} \end{equation} \]Then the dynamics is a gradient flow and droplets can only sit still and coarsen. When Eq. \eqref{eq:recip} fails the coupling is non-reciprocal and there is no Lyapunov functional.
Linear stability
About a uniform state \((A_0, P_0)\), with \(a = 3A_0^2 - 1\) and perturbations \(\propto e^{ikx+\lambda t}\), the growth rates are eigenvalues of
\[ \begin{equation} J(k) = -k^2\begin{pmatrix} D_A(a+\kappa k^2) & D_{AP} \\ D_{PA} & D_P \end{pmatrix}. \tag{8}\label{eq:J} \end{equation} \]- Stationary instability (\(\det J \lt 0\)) when \(D_AD_P(a+\kappa k^2) \lt D_{AP}D_{PA}\).
- Oscillatory instability requires \(D_{AP}D_{PA} \lt 0\): chase-and-run coupling, giving travelling waves, oscillating domains, and arrested coarsening.
4Why the droplets move
With \(D_{AP} = -\alpha\) and \(D_{PA} = +\alpha\):
- The P flux contains \(-\alpha\nabla A\), so P is expelled from droplets and piles up around each rim.
- The A flux contains \(+\alpha\nabla P\), so A climbs gradients of P.
A symmetric rim pulls equally in all directions. If it tips, the droplet moves toward the thicker side, pushes P ahead of itself like a bow wave, and leaves a depleted wake that refills only by diffusion, on a time of order \(R^2/D_P\). Small \(D_P\) preserves the asymmetry, so the droplet keeps chasing a pile it is building. Large \(D_P\) smooths the pile into a halo and motion stops.
Eqs. 5–6 are invariant under \(P\to-P,\ \alpha\to-\alpha\). The opposite sign convention gives droplets led by a low-P region; the motion is the same. Only \(D_{AP}D_{PA} \lt 0\) matters.
| α | DP | Speed (cells per unit time) | Shape |
|---|---|---|---|
| 0.10 | 0.05 | 0.011 | round |
| 0.12 | 0.03 | 0.045 | ovals, some short worms |
| 0.20 | 0.02 | 0.070 | elongated |
| 0.25 | 0.02 | 0.10 | crescents and worms |
The simulation advances about 900 steps per second in a browser regardless of the steps-per-frame setting, which only trades frame rate for steps. To go faster, raise α or lower \(D_P\), or change the code to use a larger Δt or a smaller grid.
5Why small droplets disappear
Total A and total P are conserved; the number of droplets is not. Interfacial tension raises the chemical potential of small droplets (Gibbs–Thomson):
\[ \begin{equation} \mu(R) \approx \mu_{\mathrm{eq}} + \frac{C\,\sigma}{R}, \tag{9}\label{eq:GT} \end{equation} \]so material flows through the dilute background from small droplets to large ones. This is Ostwald ripening. A dissolved droplet of radius 6 carries about 100 cells of excess A; spread over roughly 12,000 background cells, it raises the background by 0.01–0.02, which is invisible in the dots.
| t | ⟨A⟩ | ⟨P⟩ | ⟨A⟩ where A < 0 |
|---|---|---|---|
| 200 | −0.599269495956 | −7.15×10⁻⁵ | −0.8723 |
| 400 | −0.599269495956 | −7.15×10⁻⁵ | −0.8903 |
| 600 | −0.599269495956 | −7.15×10⁻⁵ | −0.8847 |
| 800 | −0.599269495956 | −7.15×10⁻⁵ | −0.8781 |
| 1000 | −0.599269495956 | −7.15×10⁻⁵ | −0.8799 |
6Extension: A eats P, P regrows
Adding consumption, death, and logistic regrowth gives
\[ \begin{equation} \frac{\partial A}{\partial t} = \nabla^2\Big[ D_A(A^3 - A - \kappa\nabla^2 A) + D_{AP}P \Big] + g\,\tilde A\,P - d\,\tilde A \tag{10}\label{eq:Afeed} \end{equation} \] \[ \begin{equation} \frac{\partial P}{\partial t} = \nabla^2\Big[ D_P P + D_{PA}A \Big] - g\,\tilde A\,P + r\,P\Big(1 - \frac{P}{K}\Big) \tag{11}\label{eq:Pfeed} \end{equation} \]with \(\tilde A = (1+A)/2\) the local fraction of A material. Mass is no longer conserved. Expected effects: a selected droplet size instead of unlimited coarsening, droplet division when food is plentiful, stronger drift because eating deepens the wake, and possible predator–prey cycles in total A and P. These are expectations, not yet simulated here.
| Area | Model | Relation to Eqs. 10–11 |
|---|---|---|
| Tumour growth | Cahn–Hilliard tumour fraction with a consumed, resupplied nutrient (Hawkins-Daarud, van der Zee & Oden 2012; Garcke, Lam, Sitka & Styles 2016) | Closest match: P is the nutrient |
| Active emulsions | Droplets made from a precursor and degraded by reactions (Zwicker, Hyman, Jülicher et al., 2015–2017) | Suppressed ripening, droplet division |
| Cell colonies | Cahn–Hilliard with logistic growth (Khain & Sander 2008) | Population dynamics in the A field |
| Reactive blends | Cahn–Hilliard with a linear reaction (Oono & Shiwa; Glotzer, Di Marzio & Muthukumar 1995) | Simplest arrested coarsening |
| Ecology | Mussel beds as phase separation (Liu, van de Koppel et al., PNAS 2013); Klausmeier vegetation–water; Shigesada–Kawasaki–Teramoto cross-diffusion | Organisms are A, food or water is P |
7Technical notes
The simulation in Figure 1 does not use Crank–Nicolson. It uses a first-order implicit–explicit (IMEX) Euler step with linear stabilization, on a Fourier pseudo-spectral grid. This is the cheapest scheme that handles the stiff fourth-order term and avoids a nonlinear solve.
Space
The box is periodic, \(128\times128\) with \(\Delta x = 1\). Fields are held as Fourier coefficients on wavenumbers \(k = 2\pi m/128\), \(|m| \le 64\), so \(\nabla^2 \to -k^2\) exactly and the largest \(k^2\) is \(2\pi^2 \approx 19.7\). The cubic term is evaluated in real space and transformed back (pseudo-spectral), without dealiasing. The FFT is a hand-written radix-2 Cooley–Tukey transform in double precision; the 2D transform is row transforms, a transpose, row transforms, and a transpose back.
Time stepping
Each right-hand side is split into a stiff linear part, taken at the new time level, and everything else, taken at the old one. With \(N(A) = A^3 - A\) and a stabilization constant \(S\), each Fourier mode advances as
\[ \begin{equation} \big[1 + \Delta t\,k^2(D_A\kappa k^2 + S)\big]\,\hat A^{n+1} = (1 + \Delta t\,S k^2)\,\hat A^{n} - \Delta t\,k^2\big[D_A\,\widehat{N(A^n)} + D_{AP}\,\hat P^{n}\big] \tag{12}\label{eq:stepA} \end{equation} \] \[ \begin{equation} \big(1 + \Delta t\,D_P k^2\big)\,\hat P^{n+1} = \hat P^{n} - \Delta t\,k^2 D_{PA}\,\hat A^{n} \tag{13}\label{eq:stepP} \end{equation} \]Modes decouple, so the implicit solve is one division per mode. A step costs two FFTs: an inverse transform of \(\hat A\) to form \(N(A)\), and a forward transform of \(N\). Two more inverse transforms per frame produce the fields for drawing.
How each term is treated
- \(\kappa\nabla^4\), implicit. Explicit stepping would need \(\Delta t \lt 2/(D_A\kappa k_{\max}^4) \approx 0.005\). Implicit treatment allows \(\Delta t = 0.1\).
- \(D_P\nabla^2 P\), implicit. The same reason, with a milder limit.
- \(-A\), explicit. This term is anti-diffusive and drives the instability. Putting it on the implicit side adds \(-D_A\Delta t\,k^2\) to the denominator in Eq. \eqref{eq:stepA}, which can then vanish when \(S\) is small. Convex splitting keeps this expansive part explicit for the same reason.
- \(A^3\), explicit. This is the nonlinearity. Treating it explicitly avoids a nonlinear solve but makes the scheme only conditionally stable. The stabilizing term \(S k^2(\hat A^{n+1} - \hat A^{n})\), added to both sides, damps the short waves where the explicit cubic would blow up. It is consistent, with an \(O(S\,\Delta t)\) error. This is the stabilized semi-implicit scheme of Zhu, Chen, Shen & Tikare (1999). For pure Cahn–Hilliard, Shen & Yang (2010) show energy stability when \(S\) is large compared with \(\max f''\); here \(f''(A) = 3A^2 - 1 \le 2\) for \(|A| \le 1\), and \(S = 2\). Their proof assumes a truncated potential and a free energy, so with non-reciprocal coupling, stability here is observed, not proven.
- Cross terms \(D_{AP}P\) and \(D_{PA}A\), explicit. This adds a mild condition \(\alpha\,\Delta t\,k_{\max}^2 \lesssim 1\); at the defaults it is \(0.11 \times 0.1 \times 19.7 \approx 0.22\). An implicit version would be a \(2\times2\) solve per mode.
Alternatives for the nonlinearity
The standard options, from cheapest to most robust:
- Stabilized semi-implicit (used here): linear solve, conditionally stable without a free energy.
- Convex splitting (Eyre): \(A^3\) implicit and \(-A\) explicit. Unconditionally energy stable for pure Cahn–Hilliard, but each step needs a Newton or fixed-point solve.
- Scalar auxiliary variable (SAV) and invariant energy quadratization (IEQ): introduce an auxiliary variable so each step is linear and energy stable, with a constant-coefficient solve in Fourier space.
- Exponential time differencing (ETDRK2, ETDRK4): integrate the linear part exactly and the nonlinear part with Runge–Kutta stages. Second or fourth order in time.
For the non-reciprocal system there is no energy to preserve, so the energy-stability arguments behind convex splitting and SAV no longer apply directly. ETDRK4 is the natural upgrade for accuracy.
Conservation
Every term on the right of Eqs. 5–6 carries a factor \(k^2\), so the \(k = 0\) coefficients of \(\hat A\) and \(\hat P\) never change. The means are conserved to round-off (Table 2). A translation test gave the same result to \(1.7\times10^{-14}\) after shifting a state by (40, 70) cells on the torus and evolving it for 500 steps.
Initial state and drawing
The background is \(A\) = the slider value plus noise of amplitude 0.05. Fourteen droplets of radius 6 are placed at random with the profile \(-\tanh\big((r - r_0)/\sqrt2\big)\), the planar equilibrium interface of Eq. 3 for \(\kappa = 1\). \(P\) starts as noise of amplitude 0.05. The page takes 1500 steps before the first frame. Each cell has two fixed random dot sites per species; a site shows a dot when the scaled local density exceeds that site's threshold. \(A\) is scaled from \([-0.9, 0.9]\) to \([0,1]\). \(P\) is scaled by a running maximum of \(|P|\), so blue dot density is relative, not absolute.
| Quantity | Value |
|---|---|
| Grid | 128 × 128, Δx = 1, periodic |
| Time step Δt | 0.1 |
| Stabilization S | 2 |
| DA, κ | 1, 1 |
| DAP, DPA | −α, +α (default α = 0.11) |
| DP | 0.05 (default) |
| Cost per step | 2 FFTs, about 1.1 ms in a browser |
8Further reading
- Frohoff-Hülsmann, Wrembel & Thiele, Phys. Rev. E (2021): Cahn–Hilliard field with a non-variational linear coupling to a diffusing field; suppressed coarsening and oscillations.
- Saha, Agudo-Canalejo & Golestanian, Phys. Rev. X (2020): the non-reciprocal Cahn–Hilliard model.
- You, Baskaran & Marchetti, PNAS (2020): non-reciprocity as a route to travelling states.
- Stenhammar, Wittkowski, Marenduzzo & Cates, Phys. Rev. Lett. (2015): active–passive particle mixtures.