exo_k.chemistry

@author: jeremy leconte

Module Contents

class EquChemTable(filename=None, remove_zeros=False)[source]

Bases: object

Class to load and interpolate chemistry data.

Initializes chemical composition tables from various init files

Parameters

filename (str) – Name of the input file

read_composition_in(self, filename=None, remove_zeros=False, skiprows=7)[source]

Initializes chemical composition tables from composition.in files

Parameters
  • filename (str) – Name of the input file

  • skiprows (int, optional) – Number of lines to skip in the file

read_composition_dat(self, filename=None, remove_zeros=False, skiprows=1)[source]

Initializes chemical composition tables from composition.in files

Parameters
  • filename (str) – Name of the input file

  • skiprows (int, optional) – Number of lines to skip in the file

remove_zeros(self, deltalog_min_value=30.0)[source]

Finds zeros in the chem data and set them to (10.^-deltalog_min_value) times the minimum positive value in the table. This is to be able to work in logspace.

setup_interpolation(self)[source]

Creates interpolating functions to be called later on.

vmr(self, logP, T, mol)[source]

Interpolates a single molecule on a logP-T value

interpolate_vmr(self, logp_array=None, t_array=None, mols=None, grid=False)[source]

Interpolates all molecules in mols on a logP-T grid