Text this: Numerical simulation of the casting process