Magnetic field. A permanent magnet, a piece of magnetized metal alloy. A solenoid ( electromagnet ), a coil of wire with an electric current through it. The shape of the magnetic fields of a permanent magnet and an electromagnet are revealed by the orientation of iron filings sprinkled on pieces of paper. A magnetic field is a vector field that ...