solenoid

solenoid, a uniformly wound coil of wire in the form of a cylinder having a length much greater than its diameter. Passage of direct electric current through the wire creates a magnetic field that draws a core or plunger, usually of iron, into the solenoid; the motion of the plunger often is used to actuate switches, relays, or other devices.