yaeos__equilibria_rachford_rice Module



Subroutines

public subroutine betalimits(z, K, bmin, bmax)

Define beta limits to avoid overshooting when solving the Rachford-Rice equation.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: z(:)

Molar fractions vector

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

K-factors

real(kind=pr), intent(out) :: bmin

Minimum beta value

real(kind=pr), intent(out) :: bmax

Maximum beta value

public subroutine betato01(z, K)

Modify K-factor values to assure that lies between (0,1)

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: z(:)

Molar fractions of the system

real(kind=pr) :: K(:)

K factors

public subroutine rachford_rice(z, K, beta, rr, drrdb)

Rachford-Rice equation for a two phase system

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: z(:)
real(kind=pr), intent(in) :: K(:)
real(kind=pr), intent(in) :: beta
real(kind=pr), intent(out) :: rr
real(kind=pr), intent(out) :: drrdb

public subroutine solve_rr(z, K, beta, beta_min, beta_max)

Solve the Rachford-Rice Equation.

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: z(:)

Mole fractions vector

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

K-factors

real(kind=pr), intent(out) :: beta

value

real(kind=pr), intent(out) :: beta_min

Lower limit for

real(kind=pr), intent(out) :: beta_max

Upper limit for