yaeos__equilibria_saturation_points Module



Variables

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

Functions

public function saturation_pressure(model, n, t, kind, p0, y0, max_iters)

Saturation pressure calculation function.

Read more…

Arguments

Type IntentOptional 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

Return Value type(EquilibriumState)

public function saturation_temperature(model, n, p, kind, t0, y0, max_iters)

Saturation temperature calculation function.

Read more…

Arguments

Type IntentOptional 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

Return Value type(EquilibriumState)