magnetic fields being produced by currents
An electromagnet is a type of magnet in which the magnetic field is produced by an electric current. The magnetic field disappears when the current is turned off.Electromagnets usually consist of a large number of closely spaced turns of wire that create the magnetic field.he magnetic field of electromagnets in the general case is given by Ampere's Law : which says that the integral of the magnetizing field H around any closed loop of the field is equal to the sum of the current flowing through the loop.