What is electric generators?
Electric generators are mechanical machines which transfer mechanical energy given to it to electrical energy.
It consists of a magnetic field (generated by electromagnets) which are generally rotated by mechanical force around an axis.
Due to electromagnetic induction, electric potential is generated which is then extracted from it with means of two wires, which carries the current (also takes it back as well).
As one might notice, the value of
This is called an alternating emf. The current so generated also alters it's direction periodically, and is called to alternating current.
It may be transformed into direct (unidirectional) current by means of a full-wave rectifier.