A heat engine is a system that transfers thermal energy to do mechanical or electrical work.
Links:
Wikipedia — Heat engine
Wikipedia — Carnot’s theorem (thermodynamics)
Contents:
heat_from_heater
heat_to_refrigerator
efficiency
law