pytmosph3r.chemistry.dissociation

Module Contents

class Parmentier2018Dissociation(gases=None, T_min=0, H2_dissociation=None, ratio_HeH2=None)[source]

Bases: pytmosph3r.chemistry.chemistry.Chemistry

Chemistry model based on [ParmentierLineBean+18].

A few notes: the dissociation of \(H_2\) will create \(H\) and \(He\) automatically to fill the atmosphere. If you do not have cross-section data for them, you should also add them to the list of transparent_gases.

Parameters:
  • gases (dict) – List of gases for which to consider dissociation, and eventually override the coefficients associated with each gas. Example: {'H2O':(2.,2.83,15.9),'H2':True}. This overrides the coefficients for \(H_2O\) but uses the default values for \(H_2\).

  • T_min (float) – Minimum temperature for which to compute dissociation.

wasp121b_coeffs
wasp121b_deep_abundances_log
H2_dissociation

H2 dissociation will create H. He is also added (see ratio_HeH2).

ratio_HeH2

When H2 dissociates, we add He using this ratio to define their deep abundances. ratio_HeH2 = x_He_deep / x_H2_deep.

build(atmosphere)[source]

General function that will be called to compute the chemistry after atmosphere has been initialized. It iterates over gases by calling compute_vmr() on each gas.

Parameters:
  • atmosphere (AltitudeAtmosphere) – Altitude-based atmosphere in which to compute the volume mixing ratios of gases.

  • input_atmosphere (InputAtmosphere, optional) – Input atmosphere if you need it (with input mix_ratios for example).

compute_vmr(gas, mix_ratio)[source]

This function can be overridden to compute the volume mixing ratio of a gas gas using mix_ratio, initialized to an array with the shape of the atmosphere.

Parameters:
  • gas (str) – Name of the gas

  • mix_ratio (array, np.ndarray) – Array full of ones of shape shape. The array is filled with the values in the atmosphere is the gas was already present, or else ones.

inputs()[source]