Stratified three phase flow in pipes