build_fastchem_grid#
- shone.chemistry.fastchem.build_fastchem_grid(temperature=None, pressure=None, log_m_to_h=None, log_c_to_o=None, rainout_condensation=False, equilibrium_condensation=False, n_species=523)[source]#
Pre-compute a grid of equilibrium chemistry solutions from FastChem.
The grid will be saved as a netCDF file in the default
shonedirectory.- Parameters:
temperature (array-like) – Temperature grid. Default is roughly log-spaced from 300 to 6000 K.
pressure (array-like) – Pressure grid. Default is roughly log-spaced from 1e-8 to 10 bar.
log_m_to_h (array-like) – Metallicity grid. Default is log-spaced from -1 to 3.
log_c_to_o (array-like) – C/O grid. Default is log-spaced from -1 to 0.3.
rainout_condensation (bool) – Passed to FastchemWrapper.
equilibrium_condensation (bool) – Passed to FastchemWrapper.
n_species (int) – Number of species in this FastChem computation.
- Returns:
ds – Dataset containing the 5D fastchem grid over temperature, pressure, metallicity, C/O, and species.
- Return type: