dynamo - (n.)

A device that generates electricity through the effect of motion in the presence of a magnetic field. The solar dynamo explains sunspots and the solar activity cycle.