What is the function of the generator in the process of manufacturing electricity

The function of a generator in the process of manufacturing electricity is to convert mechanical energy into electrical energy. It does so by using the principle of electromagnetic induction. The generator typically consists of a rotor and a stator. The rotor, often driven by a turbine or an engine, spins rapidly, creating a rotating magnetic field. This rotating magnetic field induces an electric current in the coils of the stator, which is connected to the electrical grid. This current is then harnessed and transmitted as usable electrical power.