A Comprehensive Mechanistic Model for Upward Two-Phase Flow in Wellbores