ChemGen: Code Generation for Multispecies Chemically Reacting Flow Simulations

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Johnson, Ryan F., Ching, Eric J., Genter, Ethan S., Lipman, Joshua E., Kercher, Andrew D., Arcities, Jay, Wang, Hai
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917136410083328
author Johnson, Ryan F.
Ching, Eric J.
Genter, Ethan S.
Lipman, Joshua E.
Kercher, Andrew D.
Arcities, Jay
Wang, Hai
author_facet Johnson, Ryan F.
Ching, Eric J.
Genter, Ethan S.
Lipman, Joshua E.
Kercher, Andrew D.
Arcities, Jay
Wang, Hai
contents This paper introduces ChemGen, a software package that uses code generation to integrate multispecies thermodynamics and chemical kinetics into C+-based computational physics codes. ChemGen aims to make chemical kinetics more accessible in existing simulation frameworks and help bridge the gap between combustion modeling and computational physics. The package employs the concept of decorators which enable flexible C++ code generation to target established software ecosystems. ChemGen generates code to evaluate thermodynamic properties, chemical source terms, and their analytical derivatives for Jacobian calculations. Also included are a variety of implicit time integration schemes, linear solvers, and preconditioners. The various components of Chemgen are verified by demonstrating agreement with Cantera and/or theoretical convergence rates. Finally, we integrate ChemGen into OpenFOAM and achieve a speedup over its native chemistry solver by approximately four times. ChemGen is an ongoing project released under the NRL Open License, a source-available license provided by the U.S. Naval Research Laboratory.
format Preprint
id arxiv_https___arxiv_org_abs_2510_10005
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ChemGen: Code Generation for Multispecies Chemically Reacting Flow Simulations
Johnson, Ryan F.
Ching, Eric J.
Genter, Ethan S.
Lipman, Joshua E.
Kercher, Andrew D.
Arcities, Jay
Wang, Hai
Computational Physics
This paper introduces ChemGen, a software package that uses code generation to integrate multispecies thermodynamics and chemical kinetics into C+-based computational physics codes. ChemGen aims to make chemical kinetics more accessible in existing simulation frameworks and help bridge the gap between combustion modeling and computational physics. The package employs the concept of decorators which enable flexible C++ code generation to target established software ecosystems. ChemGen generates code to evaluate thermodynamic properties, chemical source terms, and their analytical derivatives for Jacobian calculations. Also included are a variety of implicit time integration schemes, linear solvers, and preconditioners. The various components of Chemgen are verified by demonstrating agreement with Cantera and/or theoretical convergence rates. Finally, we integrate ChemGen into OpenFOAM and achieve a speedup over its native chemistry solver by approximately four times. ChemGen is an ongoing project released under the NRL Open License, a source-available license provided by the U.S. Naval Research Laboratory.
title ChemGen: Code Generation for Multispecies Chemically Reacting Flow Simulations
topic Computational Physics
url https://arxiv.org/abs/2510.10005