Ocean currents - 2D map of a wind-driven gyre

A map of the ocean basin with current speed, tracer streaks, streamline contours and wind arrows, plus four graphs. Same Stommel vorticity model as the 3D page.

Switch to 3D

Presets

Playback

Parameters

Layers

Model check

The science

What is modelled

The ocean basin is a rectangular box on a rotating planet. Winds blow westward in the south (trade winds) and eastward in the north (westerlies); their twist, the wind-stress curl, drives the whole upper ocean around a huge clockwise gyre. Because the Coriolis effect grows with latitude (the "beta effect"), the return flow is squeezed into a narrow, fast current on the western side, like the Gulf Stream. The page solves the vorticity equation of this classical model (Stommel, 1948) both as a time-stepped simulation that starts from rest and as the exact steady solution, and compares them.

Equations

  • Vertically integrated transport streamfunction ψ (m³/s): U = −∂ψ/∂y, V = ∂ψ/∂x, relative vorticity ζ = ∇²ψ.
  • Vorticity budget with linear bottom friction: ∂ζ/∂t = −β ∂ψ/∂x − R ζ + curl(τ)/ρ, with β = 2Ω cos(lat)/a.
  • Wind stress τx = −τ₀ cos(πy/Ly), so curl(τ) = −τ₀ (π/Ly) sin(πy/Ly); the coast is a wall: ψ = 0 on all four sides.
  • Steady state (Stommel): β ∂ψ/∂x + R ∇²ψ = curl(τ)/ρ. Its exact solution is ψ = f(x) sin(πy/Ly) with f = fp(1 + A em₁x + B em₂x), where m₁,₂ are the roots of R m² + β m − R k² = 0 and fp = τ₀ / (ρ R k); the western boundary layer has width R/β.
  • Away from the wall, with weak friction, the interior obeys Sverdrup balance β V = curl(τ)/ρ.
  • Currents are the transport divided by an effective layer depth of 1000 m.

Checks run in the page

  • The analytic solution satisfies the finite-difference form of the vorticity equation on the page grid to within grid-truncation error.
  • The time-stepped solver (Heun scheme with an SOR Poisson solve) started from rest converges to the analytic steady solution.
  • As the friction coefficient falls, the exact interior flow approaches the Sverdrup value.
  • In the steady state, the wind torque on the basin equals the bottom-friction torque (the integral of vorticity from the wall shear), a global conservation law.
  • Halving the time step changes the spun-up field by less than 0.1 %.

Honest simplifications

  • One layer of constant effective depth, linear bottom drag, a flat beta plane, a rectangular basin and a sinusoidal wind pattern. The model has no eddies, no temperature or salinity, no deep thermohaline circulation, no continents with realistic shapes and no Antarctic Circumpolar Current.
  • Because friction is linear and there is no nonlinearity, the western current is weaker and wider than the real Gulf Stream (a depth-averaged few centimetres per second here, against about a metre per second at the surface in the real ocean); the transport of tens of sverdrups is the right order of magnitude. The friction coefficient is a tuning knob, not a measured quantity.
  • The picture is a plain map of the basin; only its rectangle enters the equations. One second of animation is several days of ocean time.

What to try

  • Press Restart and watch the gyre spin up; then press Snap to steady state and compare the two curves.
  • Choose Low friction: the western current narrows and speeds up, the interior barely changes.
  • Choose Near the equator and High latitude to see how the beta effect sets the width of the current.
  • Read the lowest graph: the western boundary current gets wider and slower towards the poles, because beta falls.

Independent educational model; not an operational ocean forecast.

Transport streamfunction along the middle of the basin
North-south current speed across the basin
Spin-up of the gyre transport
Boundary-current width and speed against latitude