Contents - Index - Previous - Next


PHI_I_PR

 

PHI_I_PR(N, i, Z, y[1..N], A[1..N], B[1..N], k[1..N,1..N]) returns the partial fugacity coefficient (ratio of partial fugacity to product of mole fraction and pressure) component i in a mixture according to the Peng-Robinson equation of state.  Use function PHI_PR to determine the fugacity coefficient for a pure fluid.

 

The parameters in this function are:

N  is the number of fluids in the mixture  where N is between 2 and 10

i is the number of the component for which the partial fugacity is to be evaluated

Z is the compressibility for the liquid or vapor phase for which the partial fugacity is to be evaluated

y[1..N] is an array of N values that are the mole fractions of the N components for the liquid or vapor phase.  Note that the sum of the mole fraction should be 1.0.

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 Z is determined by functions Z_G_PR and Z_L_PR and A[1..N] and B[1..N] are provided by procedure AB_PR for each of the N pure fluids.

 

 

Peng-Robinson Index