PurePsat Derived Type

type, public :: PurePsat


Components

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

Type-Bound Procedures

procedure, public :: get_P

  • public function get_P(pt, T) result(P)

    Get the saturation pressure for a given temperature.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PurePsat), intent(inout) :: pt
    real(kind=pr), intent(in) :: T

    Return Value real(kind=pr)

procedure, public :: get_T

  • public function get_T(pt, P) result(T)

    Get the saturation temperature for a given pressure.

    Read more…

    Arguments

    Type IntentOptional Attributes Name
    class(PurePsat), intent(inout) :: pt
    real(kind=pr), intent(in) :: P

    Return Value real(kind=pr)