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


Called by

proc~~rachford_rice~~CalledByGraph proc~rachford_rice rachford_rice proc~solve_rr solve_rr proc~solve_rr->proc~rachford_rice proc~flash flash proc~flash->proc~solve_rr proc~flash_no_beta_limits flash_no_beta_limits proc~flash_no_beta_limits->proc~solve_rr

Variables

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