Magnetic Field of a Current Loop and Solenoid (3D)
Magnetic effectsDrag to rotate, two fingers or right-drag to pan, scroll or pinch to zoom. The toolbar has views, cutaway, measure and “show the maths”.
What's happening? Field lines are closed loops computed from the Biot–Savart law. Inside a solenoid they are nearly straight and evenly spaced, so the field is uniform.