thermodynamics

the science concerned with the relations between heat and mechanical energy or work, and the conversion of one into the other.