OpenFOAM solver for the Allen-Cahn phase field equation coupled with thermal diffusion for simulating solidification phase transformation microstructures