Diffusion under temperature gradient: A phase-field model study