fuellib.utility.mixing_rule

fuellib.utility.mixing_rule(var_n: ndarray[tuple[int]], X: Quantity[ndarray[tuple[int]]], pseudo_prop: Literal['arithmetic', 'geometric'] = 'arithmetic') → float
fuellib.utility.mixing_rule(var_n: Quantity[ndarray[tuple[int]]], X: Quantity[ndarray[tuple[int]]], pseudo_prop: Literal['arithmetic', 'geometric'] = 'arithmetic') → Quantity[float]

Mixing rules for computing mixture properties.

Parameters:
  • var_n (ndarray[tuple[int]] | Quantity[ndarray[tuple[int]]]) – Individual compound properties.

  • X (Quantity[ndarray[tuple[int]]]) – Mole fractions of the compounds.

  • pseudo_prop (Literal['arithmetic', 'geometric']) – Type of mean (“arithmetic” or “geometric”).

Returns:

Mixture property value.

Return type:

float | Quantity[float]