fugacity_coefficients#

class FugacityCoefficients[source]#

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

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

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 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.

class PRFugacityCoefficients(chemicals)#
EOS#

alias of PRMIX

class SRKFugacityCoefficients(chemicals)#
EOS#

alias of SRKMIX

class PR78FugacityCoefficients(chemicals)#
EOS#

alias of PR78MIX

class VDWFugacityCoefficients(chemicals)#
EOS#

alias of VDWMIX

class PRSVFugacityCoefficients(chemicals)#
EOS#

alias of PRSVMIX

class PRSV2FugacityCoefficients(chemicals)#
EOS#

alias of PRSV2MIX

class TWUPRFugacityCoefficients(chemicals)#
EOS#

alias of TWUPRMIX

class TWUSRKFugacityCoefficients(chemicals)#
EOS#

alias of TWUSRKMIX

class APISRKFugacityCoefficients(chemicals)#
EOS#

alias of APISRKMIX

class IGFugacityCoefficients(chemicals)#
EOS#

alias of IGMIX

class RKFugacityCoefficients(chemicals)#
EOS#

alias of RKMIX

class PRTranslatedConsistentFugacityCoefficients(chemicals)#
EOS#

alias of PRMIXTranslatedConsistent

class PRTranslatedPPJPFugacityCoefficients(chemicals)#
EOS#

alias of PRMIXTranslatedPPJP

class PRTranslatedFugacityCoefficients(chemicals)#
EOS#

alias of PRMIXTranslated

class SRKTranslatedConsistentFugacityCoefficients(chemicals)#
EOS#

alias of SRKMIXTranslatedConsistent

class PSRKFugacityCoefficients(chemicals)#
EOS#

alias of PSRK

class MSRKTranslatedFugacityCoefficients(chemicals)#
EOS#

alias of MSRKMIXTranslated

class SRKTranslatedFugacityCoefficients(chemicals)#
EOS#

alias of SRKMIXTranslated