Simulation of diffusion-limited lateral growth of dendrites during solidification via liquid metal cooling