Applying a Parallel Solution to the Graph Partitioning Problem in the Simulation of Multiphase Flows