Home▸Electromagnetism▸Bar Magnet Dipole Field Lines: Compass Torque, Oscillation and the Tangent Law Against Earth's Field

Bar Magnet Dipole Field Lines: Compass Torque, Oscillation and the Tangent Law Against Earth's Field

A bar magnet modelled as a point magnetic dipole lies on a workbench. Field lines are traced by integrating the dipole field B = (mu0/4pi)(3(m.r)r/r^2 - m)/r^3 and obey r = L sin^2(theta). A small compass needle placed beside it feels the torque m x B, swings, damps and settles along the sum of the magnet field and Earth's field, following the tangent law. Move the compass, change the magnet strength and Earth's field, and check the numbers against a Biot-Savart current loop, the pendulum period, energy conservation and the elliptic-integral period. Built with a Blender bench, magnet and compass.

Electromagnetism3DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Bar Magnet Dipole Field Lines: Compass Torque, Oscillation and the Tangent Law Against Earth's Field ↗ Open standalone

A bar magnet modelled as a point magnetic dipole lies on a workbench. Field lines are traced by integrating the dipole field B = (mu0/4pi)(3(m.r)r/r^2 - m)/r^3 and obey r = L sin^2(theta). A small compass needle placed beside it feels the torque m x B, swings, damps and settles along the sum of the magnet field and Earth's field, following the tangent law. Move the compass, change the magnet strength and Earth's field, and check the numbers against a Biot-Savart current loop, the pendulum period, energy conservation and the elliptic-integral period. Built with a Blender bench, magnet and compass.

⚙ Under the hood

A bar magnet modelled as a point magnetic dipole lies on a workbench. Field lines are traced by integrating the dipole field B = (mu0/4pi)(3(m.r)r/r^2 - m)/r^3 and obey r = L sin^2(theta). A small compass needle placed beside it feels the torque m x B, swings, damps and settles along the sum of the magnet field and Earth's field, following the tangent law. Move the compass, change the magnet strength and Earth's field, and check the numbers against a Biot-Savart current loop, the pendulum period, energy conservation and the elliptic-integral period. Built with a Blender bench, magnet and compass.

Magnetic DipoleField LinesElectromagnetismBar MagnetCompassTorque on a DipoleTangent LawEarth's Magnetic FieldBiot-Savart Law

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)