Cogeneration is the simultaneous production of electrical or mechanical energy (power) and useful thermal energy from the same fuel/energy source such as oil, coal, gas, biomass, or solar panels. Conventionally, heat is emitted through cooling towers or flue gas is lost, but cogeneration makes use of that heat.