Dynamics of pipes conveying fluid with non-uniform turbulent and laminar velocity profiles