Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=pr), | public, | allocatable | :: | P(:) |
Pressure [Pa] |
||
real(kind=pr), | public, | allocatable | :: | T(:) |
Temperature [K] |
||
real(kind=pr), | public, | allocatable | :: | Vx(:) |
Molar volume [L/mol] in the liquid phase |
||
real(kind=pr), | public, | allocatable | :: | Vy(:) |
Molar volume [L/mol] in the vapor phase |
||
type(linear_interp_1d), | private | :: | interpolator_get_P | ||||
type(linear_interp_1d), | private | :: | interpolator_get_T |
procedure, public :: get_P | |
procedure, public :: get_T |
Get the saturation pressure for a given temperature.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(PurePsat), | intent(inout) | :: | pt | |||
real(kind=pr), | intent(in) | :: | T |
Get the saturation temperature for a given pressure.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(PurePsat), | intent(inout) | :: | pt | |||
real(kind=pr), | intent(in) | :: | P |
Saturation pressures and temperatures for a pure component.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ArModel), | intent(in) | :: | model |
Thermodyanmic model |
||
integer, | intent(in) | :: | component |
Component index to calculate the line |
||
real(kind=pr), | intent(in) | :: | minP |
Minimum pressure [bar] |
||
real(kind=pr), | intent(in) | :: | minT |
Minimum temperature [K] |
Solve a saturation point for a pure component.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ArModel), | intent(in) | :: | model |
Thermodynamic model |
||
integer, | intent(in) | :: | ncomp |
Component index |
||
integer, | intent(in) | :: | nc |
Total number of components |
||
real(kind=pr), | intent(inout) | :: | X(4) |
Variables |
||
integer, | intent(in) | :: | ns |
Variable index to solve. If the |
||
real(kind=pr), | intent(in) | :: | S |
Variable value specified to solve |
||
real(kind=pr), | intent(out) | :: | F(4) |
Function |
||
real(kind=pr), | intent(out) | :: | dF(4,4) |
Jacobian |
||
real(kind=pr), | intent(out) | :: | dFdS(4) |
Derivative of the function with respect to S |
||
integer, | intent(out) | :: | its |
Number of iterations |