Calculate pure-component fugacity data for a selected legacy component.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nc |
Number of active components. |
||
| integer, | intent(in) | :: | icomp |
One-based component index. |
||
| real(kind=pr), | intent(in) | :: | T |
Temperature [K]. |
||
| real(kind=pr), | intent(in) | :: | P |
Pressure [bar]. |
||
| real(kind=pr), | intent(in) | :: | V |
Total volume [L]. |
||
| real(kind=pr), | intent(out) | :: | phi |
Pure-component fugacity coefficient. |
Evaluate legacy fugacity and pressure-derivative properties.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nc |
Number of components |
||
| integer, | intent(in) | :: | mtyp |
Type of root desired (-1 vapor, 1 liquid, 0 lower Gr) |
||
| integer, | intent(in) | :: | indic |
Desired element, this should be setted with optionals |
||
| real(kind=pr), | intent(in) | :: | t |
Temperature [K] |
||
| real(kind=pr), | intent(in) | :: | p |
Pressure [bar] |
||
| real(kind=pr), | intent(in) | :: | rn(nc) |
Mixture mole numbers |
||
| real(kind=pr), | intent(out) | :: | v |
Volume [L] |
||
| real(kind=pr), | intent(out) | :: | PHILOG(nc) |
ln(phi*p) vector |
||
| real(kind=pr), | intent(out), | optional | :: | DLPHIP(nc) |
ln(phi) Pressure derivative |
|
| real(kind=pr), | intent(out), | optional | :: | DLPHIT(nc) |
ln(phi) Temp derivative |
|
| real(kind=pr), | intent(out), | optional | :: | FUGN(nc,nc) |
ln(phi) compositional derivative |
ROUTINE FOR CALCULATION OF VOLUME, GIVEN PRESSURE
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | ITYP |
TYPE OF ROOT DESIRED (-1 vapor, 1 liquid, 0 lower Gibbs energy phase) |
||
| integer, | intent(in) | :: | nc |
NO. OF COMPONENTS |
||
| integer, | intent(in) | :: | ntemp |
1 if T-derivatives are required |
||
| real(kind=pr), | intent(in) | :: | rn(nc) |
FEED MOELS |
||
| real(kind=pr), | intent(in) | :: | T |
TEMPERATURE |
||
| real(kind=pr), | intent(in) | :: | P |
PRESURE |
||
| real(kind=pr), | intent(out) | :: | V |
VOLUME |
Evaluate legacy thermodynamic properties at fixed composition, temperature, and volume.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nc |
Number of active components. |
||
| integer, | intent(in) | :: | indic |
Selects the requested outputs (see the |
||
| real(kind=pr), | intent(in) | :: | t |
Temperature [K]. |
||
| real(kind=pr), | intent(in) | :: | rn(nc) |
Component mole amounts used in mixture rules. |
||
| real(kind=pr), | intent(in) | :: | v |
Total volume [L]. |
||
| real(kind=pr), | intent(out) | :: | p |
Pressure [bar]. |
||
| real(kind=pr), | intent(out) | :: | dpv |
Pressure derivative with respect to volume. |
||
| real(kind=pr), | intent(out) | :: | PHILOG(nc) |
vector. |
||
| real(kind=pr), | intent(out) | :: | DLPHIP(nc) |
Pressure derivatives of logarithmic fugacity coefficients. |
||
| real(kind=pr), | intent(out) | :: | DLPHIT(nc) |
Temperature derivatives of logarithmic fugacity coefficients. |
||
| real(kind=pr), | intent(out) | :: | FUGN(nc,nc) |
Composition derivatives of at constant . |