A solenoid is a coil of wire that produces a magnetic field when an electric current is passed through it. The side of the solenoid that the current enters is considered to be the positive side.