Two-phase flow in pipes