An electric generator is an engine that is used to convert mechanical energy into electrical energy.
Combined heat and power supply (CHP source) is an electric generator used not only as a source of electric energy but also as a heating source. It may therefore be not only part of an electrical system but also of a heating system.