A modified phase field method for the simulation of two-phase system in complex geometries | Synapse