Prediction of solidification defects, such as macrosegregation and inhomogeneous microstructures constitutes a key issue for the industry. The development of models of casting processes needs to account for several imbricated length scales and different physical phenomena. For example, the kinetics of the growth of microstructures needs to be coupled with the multiphase flow at the process scale. We introduce such a state-of-the-art model and outline its principles. We present the most recent applications of the model to casting of a heavy steel ingot and to direct chill casting of a large Al alloy sheet ingot. Their ability to help in the understanding of complex phenomena, such as the competition between nucleation and growth of grains in the presence of convection of the liquid and of grain motion is shown, and its predictive capabilities are discussed. Key issues for future developments and research are addressed.