Home▸Magnetism▸Magnetic Storm: Charged Particles in a Dipole Field (2D)

🧪 Magnetic Storm: Charged Particles in a Dipole Field (2D)

A top-down Canvas2D lab where ions and electrons are integrated with the real Lorentz force through a 1/r³ dipole field, revealing gyroradius, trapping and drift the way a real magnetic storm produces them.

Magnetism2DModerate60 FPS📱 Mobile-adapted💨 Air & Wind🌍 Earth⚡ Plasma⇄ 3D version
Magnetic Storm: Charged Particles in a Dipole Field (2D) ↗ Open standalone

The 3D version of this scene animates a swirling particle cloud around a glowing core for effect; this 2D companion instead drives every particle with the actual physics a magnetic storm runs on. Each of a few hundred ions and electrons feels the Lorentz force F = q(v × B), where the field magnitude follows the equatorial dipole law B ∝ 1/r³ measured outward from a central "planet" — the same falloff that shapes Earth's real magnetosphere. A thin current-sheet band flips the field's sign across the mid-plane, so particles gyrate tightly near the core, drift and mirror in a trapping band farther out, and stream away entirely once they cross the outer boundary — visible directly in the live trapped-fraction and mean-gyroradius readouts rather than implied by a slider labelled "storm strength."

⚙ Under the hood

A top-down Canvas2D lab where ions and electrons are integrated with the real Lorentz force through a 1/r³ dipole field, revealing gyroradius, trapping and drift the way a real magnetic storm produces them.

magnetic stormmagnetospherelorentz forcedipole fieldcharged particlesgyroradius

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)