SearcharxivSearch

arXiv subjects

Heikki Kahila

Publications and source records attributed to Heikki Kahila.

3 recordsLinked to original sources

A load balanced chemistry model with analytical Jacobian for faster reactive simulations in OpenFOAM

In this study, we introduce a novel open-source chemistry model for OpenFOAM to speed-up the reactive computational fluid dynamics (CFD) simulations using finite-rate chemistry. First, a dynamic load balancing model called DLBFoam is introduced to balance the chemistry load during runtime in parallel simulations. In addition, the solution of the cell-based chemistry problem is improved by utilizing an analytical Jacobian using an open-source library called pyJac and an efficient linear algebra library LAPACK. Combination of the aforementioned efforts yields a speed-up factor 200 for a high-fidelity large-eddy simulation spray combustion case compared to the standard OpenFOAM implementation. It is worth noting that the present implementation does not compromise the solution accuracy.

cs.CE

DLBFoam: An open-source dynamic load balancing model for fast reacting flow simulations in OpenFOAM

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.

physics.flu-dyn

A numerical study on combustion mode characterization for locally stratified dual-fuel mixtures

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 ...

physics.flu-dyn