Slug modeling with 1D two-fluid model