-
Fast reactive flow simulations using analytical Jacobian and dynamic load balancing in OpenFOAM
Authors:
Ilya Morev,
Bulut Tekgül,
Mahmoud Gadalla,
Ali Shahanaghi,
Jeevananthan Kannan,
Shervin Karimkashi,
Ossi Kaario,
Ville Vuorinen
Abstract:
Detailed chemistry-based computational fluid dynamics (CFD) simulations are computationally expensive due to the solution of the underlying chemical kinetics system of ordinary differential equations (ODEs). Here, we introduce a novel open-source library aiming at speeding up such reactive flow simulations using OpenFOAM, an open-source C++ software for CFD. First, our dynamic load balancing model…
▽ More
Detailed chemistry-based computational fluid dynamics (CFD) simulations are computationally expensive due to the solution of the underlying chemical kinetics system of ordinary differential equations (ODEs). Here, we introduce a novel open-source library aiming at speeding up such reactive flow simulations using OpenFOAM, an open-source C++ software for CFD. First, our dynamic load balancing model DLBFoam (Tekgül et al., 2021) is utilized to mitigate the computational imbalance due to chemistry solution in multiprocessor reactive flow simulations. Then, the individual (cell-based) chemistry solutions are optimized by implementing an analytical Jacobian formulation using the open-source library pyJac, and by increasing the efficiency of the ODE solvers by utilizing the linear algebra package LAPACK. We demonstrate the speed-up capabilities of this new library on various combustion problems. These test problems include a 2D turbulent reacting shear layer and 3D stratified combustion to highlight the favorable scaling aspects of the library on ignition/flame front initiation setups for dual-fuel combustion. Furthermore, two fundamental 3D demonstrations are provided on non-premixed and partially premixed flames, namely the ECN Spray A and the Sandia flame D experimental configurations. The novel model offers up to two orders of magnitude speed-up for most of the investigated cases. The openly shared code along with the test case setups represent a radically new enabler for reactive flow simulations in the OpenFOAM framework.
△ Less
Submitted 2 February, 2022; v1 submitted 25 May, 2021;
originally announced May 2021.
-
DLBFoam: An open-source dynamic load balancing model for fast reacting flow simulations in OpenFOAM
Authors:
Bulut Tekgül,
Petteri Peltonen,
Heikki Kahila,
Ossi Kaario,
Ville Vuorinen
Abstract:
Computational load imbalance is a well-known performance issue in multiprocessor reacting flow simulations utilizing directly integrated chemical kinetics. We introduce an open-source dynamic load balancing model named DLBFoam to address this issue within OpenFOAM, an open-source C++ library for Computational Fluid Dynamics (CFD). Due to the commonly applied operator splitting practice in reactive…
▽ More
Computational load imbalance is a well-known performance issue in multiprocessor reacting flow simulations utilizing directly integrated chemical kinetics. We introduce an open-source dynamic load balancing model named DLBFoam to address this issue within OpenFOAM, an open-source C++ library for Computational Fluid Dynamics (CFD). Due to the commonly applied operator splitting practice in reactive flow solvers, chemistry can be treated as an independent stiff ordinary differential equation (ODE) system within each computational cell. As a result of the highly non-linear characteristics of chemical kinetics, a large variation in the convergence rates of the ODE integrator may occur, leading to a high load imbalance across multiprocessor configurations. However, the independent nature of chemistry ODE systems leads to a problem that can be parallelized easily (called an embarrassingly parallel problem in the literature) during the flow solution. The presented model takes advantage of this feature and balances the chemistry load across available resources. Additionally, a reference mapping model is utilized to further speed-up the simulations. When DLBFoam it utilized with both these features enabled, a speed-up by a factor of 10 is reported for reactive flow benchmark cases. To the best of our knowledge, this model is the first open-source implementation of chemistry load balancing in the literature.
△ Less
Submitted 26 June, 2021; v1 submitted 16 November, 2020;
originally announced November 2020.
-
A numerical study on combustion mode characterization for locally stratified dual-fuel mixtures
Authors:
Shervin Karimkashi,
Heikki Kahila,
Ossi Kaario,
Martti Larmi,
Ville Vuorinen
Abstract:
Combustion modes in locally stratified dual-fuel (DF) mixtures are numerically investigated for methanol n-dodecane blends under engine-relevant pressures. In the studied constant-volume numerical setup, methanol acts as a background low-reactivity fuel (LRF) while n-dodecane serves as high-reactivity fuel (HRF), controlling local ignition delay time. The spatial distribution of n-dodecane is mode…
▽ More
Combustion modes in locally stratified dual-fuel (DF) mixtures are numerically investigated for methanol n-dodecane blends under engine-relevant pressures. In the studied constant-volume numerical setup, methanol acts as a background low-reactivity fuel (LRF) while n-dodecane serves as high-reactivity fuel (HRF), controlling local ignition delay time. The spatial distribution of n-dodecane is modeled as a sinusoidal function parametrized by stratification amplitude (Y) and wavelength (0.01 mm<$λ$<15 mm). In contrast, methanol is assumed to be fully premixed with air at equivalence ratio 0.8. First, one-dimensional setup is investigated by hundreds of chemical kinetics simulations in (Y,$λ$) parameter space. Further, the concepts by Sankaran et al. 2005 and Zeldovich 1980 on ignition front propagation speed are applied to develop a theoretical analysis of the time-dependent diffusion-reaction problem. The theoretical analysis predicts two combustion modes, 1) spontaneous ignition and 2) deflagrative propagation, and leads to an analytical expression for the border curve called $β$-curve herein. One-dimensional chemical kinetics simulations confirm the presence of two combustion modes in (Y,$λ$) parameter space while the $β$-curve explains consistently the position of phase border observed in the simulations. Finally, the role of convective mixing is incorporated to the theoretical expression for the $β$-curve. The effect of convection on combustion mode is assessed by carrying out two-dimensional fully-resolved simulations with different turbulence levels. Two-dimensional numerical simulation results give evidence on combustion mode switching, which is consistent with predictions of the modified $β$-curve for turbulent cases. The practical output of the paper is the $β$-curve which is proposed as a predictive tool to estimate combustion modes ...
△ Less
Submitted 18 June, 2020;
originally announced June 2020.
-
Modelling aerosol transport and virus exposure with numerical simulations in relation to SARS-CoV-2 transmission by inhalation indoors
Authors:
Ville Vuorinen,
Mia Aarnio,
Mikko Alava,
Ville Alopaeus,
Nina Atanasova,
Mikko Auvinen,
Nallannan Balasubramanian,
Hadi Bordbar,
Panu Erästö,
Rafael Grande,
Nick Hayward,
Antti Hellsten,
Simo Hostikka,
Jyrki Hokkanen,
Ossi Kaario,
Aku Karvinen,
Ilkka Kivistö,
Marko Korhonen,
Risto Kosonen,
Janne Kuusela,
Sami Lestinen,
Erkki Laurila,
Heikki Nieminen,
Petteri Peltonen,
Juho Pokki
, et al. (5 additional authors not shown)
Abstract:
We provide research findings on the physics of aerosol dispersion relevant to the hypothesized aerosol transmission of SARS-CoV-2. We utilize physics-based modeling at different levels of complexity, and literature on coronaviruses, to investigate the possibility of airborne transmission. The previous literature, our 0D-3D simulations by various physics-based models, and theoretical calculations,…
▽ More
We provide research findings on the physics of aerosol dispersion relevant to the hypothesized aerosol transmission of SARS-CoV-2. We utilize physics-based modeling at different levels of complexity, and literature on coronaviruses, to investigate the possibility of airborne transmission. The previous literature, our 0D-3D simulations by various physics-based models, and theoretical calculations, indicate that the typical size range of speech and cough originated droplets (d < 20microns) allows lingering in the air for O(1h) so that they could be inhaled. Consistent with the previous literature, numerical evidence on the rapid drying process of even large droplets, up to sizes O(100microns), into droplet nuclei/aerosols is provided. Based on the literature and the public media sources, we provide evidence that the infected individuals could have been exposed to aerosols/droplet nuclei by inhaling them in significant numbers e.g. O(100). By 3D computational fluid dynamics (CFD) simulations, we give examples on the transport and dilution of aerosols (d<20microns) over distances O(10m) in generic environments. We study susceptible and infected individuals in generic public places by Monte-Carlo modeling. The model accounts for the locally varying aerosol concentration levels which the susceptible accumulate via inhalation. The introduced concept, 'exposure time' to virus containing aerosols is proposed to complement the traditional 'safety distance' thinking. We show that the exposure time to inhale O(100) aerosols could range from O(1s) to O(1min) or even to O(1h) depending on the situation. The Monte Carlo analysis provides clear quantitative insight to the exposure time in different public indoor environments.
△ Less
Submitted 26 May, 2020;
originally announced May 2020.