Casting simulation is computer modeling of how molten metal fills a mold, solidifies, and cools. With simulation, a foundry can see where air will be trapped, where shrinkage cavities will form, and which areas risk cracking, all before a pattern is made or metal is poured. This article explains the physics behind simulation, what it can predict, the data it needs, the workflow, application examples, benefits and limitations, and how small and medium foundries can get started.
From Trial-and-Error to Physics-Based Prediction
The traditional way to design gating and risers relied on experience and empirical rules. A first design was tried, the casting sectioned or radiographed, the design changed, and tried again. A new part could need three to five trials, each costing time and money for patterns, molds, metal, and testing.
Simulation replaces most of those trials with calculations based on physics:
- Fluid flow (CFD): how metal flows through the gating and fills the cavity, including turbulence and trapped air.
- Heat transfer: how heat moves from the metal into the mold and surroundings, revealing the order of solidification.
- Solidification and shrinkage: where metal freezes last and whether a riser can still feed it.
- Stress and distortion: forces that arise as the casting contracts against the mold.
What Can Casting Simulation Predict?
| Simulation result | Related defect or issue |
|---|---|
| Filling pattern and flow velocity | Turbulence, oxide inclusions, mold erosion |
| Metal temperature at the flow front | Misruns and cold shuts |
| Trapped air | Blowholes and gas porosity |
| Solidification time and sequence | Directional solidification, hot spots |
| Niyama criterion and shrinkage porosity | Shrinkage cavities and microshrinkage |
| Riser size and efficiency | Casting yield, need for chills |
| Stress during and after solidification | Hot tears, cold cracks, distortion |
| Microstructure (advanced modules) | Grain size, graphite, hardness |
How these results relate to specific defects is explained in types of casting defects and the porosity and hot tearing case study.
The Data Simulation Needs
A simulation is only as accurate as its inputs:
- 3D geometry of the casting, gating, risers, chills, and cores.
- Thermophysical properties of the alloy: liquidus and solidus, latent heat, conductivity, and density as functions of temperature. Software packages include databases for common alloys.
- Mold properties: sand type, conductivity, and heat capacity.
- Heat transfer coefficients between metal and mold, which strongly affect the results.
- Process conditions: pouring temperature, pouring time, ladle position, and initial mold temperature.
A common mistake is to use an “ideal” pouring temperature in the simulation while, on the shop floor, the metal is often cooler because it waits too long in the ladle.
The Simulation Workflow
- Prepare the CAD model of the casting and the initial gating and riser design.
- Create a mesh fine enough in thin walls.
- Enter materials and process conditions.
- Run the filling and solidification simulation.
- Read the results, especially trapped air, freezing time, and predicted porosity.
- Change the design, for example moving a riser, adding a chill, or changing the ingate, then rerun.
- Validate with the first real castings: section, radiograph, or pressure test them and compare with the simulation.
- Capture the learning to tune simulation parameters for the next part.
Gating and riser principles are covered in gating and riser system design and how to calculate riser size.
Application Examples
Ductile iron axle housing. First castings showed shrinkage at a heavy wall junction. Simulation revealed an isolated hot spot that froze after the riser. The riser was moved and a chill added on the opposite side. The rerun showed directional solidification, and the next castings passed radiography.
Low-pressure aluminum wheel. Filling simulation showed air trapped in the spokes. Mold vents were added and the die temperature raised in that area.
Steel valve. Stress simulation showed stress concentration at an inside corner during solidification. The corner radius was increased before the pattern was made, cutting hot-tear risk from the start.
Practical Benefits for Foundries
- Fewer trials before production.
- Higher yield, because risers can be made smaller without causing shrinkage. A few percent more yield means large savings in melting energy.
- Shorter development time for new parts.
- Technical evidence for customers, especially in automotive and oil and gas, where buyers ask for defect risk analysis.
- Engineer training, because simulation shows visually what happens inside the mold.
Challenges and Limitations
- License cost of commercial software such as MAGMASOFT, ProCAST, FLOW-3D CAST, or NovaFlow&Solid is high for small foundries.
- Skills. Results must be interpreted by people who understand metallurgy and the casting process.
- Input data. Heat transfer coefficients and local sand properties often have to be tuned from experience.
- Some defects are hard to predict, such as sand inclusions, operator errors, and gas from damp cores.
- Computing time can be several hours for large castings with fine meshes.
Simulation is a decision tool, not a substitute for experience and process control on the shop floor.
Part of a Wider Digital Manufacturing Ecosystem
Simulation becomes more useful when linked to other technologies:
- 3D sand printing, to print an optimized gating system directly. See technological innovation in metal casting.
- Sensors and process data from Industry 4.0, to compare real conditions with simulation assumptions.
- AI defect detection, matching defects found in inspection with simulation predictions. See AI for automated defect detection.
How Small and Medium Foundries Can Start
- Use simulation services from consultants or universities for high-value new parts or parts with recurring defects.
- Start with solidification analysis only, which is simpler and cheaper than full filling simulation but already very helpful for riser placement.
- Record real process data, especially pouring temperature and time, so simulation can be compared with reality.
- Train one or two engineers to own simulation.
Frequently Asked Questions
What is casting simulation?
Computer modeling of mold filling, solidification, and cooling to predict where defects will form before production.
Can simulation eliminate all defects?
No. Simulation is excellent for design-driven defects such as shrinkage and misruns, but it cannot prevent defects caused by dirty charge materials, damp sand, or operator errors.
What is the Niyama criterion?
A value calculated from the temperature gradient and cooling rate that indicates areas prone to shrinkage porosity. Low values mean high risk.
Which simulation software is commonly used?
Among others, MAGMASOFT, ProCAST, FLOW-3D CAST, NovaFlow&Solid, and SOLIDCast. Simpler tools also exist for solidification analysis.
How long does a simulation take?
For a simple casting, from a few minutes to an hour. For large castings with fine meshes and stress analysis, from several hours to overnight.
Related Articles
- 20 Types of Casting Defects: Causes, Identification, and Remedies
- Gating and Riser System Design in Metal Casting: The Key to Preventing Defects from the Mold Up
- Technological Innovation in Metal Casting: From 3D Sand Printing to Digital Simulation
- Artificial Intelligence (AI) for Automated Defect Detection in Metal Castings

Dagus R. Djuanda is a metallurgical engineer with more than 20 years of experience in materials engineering, specializing in magnetic materials. He holds a master’s degree in magnetic materials engineering, is a doctoral candidate in industrial engineering, and works as an engineer at the Ministry of Industry of the Republic of Indonesia. Founder of Metalurgika.




