The preferred classical explanation of a magnetic dipole has changed over time. Before the 1930s, textbooks explained the magnetic dipole using hypothetical magnetic point charges. Since then, most have defined it in terms of Ampèrian currents. In magnetic materials, the cause of the magnetic moment are the
spin and orbital angular momentum states of the
electrons.
Magnetic pole model The sources of magnetic moments in materials can be represented by poles in analogy to
electrostatics. This is sometimes known as the Gilbert model. In this model, a small magnet is modeled by a pair of
fictitious magnetic monopoles of equal magnitude but opposite
polarity. Each pole is the source of magnetic force which weakens with distance. Since magnetic poles always come in pairs, their forces partially cancel each other because while one pole pulls, the other repels. This cancellation is greatest when the poles are close to each other i.e. when the bar magnet is short. The magnetic force produced by a bar magnet, at a given point in space, therefore depends on two factors: the strength of its poles (
magnetic pole strength), and the vector \mathrm{\boldsymbol \ell} separating them. The magnetic dipole moment is related to the fictitious poles as When the current density in the integral is replaced by a loop of current I in a plane enclosing an area S then the
volume integral becomes a
line integral and the resulting dipole moment becomes \mathbf{m} = I\mathbf{S}, which is how the magnetic dipole moment for an Amperian loop is derived. Practitioners using the current loop model generally represent the magnetic field by the
solenoidal field , analogous to the electrostatic field .
Magnetic moment of a solenoid A generalization of the above current loop is a coil, or
solenoid. Its moment is the vector sum of the moments of individual turns. If the solenoid has identical turns (single-layer winding) and vector area , \mathbf{m} = N I \mathbf{S}.
Quantum mechanical model When calculating the magnetic moments of materials or molecules on the microscopic level it is often convenient to use a third model for the magnetic moment that exploits the linear relationship between the
angular momentum and the magnetic moment of a particle. While this relation is straightforward to develop for macroscopic currents using the amperian loop model (see
below), neither the magnetic pole model nor the amperian loop model truly represents what is occurring at the atomic and molecular levels. At that level
quantum mechanics must be used. Fortunately, the linear relationship between the magnetic dipole moment of a particle and its angular momentum still holds, although it is different for each particle. Further, care must be used to distinguish between the intrinsic angular momentum (or
spin) of the particle and the particle's orbital angular momentum. == External magnetic field produced by a magnetic dipole moment ==