AC / DC current flow and magnetic fields
A simple circuit carries electrons (glowing balls). As the electrons move, they generate a magnetic field (blue glow). The battery produces a smooth and continuous flow (DC, or direct current). The AC generator (off the screen to the top) alternates, causing the electrons to shunt back and forth, creating a waxing and waning magnetic field.