Reverse engineering of casting equipment for process simulation