Ch 14. Convection, Rayleigh–Bénard & Lorenz chaos
Overview
Heat a fluid layer from below and nothing happens — until it does. Below a critical temperature contrast, conduction quietly carries the heat and the fluid stays at rest; cross the threshold and convection rolls appear, carrying heat far more efficiently. This chapter derives that threshold from the linearized Boussinesq equations, then takes the same equations somewhere unexpected: keeping only the three most energetic modes turns the full PDE into three coupled ODEs — the Lorenz (1963) system — whose behavior as you turn up the heating traces the entire route from steady rolls to deterministic chaos. This is the calculation that founded chaos theory, and it comes directly from a fluid-dynamics problem, not an abstract map.
The model
Notebook: notebooks/ch14_convection-lorenz.py → exported to /nb/ch14_convection-lorenz.html.
Governing equations use the symbols in notation:
Two connected models, both built on gfdlib.convection: the full 2D PDE on
a periodic-/Dirichlet- channel (ChannelGrid, a pure-NumPy tridiagonal
Poisson solve — no SciPy), and its three-variable Lorenz truncation
, integrated with the same gfdlib.timestep.rk4 used everywhere
else in this book. A new interactive bifurcation diagram sweeps
across hundreds of values simultaneously (vectorized, not looped) and plots
every local maximum of , making the transition to chaos at
visible in one figure.
What to look for
- A genuine threshold. Run the 2D simulation just below and just above (the free-slip critical value — the slider crosses it): below, the seeded perturbation dies and pure conduction remains; above, rolls emerge with horizontal wavelength near , the mode that goes unstable first. Instability as a bifurcation, not a matter of degree.
- Watch the truncation be good, then fail. At modest supercriticality the Lorenz variables track the 2D simulation’s story faithfully — steady rolls are the fixed points . Push (the Lorenz stand-in for ) past and the trajectory abandons the fixed points for the butterfly. The three-mode model is no longer quantitatively the PDE — but the qualitative lesson it discovered is the one that matters.
- Sensitive dependence, measured. Run several trajectories with the
trajectoriesslider: initial conditions differing by stay visually identical for a while, then separate completely — and the separation panel shows the gap growing along a straight line on the log axis (the Lyapunov exponent) until it saturates at attractor size. That exponential is why weather forecasts gain so little lead time from enormous gains in observation accuracy. - Order inside chaos. In the bifurcation diagram, look past the onset at for narrow vertical windows where the smear of -maxima briefly collapses toward a few clean branches — periodic windows, the fine structure exercise 3 sends you hunting for with a narrower sweep and more values.
Both fluids
- Atmosphere: Rayleigh-Bénard convection is the textbook idealization of boundary-layer thermals and shallow cumulus convection — warm air rising, cool air sinking, in cells set by the same onset physics derived here.
- Ocean: the same instability drives open-ocean deep convection (e.g., in the Labrador and Weddell Seas) where surface cooling destabilizes the water column and triggers overturning plumes that ventilate the deep ocean.
Exercises
- (analytic) Derive the growth rate from the linearized equations and show gives ; confirm is minimized at .
- (computational) Modify
ch14_convection-lorenz.py’s 2D simulation to use rigid (no-slip) rather than free-slip boundaries by changing the vorticity boundary condition. How does shift? - (exploratory) In the bifurcation diagram, hunt for periodic windows at
(narrow ranges where the smear briefly collapses to a simple
curve). Zoom in by narrowing
bif_rmaxand increasing the number of values around a candidate window.
Further reading
Lorenz, E. N. (1963). Deterministic Nonperiodic Flow, J. Atmos. Sci. 20, 130–141; Saltzman, B. (1962), J. Atmos. Sci. 19, 329–341; Chandrasekhar, S. (1961). Hydrodynamic and Hydromagnetic Stability; Strogatz, S. H. (1994). Nonlinear Dynamics and Chaos; Vallis, AOFD 2nd ed., §9.1–9.3.