Iteratively coupled reservoir simulation for multiphase flow in porous media