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.
- Wind has direction.
- Wind has magnitude.
- Different locations experience different winds.
A rotating storm
A simple 2D rotating storm centered at the origin is This field produces pure rotation. Its values at two points are:- At , , so the wind blows upward.
- At , , so the wind blows to the left.
Show plotting code
Show plotting code

Velocity weakens with distance
A real storm is strongest near the eye and weakens outward. A simple model for this behavior is where avoids the singularity at the origin. The field is strong near the center and decays with distance. The following plot shows this behavior.Show plotting code
Show plotting code

Particles in the storm
Particle motion in a velocity field is a dynamical system. A particle at position moves according to You can integrate this numerically. The simplest scheme is the Euler step, Repeat this update to follow many particles released at . The resulting trajectories model the motion of raindrops, leaves, and debris in a storm.Show plotting code
Show plotting code


