Skip to content

Magnetism and electromagnetism simulation

Magnetic Fields in 3D: Wire, Flat Coil and Solenoid

Try this: With Wire chosen and the current at 3 A, press Top and look down on the card. Which way do the arrowheads go round the wire? Check with the orange thumb and teal fingers of the grip rule, then press Reverse.

Loading simulation…

A current-carrying wire, a flat circular coil and a solenoid in 3D, each with its field lines, arrowheads and the right-hand grip rule. Reverse the current, change its size, slide a soft iron core into the solenoid and drag plotting compasses across the card.

In short

What does the magnetic field around a current-carrying wire look like?

Round a straight wire the field lines form circles with the wire at their middle, in every plane at right angles to it, so in 3D they stack along the wire like rings. Their direction comes from the right-hand grip rule: thumb along the conventional current, fingers curling with the field. They are closest together near the wire, where the field is strongest.

This is one of our 3D physics simulations: drag to turn it, or use the Front, Side and Top buttons.

Show symbols for

Predict first

Question 1 of 3

  1. Predict
  2. Run
  3. Check

A horizontal card has a long straight wire running vertically through its centre. The conventional current flows down the wire, from the + connection at the top. Looking down on the card from above, in which direction do the field lines circle the wire?

Try this

  1. With Wire chosen and the current at 3 A, press Top and look down on the card. Which way do the arrowheads go round the wire? Check with the orange thumb and teal fingers of the grip rule, then press Reverse.
  2. Press Front, then drag the Current slider from 3 A down to 1 A and up to 5 A. Watch how many circles fit on each level and how close together they are near the wire.
  3. Choose Flat coil, turn on Plotting compasses on the card and press Side to look from the right. Is the current going round clockwise or anticlockwise, and which way does compass 1 in the middle of the coil point?
  4. Choose Solenoid. Read the Field direction card, then press Reverse and see which end now carries the N label. Drag compass 3 beside the middle of the solenoid: why does it point the opposite way to the field inside?
  5. Still on Solenoid, turn on Soft iron core and watch the Field strength card and the number of lines. Then set the current to 0.5 A with the core in and compare with 2 A without it.

What you are looking at

A horizontal card sits in the middle of the stage, and through it runs one of three conductors: a straight vertical wire, a flat circular coil standing on its edge, or a solenoid lying along the card. Orange cones show the conventional current, which enters at the + lead and leaves at the − lead. Teal tubes are field lines, and their arrowheads give the field's direction. You can orbit the camera by dragging the stage, or jump to a fixed angle with Front, Side and Top.

A drawing on a page can only show one slice of the field. Here you can turn the view and see that the circles round a wire are not just on the card: they fill every level along the wire, like rings threaded on a pole.

Strength and direction

Where the field is strong, the lines are packed close together. Round the wire, the circles are spaced so that the same amount of field passes between each neighbouring pair, so they bunch up close to the wire and spread out further away. Raise the current and more circles fit in the same space. The Field strength card compares the field with what 1 A would give at the same spot.

Reverse the current and every arrowhead turns round, along with every compass needle, while the pattern keeps its shape. Only the direction depends on which way the current flows.

The right-hand grip rule

Picture your right hand closed round the conductor, thumb along the conventional current. Your fingers then curl round it in the direction of the field. The sim draws this as an orange thumb and a teal curl of fingers. On the coil and the solenoid it grips the top of one turn, and the curl of the fingers shows the field passing through the middle of the coil.

For a coil there is a second way to use the same rule. Curl your fingers in the direction the current travels round the turns: your thumb now points to the N pole. Looking straight at one end, a current going anticlockwise means that end is N.

From a coil to a solenoid

Bend the wire into a flat coil and the fields from every part of the loop point the same way through the middle. One face behaves like an N pole and the other like an S pole. Lines close to the wire still make small loops round it.

Put many turns side by side and you have a solenoid. Inside, the lines are straight and evenly spaced, showing a strong field that is almost uniform. Outside, the pattern looks like the field of a bar magnet: lines leave the N end and curve back round to the S end. Compare it with the bar magnet field simulation.

Switch on the soft iron core and the field becomes many times stronger, with its N pole at the same end. Wrapped round iron like this, the solenoid has become an electromagnet. For iron filings, the Earth's field, paperclips and a relay, try the wire and solenoid field simulation. Put a current-carrying coil between the poles of a magnet instead and the forces on it turn it round, as in the 3D d.c. motor simulation.

Plotting compasses

Turn on the compasses and drag them across the card, or move the chosen one with the two sliders. Each needle lines up with the field where it sits, its red end pointing along the field lines. Inside the flat coil, a compass points straight through the middle; beside the solenoid, it points the other way to the field inside.

Quiz

Check your understanding

7 questions

  1. 1.A long vertical wire carries a current upwards. Seen from above, what shape are its magnetic field lines?
  2. 2.The current in a straight wire is doubled. What happens to the field lines near the wire?
  3. 3.Which statement about the magnetic field inside a long solenoid is correct?
  4. 4.Viewed from its right-hand end, a solenoid has conventional current flowing clockwise round its turns. Which end is the N pole?
  5. 5.Why is a soft iron core put inside a solenoid to make an electromagnet?
  6. 6.A plotting compass is placed on a card just beside the middle of a solenoid, outside the turns. How does its needle point compared with the field inside the solenoid?
  7. 7.When the right-hand grip rule is used on a straight wire, what do the thumb and the curled fingers show?

For teachers

Embed it in your site or open it full-screen for the projector.

Next step

Superconductor levitation in 3D (a cold superconductor floating and locking above a magnet)

The next simulation in magnetism and electromagnetism.