SoaveRedlichKwong.
Using the critical constants setup the parameters to use the SoaveRedlichKwong Equation of State
There is also the optional possibility to include the and 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 |
Soave alpha function |
|||
| type(Substances), | private | :: | composition | ||||
| integer, | private | :: | i |
Loop/index variable. |
|||
| type(QMR), | private | :: | mixrule | ||||
| integer, | private | :: | nc |
Number of components. |