Home▸Electromagnetism▸Interactive Magnetic Field Line Display (2D): Magnets, Current Loop and Compass

🧲 Interactive Magnetic Field Line Display (2D): Magnets, Current Loop and Compass

2D magnetic field display: iron-filing grid, RK4-traced field lines, up to three bar magnets, a Biot-Savart current loop, a uniform background field and a damped compass needle, with four in-page numerical checks (Gauss, Biot-Savart, dipole limit, Ampere).

Electromagnetism2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
Interactive Magnetic Field Line Display (2D): Magnets, Current Loop and Compass ↗ Open standalone
⚙ Under the hood

2D magnetic field display: iron-filing grid, RK4-traced field lines, up to three bar magnets, a Biot-Savart current loop, a uniform background field and a damped compass needle, with four in-page numerical checks (Gauss, Biot-Savart, dipole limit, Ampere).

magnetic fieldfield linesbar magnetcompassBiot-Savartiron filings

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

What did you find?

Add reproduction steps (optional)