lair.pollutants.Pollutant.molar_mass#

property Pollutant.molar_mass: Quantity#

Molar mass in g/mol. Needs the optional molmass dependency.

Raises:

ValueError – If the pollutant has no chemical formula (an aerosol).

See also

lair.inventories.molecular_weight

The same number from a formula (case-sensitive).

lair.units

The registry whose mass_flux context takes it as mw.

Examples

>>> from lair.pollutants import get_pollutant
>>> print(f"{get_pollutant('CH4').molar_mass:~P.3f}")
16.043 g/mol
>>> get_pollutant("PM2.5").molar_mass
Traceback (most recent call last):
    ...
ValueError: PM2.5 has no chemical formula.