Contents - Index - Previous - Next


AB_MIX_PR

 

Procedure AB_MIX_PR returns the Peng-Robinson constants A and B for a a mixture of two or more (up to 10) fluids.  The procedure definition is

 

Procedure AB_MIX_PR(N, y[1..N], A[1..N], B[1..N], k[1..N,1..N]: A, B)

 

where 

 

    N is the number of fluids forming the mixture.  N must be between 2 and 10 

    y[1..N] is an array of mole fractions of the N components in the mixture.  

    A[1..N] is an array of N values corresponding to the A parameters for each of the N pure fluids.  These values are provided by AB_PR. 

    B[1..N] is an array of N values corresponding to the B parameters for each of the N pure fluids.  These values are provided by AB_PR. 

    k[1..N,1..N] is the binary interaction matrix.  Note that k[i,i] should be 0 and k[i,j] should be equal to k[j,i]. 

 

Note that the sum of the mole fraction should be 1.0 and y here could refer to the composition of the liquid or vapor phase. 

 

The binary interaction matrix must be supplied even if all values are 0.

 

Use the Call keyword to access procedure AB_MIX_PR from EES.  

 

Example:

    Call AB_MIX_PR(2, X[1..2], A[1..2], B[1..2], k[1..2,1..2] : A, B)

 

 

Peng-Robinson Index