Home▸Physics & Mechanics▸Bar Magnet - 2D Dipole Field Map and Compass Grid

🧲 Bar Magnet - 2D Dipole Field Map and Compass Grid

2D companion of the 3D magnet simulation: field lines and a compass-needle grid of a two-pole bar magnet in the Earth field, a draggable probe with |B| readout and a point-dipole accuracy check.

Physics & Mechanics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
Bar Magnet - 2D Dipole Field Map and Compass Grid ↗ Open standalone
⚙ Under the hood

2D companion of the 3D magnet simulation: field lines and a compass-needle grid of a two-pole bar magnet in the Earth field, a draggable probe with |B| readout and a point-dipole accuracy check.

MagnetDipole fieldField linesCompass

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

What did you find?

Add reproduction steps (optional)