Simulating a multiphase reactor with continuous phase transition