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 = False#
log10_metallicities = None#
co_ratios = None#
temperatures = None#
pressures = None#
species = None#
mass_fractions = None#
nabla_adiabatic = None#
mean_molar_masses = None#
static get_default_file(path_input_data=None)#
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 metallitcities.

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)#
petitRADTRANS.chemistry.pre_calculated_chemistry.pre_calculated_equilibrium_chemistry_table#