A Multi-Segment Multiphase Wellbore Model Associated with Dynamic Gridding