Table of Contents
Fetching ...

Carbox: an end-to-end differentiable astrochemical simulation framework

Gijs Vermariën, Tommaso Grassi, Marie Van de Sande, Serena Viti, Stefano Bovino, Alessandro Lupi, Alexander Ruf, Lorenzo Branca, Catherine Walsh

TL;DR

The paper addresses the challenge of modeling complex astrochemical reaction networks with uncertain parameters in the era of JWST/ALMA. It introduces Carbox, an end-to-end differentiable astrochemical simulation framework built on the Jax ecosystem, enabling GPU acceleration and automatic differentiation to facilitate forward and inverse analyses. Key contributions include network parsing with an incidence matrix, a Network/JNetwork abstraction, a Diffrax-based stiff integrator with tight tolerances $a_{tol}=10^{-9}$ and $r_{tol}=10^{-30}$, and benchmarking against the UCLCHEM code on both minimal and extended gas-phase networks. The framework enables uncertainty quantification and sensitivity analysis with respect to rate coefficients $k$ and environmental parameters $oldsymbol{\varphi}$, and demonstrates how varying the cosmic-ray ionization rate $\zeta$ propagates through the chemistry, highlighting nonlinearity and scale when comparing atomic (31 species, 380 reactions) and molecular (161 species, 2227 reactions) networks.

Abstract

Since the first observations of interstellar molecules, astrochemical simulations have been employed to model and understand its formation and destruction path- ways. With the advent of high-resolution telescopes such as JWST and ALMA, the number of detected molecules has increased significantly, thereby creating a need for increasingly complex chemical reaction networks. To model such complex systems, we have developed Carbox, a new astrochemical simulation code that leverages the modern high-performance transformation framework Jax. With Jax enabling computational efficiency and differentiability, Carbox can easily utilize GPU acceleration, be used to study sensitivity and uncertainty, and interface with advances in Scientific Machine Learning. All of these features are crucial for modeling the molecules observed by current and next-generation telescopes.

Carbox: an end-to-end differentiable astrochemical simulation framework

TL;DR

The paper addresses the challenge of modeling complex astrochemical reaction networks with uncertain parameters in the era of JWST/ALMA. It introduces Carbox, an end-to-end differentiable astrochemical simulation framework built on the Jax ecosystem, enabling GPU acceleration and automatic differentiation to facilitate forward and inverse analyses. Key contributions include network parsing with an incidence matrix, a Network/JNetwork abstraction, a Diffrax-based stiff integrator with tight tolerances and , and benchmarking against the UCLCHEM code on both minimal and extended gas-phase networks. The framework enables uncertainty quantification and sensitivity analysis with respect to rate coefficients and environmental parameters , and demonstrates how varying the cosmic-ray ionization rate propagates through the chemistry, highlighting nonlinearity and scale when comparing atomic (31 species, 380 reactions) and molecular (161 species, 2227 reactions) networks.

Abstract

Since the first observations of interstellar molecules, astrochemical simulations have been employed to model and understand its formation and destruction path- ways. With the advent of high-resolution telescopes such as JWST and ALMA, the number of detected molecules has increased significantly, thereby creating a need for increasingly complex chemical reaction networks. To model such complex systems, we have developed Carbox, a new astrochemical simulation code that leverages the modern high-performance transformation framework Jax. With Jax enabling computational efficiency and differentiability, Carbox can easily utilize GPU acceleration, be used to study sensitivity and uncertainty, and interface with advances in Scientific Machine Learning. All of these features are crucial for modeling the molecules observed by current and next-generation telescopes.

Paper Structure

This paper contains 9 sections, 5 equations, 3 figures.

Figures (3)

  • Figure 1: Temporal evolution of the fractional abundances of some selected chemical species for the atomic (left) and molecular (right) reaction networks. The solid line represents the reference integration using the UCLCHEM gas-phase reaction network, while the dashed lines show the results obtained with Carbox. The results are similar for the species not displayed here.
  • Figure 2: Left: temporal evolution of selected chemical species. The solid line represents the reference evolution ($\zeta/\zeta_0=1$), while the shaded area is the maximum extent given by $\zeta/\zeta_0\in[10^{-2}, 10^4]$. Right: the final ($t=10^7$ yr) abundances of the same species for different cosmic-ray ionization rate values.
  • Figure 3: A figure illustrating the sensitivity of a carbon rich stellar outflow with a MCMC sampler varying reaction rates of the entire network.