fugacity_coefficients

class thermosteam.equilibrium.fugacity_coefficients.FugacityCoefficients(chemicals)[source]

Abstract class for the estimation of fugacity coefficients. Non-abstract subclasses should implement the following methods:

__init__(self, chemicals: Iterable[Chemicals]):

Should use pure component data from chemicals to setup future calculations of fugacity coefficients.

__call__(self, y: 1d array, T: float, P:float):

Should accept an array of vapor molar compositions y, temperature T (in Kelvin), and pressure P (in Pascal), and return an array of fugacity coefficients. Note that the molar compositions must be in the same order as the chemicals defined when creating the FugacityCoefficients object.

class thermosteam.equilibrium.fugacity_coefficients.IdealFugacityCoefficients(chemicals)[source]

Create an IdealFugacityCoefficients object that estimates all fugacity coefficients to be 1 when called with composition, temperature (K), and pressure (Pa).

Parameters

chemicals (Iterable[Chemical]) –

property chemicals

tuple[Chemical] All chemicals involved in the calculation of fugacity coefficients.

__call__(y, T, P)[source]

Call self as a function.