fuellib.gcm.unifac.ln_gamma_x

fuellib.gcm.unifac.ln_gamma_x(x, temp, nu, r_j, q_j, a_mn)

Compute UNIFAC ln(gamma_i) from mole fractions with plain NumPy arrays.

Parameters:
  • x (ndarray[tuple[int]]) – Liquid mole fractions of each component (shape (N,)).

  • temp (float) – Temperature in K.

  • nu (ndarray[tuple[int, int]]) – Subgroup counts per component (shape (N, K)).

  • r_j (ndarray[tuple[int]]) – Subgroup volume parameters (shape (K,)).

  • q_j (ndarray[tuple[int]]) – Subgroup surface parameters (shape (K,)).

  • a_mn (ndarray[tuple[int, int]]) – Subgroup interaction parameters in K (shape (K, K)).

Returns:

Natural log of the activity coefficient of each component (shape (N,)).

Return type:

ndarray[tuple[int]]