Development Of A Multiphase Flow Simulator For Drilling Applications