Convection Cells Simulator Back
Thermal Fluid Simulator

Convection Cells Simulator — Rayleigh–Bénard Convection

Vary the Rayleigh number (Ra) and watch convection cell formation, development, and turbulent transition in real time

Parameters

Ra = 2512
Temperature field
Velocity vectors
Streamline overlay
Max Temperature
Min Temperature
Max Flow Speed
Convection State
Computing...
Nusselt number Nu
Sim
Hot
Cold

What Is Rayleigh–Bénard Convection?

🙋
When I heat a pot of water, I can sometimes see fluid moving in circular patterns near the bottom. Are those the convection cells you're talking about?
🎓
Exactly! Those are Rayleigh–Bénard convection cells. Heating from below makes the bottom fluid less dense, so it rises by buoyancy. The cooler, denser fluid at the top sinks to replace it. This creates periodic roll-shaped circulation patterns. Bénard first observed this beautifully in whale oil in 1900, and Lord Rayleigh provided the theoretical framework in 1916. It's one of the most studied phenomena in fluid dynamics.
🙋
Sometimes when I warm water only slightly nothing visible happens. What determines whether convection starts or not?
🎓
That's exactly what the Rayleigh number Ra tells us. Ra compares buoyancy-driven destabilisation against the stabilising effects of viscosity and thermal diffusion. Below the critical value of Ra ≈ 1708, the fluid stays in pure conduction mode — any perturbation gets damped before it can grow. Above 1708, convection kicks in. Try the "Stable" preset in the simulator and watch how the cells disappear, leaving only a smooth temperature gradient.
🙋
Why do the cells organise into such regular roll patterns? I'd expect more random mixing.
🎓
Great intuition. Initially, random perturbations of all wavelengths compete to grow. But there's an optimal wavelength — about 2–3 times the layer height — that grows fastest and wins. The system self-organises into this preferred length scale. It's a beautiful example of spontaneous symmetry breaking and pattern formation. Increase Ra further and the ordered rolls eventually become chaotic, then turbulent. You can see the whole transition in this simulator by dragging the Ra slider.

Physics and Governing Equations

Rayleigh number (dimensionless parameter):

$$Ra = \frac{g\,\beta\,\Delta T\,L^3}{\nu\,\kappa}$$

$g$: gravity, $\beta$: thermal expansion coefficient, $\Delta T$: temperature difference, $L$: layer height, $\nu$: kinematic viscosity, $\kappa$: thermal diffusivity

Temperature advection–diffusion equation (Boussinesq approximation):

$$\frac{\partial T}{\partial t}+ \vec{u}\cdot\nabla T = \kappa\,\nabla^2 T$$

Velocity updated from buoyancy forcing (temperature anomaly drives vertical flow).

Boundary conditions: bottom $T=1$ (hot), top $T=0$ (cold), lateral: periodic.

Frequently Asked Questions

If the Rayleigh number is below the critical value (approximately 1708), heat conduction is dominant and convection does not occur. Set Ra to 2000 or higher using the slider and wait a few seconds for cells to begin appearing. Additionally, if the initial temperature perturbation is small, it may take longer, so please observe for a while.
Using a simplified stream function method, the velocity field is approximated by combining buoyancy proportional to the temperature difference as the driving force with viscous diffusion. Although it is not a rigorous Navier-Stokes equation solver, it can reproduce the main behaviors of convection cell formation, development, and turbulent transition in real time.
Set the Rayleigh number to 10^5 or higher and the aspect ratio (width/height) to 4 or more. This makes it easier to observe multiple cells splitting and merging, leading to a temporally irregular turbulent state. Setting a higher resolution allows you to see finer vortex structures.
This tool is a simplified model for educational and visualization purposes. It is useful for qualitative understanding of actual thermal convection phenomena, but it cannot replace quantitative design or experiments. For practical use, please use dedicated CAE software that solves the full Navier-Stokes equations.

Real-World Connections

Meteorology: Cumulus cloud formation, thunderstorm updrafts, and mesoscale convective systems are large-scale Rayleigh–Bénard convection driven by solar heating of Earth's surface.

Earth's interior: Mantle convection — the driver of plate tectonics — operates on a Rayleigh–Bénard mechanism across geological timescales, with Ra ~ 10⁷.

Electronics cooling: Natural convection in server racks and heat sink design depends directly on understanding when and how convection cells form.

The Sun: The granules visible on the solar surface are convection cells ~1000 km across in the Sun's outer convective zone, driven by the steep temperature gradient.

Common Misunderstandings and Points to Note

When you start using this simulator, there are a few common pitfalls to watch out for. First, it's easy to assume that "a higher Rayleigh number always means more vigorous convection," but it's not that simple. While convection does begin once the critical value (approximately 1708) is exceeded, increasing Ra leads through stages: from neat roll patterns, through a "secondary instability" phase where rolls distort or split, and finally to turbulence. For instance, if you increase Ra from 10^4 to 10^5, you can observe the rolls starting to fluctuate over time instead of remaining stationary. This is the gateway to "transient chaos," so the trick is to change parameters gradually; changing them too abruptly might cause you to miss the transitions between fundamental patterns.

Next, don't underestimate the importance of the aspect ratio (width/height) setting. For example, setting the aspect ratio to 2 (width is twice the height) naturally results in two convection rolls side by side. However, if you set it to an intermediate value like 3.5, the number of rolls is no longer an integer, which can easily lead to unstable patterns. In nature or real devices, the "width" of a layer is often fixed, so remember that changing the aspect ratio in a simulation is essentially equivalent to "changing the size of the experimental apparatus or observation area."

Finally, don't forget that this simulation assumes a "2D" model and uses the "Boussinesq approximation." In three dimensions, hexagonal Bénard cells can appear instead of rolls. Also, this approximation breaks down when temperature differences are extreme or when fluid compressibility cannot be ignored. Understand that this is an idealized model for learning fundamental principles.

Physical Model & Key Equations

The simulator is based on the governing equations of Convection Cells Simulator — Rayleigh–Bénard Convection. Understanding these equations is key to interpreting the results correctly.

Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.

How to Use

  1. Set Rayleigh number (Ra) using slRa slider; typical range 1,700–100,000 determines convection onset and cell count
  2. Adjust aspect ratio (AR) via slAR to control horizontal-to-vertical domain size; values 1–4 modify cell geometry
  3. Enable visualization overlays: chkT for temperature contours, chkV for velocity vectors, chkS for streamlines
  4. Observe cell formation in real time as Ra exceeds critical threshold (~1,708 for rigid boundaries)

Worked Example

For a fluid layer (silicone oil, ν=20 mm²/s, κ=0.15 mm²/s) with depth d=10 mm and ΔT=5 K: Ra = gβΔTd³/(νκ) = 9.81×0.001×5×10³/(20×0.15) ≈ 16,350. Setting slRa to 16,350 and slAR to 2.0 produces 2–3 counter-rotating hexagonal cells with maximum vertical velocity ~8 mm/s. Reducing ΔT to 2 K drops Ra to 2,548, yielding marginal oscillating rolls.

Practical Notes

  1. Critical Ra ≈ 1,708 (free-slip, infinite domain): below this threshold, conduction dominates and no cells form regardless of AR
  2. Aspect ratio 1.0 stabilizes single-cell square patterns; AR>3 typically fragments into 3+ narrow cells with alternating rotation
  3. Enable chkV and chkS simultaneously to identify plume trajectories; hot plumes rise at cell centers, cold sheets descend at boundaries
  4. High Ra (>50,000) destabilizes regular patterns; cells develop secondary instabilities and time-dependent oscillations absent in linear theory