Phase inversion in a dispersed oil-water and oil-water-gas flow by