Flow Modeling for Casting Analysis