petitRADTRANS.chemistry.pre_calculated_chemistry#

Manage equilibrium chemistry pre-calculated table.

Attributes#

Classes#

PreCalculatedEquilibriumChemistryTable

Used to store petitRADTRANS's pre-calculated mass fractions at chemical equilibrium.

Module Contents#

class petitRADTRANS.chemistry.pre_calculated_chemistry.PreCalculatedEquilibriumChemistryTable#

Used to store petitRADTRANS’s pre-calculated mass fractions at chemical equilibrium.

The interpolate_mass_fractions function can be used to get mass fractions at given thermochemical conditions.

_loaded: bool = False#
log10_metallicities: [numpy.typing.NDArray[float], None] = None#
co_ratios: [numpy.typing.NDArray[float], None] = None#
temperatures: [numpy.typing.NDArray[float], None] = None#
pressures: [numpy.typing.NDArray[float], None] = None#
species: [tuple[str, Ellipsis], None] = None#
mass_fractions: [numpy.typing.NDArray[float], None] = None#
nabla_adiabatic: [numpy.typing.NDArray[float], None] = None#
mean_molar_masses: [numpy.typing.NDArray[float], None] = None#
static get_default_file(path_input_data: str = None) str#
interpolate_mass_fractions(co_ratios: iter, log10_metallicities: iter, temperatures: iter, pressures: iter, carbon_pressure_quench: float = None, full: bool = False)#

Interpolate mass fractions from a pre-calculated table to the desired parameters.

Args:
co_ratios:

Desired carbon to oxygen ratios, obtained by increasing the amount of oxygen.

log10_metallicities:

Base-10 logarithm of the desired metallicities.

temperatures:
  1. desired temperatures

pressures:

(bar) desired pressures

carbon_pressure_quench:

(bar) pressure at which to put a simplistic carbon-bearing species quenching

full:

if True, output the pre-calculated mean molar mass and logarithmic derivative of temperature with respect to pressure in the adiabatic case (nabla_ad) in addition to the pre-calculated mass fractions

load(path: str = None, path_input_data: str = None, file: str = '')#
petitRADTRANS.chemistry.pre_calculated_chemistry.pre_calculated_equilibrium_chemistry_table#