Calculation of saturation pressure of a pure component using the secant method.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | eos |
Model that will be used |
||
| integer, | intent(in) | :: | ncomp |
Number of component in the mixture from which the saturation pressure will be calculated |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K] |
||
| real(kind=pr), | intent(out) | :: | Vl |
Liquid volume [L] |
||
| real(kind=pr), | intent(out) | :: | Vv |
Vapor volume [L] |
||
| logical, | intent(out), | optional | :: | converged |
The calculation converged |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | F(3) | ||||
| real(kind=pr), | private | :: | Pc(size(eos)) | ||||
| real(kind=pr), | private | :: | S | ||||
| real(kind=pr), | private | :: | X(3) | ||||
| real(kind=pr), | private | :: | dF(3,3) | ||||
| integer, | private | :: | its | ||||
| real(kind=pr), | private | :: | n(size(eos)) | ||||
| integer, | private, | parameter | :: | ns | = | 3 |