This paper presents the development of a density-based solver suitable for cavitating flows in the OpenFOAM framework. In this solver, the thermodynamic equilibrium mixture approach is adopted to model the presence of and the phase transition between liquid and vapor phases. Using this approach, two cavitation models are implemented in a separate library, although more cavitation models can be easily added. The two are a temperature-dependent cavitation model and a barotropic cavitation model developed by Egerer et al. (2014). One of the main advantages of the solver is that it considers the compressibility of all phases. This feature combined with using the density-based approach enables capturing shock-waves created upon the collapse of cavitating structures which are known to be one of the main mechanisms of cavitation erosion. The implementation also includes a post-processing tool which detects aggressive collapse-induced shock-waves based on the method proposed by Mihatsch et al. (2015) and identifies the areas with a high risk of cavitation erosion. In order to validate the implemented solver and post-processing tool, four cases with progressively increasing complexity are simulated. The results from simulation of these cases are compared with analytical solution, similar numerical simulations as well as available experimental results. All of these comparisons show that the numerical results obtained by the implemented solver agree well with the reference analytical solution and numerical and experimental results.
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 a…
In this article, we propose a passive method to control unsteady cloud cavitation on hydrofoils using cavitation-bubble generator (CGs). This method may be used in many engineering applications, in particular in marine and turbomachinery. First, we used a Partially-averaged Navier Stokes (PANS) model for turbulence to simulate the unsteady cavitating flow and validated it based on experimental data. This model was coupled with a mass transfer model and implemented to the open source software package OpenFOAM. Second, the effect of a proper design of CGs on qualitative parameters such as cavita…
Aiming at modeling the cavitation bubble cluster, we propose a novel nonlinear dynamic cavitation model (NDCM) considering the second derivative term in Rayleigh-Plesset equation through strict mathematical derivation. There are two improvements of the new model: i) the empirical coefficients are eliminated by introduction of the nonuniform potential functions of ψ_v and ψ_c for growth and collapse processes respectively, and ii) only two model parameters are required, which both base on physical quantities - the Blake critical radius R_b and the average maximum growth radius R_m. The correspo…
A hybrid Eulerian-Lagrangian solver RYrhoCentralFoam is developed based on OpenFOAM to simulate detonative combustion in two-phase gas-liquid mixtures. For Eulerian gas phase, RYrhoCentralFoam enjoys second order of accuracy in time and space discretizations and is based on finite volume method on polyhedral cells. The following developments are made based on the standard compressible flow solver rhoCentralFoam in OpenFOAM: (1) multi-component species transport, (2) detailed fuel chemistry for gas phase combustion, and (3) Lagrangian solver for gas-droplet two-phase flows and sub-models for li…
The volume of fluid (VOF) method is a popular approach for multiphase flow modeling. The open-source computational fluid dynamics (CFD) software, OpenFOAM, implements a variety of VOF-based solvers and provides users a wide range of turbulence models. Since isothermal multiphase flows under the VOF framework belong to the variable-density incompressible flow category, the isothermal VOF-based solvers in OpenFOAM fail to use the correct turbulence models. varRhoTurbVOF is designed to solve this issue and with the hope to replace all the corresponding existing solvers in the future. With the obj…
In this work, we study the implementation of electrically-driven flow (EDF) models in the finite-volume framework of $\text{OpenFOAM}^\circledR$. The Poisson-Nernst-Planck model is used for the transport of charged species and it is coupled to the Navier-Stokes equations, governing the fluid flow. In addition, the Poisson-Boltzmann and Debye-Hückel models are also implemented. The discretization method and the boundary conditions are carefully handled in order to ensure conservativeness of ionic species in generic meshes and second-order accuracy in space and time. The applicability of the dev…
Within OpenFOAM, we develop a pressure-based solver for the Euler equations written in conservative form using density, momentum, and total energy as variables. Under simplifying assumptions, these equations are used to describe non-hydrostatic atmospheric flow. For the stabilization of the Euler equations and to capture sub-grid processes, we consider two Large Eddy Simulation models: the classical Smagorinsky model and the one equation eddy-viscosity model. To achieve high computational efficiency, our solver uses a splitting scheme that decouples the computation of each variable. The numeri…
In this paper, the Immersed Boundary Method (IBM) proposed by Pinelli is implemented for finite volume approximations of incompressible Navier-Stokes equations solutions in the open source toolbox OpenFOAM version 2.2. Solid obstacles are described using a discrete forcing approach for boundary conditions. Unlike traditional approaches encompassing the presence of a solid body using conformal meshes and imposing no-slip boundary conditions on the boundary faces of the mesh, the solid body is here represented on the Eulerian Cartesian mesh through an ad-hoc body force evaluated on a set of Lagr…
Large eddy simulation (LES) has become the de-facto computational tool for modeling complex reacting flows, especially in gas turbine applications. However, readily usable general-purpose LES codes for complex geometries are typically academic or proprietary/commercial in nature. The objective of this work is to develop and disseminate an open source LES tool for low-Mach number turbulent combustion using the OpenFOAM framework. In particular, a collocated-mesh approach suited for unstructured grid formulation is provided. Unlike other fluid dynamics models, LES accuracy is intricately linked …
Sheet cavitation appears in many hydraulic applicationss and can lead to technical issues. Some fundamental outcomes such as the complex topology of 3-Dimensional cavitation pockets and their associated dynamics need to be carefully visited.In the present paper, the dynamics of partial cavitation developing in a 3-D Venturi geometry and the interaction with sidewalls are numerically investigated. The simulations are performed usinf a one-fluid compressible Reynolds-Averaged Navier-Stokes (RANS solver associated to a non-linear turbulence model and a void transport-equation model. A detailed an…
Application of a Pressured-Based OpenFOAM Solver for Rotating Detonation Engines
Korea Advanced Institute of Science and Technology(韩国科学技术院);New York University Abu Dhabi(纽约大学阿布扎比分校);Tandon School of Engineering, New York University(纽约大学坦登工程学院)
We present a unified variational mechanics framework for cavitating turbulent flows and structural motions via a stabilized finite element formulation. To model the finite mass transfer rate in cavitation phenomena, we employ the homogenous mixture-based approach via phenomenological scalar transport differential equations. Stable linearizations of the finite mass transfer terms for the mass continuity equation and the scalar transport equations are derived for robust and accurate implementation. The linearized matrices for the cavitation equation are imparted a positivity-preserving property …
We develop a high-fidelity numerical solver for the compressible Navier-Stokes equations, with the main aim of highlighting the predictive capabilities of low-diffusive numerics for flows in complex geometries. The space discretization of the convective terms in the Navier-Stokes equations relies on a robust energy-preserving numerical flux, and numerical diffusion inherited from the AUSM scheme is added limited to the vicinity of shock waves, or wherever spurious numerical oscillations are sensed. The solver is capable of conserving the total kinetic energy in the inviscid limit, and it bears…
A numerical model for simulating electro-vortical flows in OpenFOAM is developed. Electric potential and current are solved in coupled solid-liquid conductors by a parent-child mesh technique. The magnetic field is computed using a combination of Biot-Savart's law and induction equation. Further, a deflated PCG solver for the electric potential is implemented. Finally, a performance analysis is presented and the solver is validated against several test cases.
OpenFOAM computational fluid dynamics (CFD) solver for magnetohydrodynamic open cycles, applied to the Sakhalin pulsed magnetohydrodynamic generator (PMHDG)
XRePIT: A deep learning-computational fluid dynamics hybrid framework implemented in OpenFOAM for fast, robust, and scalable unsteady simulations
Division of Advanced Nuclear Engineering, Pohang University of Science and Technology(浦项国立科学技术大学先进核工程系);Division of Applied Mathematics, Brown University(布朗大学应用数学系);Graduate School of Integrated Energy-AI, Jeonbuk National University(全北国立大学整合能源-人工智能研究生院)
An efficient and robust all-Mach consistent numerical scheme for simulation of compressible multi-component fluids including surface tension, cavitation, turbulence modeling and interface sharpening on compact stencils
acousticHelmholtzFoam: an MPI-parallel unstructured finite-volume solver for frequency-domain acoustics in heterogeneous two-phase media with perfectly matched layers
We present the novel numerical model GeoChemFoam, a multiphase reactive transport solver for simulations on complex pore geometries, including microfluidic devices and micro-CT images. The geochemical model includes bulk and surface equilibrium reactions. Multiphase flow is solved using the Volume-Of-Fluid method and the transport of species is solved using the Continuous Species Transfer method. The reactive transport equations are solved using a sequential Operator Splitting method, with the transport step solved using our OpenFOAM-based Computational Fluid Dynamics toolbox, and the reaction…
In this work we present a general strategy for constructing multidimensional Riemann solvers with a single intermediate state, with particular attention paid to detailing the two-dimensional Riemann solver. This is accomplished by introducing a constant resolved state between the states being considered, which introduces sufficient dissipation for systems of conservation laws. Closed form expressions for the resolved fluxes are also provided to facilitate numerical implementation. The Riemann solver is proved to be positively conservative for the density variable; the positivity of the pressur…
The accuracy and stability of implicit CFD codes are frequently impaired by the decoupling between variables, which can ultimately lead to numerical divergence. Coupled solvers, which solve all the governing equations simultaneously, have the potential to fix this problem. In this work, we report the implementation of coupled solvers for transient and steady-state electrically-driven flow simulations in the finite-volumes framework. The numerical method, developed in OpenFOAM, is generic for Newtonian and viscoelastic fluids and is formulated for the Poisson-Nernst-Planck and Poisson-Boltzmann…
We introduce GEA (Geophysical and Environmental Applications), a new open-source atmosphere and ocean modeling framework within the finite volume C++ library OpenFOAM. Here, we present the development of a non-hydrostatic atmospheric model consisting of a pressure-based solver for the Euler equations written in conservative form using density, momentum, and total energy as variables. We validate the solver for two idealized test cases involving buoyancy driven flows: smooth and non-smooth rising thermal bubble. Through qualitative and quantitative comparisons against numerical data available i…
Two new control volume solvers multiFluidInterFoam and rheoMultiFluidInterFoam are presented for the simulation of Newtonian and non-Newtonian n-phase flows, respectively, fully accounting for interfacial tension and contact-angle effects for each phase. The multiFluidInterFoam solver modifies certain crucial aspects of the regular multiphaseInterFoam solver provided by OpenFOAM for Newtonian flows, improving its efficiency and robustness, but most importantly improving considerably its accuracy for surface tension driven flows. The new solver uses the volume-of-fluid (VOF) method based on the…
This paper proposes an efficient potential and viscous flow decomposition method for wave-structure interaction simulation with single-phase potential flow wave models and two-phase Computational Fluid Dynamics (CFD) solvers. The potential part - represents the incident waves - is solved with spectral wave models; the viscous part - represents the complementary perturbation on the incident waves - is solved with the CFD solver. This combination keeps the efficiency and accuracy of potential theory on water waves and the advantage of two-phase CFD solvers on complex flows (wave breaking, flow s…
MFC is an open-source tool for solving multi-component, multi-phase, and bubbly compressible flows. It is capable of efficiently solving a wide range of flows, including droplet atomization, shock-bubble interaction, and gas bubble cavitation. We present the 5- and 6-equation thermodynamically-consistent diffuse-interface models we use to handle such flows, which are coupled to high-order interface-capturing methods, HLL-type Riemann solvers, and TVD time-integration schemes that are capable of simulating unsteady flows with strong shocks. The numerical methods are implemented in a flexible, m…
In this work, the electrohydrodynamic (EHD) instability induced by a unipolar charge injection is extended from a single-phase dielectric liquid to a two-phase system that consists of a liquid-air interface. A volume of fluid (VOF) model based two-phase solver was developed with simplified Maxwell equations implemented in the open-source platform OpenFOAM\textsuperscript. The numerically obtained critical value for the linear stability matches well with the theoretical values. To highlight the effect of the slip boundary at interface, the deformation of the interface is ignored. A bifurcation …
A numerical framework implemented in the open-source tool OpenFOAM is presented in this work combining a hybrid, pressure-based solver with a vapor-liquid equilibrium model based on the cubic equation of state. This framework is used in the present work to investigate underexpanded jets at engine-relevant conditions where real-gas effects and mixture induced phase separation are probable to occur. A thorough validation and discussion of the applied vapor-liquid equilibrium model is conducted by means of general thermodynamic relations and measurement data available in the literature. Engine-re…
DeboRheo v2.0: Improved Robustness for Geometrical VOF Simulations of Viscoelastic Two-Phase Flows
Finnish Meteorological Institute(芬兰气象研究所);Technical University of Darmstadt(达姆施塔特工业大学);Université de Lille(里尔大学);CNRS(法国国家科学研究中心);ONERA(法国航空航天实验室);Arts et Métiers Institute of Technology(巴黎国立高等工艺学院);Centrale Lille(里尔中央理工学院);Koc University(科奇大学)
To predict liquid-gas two-phase flow phenomena, accurate tracking and prediction of the evolving liquid-gas interface is required. Volume-of-Fluid or VoF method has been used in the literature for computationally modeling of such flows. In the VoF method, a single set of governing equations are solved for both phases along with an advection equation for the volume fraction. The properties in each computational cell are determined by a linear weighted average of the properties of the two fluids based on the phase fraction. While the method predicts water-air flows well, the predictions tend to …
We present a novel time-stepping method, called Operator Splitting with Capillary Relaxation (OSCAR), for efficient Volume-Of-Fluid simulations of capillary-dominated two-phase flow. OSCAR uses operator splitting methods to separate the viscous drag and the surface tension forces. Different time-steps are used for the viscous drag steps, controlled by the injection velocity, and for the capillary relaxation steps, controlled by the velocity of capillary waves. Although OSCAR induces an additional numerical error of order 0 in time resulting from the splitting, it is well suited for simulations…