← all demos
Oceanography

Ekman Spiral

(u,v) = e^(−z/D)·(cos z, sin z)
Ekman Spiral

Under a steady wind the Coriolis force turns the wind-driven current with depth while friction saps it, so the velocity vector traces a decaying spiral — the surface flow running 45° to the wind.

Computed & rendered in pure C# on the frozen OnlyCSharp 1.8 library — animation baked to GIF with the library's own Gif encoder (no GPU, no ffmpeg, no external packages).