Electrical machine

apparatus that converts energy through means of magnetic induction

An electrical machine is an electrical device that changes energy from one form to another, usually from mechanical energy to electrical energy or from electrical energy to mechanical energy.

Electrical generator
Electrical motor
Transformer