2D code to simulate multiphase explosions