Abstract
We introduce the PRISM interstellar medium (ISM) model for thermochemistry and its implementation in the RAMSES-RTZ code. The model includes a non-equilibrium primordial, metal, and molecular chemistry network for 115 species coupled to on-the-fly multifrequency radiation transport. PRISM accurately accounts for the dominant ISM cooling and heating processes in the low-density regime (i.e. $\rho < 10^5\ {\rm cm^{-3}}$), including photoheating, photoelectric heating, H$_2$ heating/cooling, cosmic-ray heating, H/He cooling, metal-line cooling, CO cooling, and dust cooling (recombination and gas-grain collisions). We validate the model by comparing 1D equilibrium simulations across six dex in metallicity to existing 1D ISM models in the literature. We apply PRISM to high-resolution (4.5 pc) isolated dwarf galaxy simulations that include state-of-the-art models for star formation and stellar feedback to take an inventory of which cooling and heating processes dominate each different gas phase of a galaxy and to understand the importance of non-equilibrium effects. We show that most of the ISM gas is either close to thermal equilibrium or exhibits a slight cooling instability, while from a chemical perspective, the non-equilibrium electron fraction is often more than three times higher or lower than the equilibrium value, which impacts cooling, heating, and observable emission lines. Electron enhancements are attributed to recombination lags while deficits are shown to be due to rapid cosmic-ray heating. The PRISM model and its coupling to RAMSES-RTZ is applicable to a wide variety of astrophysical scenarios, from cosmological simulations to isolated giant molecular clouds, and is particularly useful for understanding how changes to ISM physics impact observable quantities such as metallic emission lines.
Introduction
Simulating a galaxy is a balancing act between resolution and complexity. To understand how galaxies form stars and evolve, researchers must model the Interstellar Medium (ISM)—the gas and dust between stars. This gas is "multiphase," ranging from cold, dense molecular clouds to million-degree plasma. Historically, researchers faced a choice between highly detailed 1D chemical models with no dynamics or 3D simulations with simplified "equilibrium" chemistry. The PRISM model bridges this gap by bringing 1D-level chemical detail into 3D radiation-hydrodynamics simulations, tracking 115 chemical species in non-equilibrium.
Methods and Physical Processes
PRISM is implemented within RAMSES-RTZ, an extension of the RAMSES code. It tracks the non-equilibrium evolution of 115 species, including all ionization states of major metals (O, C, N, Fe, Mg, etc.) and molecules like $H_2$ and $CO$. The chemistry is solved "on-the-fly" alongside 3D multifrequency radiation transport, meaning stellar radiation dynamically alters the local chemistry.
The model accounts for a comprehensive suite of physics: photoheating, photoelectric heating from dust, cosmic-ray heating, and cooling from metals, molecules, and dust-gas collisions. This level of detail is essential for capturing the thermal and chemical state of the gas across the wide range of densities found in galaxies.
Validation and Equilibrium Results
PRISM was validated against established 1D ISM models across six orders of magnitude in metallicity. The model successfully reproduces the characteristic "S-curve" of the ISM phase diagram, representing the transition between the cold and warm neutral media. Furthermore, the simulated gas pressures and densities show excellent agreement with observational data from the Milky Way and the Magellanic Clouds.
Key Insights: The Chemical Lag
A striking finding from the 3D simulations is that gas can be in thermal equilibrium (stable temperature) while being in significant chemical disequilibrium. Specifically, the electron fraction can be more than three times higher or lower than predicted by equilibrium models.
These "chemical lags" occur because reactions often cannot keep pace with dynamic changes. During rapid cooling, electrons don't recombine fast enough (recombination lags), while intense cosmic-ray heating can create an electron deficit. Because observable emission lines (like [C II] or [O III]) depend on the exact ionization state, assuming equilibrium can lead to errors of up to an order of magnitude when predicting what telescopes like JWST or ALMA would see.
Future Work
While PRISM represents a significant step forward, future iterations will aim to include dynamic dust evolution (rather than a fixed dust-to-gas ratio), magnetic fields, and more sophisticated cosmic-ray transport. These additions will further refine our understanding of how ISM physics impacts the observable properties of galaxies across cosmic time.
Summary updated