Psat Function

public function Psat(eos, ncomp, T)

Calculation of saturation pressure of a pure component using the secant method.

Arguments

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

Model that will be used

integer, intent(in) :: ncomp

Number of component in the mixture from which the saturation pressure will be calculated

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

Temperature [K]

Return Value real(kind=pr)


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: P1
real(kind=pr), public :: P2
real(kind=pr), public :: f1
real(kind=pr), public :: f2
real(kind=pr), public :: n(size(eos))

Functions

function diff(P)

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: P

Return Value real(kind=pr)