Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | iters_first_step | = | 15 | ||
integer, | public | :: | max_iterations | = | 2000 | ||
real(kind=pr), | public | :: | step_tol | = | 0.1_pr | ||
real(kind=pr), | public | :: | tol | = | 1e-6_pr |
Saturation pressure calculation function.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ArModel), | intent(in), | target | :: | model | ||
real(kind=pr), | intent(in) | :: | n(:) |
Composition vector [moles / molar fraction] |
||
real(kind=pr), | intent(in) | :: | t |
Temperature [K] |
||
character(len=*), | intent(in) | :: | kind |
[bubble|dew|liquid-liquid] |
||
real(kind=pr), | intent(in), | optional | :: | p0 |
Initial pressure [bar] |
|
real(kind=pr), | intent(in), | optional | :: | y0(:) |
Initial composition |
|
integer, | intent(in), | optional | :: | max_iters |
Maximum number of iterations |
Saturation temperature calculation function.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ArModel), | intent(in), | target | :: | model | ||
real(kind=pr), | intent(in) | :: | n(:) |
Composition vector [moles / molar fraction] |
||
real(kind=pr), | intent(in) | :: | p |
Pressure [bar] |
||
character(len=*), | intent(in) | :: | kind |
[bubble|dew|liquid-liquid] |
||
real(kind=pr), | intent(in), | optional | :: | t0 |
Initial temperature [K] |
|
real(kind=pr), | intent(in), | optional | :: | y0(:) |
Initial composition |
|
integer, | intent(in), | optional | :: | max_iters |
Maximum number of iterations |