Thermodynamically Consistent Modeling And Simulation Of Multiphase Flows