Modelling of heat flow in solidification