fuellib.correlate.helpers.mass_to_mole_fractions
- fuellib.correlate.helpers.mass_to_mole_fractions(fuel, mass)
Convert mass of each component to mole fractions (Xi).
- Parameters:
fuel (Fuel) – Fuel object.
mass (Quantity[ndarray[tuple[int]]]) – Mass of each compound in the mixture.
- Returns:
num_compounds,).
- Return type:
Mole fractions of the compounds (shape