binary_llv_from_cepCalculate the LLV line from a converged critical end point (CEP).
From a converged critical end point (CEP) of a binary mixture, this function calculates the three-phase line (LLV) by solving the corresponding system of equations (defined at three_phase_line_F) at each point. To trace the whole line a continuation method is used to obtain good initial guesses for each point. The specification used to trace the line is initially the difference between the mole fractions of the two liquid phases, and then it is switched to temperature.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model |
Thermodynamic model to use |
||
| type(EquilibriumState), | intent(in) | :: | cep |
Converged critical end point. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | private | :: | F(nvars) | ||||
| real(kind=pr), | private | :: | P | ||||
| real(kind=pr), | private, | allocatable | :: | Ps(:) | |||
| real(kind=pr), | private | :: | S | ||||
| real(kind=pr), | private | :: | T | ||||
| real(kind=pr), | private, | allocatable | :: | Ts(:) | |||
| real(kind=pr), | private | :: | Vw | ||||
| real(kind=pr), | private | :: | Vx | ||||
| real(kind=pr), | private | :: | Vy | ||||
| real(kind=pr), | private | :: | X(nvars) | ||||
| real(kind=pr), | private | :: | dF(nvars,nvars) | ||||
| real(kind=pr), | private | :: | dFdS(nvars) | ||||
| real(kind=pr), | private | :: | dS | ||||
| real(kind=pr), | private | :: | dXdS(nvars) | ||||
| real(kind=pr), | private | :: | delta | ||||
| real(kind=pr), | private | :: | imin | ||||
| integer, | private | :: | iters | ||||
| integer, | private | :: | ns | ||||
| integer, | private, | parameter | :: | nvars | = | 10 | |
| integer, | private | :: | points | ||||
| real(kind=pr), | private | :: | w(2) | ||||
| real(kind=pr), | private | :: | xx(2) | ||||
| real(kind=pr), | private | :: | y(2) |