The Laws of Thermodynamics: Heat-Engine Lab

Pick the hot and cold temperatures and the heat you feed in. The first law balances the energy; the second law caps the work you can ever get back out.

Max efficiency η
Max work W
Waste heat Q_c
Entropy gen. ΔS

η = 1 − Tc / Th  ·  W = η·Qh  ·  Qc = Qh − W