Numerical simulation for thermal flow filling process of casting