yaeos__equilibria_auxiliar Module

Auxiliar functions used for phase-equilibria calculation.



Functions

public function P_wilson(model, z, T) result(P)

Calculate the pressure at a given T of a mixture using the Wilson equation.

Read more…

Arguments

Type IntentOptional Attributes Name
class(BaseModel), intent(in) :: model

Model of the mixture.

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

Mole fractions of the components.

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

Temperature [K].

Return Value real(kind=pr)

public function k_wilson(model, T, P) result(K)

K-factors regression done by Wilson, used for initialization.

Read more…

Arguments

Type IntentOptional Attributes Name
class(BaseModel), intent(in) :: model
real(kind=pr), intent(in) :: T
real(kind=pr), intent(in) :: P

Return Value real(kind=pr), (size(model%components%pc))