Mechanistic Modeling of Two-Phase Flow in Deviated Wells