Module diskchef.engine.weights
Functions
def mol_weight(mol: str) ‑> Unit("u")-
Python version of ANDES / ALCHEMIC
aweightFORTRAN functionUses the same element weights as ANDES, see more: https://gitlab.com/ANDES-dev/ANDES2/-/blob/f549fdf0/src/ChemistryAdds.f90#L62
Args
mol- str – String containing ANDES-standard species name
Returns
molecular weight, in
astropy.units.uUsage
>>> mol_weight('H2CO') #doctest: +ELLIPSIS <Quantity 30... u>Raises
ValueError - if given name of the molecule is not ANDES-standard