InterPhaseChangeFoam Solver
- InterPhaseChangeFoam is an advanced CFD solver that employs conservative, sharp-interface techniques to simulate compressible multiphase flows with phase change.
- It utilizes a four-wave approximate Riemann solver to rigorously enforce jump conditions and ensure conservation of mass, momentum, and energy.
- The modular finite-volume framework supports dynamic model selection and extensive validation against canonical tests for high-fidelity simulations.
InterPhaseChangeFoam is an advanced computational fluid dynamics (CFD) solver designed for the simulation of compressible multiphase flows with phase change and sharp interface representation. This solver, originating in the OpenFOAM ecosystem, implements fully conservative, sharp-interface methodologies and incorporates phase change via robust Riemann problem solutions at fluid interfaces. Its development is directly influenced by recent research aimed at ensuring strict conservation, resolving interface physics at cell thickness without numerical smearing, and achieving thermodynamic consistency and numerical stability in phase-changing two-phase flows (Long et al., 2021, Scheufler et al., 2021).
1. Governing Equations and Interface Jump Conditions
The foundation of InterPhaseChangeFoam-style solvers is the separate solution of bulk equations for each phase, typically liquid and vapor, under the inviscid Euler equation in conservative form:
with fluxes
Each phase employs its respective equation of state (EOS), such as the stiffened-gas for liquid and ideal-gas or Helmholtz-EOS for vapor phases (Long et al., 2021).
At the interface, sharp jump conditions are imposed consistent with conservation of mass, momentum, and energy. Across an interface moving at speed with normal :
where , , is the phase-change mass flux, is the surface tension, is the interface curvature, and is the latent heat (Long et al., 2021).
2. Four-Wave Approximate Riemann Solver with Phase Change
The interfacial fluxes are determined by solving a generalized Riemann problem incorporating phase change. Rather than tackling the exact five-wave/8D root-finding structure, a four-wave HLL-type Riemann solver is used. It consists of left and right acoustic waves (with Davies’ speed estimates , ), a single contact/phase wave, and enforces all jump conditions strictly for conservation. The approach reduces the root-finding to a scalar iteration on the phase-change mass flux (Long et al., 2021).
All star states and wave speeds in the Riemann fan can be expressed analytically as functions of :
Final closure is enforced by the phase flux model, typically Hertz–Knudsen: where is inferred from star state pressure/internal energy, ensuring EOS consistency. Steffensen’s method accelerates rootfinding for with typical convergence in 3–4 iterations. If K, stability safeguards override the iterative solution (Long et al., 2021).
A crucial insight is that phase-change fluxes must always use the adjacent Riemann-fan (star) states just next to the interface—not the far-field “left/right” states—to preserve consistency under transient evolution (Long et al., 2021).
3. Finite-Volume Integration and Data Structures
InterPhaseChangeFoam-style algorithms are implemented within a finite-volume framework. The primary fields and their locations are:
| Quantity | Location | Comment |
|---|---|---|
| (level-set) | Cell-center | Captures interface geometry and motion |
| (liquid fraction) | Cell-center | Indicator, reinitialized from level set |
| , | Cell-center | Conservative variables per phase |
| Face | Inviscid fluxes (WENO/HLLC reconstruction) | |
| Face | Interfacial (“cut-face”) fluxes from Riemann | |
| , , | Face/cell | Interface geometry: normal, curvature, length |
| Cell-center | Interface velocity for level-set advection |
Time-stepping is performed using a two-stage Runge–Kutta (RK2) approach. Each RK stage alternates inviscid bulk flux updates (WENO-HLLC schemes) and interfacial (Riemann) flux computation on “cut-faces”, with geometric and level-set fields updated accordingly. The advection of is handled by
using high-order schemes. After each time step, is recomputed as a Heaviside function of , and geometric properties are recalculated (Long et al., 2021).
4. Model Selection and Runtime Flexibility
The OpenFOAM-based TwoPhaseFlow framework supports modular model selection at runtime, governed by input dictionaries. All curvature, surface-tension, and phase-change models are implemented as derived classes with static registration, enabling instant switching between, for example, different surface tension force models (height-function, parabolic fit, reconstructed distance function, gradAlpha) and phase change models (Schrage, explicitGrad, implicitGrad) (Scheufler et al., 2021).
This modularity allows researchers to compare alternative physical models or numerical methods on identical test cases by editing configuration files, not recompiling code. Thermophysical properties are likewise selected via OpenFOAM’s mixtureThermo or purePhaseModel facilities (Scheufler et al., 2021).
5. Validation, Numerical Considerations, and Performance
Comprehensive validation is integral to the framework. The sharp-interface solver is benchmarked on canonical problems, including:
- 1D Riemann tests (n-dodecane, water): Agreement with the exact five-wave solution demonstrates star-state accuracy if uses adjacent states.
- 2D radial droplet evaporation/condensation: Comparison with 1D quasi-analytic radial solvers verifies pressure, density, temperature, and integrated mass transfer.
- Oscillating droplet under surface tension: Simulated oscillation period matches Rayleigh’s analytical formula, validating sharp interface and surface tension models.
- Shock–droplet (or bubble) interaction: Reproduction of vaporization-induced secondary shocks and interface deformation in 2D/3D.
- Conservation diagnostics: Tracking mass in each phase confirms global conservation to round-off (Long et al., 2021).
Benchmarking of the modular (TwoPhaseFlow) framework encompasses classic phase change and capillarity tests, e.g., Stefan problem, “sucking-interface” problem, static circle/sphere reconstruction, viscous sine-wave oscillation, and advected contact-angle circle. Results demonstrate that new curvature and phase change models (implicitGrad, RDF, fitParaboloid, height-function) consistently outperform legacy approaches in accuracy and reduction of spurious currents (Scheufler et al., 2021).
For numerical stability, time steps are limited by a CFL (Courant-Friedrichs-Lewy) condition, typically
where is the local sound speed. The Steffensen iteration for is capped at 5 iterations, with fall-back to or previous values if convergence fails or contact temperature jumps exceed thresholds (Long et al., 2021).
6. Implementation and Practical Structure
Implementation closely follows the pseudo-code outline proposed in (Long et al., 2021), transcribed into OpenFOAM C++ structures. Key classes include volScalarField for , , ; volVectorField for velocity fields; and surfaceScalarField for bulk and interface fluxes. The “fourWaveRiemannSolver” member function encapsulates the core interface physics. The entire solver is structured around three segregated update loops (for , –, ), with all surface tension and phase-change modules dynamically switchable at runtime (Scheufler et al., 2021).
Boundary and initial conditions are specified using conventional OpenFOAM field dictionaries, with phase change and surface tension module selection determined in auxiliary property files. Support for dynamic meshes and adaptive refinement is available for advanced applications (Scheufler et al., 2021).
7. Relation to Broader Two-Phase Flow Methodology
The InterPhaseChangeFoam methodology represents a significant advance over earlier ghost-fluid and smeared-interface approaches by enforcing strict conservation and using sharp interface localization. The coupling of phase change and surface tension at the interface is handled robustly at the finite-volume level, facilitating investigation of complex multiphase phenomena under strong heat and mass transfer. The modular design within the OpenFOAM-based TwoPhaseFlow library fosters rapid prototyping, comparison of models, and extension by the research community (Scheufler et al., 2021).
A plausible implication is that, by enforcing adjacent-state flux evaluation and fully conservative update schemes, the InterPhaseChangeFoam architecture mitigates several previously identified sources of numerical inconsistency, making it suitable for high-fidelity simulation of multiphase flows with sharp interfaces and complex phase change dynamics.