Vertical two-phase flow in porous media