Numerical simulations of core-annular flow through a horizontal pipe