activity_coefficient
despasito.thermodynamics.calc.activity_coefficient
- activity_coefficient(P, T, xi, yi, Eos, **kwargs)[source]
Calculate activity coefficient given T, P, yi, and xi.
- Parameters:
P (float) – [Pa] Pressure of the system
T (float) – [K] Temperature of the system
xi (numpy.ndarray) – Liquid mole fraction of each component, sum(xi) should equal 1.0
yi (numpy.ndarray) – Vapor mole fraction of each component, sum(xi) should equal 1.0
Eos (obj) – An instance of the defined EOS class to be used in thermodynamic computations.
kwargs – Keyword arguments for
calc_saturation_properties()
- Returns:
activity_coefficient (numpy.ndarray) – Activity coefficient for given composition of mixtures
Psat (numpy.ndarray) – Saturation pressure