The study of the heat energy associated with a change in the phase of a substance, such as melting or vaporization.