Numerical simulations of real-gas flows with phase-equilibrium thermodynamics