Polyhedral meshing in casting simulations