Fundamentals in the production and design of castings