A bar magnet behaves as a magnetic dipole with two poles that cannot be isolated; its field resembles that of a solenoid, and it has a magnetic moment
. In a uniform field it experiences a torque
and has potential energy
, oscillating like a torsional pendulum. The Earth itself acts as a giant magnet; its field at a place is described by declination, dip (inclination) and the horizontal component. Magnetic properties of materials are captured by the magnetising field
, magnetisation
, and permeability, with
and susceptibility
. Materials are classified as diamagnetic (weakly repelled,
small and negative), paramagnetic (weakly attracted, small positive
, obeying Curie's law
), and ferromagnetic (strongly attracted, large
, showing domains and hysteresis). Ferromagnets lose their magnetism above the Curie temperature, becoming paramagnetic. Hysteresis, the lag of magnetisation behind the field, and the area of the loop indicate energy loss, guiding the choice of materials for permanent magnets and electromagnets.