varRhoTurbVOF 2: Modified OpenFOAM volume of fluid solvers with advanced turbulence modeling capability

Wenyuan Fan , Henryk Anglart


varRhoTurbVOF contains a set of OpenFOAM volume of fluid (VOF) solvers for turbulent isothermal multiphase flows, which are variable-density incompressible. Unlike their official counterparts, where Favre-averaged and Reynolds-averaged velocities coexist in different equations, new solvers use Favre-averaged velocities consistently in all equations. This major update introduces three main improvements to the previous version of varRhoTurbVOF. First, the implementation is extended to VOF solvers for isothermal and non-isothermal phase change two-phase flows, where the flow is no longer incompressible. Second, in order to introduce backward compatibility and to avoid code duplication, the turbulence model construction procedure is redesigned such that solvers can determine whether the variable-density effect is considered or not in the turbulence modeling part based on the input file at run time. Third, the Egorov turbulence damping model for ω-based turbulence models is implemented with its most recent developments. Plus, an extension to ϵ-based turbulence models is developed and implemented. Program summary: Program Title: varRhoTurbVOF CPC Library link to program files: Developer's repository link: Licensing provisions: GPLv3 Programming language: C++ Journal reference of previous version: Wenyuan Fan, Henryk Anglart, 2020. varRhoTurbVOF: A new set of volume of fluid solvers for turbulent isothermal multiphase flows in OpenFOAM, Computer Physics Communications, 247, 106876. Does the new version supersede the previous version?: Yes Reasons for the new version: Implementation of new solvers and models; code redesign to maintain backward compatibility. Summary of revisions: The updated version mainly has three new features in comparison with the previous version: • The issue addressed in [1] exists in all OpenFOAM VOF solvers where the variable-density effect is neglected in the turbulence modeling. In order to solve this issue for phase change VOF solvers, two additional solvers, namely, varRhoInterPhaseChangeFoam and varRhoInterCondensatingEvaporatingFoam, are implemented based on their official counterparts. • The procedure of constructing the turbulence model inside individual solvers is redesigned. Using the new design, solvers will construct turbulence models with or without the variable-density effect being considered based on the user input. When the latter mode is activated, solvers will behave just like their official counterparts. In such a way, the backward compatibility of the code is achieved without introducing code duplications. • The Egorov turbulence damping model [2], which is a popular approach to phenomenologically modify turbulence behaviors near a two-phase interface, is implemented. In addition to the original model, recent modifications, e.g., a new length scale calculation and asymmetric damping treatments [3], are implemented as well. The Egorov model only works with ω-based turbulence models. In the new release, the model is extended to ϵ-based turbulence models following the idea proposed in [4] such that the turbulence damping model is applicable to commonly used turbulence models. Nature of problem: Within the VOF framework, the mixture has a density changing with phases. However, in quite a few OpenFOAM VOF solvers, the variable-density effect is considered in the momentum equation but neglected in the turbulence modeling. As a result, Favre-averaged velocities and Reynolds-averaged velocities are used in the momentum equation and turbulence quantity equations, respectively and simultaneously, introducing a severe self-inconsistency. Solutions to this problem have been proposed in [1] with no backward compatibility support. Also, no phase change solvers are supported in the previous version. Another issue with turbulent VOF simulations is that, even with the correct implementation, certain modifications are still needed to correct the turbulence behavior around the interface. Solution method: The extension to phase change VOF solvers is straightforward according to [1]. Regarding the construction of turbulence models, two additional fields, namely, rhoTurb and rhoPhiTurb, are created and used in turbulence models. If the user chooses to use the variable-density turbulence models, real two-phase density rho and mass flux rhoPhi will be assigned to rhoTurb and rhoPhiTurb, respectively. Otherwise, rhoTurb and rhoPhiTurb will use unity and volume flux phi, respectively. This run time selection design enables solvers to operate in two modes, which guarantees the backward compatibility and avoids code duplications. The implementation of the turbulence damping model also takes the backward compatibility into account. At run time, the code will automatically determine whether the mixture density should be included in the turbulence damping model by checking the dimension of the corresponding equation. Additional comments: A manual is provided to introduce how the turbulence damping modeled is formulated and how to use the model. It should be emphasized that the Egorov damping model is a phenomenological model. Model parameters should be carefully selected for any given mesh and flow condition. References: [1] Wenyuan Fan, Henryk Anglart, 2020. varRhoTurbVOF: A new set of volume of fluid solvers for turbulent isothermal multiphase flows in OpenFOAM, Computer Physics Communications, 247, 106876. [2] Y. Egorov, 2004. Validation of CFD codes with PTS-relevant test cases, 5th Euratom Framework Programme ECORA project, 91-116. [3] Wenyuan Fan, Henryk Anglart, 2019. Progress in Phenomenological Modeling of Turbulence Damping around a Two-Phase Interface, Fluids, 4(3), 136. [4] E.M.A. Frederix, A Mathur, D Dovizio, B.J. Geurts, E.M.J. Komen, 2018. Reynolds-averaged modeling of turbulence damping near a large-scale interface in two-phase flow, Nuclear Engineering and Design, (333), 122-130.
Author Wenyuan Fan
Wenyuan Fan,,
, Henryk Anglart (FPAE / IHE)
Henryk Anglart,,
- The Institute of Heat Engineering
Journal seriesComputer Physics Communications, ISSN 0010-4655, e-ISSN 1879-2944
Issue year2020
Publication size in sheets5373.35
Article number107467
Keywords in EnglishC++ (programming language),Codes (symbols), Computational fluid dynamics, Computer software, Damping, Isotherms, Mixtures, Phase interfaces, Problem oriented languages, Turbulence models, Velocity, Asymmetric damping, Backward compatibility, Model construction, Momentum equation, Phenomenological modeling, Reynolds averaged models, Turbulence damping, Two-phase interfaces, Two phase flow
ASJC Classification1708 Hardware and Architecture; 3100 General Physics and Astronomy
Languageen angielski
Score (nominal)140
Score sourcejournalList
ScoreMinisterial score = 140.0, 20-07-2020, ArticleFromJournal
Publication indicators Scopus SNIP (Source Normalised Impact per Paper): 2018 = 1.733; WoS Impact Factor: 2018 = 3.309 (2) - 2018=4.403 (5)
Citation count*
Share Share

Get link to the record

* presented citation count is obtained through Internet information analysis and it is close to the number calculated by the Publish or Perish system.
Are you sure?