A Finite Difference Implementation of Phase Field Theory