MPEquilibriumState Derived Type

type, public :: MPEquilibriumState

MPEquilibriumState

Result of a multiphase equilibrium calculation.

Description

Holds the feed, conditions, main-phase compositions and kinds, plus a reference phase used in the generalized multiphase formulation.

Examples

integer :: phase
result = pt_mp_flash(model, z, P, T)
do phase = 1, result%np
   print *, result%kinds_x(phase), result%x_l(phase, :)
end do

Inherited by

type~~mpequilibriumstate~~InheritedByGraph type~mpequilibriumstate MPEquilibriumState type~generalizedisozline GeneralizedIsoZLine type~generalizedisozline->type~mpequilibriumstate points

Components

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

Pressure [bar]

real(kind=pr), public :: T

Temperature [K]

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

Phase fractions: np main phases followed by the reference phase

character(len=14), public :: kind_w

Kind of the reference phase

character(len=14), public, allocatable :: kinds_x(:)

Kinds of the main phases

integer, public :: np

Number of main phases (excluding the reference phase)

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

Mole fractions of the reference phase

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

Mole fractions of the main phases, shape (np, nc)

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

Global composition