← Laboratorium

Physics · magnetism

Field lines — a magnetic field explorer

Bar magnets lie on a sheet of graph paper. Move them, rotate them and flip their poles — the field redraws itself, and the compass shows the field's direction and strength at any point.

FIG. 1 A single bar magnet, field shown with iron filings.

Click a magnet to select it and drag to move it. When the sheet has focus: the arrow keys move the selected magnet, [ and ] change the selection, R rotates by 15 degrees, F flips the poles, Delete removes, A adds a magnet, 1, 2 and 3 switch the view, Escape deselects.