lair.pollutants.Pollutant.molar_mass#
- property Pollutant.molar_mass: Quantity#
Molar mass in g/mol. Needs the optional
molmassdependency.- Raises:
ValueError – If the pollutant has no chemical formula (an aerosol).
See also
lair.inventories.molecular_weightThe same number from a formula (case-sensitive).
lair.unitsThe registry whose
mass_fluxcontext takes it asmw.
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.