Invia SMS: A numerical method for the multiphase viscous flow equations