Computation of the transient solidification of liquid