fuellib.correlate.helpers.mass_to_mass_fractions

fuellib.correlate.helpers.mass_to_mass_fractions(fuel, mass)

Convert mass of each component to mass fractions (Yi).

Parameters:
  • fuel (Fuel) – Fuel object.

  • mass (Quantity[ndarray[tuple[int]]]) – Mass of each compound.

Returns:

num_compounds,).

Return type:

Mass fractions of the compounds (shape