Numerical simulation of the solidification of pure melt by a phase-field model using an adaptive computation domain