Skip to main content
Sandbox Physics

Fluid dynamics Β· from rolls to chaos

Rayleigh–BΓ©nard Convection

When does a fluid layer heated from below start to convect? When the Rayleigh number, which compares buoyancy with viscous and thermal diffusion, passes a critical value. Above it, any small disturbance grows into steady convection rolls, and stronger heating can make the rolls reverse again and again. With no disturbance at all, the layer keeps conducting heat without moving.

Start from a small perturbation and integrate three convection modes. Rotate the view to watch hot and cold fluid trade places and tracers follow the flow, then compare the temperature profile, heat transport and phase-space trajectory as steady rolls form and lose stability.

Interactive modelRayleigh–BΓ©nard Convection
Model time Ο„\tau00
Rayleigh Ra\mathrm{Ra}3287.63287.6
Circulation XX0.10.1
Plate heat flux Nup\mathrm{Nu}_p11
Bulk transport Nuv\mathrm{Nu}_v11
Onset growth Ξ»+\lambda_+2.8822.882
Nearby-state distance Ξ΄\delta10βˆ’610^{-6}
Linear stabilitySteady branches stable

Physics tutorial

Convection: a perturbation becomes steady rollsβ€”or reversals

BackgroundHeating from below makes the lower fluid lighter, but viscosity and thermal diffusion resist motion. This Lab does not draw ready-made rolls. It starts from a perturbation, integrates three coupled modes and builds the velocity and temperature fields from them.

Why it mattersConvection ties together heat transport, linear instability and deterministic chaos. Every trajectory you see can be checked against the same equations, the steady solutions and the heat-flux readouts.

Start with the essentials

Focus question
Why do some perturbations disappear, some settle into circulation, and others reverse repeatedly?
One-sentence intuition
The drive ratio rr decides whether pure conduction is stable, but instability cannot create a disturbance from nothing. With no seed, the fluid stays in the exact conducting state; only a nonzero disturbance can grow.

Core mathematical model

Buoyancy, damping and geometry

Ra=gΞ±Ξ”TH3Ξ½ΞΊ,r=RaRac,Pr=Ξ½ΞΊ,Rac=27Ο€44\mathrm{Ra}=\frac{g\alpha\Delta T H^3}{\nu\kappa},\quad r=\frac{\mathrm{Ra}}{\mathrm{Ra}_c},\quad \mathrm{Pr}=\frac{\nu}{\kappa},\quad \mathrm{Ra}_c=\frac{27\pi^4}{4}

For stress-free boundaries held at fixed temperature, the chosen horizontal wave number gives the lowest onset threshold. Rigid walls have a different threshold.

Three modes that evolve together

dXdΟ„=Pr(Yβˆ’X),dYdΟ„=rXβˆ’Yβˆ’XZ,dZdΟ„=XYβˆ’bZ,b=83\frac{dX}{d\tau}=\mathrm{Pr}(Y-X),\quad \frac{dY}{d\tau}=rX-Y-XZ,\quad \frac{dZ}{d\tau}=XY-bZ,\quad b=\frac{8}{3}

The circulation, the hot–cold contrast and the distortion of the mean temperature profile evolve together. RK4 advances them with a fixed step in model time. A companion run starts with a tiny extra amount of circulation.

Velocity field from a streamfunction

ψ=2ΞΊ(1+a2)aXsin⁑ ⁣(Ο€axH)sin⁑ ⁣(Ο€zH),u=βˆ’βˆ‚zψ,w=βˆ‚xψ,a2=12\psi=\frac{\sqrt{2}\kappa(1+a^2)}{a}X\sin\!\left(\frac{\pi ax}{H}\right)\sin\!\left(\frac{\pi z}{H}\right),\quad u=-\partial_z\psi,\quad w=\partial_x\psi,\quad a^2=\frac12

Writing the flow with a streamfunction guarantees zero divergence, and no fluid passes through either plate. The flow is periodic in the horizontal direction. The spatial view stretches the same field across the depth and adds no motion in the third dimension.

Temperature field, with no clipping

Tβˆ’TcΞ”T=1βˆ’zH+2Ycos⁑(Ο€ax/H)sin⁑(Ο€z/H)βˆ’Zsin⁑(2Ο€z/H)Ο€r\frac{T-T_c}{\Delta T}=1-\frac{z}{H}+\frac{\sqrt{2}Y\cos(\pi ax/H)\sin(\pi z/H)-Z\sin(2\pi z/H)}{\pi r}

Both plate temperatures are fixed. Outside the range between them only the color scale saturates; the temperature values are not clipped. The reduced model can overshoot that range, especially under strong drive.

Two measures of heat transport

Nup=1+2Zr,Nuv=1+2XYbr,Nuvβˆ’Nup=2brdZdΟ„\mathrm{Nu}_p=1+\frac{2Z}{r},\quad \mathrm{Nu}_v=1+\frac{2XY}{br},\quad \mathrm{Nu}_v-\mathrm{Nu}_p=\frac{2}{br}\frac{dZ}{d\tau}

While the heat stored in the layer is still changing, the temperature gradient at the plate and the volume-averaged total heat flux differ. On a steady branch they agree. Both are computed from the current modes.

Steady solutions and time scale

Xβˆ—=Yβˆ—=Β±b(rβˆ’1),Zβˆ—=rβˆ’1,Nuβˆ—=3βˆ’2r,Ο„=Ο€2(1+a2)ΞΊtH2X_*=Y_*=\pm\sqrt{b(r-1)},\quad Z_*=r-1,\quad \mathrm{Nu}_*=3-\frac{2}{r},\quad \tau=\pi^2(1+a^2)\frac{\kappa t}{H^2}

The nonzero steady branches exist only above onset. The clock shows dimensionless model time, not seconds. Under strong drive, the Lorenz dynamics do not predict laboratory turbulence quantitatively.

Common difficulties

Boundary conditions set the threshold

Typical misconceptionEvery heated layer shares one universal onset value.

Better mental modelThis model has stress-free boundaries at fixed temperature and a fixed horizontal wave number. Its onset value does not apply to rigid no-slip walls.

A phase portrait is not a particle path

Typical misconceptionThe two-wing modal trajectory depicts two physical vortices.

Better mental modelEach point in the portrait gives mode amplitudes that describe the whole flow. The tracers in the apparatus mark real positions. Both are driven by the same state, but they are plotted in different spaces.

Instability does not mean real turbulence

Typical misconceptionOnce the steady branches become unstable, the picture shows fully resolved three-dimensional turbulence.

Better mental modelThree modes leave out the small-scale structure of strongly driven convection. The chaotic reversals belong to this truncated system and do not give a quantitative law for turbulent heat transfer.

Run the experiment

  1. 01

    Let a perturbation decay

    Choose Perturbation decays and advance several model-time units.

    What to observe: The circulation fades, the mean temperature returns to the straight-line conduction profile, and both heat-flux values approach one.
  2. 02

    Build steady rolls

    Choose Steady rolls and compare early and late heat-flux history.

    What to observe: The two heat-flux values differ at first. As the orbit in mode space settles, both approach the dashed steady-state value.
  3. 03

    Watch deterministic reversals

    Choose Lorenz reversals and keep playing, or increase playback rate.

    What to observe: The circulation keeps reversing direction, and the trajectory loops around both branches. A tiny difference in the starting state can grow. Playback rate changes only the clock, not the equations.
  4. 04

    Remove the seed

    Choose No seed and advance, then set a nonzero initial perturbation.

    What to observe: The exact zero state never starts circulating by itself. Setting a seed restarts the experiment from time zero.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy