{"title":"An OpenFOAM solver incorporating detailed transport model for reacting flow simulations","authors":"Fei Wang, Liang An, Tat Leung Chan","doi":"10.1016/j.cpc.2024.109472","DOIUrl":null,"url":null,"abstract":"<div><div>OpenFOAM (Open-source Field Operation and Manipulation) has become an important scientific tool for solving computational fluid dynamics due to its free and open-source nature, but its application in reacting flows may be restricted due to either the use of a simplified transport model or the requirement for pre-specified species (binary) mass diffusion coefficients as well as the use of Sutherland's formula. To fill this gap, a detailed transport model using a mixture-averaged formulation based on the standard kinetic theory of gases is newly incorporated into combustion solvers for dealing with reacting flow simulations in OpenFOAM. This is achieved by developing a new utility to input molecular transport parameters and a new library to calculate transport properties. All the codes are completely written under the code framework of OpenFOAM, making them very easy to read, use, maintain, enhance and extend. The developed utility and library are then coupled with a new reacting flow solver developed for the governing equations in terms of mass, momentum, species and energy by configurating an interface. In the present study, the function of the new utility is firstly examined and then a new solver (i.e., <em>standardReactingFoam</em>) is developed for solving reacting flows. A systematical validation and assessment in different flame configurations with detailed chemical kinetics is studied to evaluate the computational performance of these new solvers. A zero-dimensional auto ignition, one-dimensional premixed flame and two-dimensional non-premixed counterflow flame are selected to validate the solvers against Cantera and CHEMKIN, while a realistic combustion simulation of a two-dimensional partially premixed coflow flame is also verified. Numerical simulation results show that very good agreements with the benchmark data are obtained for all studied flames, which demonstrates the high computational accuracy of the developed combustion solvers incorporating a detailed transport model.</div></div><div><h3>Program summary</h3><div><em>Program title:</em> standardReactingFoam.</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/rbm3cjk8rr.1</span><svg><path></path></svg></span>.</div><div><em>Licensing provisions:</em> GPLv3.</div><div><em>Programming language:</em> C++.</div><div><em>Nature of problem:</em> The performance of OpenFOAM solvers for reacting flow simulations is greatly limited by a simplified transport model or the requirement for pre-specified species (binary) mass diffusion coefficients as well as the use of Sutherland's formula, leading to incorrect numerical calculation of the critical transport properties. Developing an interface between OpenFOAM and Cantera can achieve the evaluation of transport properties, which makes it difficult to be widely used and conveniently maintained. Developing a separate package to obtain transport properties results in a very complicated operation when using.</div><div><em>Solution method:</em> A detailed transport model using a mixture-averaged formulation based on the standard kinetic theory of gases is incorporated into combustion solvers for dealing with reacting flow simulations in OpenFOAM. This is achieved by developing a new utility to input molecular transport parameters and a new library to calculate transport properties. All the codes are completely written under the code framework of OpenFOAM, making them very easy to read, use, maintain, enhance and extend. The developed utility and library are then coupled with a new reacting flow solver developed for the governing equations in terms of mass, momentum, species and energy by configurating an interface.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"309 ","pages":"Article 109472"},"PeriodicalIF":7.2000,"publicationDate":"2024-12-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer Physics Communications","FirstCategoryId":"101","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0010465524003953","RegionNum":2,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
OpenFOAM (Open-source Field Operation and Manipulation) has become an important scientific tool for solving computational fluid dynamics due to its free and open-source nature, but its application in reacting flows may be restricted due to either the use of a simplified transport model or the requirement for pre-specified species (binary) mass diffusion coefficients as well as the use of Sutherland's formula. To fill this gap, a detailed transport model using a mixture-averaged formulation based on the standard kinetic theory of gases is newly incorporated into combustion solvers for dealing with reacting flow simulations in OpenFOAM. This is achieved by developing a new utility to input molecular transport parameters and a new library to calculate transport properties. All the codes are completely written under the code framework of OpenFOAM, making them very easy to read, use, maintain, enhance and extend. The developed utility and library are then coupled with a new reacting flow solver developed for the governing equations in terms of mass, momentum, species and energy by configurating an interface. In the present study, the function of the new utility is firstly examined and then a new solver (i.e., standardReactingFoam) is developed for solving reacting flows. A systematical validation and assessment in different flame configurations with detailed chemical kinetics is studied to evaluate the computational performance of these new solvers. A zero-dimensional auto ignition, one-dimensional premixed flame and two-dimensional non-premixed counterflow flame are selected to validate the solvers against Cantera and CHEMKIN, while a realistic combustion simulation of a two-dimensional partially premixed coflow flame is also verified. Numerical simulation results show that very good agreements with the benchmark data are obtained for all studied flames, which demonstrates the high computational accuracy of the developed combustion solvers incorporating a detailed transport model.
Program summary
Program title: standardReactingFoam.
CPC Library link to program files:https://doi.org/10.17632/rbm3cjk8rr.1.
Licensing provisions: GPLv3.
Programming language: C++.
Nature of problem: The performance of OpenFOAM solvers for reacting flow simulations is greatly limited by a simplified transport model or the requirement for pre-specified species (binary) mass diffusion coefficients as well as the use of Sutherland's formula, leading to incorrect numerical calculation of the critical transport properties. Developing an interface between OpenFOAM and Cantera can achieve the evaluation of transport properties, which makes it difficult to be widely used and conveniently maintained. Developing a separate package to obtain transport properties results in a very complicated operation when using.
Solution method: A detailed transport model using a mixture-averaged formulation based on the standard kinetic theory of gases is incorporated into combustion solvers for dealing with reacting flow simulations in OpenFOAM. This is achieved by developing a new utility to input molecular transport parameters and a new library to calculate transport properties. All the codes are completely written under the code framework of OpenFOAM, making them very easy to read, use, maintain, enhance and extend. The developed utility and library are then coupled with a new reacting flow solver developed for the governing equations in terms of mass, momentum, species and energy by configurating an interface.
期刊介绍:
The focus of CPC is on contemporary computational methods and techniques and their implementation, the effectiveness of which will normally be evidenced by the author(s) within the context of a substantive problem in physics. Within this setting CPC publishes two types of paper.
Computer Programs in Physics (CPiP)
These papers describe significant computer programs to be archived in the CPC Program Library which is held in the Mendeley Data repository. The submitted software must be covered by an approved open source licence. Papers and associated computer programs that address a problem of contemporary interest in physics that cannot be solved by current software are particularly encouraged.
Computational Physics Papers (CP)
These are research papers in, but are not limited to, the following themes across computational physics and related disciplines.
mathematical and numerical methods and algorithms;
computational models including those associated with the design, control and analysis of experiments; and
algebraic computation.
Each will normally include software implementation and performance details. The software implementation should, ideally, be available via GitHub, Zenodo or an institutional repository.In addition, research papers on the impact of advanced computer architecture and special purpose computers on computing in the physical sciences and software topics related to, and of importance in, the physical sciences may be considered.