How a generator works

Diesel generators
The diesel engine drives the generator and converts the energy of the diesel into electricity.
In the cylinder of the diesel engine, the clean air filtered by the air filter and the high-pressure atomized diesel fuel injected by the fuel injector are fully mixed. Under the upward extrusion of the piston, the volume shrinks and the temperature rises rapidly, reaching the ignition point of the diesel. The diesel is ignited, the mixed gas burns violently, the volume expands rapidly, and the piston is pushed down, which is called "work".
Gasoline Generator
The gasoline engine drives the generator to convert the energy of gasoline into electricity.
In the gasoline engine cylinder, the mixed gas burns violently, and the volume expands rapidly, pushing the piston down to do work.
Whether it is a diesel generator or a gasoline generator, each cylinder performs work in a certain order, and the thrust acting on the piston becomes the force that pushes the crankshaft to rotate through the connecting rod, thereby driving the crankshaft to rotate. By installing the brushless synchronous alternator coaxially with the crankshaft of the power machine, the rotor of the generator can be driven by the rotation of the power machine. Using the principle of 'electromagnetic induction', the generator will output an induced electromotive force, and a current can be generated through a closed load loop. .