The generator set for ships produces electricity for use aboard. Most generator sets consist of an electrical generator and an internal combustion engine, usually diesel.
Ship generator sets supply the electrical energy necessary to run a variety of equipment: lighting, air conditioning, electric motors, bow thrusters, windlasses, fans, etc.
Ship generator sets combine an internal combustion engine with an electrical generator. Usually, this consists of a medium- or high-speed diesel engine and an alternator. The alternator transforms the mechanical energy of the engine to electrical energy, charging the ship's batteries and supplying its electrical systems.