fuellib.correlate.helpers.mass_fractions_to_volume_fractions
- fuellib.correlate.helpers.mass_fractions_to_volume_fractions(fuel, yi, temp)
Convert mass fractions (yi) to volume fractions (vi).
- Parameters:
fuel (Fuel) – Fuel object.
yi (Quantity[ndarray[tuple[int]]]) – Mass fractions of each compound in the mixture.
temp (Quantity[float]) – Temperature at which to evaluate the mixture density.
- Returns:
num_compounds,).
- Return type:
Volume fractions of the compounds (shape