Reaction energy and thermodynamics