Skip to main content
QUICK REVIEW

[Paper Review] FastChem 2 : an improved computer program to determine the gas-phase chemical equilibrium composition for arbitrary element distributions

Joachim W. Stock, Daniel Kitzmann|arXiv (Cornell University)|Jun 16, 2022
Atmospheric Ozone and ClimateEarth and Planetary Sciences2 citations
TL;DR

FastChem 2 is a significantly faster, open-source C++ and Python-compatible code for computing gas-phase chemical equilibrium compositions across arbitrary elemental abundances, not limited to hydrogen-dominated systems. It achieves up to 50× speedup over FastChem 1 and supports 523 species, including new molecules like HNC, FeH, and TiH, enabling accurate modeling of nitrogen-, carbon-, and oxygen-dominated atmospheres in exoplanets and cool stars.

ABSTRACT

The computation of complex neutral/ionised chemical equilibrium compositions is invaluable to obtain scientific insights of, for example, the atmospheres of extrasolar planets and cool stars. We present FastChem 2, a new version of the established semi-analytical thermochemical equilibrium code FastChem. Whereas the original version is limited to atmospheres containing a significant amount of hydrogen, FastChem 2 is also applicable to chemical mixtures dominated by any other species, such as CO$_2$ or N$_2$. The new C++ code and an optional Python module are publicly available under the GPLv3 license at https://github.com/exoclime/FastChem. The program is backward compatible so that the previous version can be easily substituted. We updated the thermochemical database by adding HNC, FeH, TiH, Ca$^-$, and some organic molecules. In total 523 species are now in the thermochemical database including 28 chemical elements. The user can reduce the total number of species to, for example, increase the computation performance or can add further species if the thermochemical data are available. The program is validated against its previous version and extensively tested over an extended pressure-temperature grid with pressures ranging from $10^{-13}\,\mathrm{bar}$ up to $10^3\,\mathrm{bar}$ and temperatures between $100\,\mathrm{K}$ and $6000\,\mathrm{K}$. FastChem 2 is successfully applied to a number of different scenarios including nitrogen, carbon, and oxygen-dominated atmospheres as well as test cases without hydrogen and helium. Averaged over the extended pressure-temperature grid FastChem 2 is up to 50 times faster than the previous version and is also applicable to situations not treatable with version 1.

Motivation & Objective

  • To extend the applicability of the FastChem code beyond hydrogen-dominated systems to include atmospheres dominated by CO2, N2, or other species.
  • To improve computational efficiency for complex thermochemical equilibrium calculations across a wide range of pressures (10−13 to 103 bar) and temperatures (100–6000 K).
  • To enhance the thermochemical database by adding 28 elements and 523 species, including key molecules like HNC, FeH, and TiH relevant to exoplanet and stellar atmospheres.
  • To ensure backward compatibility with FastChem 1 while enabling performance tuning via species filtering or extension with user-provided data.
  • To validate the new code across diverse atmospheric compositions, including hydrogen-free and helium-poor scenarios, to ensure robustness and accuracy.

Proposed method

  • Re-engineered the semi-analytical algorithm to handle arbitrary elemental distributions by reformulating the Gibbs free energy minimization under element conservation constraints.
  • Implemented a variable-based iterative solver that decomposes the system into coupled nonlinear equations per species, using a modified Newton-Raphson approach.
  • Introduced a new parameterization for the reference state of species, allowing flexible treatment of non-hydrogen-dominated systems through adjusted activity coefficients.
  • Enabled dynamic species filtering: users can reduce the number of species to boost performance or add new ones if thermochemical data are available.
  • Developed a Python interface (pyfastchem) for seamless integration into scientific workflows, with full C++ core performance.
  • Updated the thermochemical database with 523 species across 28 elements, including FeH, TiH, Ca−, and HNC, with validated thermodynamic data.

Experimental results

Research questions

  • RQ1Can FastChem 2 accurately compute chemical equilibrium compositions in atmospheres dominated by non-hydrogen species such as CO2, N2, or O2?
  • RQ2How does the performance of FastChem 2 scale across a wide pressure-temperature range (10−13 bar to 103 bar, 100 K to 6000 K) compared to FastChem 1?
  • RQ3What is the impact of excluding ionized species on computation time and accuracy in different elemental abundance regimes?
  • RQ4To what extent does FastChem 2 outperform FastChem 1 in terms of speed, especially in low-hydrogen or helium-poor environments?
  • RQ5Can FastChem 2 reliably model atmospheres with arbitrary elemental distributions, including those with negligible hydrogen or helium?

Key findings

  • FastChem 2 is up to 50 times faster than FastChem 1 across the full pressure-temperature grid, with performance gains increasing in low-hydrogen regimes.
  • At solar photospheric hydrogen abundances, FastChem 2 runs in only 10–20% of the time required by FastChem 1.
  • For hydrogen abundances below the solar helium abundance, FastChem 2 shows a reversal in computation time behavior compared to FastChem 1, due to changes in the iterative convergence dynamics of the nonlinear solver.
  • The exclusion of ion chemistry reduces computation time by a factor of 3.2 to 5.2 in FastChem 1, but by 32% to 67% in FastChem 2, indicating improved algorithmic efficiency.
  • In low-hydrogen, low-helium scenarios, FastChem 2 requires less than 3% of the runtime of FastChem 1 for the same calculation, demonstrating major efficiency gains.
  • The code is validated against FastChem 1 and successfully applied to nitrogen-, carbon-, and oxygen-dominated atmospheres, confirming accuracy and robustness across diverse compositions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.