Three-Phase Flash in Compositional Simulation Using a Reduced Method