Magnetic fields are produced by moving electric charges and the intrinsic magnetic moments of elementary particles associated with a fundamental quantum property, their spin.
Magnetic fields are produced by moving electric charges and the intrinsic magnetic moments of elementary particles associated with a fundamental quantum property, their spin. As Ampere suggested, a magnetic field is produced whenever an electrical charge is in motion. The spinning and orbiting of the nucleus of an atom produces a magnetic field as does electrical current flowing through a wire. The direction of the spin and orbit determine the direction of the magnetic field.