This is the study of the behavior of thermal energy in a system and its transformation into other forms of energy.