MPEquilibriumState_from_X Function

public function MPEquilibriumState_from_X(nc, np, z, kinds_x, kind_w, X)

MPEquilibriumState_from_X

Function to create a MPEquilibriumState from the vector of variables X used in the multiphase generalized isopleths methods.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: nc

Number of components

integer, intent(in) :: np

Number of phases - 1

real(kind=pr), intent(in) :: z(nc)

Global composition

character(len=14), intent(in) :: kinds_x(np)

Kinds of the main phases

character(len=14), intent(in) :: kind_w

Kind of the reference phase

real(kind=pr), intent(in) :: X(nc*np+np+1+2)

Vector of variables. The first nc*np elements are the equilibrium constants for each phase and component, the next np+1 elements are the mole fractions of the main phases (), and the last two elements are and .

Return Value type(MPEquilibriumState)


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: K(np,nc)
real(kind=pr), public :: P
real(kind=pr), public :: T
real(kind=pr), public :: betas(np+1)
integer, public :: l
integer, public :: lb
integer, public :: ub
real(kind=pr), public :: w(nc)
real(kind=pr), public :: x_l(np,nc)