atomicmass

atomicmass - Return the atomic mass of an atom or molecule.

This is really just a wrapper for periodictable but returns the mass as an astropy quantity.

atomicdataMB.atomicmass.atomicmass(species)[source]

Return the atomic mass of an atom or molecule.

Parameters

species

Chemical formula requested species. See periodictable for formatting options.

Returns

The atomicmass of species as an astropy quantity with units = AMU \((1\, \mathrm{AMU} = 1.660539 \times 10^{-27}\, \mathrm{kg})\). If periodictable returns a ValueError, None is returned.

Examples

>>> from atomicdataMB import atomicmass
>>> print(atomicmass('Na'))
22.98977 u
>>> print(atomicmass('H2O'))
18.01528 u
>>> print(atomicmass('X'))
WARNING: mathMB.atomicmass: X not found
None