Numerical simulation of flow and temperature evolution during the initial phase of steady-state solidification