PXEnvel3 Derived Type

type, public :: PXEnvel3

PXEnvel3

Three-phase envelope at constant temperature. Each array stores one value per envelope point.

Description

Phase composition arrays use (point, component) indexing. The pressure, feed interpolation coordinate, phase fractions, and phase compositions correspond by point index.

Examples

print *, envelope%alpha, envelope%P, envelope%beta

Components

Type Visibility Attributes Name Initial
real(kind=pr), public, allocatable :: P(:)

Pressure [bar]

real(kind=pr), public, allocatable :: S(:)

Specified value to solve point i

real(kind=pr), public :: T

Temperature [K]

real(kind=pr), public, allocatable :: alpha(:)

Mole fraction of other fluid

real(kind=pr), public, allocatable :: beta(:)

Mole fraction between phase x and phase y

integer, public, allocatable :: ns(:)

Specified variable to solve point i

real(kind=pr), public, allocatable :: w(:,:)

Mole fraction of phase w

real(kind=pr), public, allocatable :: x(:,:)

Mole fraction of phase x

real(kind=pr), public, allocatable :: y(:,:)

Mole fraction of phase y