A heat engine is an engine that uses heat to produce mechanical work by carrying a working substance through a cyclic process