Multiphase fluid dynamics