Calculations and Applications of Phase Equilibria