Modelling the Flow and Solidification of Metals