Generators:
There are two types of generators: (a) AC generators and (b) DC generators.
(a) AC generator:
If we rotate a coil of wire in a magnetic filed, it produces an alternating current. The magnetic flux between the poles of the magnet are cut by the rotating coil, inducing a lot of current. A commutator (pair of slip rings) is used in order to get the current out of the coil which helps in preventing the entanglement of the wires when they connect directly to the coil.
(b) DC generator:
If we replace the slip rings with two brushes, then the current that is produced will be Direct current, since only one side of the ring will be in contact with the brush.
In any generator, the whole assembly carrying the coils is called the armature, or rotor. The stationary part constitute the stator. In general, AC and DC generators use electromagnets, instead of permanent magnets. The field current for the electromagnets is most often DC from an external source. The term dynamo is often used for the DC generator; In modern days the generator that is used in almost all types of automobiles is usually a dynamo.
The right hand rule is applicable for generators: