SoaveRedlichKwong.
Using the critical constants setup the parameters to use the SoaveRedlichKwong Equation of State
There is also the optional posibility to include the k_{ij} and l_{ij} matrices. Using by default Classic Van der Waals mixing rules.
After setting up the model, it is possible to redefine either the mixing rule or the alpha function using a different derived type defined outside the function.
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), | optional | :: | kij(:,:) |
matrix |
|
real(kind=pr), | intent(in), | optional | :: | lij(:,:) |
matrix |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(AlphaSoave), | private | :: | alpha | ||||
type(Substances), | private | :: | composition | ||||
integer, | private | :: | i | ||||
type(QMR), | private | :: | mixrule | ||||
integer, | private | :: | nc |