English: Six animations of the two-dimensional
lid-driven cavity side by side, at Reynolds numbers of 100, 1000, 5000, 10,000, 22,000, and 100,000, each simulated from rest and shown on one clock. Fluid fills a square of side
L. From time zero the top wall (the lid) slides to the right at constant speed
U, and the other three walls are at rest. The color shows the vorticity, green where the fluid turns clockwise and red where it turns counterclockwise, and the black lines are streamlines. At the two lowest Reynolds numbers the flow soon becomes steady. At 5000 it takes longer, and eddies grow in three corners. At 10,000 the flow keeps oscillating, and at the two highest it breaks up into vortices that keep moving around the cavity.
The Reynolds number is , where is the kinematic viscosity. The color bar gives the vorticity in units of , on an asinh scale that saturates at . The streamlines are at levels chosen to show each eddy, so their spacing does not compare speeds between the eddies.
The clock shows the time in units of . The video runs at per second until , speeds up to per second by , and ends at . The panels at and 1000 stop changing at and , when their runs end because the flow is steady. At and above the flow is still spinning up when the video ends, so those panels do not show a final state.
Simulated with Julia 1.13 and Oceananigans.jl v0.117.1, with fifth-order WENO advection and third-order Runge–Kutta time stepping. The uniform grids have cells at the two lowest Reynolds numbers, at the middle two, and at the two highest. Plotted with CairoMakie.jl v0.15.17 and the curl colormap from cmocean.
This file was rendered by code that was written with the assistance of an AI coding tool (Claude Code with the Opus 5.5 model) and reviewed by the author.
Source code:
ali-ramadhan/oceananigans-for-wikipedia/lid-driven-cavity on
GitHub (commit
0967a6f)