An internal combustion unit that produces gas or steam, or that changes mechanical energy into electrical energy. As most electrical generators are gasoline-powered, they can be a source of air pollution, emitting carbon dioxide in particular. Diesel-powered generators are also a major source of pollution in the US, emitting nitrogen oxides which cause urban smog.