[Paper Review] TwoPhaseFlow: An OpenFOAM based framework for development of two phase flow solvers
This paper presents TwoPhaseFlow, an open-source OpenFOAM-based framework that streamlines the development and validation of advanced two-phase flow solvers, particularly for phase change and surface tension modeling. By integrating runtime-selection mechanisms, it enables rapid implementation and comparison of curvature calculation methods (height function, parabolic fit, reconstructed distance function) and phase change models (interface heat resistance, direct heat flux), reducing spurious currents by over an order of magnitude and improving accuracy on both structured and unstructured meshes.
One of the prevailing challenges in Computational Fluid Dynamics is accurate simulation of two-phase flows involving heat and mass transfer across the fluid interface. This is currently an active field of research, which is to some extend impaired by a lack of a common programming framework for implementing and testing new models. Here we present a new OpenFOAM based open-source framework allowing fast implementation and test of new phase change and surface tension force models. Capitalizing on the runtime-selection mechanism in OpenFOAM, the new models can easily be selected and compared to analytical solutions and existing models. As a start, the framework includes the following curvature calculation methods for surface tension: height function, parabolic fit, and reconstructed distance function method. As for phase change, interface heat resistance and direct heat flux models are available. These can be combined with three solvers covering the range from isothermal, incompressible flow to non-isothermal, compressible flow with conjugated heat transfer. By design, addition of new models and solvers is straightforward and users are invited to contribute their specific models, solvers, and validation cases to the library.
Motivation & Objective
- Address the lack of a standardized, extensible programming framework for developing and testing two-phase flow models involving heat and mass transfer.
- Reduce parasitic currents in surface tension simulations, a major challenge in volume-of-fluid (VoF) methods that compromise accuracy.
- Enable accurate and stable simulation of phase change phenomena, including mass transfer and temperature jump conditions at fluid interfaces.
- Facilitate rapid prototyping and validation of new surface tension and phase change models through OpenFOAM's runtime-selection mechanism.
- Support both geometric VoF (isoAdvector) and color-function VoF (MULES) for interface advection, ensuring compatibility across mesh types.
Proposed method
- Leverages OpenFOAM v1812's runtime-selection mechanism to allow dynamic loading and comparison of surface tension and phase change models without recompilation.
- Implements three curvature calculation methods: height function method (HFM), parabolic fit (fitParaboloid), and reconstructed distance function (RDF) for accurate surface tension force computation.
- Integrates three phase change models: explicit and implicit gradient-based models, and the Schrage model, all designed to minimize numerical oscillations and interface smearing.
- Supports three solvers: from isothermal incompressible to non-isothermal compressible flows with conjugate heat transfer, enabling simulation across diverse physical regimes.
- Uses geometric VoF (isoAdvector) and color-function VoF (MULES) for interface advection, with the former offering higher accuracy for surface tension and curvature calculations.
- Employs implicit coupling of temperature and mass flux in phase change models to avoid time step restrictions and improve stability, as in Batzdorf and Sato and Niceno's approaches.
Experimental results
Research questions
- RQ1How can a modular, open-source framework be designed to accelerate the development and validation of two-phase flow models in OpenFOAM?
- RQ2To what extent do advanced curvature models (RDF, fitParaboloid) reduce spurious currents compared to the standard gradAlpha model in both structured and unstructured meshes?
- RQ3How do different phase change models (Schrage, explicit/implicit gradient) perform in terms of accuracy and stability when coupled with various interface reconstruction methods?
- RQ4Can the framework maintain accuracy and stability across different flow regimes, including compressible and non-isothermal flows with conjugate heat transfer?
- RQ5What is the impact of interface advection method (geometric vs. color-function VoF) on the accuracy of surface tension and phase change simulations?
Key findings
- The RDF and fitParaboloid curvature models reduce spurious currents by more than an order of magnitude compared to the standard OpenFOAM gradAlpha model on both structured and unstructured meshes.
- On structured hexahedral grids, RDF and fitParaboloid achieve near-perfect agreement with analytical solutions for the sine wave benchmark, while gradAlpha shows significant deviation.
- On unstructured tetrahedral grids, RDF maintains high accuracy, whereas fitParaboloid shows qualitatively correct behavior, unlike gradAlpha which fails to capture the wave amplitude accurately.
- The geometric VoF method (isoAdvector) consistently outperforms the color-function VoF (MULES) in accuracy for surface tension and curvature calculations across all test cases.
- The combination of RDF curvature model with the direct heat flux (DHF) phase change model enables stable and accurate simulation of phase change phenomena with minimal numerical oscillations.
- The framework successfully supports multi-component phase modeling via rhoReactionThermo, enabling future extension to reactive two-phase flows with concentration-based phase change.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.