Extension methods for thermodynamic calculations