in a heat engine, as described by Carnot's theorem and the second law of thermodynamics.
What states that there are strict limits to how efficiently heat can be converted into a work in a cyclic process?
Carnot's theorem