Mechanistic Models to Simulate Slug Flow in Horizontal and Vertical Pipes