rachford_rice Subroutine

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

rachford_rice

Description

Rachford-Rice equation for a two phase system. This equation is used to calculate the value that satisfies the mass balance between two phases.

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(in) :: beta

value

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

Rachford-Rice function value

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

Derivative of the Rachford-Rice function


Variables

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