Numerical analysis of two-phase flow from a stratified region through two side branches