stability_check Subroutine

private subroutine stability_check(model, z0, zi, Pc, Vc, Tc, a, unstable, y_other, V_other)

stability_check

Description

Check the stability of a point in the critical line. The stability is determined by tpd analysis.

Arguments

Type IntentOptional Attributes Name
class(ArModel), intent(in) :: model

Equation of state model

real(kind=pr), intent(in) :: z0(:)

Molar fractions of the first fluid

real(kind=pr), intent(in) :: zi(:)

Molar fractions of the second fluid

real(kind=pr), intent(in) :: Pc

Pressure [bar]

real(kind=pr), intent(in) :: Vc

Volume [L/mol]

real(kind=pr), intent(in) :: Tc

Temperature [K]

real(kind=pr), intent(in) :: a

Molar fraction of the second fluid

logical, intent(out) :: unstable

Stability of the point)

real(kind=pr), intent(out) :: y_other(:)

Molar fractions of the second fluid

real(kind=pr), intent(out) :: V_other

Volume [L/mol]


Variables

Type Visibility Attributes Name Initial
real(kind=pr), private :: P
real(kind=pr), private :: dy
logical, private :: first
real(kind=pr), private :: fug_y(2)
real(kind=pr), private :: fug_z(2)
integer, private :: istab
integer, private :: istab0
logical, private :: possible
real(kind=pr), private :: tpd
real(kind=pr), private :: y(2)
real(kind=pr), private :: z(2)