Chapter 10.3: LWR Theory & Spinodal Decomposition
From Lattice Gas to Continuum: The LWR Equation
The TASEP mean-field equation, when taken to the continuum limit, yields the Lighthill-Whitham-Richards (LWR) equationโthe foundational PDE of macroscopic traffic flow theory. This is a scalar conservation law whose characteristics are the kinematic waves of traffic. When the fundamental diagram is concave, shocks form spontaneously: free-flowing traffic suddenly transitions to a jam. The analogy with spinodal decomposition in phase-separating mixtures provides deep insight into why traffic jams have a preferred spacing.
10.3.1 Deriving LWR from TASEP Mean-Field
The TASEP mean-field equation for site \(i\) is:
$$\frac{d\rho_i}{dt} = \rho_{i-1}(1-\rho_i) - \rho_i(1-\rho_{i+1})$$
This is a discrete conservation law: \(d\rho_i/dt = J_{i-1,i} - J_{i,i+1}\) with current \(J_{i,i+1} = \rho_i(1-\rho_{i+1})\). Taking the continuum limit with lattice spacing\(a\) and \(x = ia\):
$$\frac{\partial \rho}{\partial t} + \frac{\partial q(\rho)}{\partial x} = 0$$
This is the LWR equation (Lighthill & Whitham, 1955; Richards, 1956), with the flux function \(q(\rho) = \rho v(\rho)\). For the Greenshields model:
$$q(\rho) = v_{\max} \rho\!\left(1 - \frac{\rho}{\rho_{\max}}\right)$$
Characteristics and Wave Speed
The characteristic speed is:
$$c(\rho) = q'(\rho) = v_{\max}\!\left(1 - \frac{2\rho}{\rho_{\max}}\right)$$
Information propagates forward in free flow (\(\rho < \rho_c\)) and backward in congestion (\(\rho > \rho_c\)). Since \(q''(\rho) = -2v_{\max}/\rho_{\max} < 0\), the flux is concave: characteristics from higher density travel slower, meaning they converge and shocks form inevitably.
10.3.2 Shock Waves: Rankine-Hugoniot Condition
When characteristics converge, a shock (discontinuity in density) forms. The shock speed is given by the Rankine-Hugoniot jump condition, derived from conservation of vehicles across the shock:
$$s = \frac{q(\rho_R) - q(\rho_L)}{\rho_R - \rho_L} = \frac{\Delta q}{\Delta \rho}$$
where \(\rho_L, \rho_R\) are the densities to the left and right of the shock. For the Greenshields model:
$$s = v_{\max}\!\left(1 - \frac{\rho_L + \rho_R}{\rho_{\max}}\right)$$
Lax Entropy Condition
Not every discontinuity is a physically admissible shock. The Lax entropy conditionrequires that characteristics must converge onto the shock from both sides:
$$c(\rho_L) > s > c(\rho_R)$$
For a concave flux (\(q'' < 0\)), this means\(\rho_L < \rho_R\): density increases across a shock. A transition from high density to low density would instead be a rarefaction wave(a smooth expansion fan). This is why traffic jams have a sharp upstream front (shock) and a gradual downstream tail (rarefaction).
Physical Interpretation
A driver approaching a jam encounters a sudden wall of stopped traffic (the shock). After passing through the jam and reaching the front, traffic gradually accelerates back to free-flow speed (the rarefaction). This asymmetry is a direct consequence of the Lax entropy condition.
10.3.3 Payne-Whitham: Second-Order Traffic Model
The LWR equation is first-order: velocity is instantaneously determined by density. The Payne-Whitham model adds a velocity relaxation equation, creating a second-order system:
$$\frac{\partial \rho}{\partial t} + \frac{\partial (\rho v)}{\partial x} = 0$$
$$\frac{\partial v}{\partial t} + v \frac{\partial v}{\partial x} = \frac{V_e(\rho) - v}{\tau_r} - \frac{c_0^2}{\rho}\frac{\partial \rho}{\partial x}$$
The terms on the right represent: (1) relaxation toward the equilibrium velocity\(V_e(\rho)\) with time scale\(\tau_r\), and (2) an anticipation pressure \(c_0^2\) representing drivers reacting to density gradients ahead of them.
The key insight: when the effective diffusion coefficient becomes negative, small perturbations grow rather than decay. Linearising around uniform flow\((\rho_0, v_0)\):
$$D_{\text{eff}} = c_0^2 - \rho_0 |V_e'(\rho_0)| \cdot v_0 \, \tau_r$$
When \(D_{\text{eff}} < 0\), the uniform state is unstableโthis is the traffic analog of spinodal decomposition.
10.3.4 Cahn-Hilliard Analogy and Spinodal Instability
Adding a fourth-order regularisation to the LWR equation (analogous to surface tension in phase separation) yields the Cahn-Hilliard form:
$$\frac{\partial \rho}{\partial t} + \frac{\partial q}{\partial x} = \frac{\partial}{\partial x}\!\left(D \frac{\partial \rho}{\partial x} - \kappa \frac{\partial^3 \rho}{\partial x^3}\right)$$
where \(D = q''(\rho)/2\) is the effective diffusion coefficient and \(\kappa > 0\) is the regularisation (viscosity/anticipation). When\(q''(\rho) < 0\) (which holds for the Greenshields model everywhere), \(D < 0\) and the system is in the spinodal region.
Linear Stability Analysis
Perturbing around uniform density \(\rho_0\)with \(\rho = \rho_0 + \delta\rho \, e^{ikx + \sigma t}\):
$$\sigma(k) = -D k^2 - \kappa k^4 = |D| k^2 - \kappa k^4$$
The growth rate \(\sigma(k)\) is positive for wavenumbers \(0 < k < k_c = \sqrt{|D|/\kappa}\). The most unstable (fastest growing) wavenumber is:
$$k^* = \frac{k_c}{\sqrt{2}} = \sqrt{\frac{|D|}{2\kappa}} \quad \Longrightarrow \quad \lambda^* = 2\pi\sqrt{\frac{2\kappa}{|D|}}$$
Predicted Jam Spacing
For typical traffic parameters (\(v_{\max} \approx 120\) km/h,\(\rho_{\max} \approx 150\) veh/km,\(\kappa \approx 0.01\) kmยณ/h), the predicted most unstable wavelength is:
$$\lambda^* \approx 1\text{--}3 \text{ km}$$
This matches the empirically observed spacing between stop-and-go traffic jams on highways remarkably well. The Cahn-Hilliard analogy explains why jams have a characteristic spacing: just as phase-separating alloys form domains of a preferred size, traffic instabilities select a preferred wavelength through the competition between the destabilising negative diffusion and the stabilising higher-order viscosity.
10.3.5 Simulation: Godunov Scheme for LWR
We solve the LWR equation numerically using the Godunov scheme, which respects the conservation law structure and correctly captures shocks. The Godunov flux for a concave flux function is:
$$F_{i+1/2} = \begin{cases} \min_{\rho_L \leq \rho \leq \rho_R} q(\rho) & \text{if } \rho_L \leq \rho_R \\ \max_{\rho_R \leq \rho \leq \rho_L} q(\rho) & \text{if } \rho_L > \rho_R \end{cases}$$
LWR Godunov Scheme: Shock Formation & Spinodal Instability
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
10.3.6 Computing Jam Spacing
The most unstable wavelength \(\lambda^*\)predicts the spacing between stop-and-go waves. We can compute this for different traffic conditions:
Jam Spacing from Spinodal Instability
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
Key Takeaways
- The LWR equation \(\partial_t \rho + \partial_x q = 0\) is the continuum limit of the TASEP mean-field.
- Shocks (traffic jams) form when characteristics converge; the Rankine-Hugoniot condition\(s = \Delta q / \Delta \rho\) gives the jam propagation speed.
- The Lax entropy condition explains why jams have a sharp upstream front and gradual downstream tail.
- The Cahn-Hilliard/spinodal decomposition analogy predicts a most unstable wavelength\(\lambda^* = 2\pi\sqrt{2\kappa/|D|} \approx 1\text{--}3\) km, matching observed jam spacings.
- The Payne-Whitham model adds velocity relaxation, producing negative effective diffusion in the spinodal region.