Thermodynamics equations