Decode logarithmic K-factors and state variables into phase compositions.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | intent(in) | :: | z0(:) |
First limiting feed composition. |
||
| real(kind=pr), | intent(in) | :: | zi(:) |
Second limiting feed composition. |
||
| real(kind=pr), | intent(in) | :: | Xvars(size(z0)*2+3) |
Packed log-K, log-pressure, alpha, and beta vector. |
||
| real(kind=pr), | intent(out) | :: | x(size(z0)) |
Reconstructed phase-x composition. |
||
| real(kind=pr), | intent(out) | :: | y(size(z0)) |
Reconstructed phase-y composition. |
||
| real(kind=pr), | intent(out) | :: | w(size(z0)) |
Reconstructed reference-phase composition. |
||
| real(kind=pr), | intent(out) | :: | P |
Pressure [bar]. |
||
| real(kind=pr), | intent(out) | :: | alpha |
Feed interpolation parameter. |
||
| real(kind=pr), | intent(out) | :: | beta |
Phase-split parameter. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | Kx((Size(Xvars)-3)/2) | ||||
| real(kind=pr), | private | :: | Ky((Size(Xvars)-3)/2) | ||||
| integer, | private | :: | nc |
Number of components. |
|||
| real(kind=pr), | private | :: | z(size(z0)) |
Feed or overall composition. |