Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
RKPR
Description
RKPR Equation of State
The RKPR EoS extends the classical formulation of Cubic Equations
of State by freeing the parameter . This extra degree
provides extra ways of implementing the equation in comparison
of other Cubic EoS (like PR and SRK) which are limited to definition
of their critical constants.
Besides that extra parameter, the RKPR includes another
function:
In this implementation we take the simplest form which correlates
the extra parameter to the critical compressibility factor and
the parameter of the function to and :
where . When delta_1 or k are given they
replace the correlations. When k is not given, each component’s
is afterwards refitted with refit_rkpr_k so that the model
reproduces the acentric factor.
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=pr),
intent(in)
::
tc(:)
Critical Temperature [K]
real(kind=pr),
intent(in)
::
pc(:)
Critical Pressure [bar]
real(kind=pr),
intent(in)
::
w(:)
Acentric Factor
real(kind=pr),
intent(in)
::
zc(:)
Critical compressibility
real(kind=pr),
intent(in),
optional
::
kij(:,:)
matrix
real(kind=pr),
intent(in),
optional
::
lij(:,:)
matrix
real(kind=pr),
intent(in),
optional
::
delta_1(:)
Pure-component values (overrides the correlation)
real(kind=pr),
intent(in),
optional
::
k(:)
Alpha-function values (overrides correlation and refit)
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.