Density is computed from temperature and pressure using the IAPWS-IF97 relationship via the Gibbs free energy for region 2.