Start a generalized multiphase isopleth from an existing phase state.
Packs initial K-factors, phase fractions, pressure, and temperature into the continuation state; optional stability trial compositions seed phase discovery. It then follows the specified solution branch and returns the converged multiphase states.
Use a converged multiphase state and provide its phase kinds, compositions, fractions, and continuation specification.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ArModel), | intent(in) | :: | model |
EOS used for phase properties. |
||
| integer, | intent(in) | :: | nc |
Number of components; must equal |
||
| integer, | intent(in) | :: | np |
Number of main phases in the initial state. |
||
| integer, | intent(in) | :: | nstab |
Number of stability trial compositions supplied. |
||
| character(len=14), | intent(in) | :: | kinds_x(np) |
Phase kind for each main phase. |
||
| character(len=14), | intent(in) | :: | kind_w |
Kind of the reference phase. |
||
| real(kind=pr), | intent(in) | :: | z(nc) |
Overall feed composition. |
||
| real(kind=pr), | intent(in) | :: | x_l0(np,nc) |
Initial main-phase compositions. |
||
| real(kind=pr), | intent(in) | :: | w0(nc) |
Initial reference-phase composition. |
||
| real(kind=pr), | intent(in) | :: | betas0(np+1) |
Main-phase fractions followed by the reference-phase fraction. |
||
| real(kind=pr), | intent(in) | :: | P0 |
Initial pressure [bar]. |
||
| real(kind=pr), | intent(in) | :: | T0 |
Initial temperature [K]. |
||
| integer, | intent(in) | :: | spec_variable |
Index in of the variable held fixed along the line. |
||
| real(kind=pr), | intent(in) | :: | spec_variable_value |
Fixed value of |
||
| integer, | intent(in) | :: | ns0 |
Index in |
||
| real(kind=pr), | intent(in) | :: | S0 |
Initial continuation specification value. |
||
| real(kind=pr), | intent(in) | :: | dS0 |
Initial signed continuation step. |
||
| real(kind=pr), | intent(in), | optional | :: | ws_stab(nstab,nc) |
Trial compositions for stability analysis; required when |
|
| integer, | intent(in), | optional | :: | max_points |
Maximum number of points to continue. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | F(nc*np+np+3) | ||||
| real(kind=pr), | public | :: | S | ||||
| real(kind=pr), | public | :: | S1 | ||||
| real(kind=pr), | public | :: | X(nc*np+np+3) | ||||
| real(kind=pr), | public | :: | dFdS(nc*np+np+3) | ||||
| real(kind=pr), | public | :: | dS | ||||
| real(kind=pr), | public | :: | dX(nc*np+np+3) | ||||
| real(kind=pr), | public | :: | dXdS(nc*np+np+3) | ||||
| real(kind=pr), | public | :: | df(nc*np+np+3,nc*np+np+3) | ||||
| logical, | public | :: | found_unstability | ||||
| integer, | public | :: | i |
Loop/index variable. |
|||
| integer, | public | :: | iBetas(np+1) | ||||
| integer, | public | :: | iP | ||||
| integer, | public | :: | iT | ||||
| integer, | public | :: | i_point | ||||
| integer, | public | :: | iters | ||||
| integer, | public | :: | l |
Loop/phase index. |
|||
| integer, | public | :: | lb | ||||
| integer, | public | :: | max_iters | = | 1000 | ||
| integer, | public | :: | ns | ||||
| integer, | public | :: | ns1 | ||||
| type(MPEquilibriumState), | public | :: | point | ||||
| real(kind=pr), | public | :: | tms(nstab) | ||||
| integer, | public | :: | ub | ||||
| character(len=14), | public | :: | w_kind | ||||
| character(len=14), | public | :: | x_kinds(np) |