(4) The Gibbs relations read du =Tds- pdv and dh = Tds+ vdp, where u is the internal energy, h is the enthalpy, T is the temperature, s is the entropy, p is the pressure, and v is the specific volume. In addition, the Helmholtz function a=u-Ts and Gibbs function g = h-Ts .