Refit the parameter of the RKPR EoS to match the acentric factor.
Uses a secant iteration on so that the model’s
matches the stored
acentric factor of component.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(CubicEoS), | intent(inout) | :: | model |
The model to be refitted |
||
| integer, | intent(in) | :: | component |
Component index to refit |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | Pc | ||||
| type(PurePsat), | private | :: | Psat | ||||
| real(kind=pr), | private | :: | Psat_i | ||||
| real(kind=pr), | private | :: | Tc | ||||
| real(kind=pr), | private | :: | VL |
Volume of liquid [L] |
|||
| real(kind=pr), | private | :: | Vv |
Volume of vapor [L] |
|||
| type(AlphaRKPR), | private | :: | alpha |
RKPR alpha function |
|||
| real(kind=pr), | private | :: | f_curr | ||||
| real(kind=pr), | private | :: | f_prev | ||||
| integer, | private | :: | i |
Loop/index variable. |
|||
| integer, | private | :: | iter |
Iteration count. |
|||
| real(kind=pr), | private | :: | k_curr | ||||
| real(kind=pr), | private | :: | k_next | ||||
| real(kind=pr), | private | :: | k_prev | ||||
| real(kind=pr), | private | :: | step | ||||
| real(kind=pr), | private | :: | w |
Experimental acentric factor of the component |
|||
| real(kind=pr), | private | :: | w_eos |