The simulation of multidimensional multiphase flows