betalimits Subroutine

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

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

This is based on the assumtion that either and .

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


Variables

Type Visibility Attributes Name Initial
real(kind=pr), public, dimension(size(z)) :: vmax
real(kind=pr), public, dimension(size(z)) :: vmin