N. Vasileiadis , G. Tatsios , C. White , D.A. Lockerby , M.K. Borg , L. Gibelli
{"title":"uniGasFoam: A particle-based OpenFOAM solver for multiscale rarefied gas flows","authors":"N. Vasileiadis , G. Tatsios , C. White , D.A. Lockerby , M.K. Borg , L. Gibelli","doi":"10.1016/j.cpc.2025.109532","DOIUrl":null,"url":null,"abstract":"<div><div>This paper presents uniGasFoam, an open-source particle-based solver for multiscale rarefied gas flow simulations, which has been developed within the well-established OpenFOAM framework, and is an extension of the direct simulation Monte Carlo (DSMC) solver dsmcFoam+. The developed solver addresses the coupling challenges inherent in hybrid continuum-particle methods, originating from the disparate nature of finite-volume (FV) solvers found in computational fluid dynamics (CFD) software and DSMC particle solvers. This is achieved by employing alternative stochastic particle methods, resembling DSMC, to tackle the continuum limit. The uniGasFoam particle-particle coupling produces a numerical implementation that is simpler and more robust, faster in many steady-state flows, and more scalable for transient flows compared to conventional continuum-particle coupling. The presented framework is unified and generic, and can couple DSMC with stochastic particle (SP) and unified stochastic particle (USP) methods, or be employed for pure DSMC, SP, and USP gas simulations. To enhance user experience, reduce required computational resources and minimise user error, advanced adaptive algorithms such as transient adaptive sub-cells, non-uniform cell weighting, and adaptive global time stepping have been integrated into uniGasFoam. In this paper, the hybrid USP-DSMC module of uniGasFoam is rigorously validated through multiple benchmark cases, consistently showing excellent agreement with pure DSMC, hybrid CFD-DSMC, and literature results. Notably, uniGasFoam achieves significant computational gains compared to pure dsmcFoam+ simulations, rendering it a robust computational tool well-suited for addressing multiscale rarefied gas flows of engineering importance.</div></div><div><h3>Program summary</h3><div><em>Program Title:</em> uniGasFoam</div><div><em>CPC Library link to program files:</em> <span><span>https://doi.org/10.17632/9rvyjbvjw3.1</span><svg><path></path></svg></span></div><div><em>Developer's repository link:</em> <span><span>https://github.com/NVasileiadis93/uniGasFoam</span><svg><path></path></svg></span></div><div><em>Licensing provisions:</em> GNU General Public License 3</div><div><em>Programming language:</em> C++</div><div><em>Nature of problem:</em> uniGasFoam has been developed as an open-source framework for particle-based multiscale rarefied gas flow simulations.</div><div><em>Solution method:</em> uniGasFoam implements an explicit time stepping solver with a hybrid stochastic molecular collision-relaxation scheme appropriate for studying multiscale rarefied gas flows.</div></div>","PeriodicalId":285,"journal":{"name":"Computer Physics Communications","volume":"310 ","pages":"Article 109532"},"PeriodicalIF":7.2000,"publicationDate":"2025-02-05","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/S0010465525000359","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
This paper presents uniGasFoam, an open-source particle-based solver for multiscale rarefied gas flow simulations, which has been developed within the well-established OpenFOAM framework, and is an extension of the direct simulation Monte Carlo (DSMC) solver dsmcFoam+. The developed solver addresses the coupling challenges inherent in hybrid continuum-particle methods, originating from the disparate nature of finite-volume (FV) solvers found in computational fluid dynamics (CFD) software and DSMC particle solvers. This is achieved by employing alternative stochastic particle methods, resembling DSMC, to tackle the continuum limit. The uniGasFoam particle-particle coupling produces a numerical implementation that is simpler and more robust, faster in many steady-state flows, and more scalable for transient flows compared to conventional continuum-particle coupling. The presented framework is unified and generic, and can couple DSMC with stochastic particle (SP) and unified stochastic particle (USP) methods, or be employed for pure DSMC, SP, and USP gas simulations. To enhance user experience, reduce required computational resources and minimise user error, advanced adaptive algorithms such as transient adaptive sub-cells, non-uniform cell weighting, and adaptive global time stepping have been integrated into uniGasFoam. In this paper, the hybrid USP-DSMC module of uniGasFoam is rigorously validated through multiple benchmark cases, consistently showing excellent agreement with pure DSMC, hybrid CFD-DSMC, and literature results. Notably, uniGasFoam achieves significant computational gains compared to pure dsmcFoam+ simulations, rendering it a robust computational tool well-suited for addressing multiscale rarefied gas flows of engineering importance.
Program summary
Program Title: uniGasFoam
CPC Library link to program files:https://doi.org/10.17632/9rvyjbvjw3.1
Licensing provisions: GNU General Public License 3
Programming language: C++
Nature of problem: uniGasFoam has been developed as an open-source framework for particle-based multiscale rarefied gas flow simulations.
Solution method: uniGasFoam implements an explicit time stepping solver with a hybrid stochastic molecular collision-relaxation scheme appropriate for studying multiscale rarefied gas flows.
期刊介绍:
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.