Multiphase Flow Simulation with Applications for CO2 Storage