lair.inventories.molecular_weight#

lair.inventories.molecular_weight(pollutant)[source]#

Calculate the molecular weight of a pollutant.

NOx is taken as NO2, the usual reporting basis for NOx emissions.

Parameters:

pollutant (str) – The pollutant, as a chemical formula (case-sensitive, e.g. 'CH4').

Returns:

pint.Quantity – The molecular weight.

Return type:

Quantity

See also

convert_units

Converts between an amount (mol) and a mass with it.

Examples

>>> from lair.inventories import molecular_weight
>>> mw = molecular_weight("CH4")
>>> f"{mw:.3f~P}"
'16.043 g/mol'
>>> f"{molecular_weight('NOx'):.3f~P}"  # as NO2
'46.006 g/mol'