The lost foam casting process represents a significant advancement in foundry technology, characterized by the use of expendable foam patterns that are vaporized by molten metal during filling. This method offers advantages such as reduced machining, complex geometry capabilities, and improved surface finish. However, the process involves complex multiphase phenomena, including heat transfer, fluid flow, foam decomposition, and gas dynamics, making it challenging to optimize without robust numerical simulation. Traditional simulation approaches often lack comprehensive models for the unique interfacial interactions in the lost foam casting process. In this work, I address these limitations by developing an enhanced simulation model within the Flow-3D framework, incorporating reconstructed mathematical models for heat transfer coefficients influenced by temperature, pressure, and vacuum. The implementation involves Fortran code development, compilation via Visual Studio 2008, and validation through experimental comparisons. This article details the mathematical foundations, model development, software integration, and simulation-verification process, demonstrating the feasibility of this approach for practical applications in the lost foam casting process.
Numerical simulation of the lost foam casting process primarily focuses on modeling the fluid flow and heat transfer during mold filling and solidification. The core mathematical principles are derived from conservation laws. The continuity equation for incompressible molten metal, assuming constant density, is given by:
$$ \frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} = 0 $$
where \( u \), \( v \), and \( w \) are the velocity components in the \( x \), \( y \), and \( z \) directions, respectively. The momentum conservation equations (Navier-Stokes equations) for Newtonian fluids are expressed as:
$$ \frac{\partial u}{\partial t} + u \frac{\partial u}{\partial x} + v \frac{\partial u}{\partial y} + w \frac{\partial u}{\partial z} = -\frac{1}{\rho} \frac{\partial p}{\partial x} + g_x + \nu \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2} \right) $$
$$ \frac{\partial v}{\partial t} + u \frac{\partial v}{\partial x} + v \frac{\partial v}{\partial y} + w \frac{\partial v}{\partial z} = -\frac{1}{\rho} \frac{\partial p}{\partial y} + g_y + \nu \left( \frac{\partial^2 v}{\partial x^2} + \frac{\partial^2 v}{\partial y^2} + \frac{\partial^2 v}{\partial z^2} \right) $$
$$ \frac{\partial w}{\partial t} + u \frac{\partial w}{\partial x} + v \frac{\partial w}{\partial y} + w \frac{\partial w}{\partial z} = -\frac{1}{\rho} \frac{\partial p}{\partial z} + g_z + \nu \left( \frac{\partial^2 w}{\partial x^2} + \frac{\partial^2 w}{\partial y^2} + \frac{\partial^2 w}{\partial z^2} \right) $$
Here, \( p \) is the pressure, \( \rho \) is the density, \( \nu \) is the kinematic viscosity, and \( g_x, g_y, g_z \) are gravitational acceleration components. To track the molten metal front and the foam pattern interface, the Volume of Fluid (VOF) method is employed. A volume fraction function \( F(x,y,z) \) is defined, where \( F=1 \) for cells full of fluid, \( F=0 \) for empty cells, and \( 0 < F < 1 \) for cells containing the free surface. The advection equation for \( F \) is:
$$ \frac{\partial F}{\partial t} + u \frac{\partial F}{\partial x} + v \frac{\partial F}{\partial y} + w \frac{\partial F}{\partial z} = 0 $$
These equations form the basis for simulating fluid flow in casting processes. However, the lost foam casting process requires additional models to account for foam decomposition and interfacial heat transfer. The table below summarizes the key governing equations and their roles in the simulation of the lost foam casting process.
| Equation Type | Mathematical Expression | Role in Lost Foam Casting Simulation |
|---|---|---|
| Continuity | $$ \nabla \cdot \mathbf{v} = 0 $$ | Ensures mass conservation for incompressible molten metal flow. |
| Momentum (x-direction) | $$ \frac{\partial u}{\partial t} + (\mathbf{v} \cdot \nabla) u = -\frac{1}{\rho} \frac{\partial p}{\partial x} + g_x + \nu \nabla^2 u $$ | Describes fluid motion under pressure, gravity, and viscous forces. |
| Momentum (y-direction) | $$ \frac{\partial v}{\partial t} + (\mathbf{v} \cdot \nabla) v = -\frac{1}{\rho} \frac{\partial p}{\partial y} + g_y + \nu \nabla^2 v $$ | Describes fluid motion under pressure, gravity, and viscous forces. |
| Momentum (z-direction) | $$ \frac{\partial w}{\partial t} + (\mathbf{v} \cdot \nabla) w = -\frac{1}{\rho} \frac{\partial p}{\partial z} + g_z + \nu \nabla^2 w $$ | Describes fluid motion under pressure, gravity, and viscous forces. |
| VOF Advection | $$ \frac{\partial F}{\partial t} + \nabla \cdot (F \mathbf{v}) = 0 $$ | Tracks the metal-foam interface and free surface evolution. |
The development of a specialized simulation model for the lost foam casting process within Flow-3D necessitates enhancements to its standard mathematical framework. In the lost foam casting process, the advancement of the molten metal front is essentially governed by the recession rate of the foam pattern, which is determined by heat transfer at the interface. Based on energy conservation, the heat absorbed for foam vaporization equals the heat transferred from the molten metal. A simplified model for the metal front advancement velocity \( v \) is:
$$ v = \frac{H}{R} $$
where \( H \) is the interfacial heat transfer coefficient between metal and foam, and \( R \) is the product of foam density and thermal conductivity. However, this basic model overlooks critical factors like gravity, pouring velocity, and vacuum pressure, which are pivotal in the lost foam casting process. Gravity causes asymmetric gap thickness around the metal front, leading to faster filling in downward directions. The volumetric recession rate \( Q_v \) of the foam is related to the gap thickness \( \delta \):
$$ Q_v = \frac{A}{\rho_{\text{foam}} w} \left( \frac{\lambda}{\delta} + \alpha_c + \alpha_r \right) (T_{\text{metal}} – T_{\text{foam}}) $$
Here, \( A \) is the interfacial area, \( \rho_{\text{foam}} \) is foam density, \( w \) is the latent heat of vaporization, \( \lambda \) is gas thermal conductivity, \( \alpha_c \) and \( \alpha_r \) are convective and radiative heat transfer coefficients, and \( T_{\text{metal}} \) and \( T_{\text{foam}} \) are interface temperatures. To incorporate gravity effects, a correction factor \( h \) is introduced:
$$ h = 1 + \sin(\theta) \cdot C_g \frac{G}{G + \frac{H}{R_a}} $$
where \( \theta \) is the angle between the interface normal and gravity, \( C_g \) is a gravity influence coefficient, \( G \) is gravitational acceleration, and \( R_a \) is foam surface roughness. This factor reduces the heat transfer coefficient and thus the filling speed as the interface tilts away from the gravity direction. Furthermore, pouring velocity and vacuum pressure significantly impact the lost foam casting process. At lower pouring temperatures, increased temperature accelerates foam decomposition, but beyond a point, excessive gaseous products can increase gap pressure and slow the front. Vacuum application alleviates this by rapidly removing gases, thinning the gap, and enhancing heat transfer. Regression analysis suggests an optimal interfacial temperature around 1370°C for efficient vaporization under vacuum. Therefore, the modified heat transfer coefficient \( H’ \) accounting for vacuum \( P_v \) and pouring velocity \( v_p \) is modeled as:
$$ H’ = H \cdot h \cdot \left(1 + \beta_1 P_v\right) \cdot \left(1 + \beta_2 v_p\right) $$
where \( \beta_1 \) and \( \beta_2 \) are empirical coefficients. These enhancements ensure the simulation accurately captures the dynamics of the lost foam casting process. The following table outlines the key parameters and their influences in the model.
| Parameter | Symbol | Influence on Lost Foam Casting Process | Typical Range/Value |
|---|---|---|---|
| Interfacial Heat Transfer Coefficient | \( H \) | Directly controls foam recession and metal front velocity. | 500–2000 W/m²·K |
| Gravity Correction Factor | \( h \) | Modifies heat transfer based on orientation relative to gravity. | 0.5–1.5 |
| Vacuum Pressure | \( P_v \) | Enhances heat transfer by reducing gap thickness and pressure. | 0–80 kPa |
| Pouring Velocity | \( v_p \) | Affects initial momentum and interfacial turbulence. | 0.5–2.0 m/s |
| Foam Decomposition Temperature | \( T_{\text{foam}} \) | Determines energy required for vaporization. | ~1370°C (optimal under vacuum) |
Flow-3D provides a robust platform for computational fluid dynamics (CFD) simulations, featuring several technologies beneficial for modeling the lost foam casting process. The Multi-Block Meshing capability allows partitioning the computational domain into regions with different grid sizes, enabling efficient discretization of complex geometries like thin gates and thick sections common in lost foam castings. The FAVOR (Fractional Area/Volume Obstacle Representation) method accurately represents curved and intricate surfaces within a Cartesian grid, minimizing staircase artifacts and improving accuracy. For free-surface tracking, the TruVOF algorithm precisely captures the metal front advancement, splashing, and merging, which is crucial for simulating the filling stage in the lost foam casting process. These features make Flow-3D suitable for implementing the enhanced models described.

To integrate the enhanced mathematical models into Flow-3D, I engaged in software structure analysis and code development. Flow-3D allows user-defined subroutines for custom physics. The process began with parsing the software’s directory structure to locate essential library files and global variable declarations. Key modules and common blocks are housed in the “comdeck” directory, which contains Fortran include files for arrays, constants, and utility functions. In the user subroutine, these are accessed via INCLUDE statements, such as INCLUDE 'COMDECK', ensuring proper linkage during compilation. Virtual variables defined in files like “dumn.F”—including integer variables idum1 to idum25 and real variables dum1 to dum25—provide user-controlled parameters that can be activated through input files. These dummy arrays, INTDUM and FPDUM, default to zero but are customizable for specific simulations of the lost foam casting process. Using Fortran 90/95, I wrote source code to implement the reconstructed heat transfer models, incorporating the gravity, vacuum, and pouring velocity effects. The code structure involved:
- Declaring variables for temperature, pressure, vacuum, and velocity fields.
- Calculating the modified heat transfer coefficient \( H’ \) at each interface cell.
- Updating the foam recession velocity based on \( v = H’/R \).
- Integrating these updates into the fluid flow and VOF advection routines.
The development environment was Microsoft Visual Studio 2008 with Intel Fortran compiler. The steps included creating a project, adding source files, setting library paths, and compiling to generate an executable. The compilation process linked user subroutines with Flow-3D’s core libraries, producing a customized solver for the lost foam casting process. The table below summarizes the software development steps.
| Step | Action | Tools/Environment | Outcome |
|---|---|---|---|
| 1. Analysis | Examine Flow-3D structure and subroutine interfaces. | Flow-3D documentation, source directories | Identify hooks for custom model integration. |
| 2. Coding | Write Fortran subroutines for enhanced heat transfer. | Fortran 95, text editor | Source files (e.g., user_htc.f90). |
| 3. Compilation | Compile and link with Flow-3D libraries. | Visual Studio 2008, Intel Fortran | Custom executable (e.g., flow3d_lostfoam.exe). |
| 4. Testing | Run simple test cases to verify model behavior. | Flow-3D pre/post-processor | Debugged simulation for lost foam casting process. |
With the developed executable, I performed simulation studies for the lost foam casting process. A three-dimensional model was created in Flow-3D’s Model Setup module. The casting geometry was a rectangular plate with dimensions 150 mm × 75 mm × 10 mm, fed by a gating system with an ingate size of 10 mm × 20 mm. Three pouring configurations were designed: bottom-gating, top-gating, and side-gating, to evaluate filling patterns under different orientations. Multi-block meshing was applied, with finer grids near the ingate and coarser grids in the bulk to balance accuracy and computational cost. The mesh independence was verified by comparing results with refined grids. The simulation parameters were set as follows: pouring temperature 1680 K, boundary pressures of 15.288 kPa, 3.822 kPa, and 99.372 kPa at different zones, and a vacuum pressure of 53.312 kPa applied to the mold cavity. Since the standard Flow-3D interface lacks explicit vacuum parameters for lost foam casting, I manually added vacuum settings by editing the simulation input file. The simulations were run using the customized executable, and filling sequences were recorded. The filling times for bottom-gating, top-gating, and side-gating were 0.56 s, 0.41 s, and 0.45 s, respectively. The results illustrated distinct flow patterns: bottom-gating showed steady, progressive filling with minimal turbulence; top-gating exhibited rapid initial filling but potential splashing; side-gating resulted in asymmetric front advancement. These outcomes align with expected physics in the lost foam casting process, where gravity and vacuum influence the metal-foam interaction.
To validate the simulation model, experimental tests were conducted for the lost foam casting process. The setup used EPS foam patterns with density 0.02 g/cm³, coated with SG2 refractory coating of 1 mm thickness dried at 60°C. The mold was made of silica sand in a bottom-pouring flask of size 500 mm × 500 mm × 500 mm, placed on a vibration table with 1000 N force, 50 Hz frequency, and 0–1.5 mm amplitude to ensure sand compaction. A thin plastic film of 0.1 mm was used as a barrier. To measure filling times accurately, miniature timers connected to voltage sensors were embedded at strategic locations on the foam pattern. When molten metal contacted a sensor, an electrical signal triggered the timer, recording the arrival time precisely. The pouring conditions matched the simulation parameters. The experimental filling times were 0.5 s for bottom-gating, 0.3 s for top-gating, and 0.4 s for side-gating. The comparison between simulation and experiment is summarized below.
| Pouring Configuration | Simulation Filling Time (s) | Experimental Filling Time (s) | Relative Error (%) |
|---|---|---|---|
| Bottom-Gating | 0.56 | 0.50 | 12.0 |
| Top-Gating | 0.41 | 0.30 | 36.7 |
| Side-Gating | 0.45 | 0.40 | 12.5 |
The errors are within acceptable ranges for casting simulations, considering uncertainties in material properties and boundary conditions. The higher error for top-gating may be due to simplified assumptions about splashing and foam decomposition kinetics. Overall, the simulation model captures the essential trends of the lost foam casting process, validating the developed approach.
The development and application of this enhanced simulation model reveal several insights into the lost foam casting process. The incorporation of gravity, vacuum, and pouring velocity effects into the heat transfer coefficient significantly improves prediction accuracy. The model demonstrates that vacuum not only accelerates filling by removing gases but also stabilizes the metal front by maintaining a thin, consistent gap. Gravity-induced asymmetry must be accounted for to avoid defects like misruns or cold shuts. The software implementation via Fortran and Flow-3D showcases the flexibility of commercial CFD packages for specialized foundry processes. Future work could extend the model to include more detailed foam pyrolysis chemistry, multiphase flow of decomposition products, and stress analysis during solidification. Additionally, machine learning techniques could optimize the empirical coefficients for broader applications. This simulation framework provides a valuable tool for process design and optimization in the lost foam casting process, reducing trial-and-error and improving yield.
In conclusion, the development of a lost foam casting simulation model based on Flow-3D is feasible and instructive for practical production. By reconstructing mathematical models for heat transfer influenced by temperature, pressure, and vacuum, and implementing them through Fortran code integrated into Flow-3D, I have created a capable simulation tool. The validation through experiments shows reasonable agreement, confirming the model’s ability to replicate key aspects of the lost foam casting process. This work underscores the importance of tailored numerical models in advancing casting technologies, offering a pathway to enhance efficiency, quality, and sustainability in the lost foam casting process. Continued refinement and application of such simulations will drive innovation in foundry operations, making the lost foam casting process more robust and widely adoptable for complex component manufacturing.
