The average of the magnetic potential energies of all the particles in a system.