Thermodynamic equations