Heat transfer during a chemical reaction