pytmosph3r.chemistry.standard
Module Contents
- class StandardRatioHeH2(gases=None, ratio_HeH2=None)[source]
Bases:
pytmosph3r.chemistry.chemistry.ChemistryComplete the atmosphere in He and H2 using a ratio_HeH2.
- Parameters:
gases (
dict) – List of gases which are consider in the simulation.ratio_HeH2 (float) – Ratio between the mixing ratio of He and H2. Exemple: ratio_HeH2 = 0.2577 (solar abundance)
- compute_vmr(gas, mix_ratio)[source]
This function can be overridden to compute the volume mixing ratio of a gas
gasusingmix_ratio, initialized to an array with theshapeof 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.
- build(atmosphere)[source]
General function that will be called to compute the chemistry after
atmospherehas been initialized. It iterates overgasesby callingcompute_vmr()on each gas.- Parameters:
atmosphere (
AltitudeAtmosphere) – Altitude-based atmosphere in which to compute the volume mixing ratios ofgases.input_atmosphere (
InputAtmosphere, optional) – Input atmosphere if you need it (with input mix_ratios for example).