easychem

Submodules

Package Contents

Classes

ExoAtmos

class easychem.ExoAtmos(atoms=None, reactants=None, atomAbunds=None, thermofpath=None, metallicity=None, co=None, atmFunc=None, atmArgs=None)
property atoms

Array of strings => atoms present in the atmosphere

property reactants

Array of strings => reactants present in the atmosphere

property thermofpath

String => path to the thermodynamic data file

property atomAbundsOrig

Array of floats => elemental abundances of the considered atmosphere, usually the stellar abundances ; base array used to generate atomAbunds by adjusting to metallicity, co and/or atmFunc

property atomAbunds

Array of floats => elemental abundances of the considered atmosphere ; array used in chemistry computation

property metallicity

Float => atmosphere’s metallicity ; automatically updates atomAbunds considering atomAbundsOrig as the stellar abundances (incompatible with atmFunc, if atmFunc is set, priority is given to atmFunc)

property co

Float => C/O ratio ; automatically updates atomAbunds (if atmFunc is set, atmFunc will be applied first)

property atmFunc

Function used on atomAbundsOrig to generate atomAbunds, automatically computed

property atmArgs

None or Tuple => arguments to pass to atmFunc

property initialized
property solved
property valid
property reacMols
property reacMass
property adiabaticGrad
property gamma2
property mmw
property density
property c_pe
ATOM_STR_LEN = 2
REAC_STR_LEN = 15
updateAtoms(input)
updateReactants(input)
updateThermofpath(string)
updateAtomAbundsOrig(tab)
updateAtomAbunds(tab)
updatemetallicity(value)
metallicity()
updateCo(value)
co()
updateAtmFunc(func, args=None)
updateAtmArgs(args)
delAtmFunc()
getReacMols()

Returns self.reacMols as a dictionary with self.reactants as keys

getReacMass()

Returns self.reacMass as a dictionary with self.reactants as keys

solve(pressure, temperature)
result_mol()
result_mass()
_updatemetallicity()
_updateCO()
_updadeWithFunc()
_normAbunds()
_updateAtomAbunds()
_getterResults(attName, fullName)
static strToBytes(a: str)
static strArr_to_bytArr(a, m)