Skip to main content
Prerequisites. If you are unfamiliar with ODEs or the Euler integration step, first read ODEs and the Euler method. The discrete update in that section is also used here to track particles through the storm field.
A storm is a familiar example of a velocity field. Its wind has three properties:
  • Wind has direction.
  • Wind has magnitude.
  • Different locations experience different winds.
Mathematically, the wind in a storm forms a velocity field: v(x,y,t)\mathbf{v}(x, y, t) At each location (x,y)(x, y) and time tt, the vector gives the direction and speed of the air.

A rotating storm

A simple 2D rotating storm centered at the origin is v(x,y)=[−yx].\mathbf{v}(x, y) = \begin{bmatrix} -y \\ x \end{bmatrix}. This field produces pure rotation. Its values at two points are:
  • At (1,0)(1, 0), v=(0,1)\mathbf{v} = (0, 1), so the wind blows upward.
  • At (0,1)(0, 1), v=(−1,0)\mathbf{v} = (-1, 0), so the wind blows to the left.
The field therefore rotates counterclockwise around the origin.
Output from cell 1

Velocity weakens with distance

A real storm is strongest near the eye and weakens outward. A simple model for this behavior is v(x,y)=1x2+y2+ε[−yx],\mathbf{v}(x, y) = \frac{1}{x^2 + y^2 + \varepsilon} \begin{bmatrix} -y \\ x \end{bmatrix}, where ε>0\varepsilon > 0 avoids the singularity at the origin. The field is strong near the center and decays with distance. The following plot shows this behavior.
Output from cell 2

Particles in the storm

Particle motion in a velocity field is a dynamical system. A particle at position x(t)\mathbf{x}(t) moves according to dxdt=v(x).\frac{d \mathbf{x}}{d t} = \mathbf{v}(\mathbf{x}). You can integrate this numerically. The simplest scheme is the Euler step, x(t+Δt)=x(t)+Δt⋅v(x(t)),\mathbf{x}(t + \Delta t) = \mathbf{x}(t) + \Delta t \cdot \mathbf{v}(\mathbf{x}(t)), Repeat this update to follow many particles released at t=0t = 0. The resulting trajectories model the motion of raindrops, leaves, and debris in a storm.
Output from cell 4