When a bar magnet is placed in iron filings, the filings arrange themselves in lines called magnetic field lines. These lines represent the magnetic field produced by the magnet and indicate the direction of the field from the south to north pole in closed curves. No two field lines cross. The strength of the magnetic field increases with increasing current in a wire. A solenoid, which is a coil of insulated copper wire wrapped into a cylinder shape, produces a strong magnetic field inside that can magnetize iron placed within it, creating an electromagnet.