lib.PR module

class lib.EoS.Cubic.PR.PR(T, P, mezcla, **kwargs)[source]

Bases: Cubic

Peng-Robinson cubic equation of state, [1]

\[\begin{split}\begin{array}[t]{l} P = \frac{RT}{V-b}-\frac{a}{V\left(V+b\right)+b\left(V-b\right)}\\ a = 0.45747\frac{R^2T_c^2}{P_c}\alpha\\ b = 0.0778\frac{RT_c}{P_c}\\ \alpha^{0.5} = 1 + m\left(1-Tr^{0.5}\right)\\ m = 0.37464 + 1.54226\omega-0.26992\omega^2\\ \end{array}\end{split}\]

This EoS include too a special alpha temperature dependence for water as described in [2]

In supercritical states, the α temperature dependence use the Boston-Mathias expression, [4].

\[\begin{split}\begin{array}[t]{l} \alpha = \exp\left(c\left(1-T_r^d\right)\right)\\ d = 1+\frac{m}{2}\\ c = \frac{m}{d}\\ \end{array}\end{split}\]

Examples

Example 4.3 from [3], Propane saturated at 300K

>>> from lib.mezcla import Mezcla
>>> mix = Mezcla(5, ids=[4], caudalMolar=1, fraccionMolar=[1])
>>> eq = PR(300, 9.9742e5, mix)
>>> '%0.1f' % (eq.Vl.ccmol)
'86.7'
>>> eq = PR(300, 42.477e5, mix)
>>> '%0.1f' % (eq.Vg.ccmol)
'84.1'
OmegaA = 0.45724
OmegaB = 0.0778
_cubicDefinition(T)[source]

Definition of individual components coefficients

_lib(cmp)[source]
_alfa(cmp, T)[source]

α parameter calculation procedure, separate of general procedure to let define derived equation where only change this term like the 1978 version.

This method use the original alpha formulation for temperatures below the critical temperature and the Boston-Mathias formulation for supercritical states.

The procedure return too the m parameters because it’s used in Helmholtz formulation

Parameters:
cmpcomponente.Componente

Componente instance

Tfloat

Temperature, [K]

Returns:
mfloat

m parameter of equation, [-]

alphafloat

Correlation for alpha expresion at supercritical temperatures: * 0 - Original * 1 - Boston-Mathias

_GEOS(xi)[source]

Definition of parameters of generalized cubic equation of state, each child class must define in this procedure the values of mixture a, b, delta, epsilon. The returned values are not dimensionless.

Parameters:
xilist

Molar fraction of component in mixture, [-]

Returns:
parameterslist

Mixture parameters of equation, a, b, c, d

_da(tau, x)[source]

Calculate the derivatives of α, this procedure is used for Helmholtz energy formulation of EoS for calculation of properties, alternate alfa formulation must define this procedure for any change of formulation

_fugl2(Z, zi, a, b)[source]

References