A numerical study of diffusion of nanoparticles in a viscous medium during solidification