mole_to_mass_fraction#
- mole_to_mass_fraction(phase, MWs='param.molecular_weight')[source]#
Computes the mass fraction in each pore
- Parameters:
phase (OpenPNM Phase object) – The phase object to which this model is associated (i.e. attached). This controls the length of the calculated array(s), and also provides access to other necessary properties.
MWs (str (dict key) or dict of numeric values for each species)
- Returns:
ws – An ndarray containing the mass fraction in each pore computed from the mole fractions of each component and their molecular weights.
- Return type:
ndarray