fiesta.properties.calc_molecular_weight#
- fiesta.properties.calc_molecular_weight(chem)[source]#
Calculates molecular weight using \(\mathrm{molw} = \frac{1 - 4 x_\mathrm{He}}{1+x_\mathrm{He}-x_\mathrm{H_2}+x_\mathrm{H^+}}\).
- Parameters:
chem (
Quantity
) – See variablechem
inArepoVoronoiGrid
.- Returns:
molw (
Quantity
) – Molecular weight \(\mathrm{molw}\) (unitless).