Motion of equiaxed grains during directional solidification under static magnetic field