Functions of solenoid. A solenoid is a set of coiled wire which acts as an electromagnet when current is passed through it. It converts electrical energy directly into linear mechanical motion. Since coiled wire has a large application, people often assume solenoid to be an electromagnet.