Magnetic Field. 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 terms of force on moving charge in the Lorentz force law.
Magnetic field lines are a visual tool used to represent magnetic fields. They describe the direction of the magnetic force on a north monopole at any given position. ... One useful analogy is the close connection between magneticmonopoles and electric charges.