Phase-field simulations of particle capture during the directional solidification of silicon