Module with routines particular to binary mixtures.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public, | allocatable | :: | P(:) | |||
| real(kind=pr), | public, | allocatable | :: | T(:) | |||
| real(kind=pr), | public, | allocatable | :: | Vw(:) | |||
| real(kind=pr), | public, | allocatable | :: | Vx(:) | |||
| real(kind=pr), | public, | allocatable | :: | Vy(:) | |||
| real(kind=pr), | public, | allocatable | :: | w1(:) | |||
| real(kind=pr), | public, | allocatable | :: | x1(:) | |||
| real(kind=pr), | public, | allocatable | :: | y1(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model | |||
| type(EquilibriumState), | intent(in) | :: | cep |
Find an initial guess for the critical L-L line of a binary mixture.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model | |||
| real(kind=pr), | intent(in) | :: | z0(2) |
Mole fractions of original fluid |
||
| real(kind=pr), | intent(in) | :: | zi(2) |
Mole fractions of new fluid |
||
| real(kind=pr), | intent(in) | :: | P |
Pressure [bar] |
||
| real(kind=pr), | intent(out) | :: | a |
Mole fraction of new fluid |
||
| real(kind=pr), | intent(out) | :: | V |
Volume [L/mol] |
||
| real(kind=pr), | intent(inout) | :: | T |
Temperature [K] |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model | |||
| real(kind=pr), | intent(in) | :: | Xvars(:) |
Input vector |
||
| integer, | intent(in) | :: | ns |
Specified variable index |
||
| real(kind=pr), | intent(in) | :: | S |
Specified variable value |
||
| real(kind=pr), | intent(out) | :: | F(:) |
Function vector |
||
| real(kind=pr), | intent(out) | :: | dF(:,:) |
Jacobian |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model | |||
| real(kind=pr), | intent(inout) | :: | X(:) |
Input/output vector |
||
| integer, | intent(in) | :: | ns |
Specified variable index |
||
| real(kind=pr), | intent(in) | :: | S |
Specified variable value |
||
| real(kind=pr), | intent(out) | :: | F(:) |
Function vector |
||
| real(kind=pr), | intent(out) | :: | dF(:,:) |
Jacobian |
||
| integer, | intent(out), | optional | :: | iters |
Number of iterations performed |