Magnetic field of bar, U-shaped, and electromagnet magnets, a solenoid as a bar magnet, and a magnet in a uniform field

Integrated ScienceElectricity & MagnetismAges 12–13Virtual lab

Use with my class

Iron filings scattered on a card arrange themselves into a magnetic field pattern around the magnet; a compass needle placed in the field turns to follow the field lines. Students drag the magnet through the filings, tap an empty spot to place another compass, and press Flip poles to watch the needles swing around. For the electromagnet: drag the current slider, change the number of coil turns, switch off the current to make the field disappear, and reverse the current to swap the poles. A 3D mode lets students rotate the card with its iron filings, compasses and magnet to see the field lines loop through space from the North pole to the South pole. The Magnet and solenoid screen puts a bar magnet beside a solenoid of the same size, with matching field-line patterns and the coil's magnetic moment m = NIA. The Magnet in a uniform field screen shows a small magnet turned by the torque τ = mB sin θ, its potential energy −mB cos θ and its oscillations with period T = 2π√(I/(mB)), which students time and record to find the magnet's moment.

Lesson: Magnets; Magnetic field; Electromagnets and their applications; Bar magnet as an equivalent solenoid; Magnetic dipole in a uniform field

What it shows

A magnet is surrounded by a magnetic field. Iron filings line up along it, and outside the magnet the field lines run from the North pole to the South pole, crowding near the poles. A coil carrying a current acts as a magnet: an electromagnet grows stronger with more current and turns, and a solenoid of N turns and area A has magnetic moment m = NIA and the same field pattern as a bar magnet. In a uniform field B a small magnet feels a torque τ = mB sin θ, has potential energy −mB cos θ and oscillates with period T = 2π√(I/(mB)).

How to use

Choose a Magnet type, drag the magnet across the filings and tap empty spots to place compasses; press Flip poles or, for the electromagnet, change the current and turns; switch to 3D to see the lines loop through space. On Magnet and solenoid, change Turns N and Current I until the coil's moment equals the magnet's. On Magnet in a uniform field, set Field B and Angle θ, press Record torque, then Release to time 10 oscillations.

Parameters you can change

  • Magnet type Bar magnet, U-shaped magnet, Electromagnet (coil with iron core)
  • Current (electromagnet) 0–5 A
  • Number of coil turns (electromagnet) 100–1000 turns
  • Draw field lines
  • Iron filing density 12–36 columns
  • Screen Magnetic field (2D/3D), Magnet and solenoid, Magnet in a uniform field
  • Turns of the solenoid (magnet and solenoid) 100–1000 turns
  • Current in the solenoid (magnet and solenoid) 0–5 A
  • Uniform field B (magnet in a uniform field) 0.2–5 mT
  • Angle between the magnet and the field 0–180 °

Questions to explore

  1. Where around a bar magnet do the iron filings gather most densely, and what does that tell you about the field?
  2. What is special about the field lines between the poles of a U-shaped magnet?
  3. Why does a solenoid carrying a current produce the same field pattern as a bar magnet, and what sets its magnetic moment?