Lattice boltzmann modeling for mass and velocity fields of casting flows