Conservation of thermal energy