A branch of thermodynamics that deals with the energy changes associated with electrochemical reactions.