heat engine

A heat engine is a device that produces mechanical energy directly from two heat reservoirs at different temperatures. Alternatively, a machine that converts
thermal energy to mechanical energy, such as a steam
engine or turbine.