A phase field model of the impingement of solidifying particles