Thermal energy is related to the temperature of matter. For a given material and mass,
the higher the temperature, the greater its thermal energy. Heat transfer is a study of the
exchange of thermal energy through a body or between bodies which occurs when there
is a temperature difference. When two bodies are at different temperatures, thermal
energy transfers from the one with higher temperature to the one with lower temperature.
Heat always transfers from hot to cold.