lib.RK module¶
- class lib.EoS.Cubic.RK.RK(T, P, mezcla, **kwargs)[source]¶
Bases:
CubicEquation of state of Redlich-Kwong (1949), [1].
\[\begin{split}\begin{array}[t]{l} P = \frac{RT}{V-b}-\frac{a}{V\left(V+b\right)\sqrt{T}}\\ a = 0.42747\frac{R^2T_c^{2.5}}{P_c}\\ b = 0.08664\frac{RT_c}{P_c}\\ \end{array}\end{split}\]Examples
Example 4.3 from [2], Propane saturated at 300K
>>> from lib.mezcla import Mezcla >>> mix = Mezcla(5, ids=[4], caudalMolar=1, fraccionMolar=[1]) >>> eq = RK(300, 9.9742e5, mix) >>> '%0.1f' % (eq.Vl.ccmol) '101.4' >>> eq = RK(300, 42.477e5, mix) >>> '%0.1f' % (eq.Vg.ccmol) '97.3'
- _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