1

Viscous Gyre

Planetary boundary layer ocean circulation driven by non-linear wind stress curl, modeled via the Stommel double-gyre stream function.

Playground
60 FPS Canvas 2D
Click + Drag to interact with field

Live Parameters

Current Tracers 1200
Particle count
Circulation Velocity 0.005
Advection timestep
ƒ

Mathematical Formulation

49 chars medium
Analytical Equation
\psi(x, y) = -\frac{\tau_0}{\pi \rho H \beta} \sin(\pi x) \sin(2\pi y), \quad u = -\frac{\partial \psi}{\partial y}, \quad v = \frac{\partial \psi}{\partial x}
Compact Formula
u = 2π sin(πx) cos(2πy), v = -π cos(πx) sin(2πy)
Renderer Logic
const u = 2 * Math.PI * Math.sin(Math.PI * x) * Math.cos(2 * Math.PI * y + Math.sin(t) * 0.4);
const v = -Math.PI * Math.cos(Math.PI * x) * Math.sin(2 * Math.PI * y + Math.sin(t) * 0.4);
px[i] += u * speed;
py[i] += v * speed;
Open in Playground Zero Dependencies • Standalone

Mathematical Tags

#oceanography #gyre #stream-function #fluid #geophysics
Author: Math Art Core Target: 60 FPS

Export & Embed: Viscous Gyre

4K PNG Snapshot

High-resolution single frame render

WebM Video (5s Loop)

60 FPS browser-captured stream

HTML Iframe Embed

<iframe src="https://art.fazleyrabbi.xyz/embed/viscous-gyre" width="500" height="500" frameborder="0" loading="lazy"></iframe>
ESC
↑↓ Navigate Select
25 Mathematical Artworks