Magnetic fields are produced by electric currents, which can be macroscopic currents in wires, or microscopic currents associated with electrons in atomic orbits. The magnetic field B is defined in ...