Calculate the mean molecular weight, given the fractional abundances
fH = n(H)/n(H2) and fHe = n(He)/n(Htot) with n(Htot) = n(H) + n(H2)
Derived from: rho_gas / n(gas) = mu * m_H
- Parameters:
fH (float/array) - The fractional abundance of atomic hydrogen with respect to
molecular hydrogen. fH = n(H)/n(H2). Can be a constant or a
radially dependent value.
fHe (float/array) - The fractional abundance of helium with respect to total hydrogen
number density. fHe = n(He)/(n(H)+2*n(H2)). Can be a constant or
a radially dependent value.
- Returns: float
- The mean molecular weight in units of m_H
|