Magnetic Particle Testing uses one or more magnetic fields to locate surface and near-surface discontinuities in ferromagnetic materials. The magnetic field can be applied with a permanent magnet or an electromagnet. When using an electromagnet, the field is present only when the current is being applied. When the magnetic field encounters a discontinuity transverse to the direction of the magnetic field, the flux lines produce a magnetic flux leakage field of their own.