Computations
Kjetil B. Haugen and Abbas Firoozabadi
Chemical Engineering Dept., Mason Laboratory, Yale University, New Haven, CT 06520
Lixin Sun
Reservoir Engineering Research Institute (RERI), 595 Lytton Ave., Palo Alto, CA 94301
DOI 10.1002/aic.12452
Published online December 15, 2010 in Wiley Online Library (wileyonlinelibrary.com).
The combination of successive substitution and the Newton method provides a robust
and efcient algorithm to solve the nonlinear isofugacity and mass balance equations
for two-phase split computations. The two-phase RachfordRice equation may sometimes introduce complexity, but the Newton and bisection methods provide a robust solution algorithm. For three-phase split calculations, the literature shows that the computed three-phase region is smaller than measured data indicate. We suggest that an
improved solution algorithm for the three-phase RachfordRice equations can address
the problem. Our proposal is to use a two-dimensional bisection method to provide
good initial guesses for the Newton algorithm used to solve the three-phase Rachford
Rice equations. In this work, we present examples of various degree of complexity to
demonstrate powerful features of the combined bisection-Newton method in threephase split calculations. To the best of our knowledge, the use of the bisection method
in two variables has not been used to solve the three-phase RachfordRice equations
C 2010 American Institute of Chemical Engineers AIChE J, 57: 25552565, 2011
in the past. V
Keywords: computational chemistry (kinetics/thermo), phase equilibrium
Introduction
Three phase-split computations are important in a variety
of chemical engineering problems, including reservoir performance and recovery studies. In such studies, phase behavior effects become important in two different ways; the
transfer of species between the phases, and the effect of
change in phase composition on phase volumes, viscosity,
and interfacial tension. While in the past, the focus has been
on two-phase compositional simulation, there are important
needs for three-phase compositional models for the injection
of CO2, steam, steam-additives, and solvents. Due to the
high solubility of CO2 in both oil and water phases, and the
resulting density increase, rigorous three-phase compositional
modeling can be crucial to determine the breakthrough of
CO2 and its proper distribution in the reservoir. In some
Correspondence concerning this article should be addressed to A. Firoozabadi at
abbas.roozabadi@yale.edu.
C 2010 American Institute of Chemical Engineers
V
AIChE Journal
2555
DOI 10.1002/aic
Problem Formulation
In a three-phase split calculation, we seek three different
phases in thermodynamic equilibrium, i.e., the fugacity of
each component is the same in all three phases,
fxi fyi fzi ;
i 1 N:
(1)
i 1 N;
i 1 N;
(2)
RRy
RRz
N
P
i1
N
P
i1
ni Kyi 1
0;
(3)
0:
AIChE Journal
Solution Procedure
Our three-phase split algorithm is divided into the following steps:
1. Initial estimate of the equilibrium ratios: The initial
estimate can be obtained from correlations, stability analysis
or previous time steps.
2. Two-dimensional bisection: The algorithm is used to
obtain an initial guess for the phase fractions from the equilibrium ratios.
3. Successive substitution: The method updates the phase
fractions and equilibrium ratios iteratively. Note that within
each successive substitution the RachfordRice equations are
solved by the Newton method. In other words, the twodimensional bisection algorithm is only applied once, i.e.,
before the rst successive substitution.
4. Newton method: Once the switching criterion is
met, the successive substitution algorithm is abandoned
and the Newton method is used on the system of equations formed by the iso-fugacity and RachfordRice equations. The method is used until the convergence criterion
is met.
AIChE Journal
Figure 2. A cartoon showing how a triangle (top) is divided in two by connecting the midpoint of
the hypotenuse and the opposite corner
(middle).
A subtriangle is discarded (bottom) if either three-phase
RachfordRice equation does not change sign on its three
corners.
DOI 10.1002/aic
2557
Figure 3. A cartoon showing how the bisection algorithm quickly locates the solution when the
lines dened by RRy 5 0 and RRz 5 0 intersect at a sufciently large angle.
Figure 4. A cartoon showing how the bisection algorithm fails to nd the solution when the lines
dened by RRy 5 0 and RRz 5 0 are essentially parallel.
2558
DOI 10.1002/aic
AIChE Journal
Table 1. Mole Fractions (xi, yi, and zi) and Phase Fractions (bj) for a LiquidGasWater Example
ni
C2
C3
C4
H2O
bj
xi
0.20
0.50
0.20
0.10
yi
2
6.7344 10
5.0745 101
4.2509 101
1.1495 104
0.2823
1
2.9260 10
5.7674 101
1.2932 101
1.3308 103
0.6185
zi
Kiy
Kiz
1
0.0991
4.3449
1.1366
0.3042
11.577
8699.3
The labels x, y, and z refer to rst liquid, gas, and water phases, respectively. Feed mole fractions (ni) and equilibrium ratios (Kiy and Kiz) are from Michelsen.5
(5)
(6a)
(6b)
where
(7)
Here ~
D contains the increments of our primary variables,
i.e.,
2
3
D ln Kyi
6 Db
7
y
~
7
D6
(8)
4 D ln Kzi 5;
Dbz
yi
6 @ @e
6 h ln Kyj i
6 @RRy
6
6 @ ln Kyj
i
J 6h
6 @ezi
6 h@ ln Kyj i
6
4 @RRz
@ ln K yj
@eyi
h @by i
@RRy
@by
@ezi
@by
@RRz
@by
@eyi
h@ ln Kzj i
@RRy
@ ln K zj
@ezi
@ ln K zj
@RRz
@ ln K zj
i
i
@eyi
7
h @bz i 7
@RRy 7
7
@bz 7
i 7:
7
h
i7
7
@RRz 5
(9)
@ezi
@bz
@bz
Two-Dimensional Bisection
When the equilibrium ratios are kept constant, each threephase RachfordRice equation is a function of two independent variables, i.e., by and bz. The solution to these equations
will therefore form a line in the by-bz -plane (see Figure 1).
Table 2. Mole Fractions (xi, yi, and zi) and Phase Fractions (bj) for a LiquidLiquidGas Example
C1
C2
C3
CO2
H2S
bj
ni
xi
yi
zi
Kiy
Kiz
0.66
0.03
0.01
0.05
0.25
1.0014 101
1.5340 102
4.1399 103
7.3085 102
8.0729 101
0.2422
9.7613 101
4.3470 103
1.6052 104
1.2983 102
6.3769 103
0.3873
6.9548 101
6.6386 102
2.4111 102
7.3598 102
1.4043 101
0.3706
9.7474
0.2834
0.0388
0.1776
0.0079
6.9448
4.3275
5.8241
1.0070
0.1740
The labels x, y, and z refer to rst liquid, gas, and second liquid phases, respectively. Feed mole fractions (ni) and equilibrium ratios (Kiy and Kiz) are from
Michelsen.5
AIChE Journal
DOI 10.1002/aic
2559
Table 3. Mole Fractions (xi, yi, and zi) and Phase Fractions (bj) for a LiquidLiquidSolid Example
ni
C1
C2
C3
CO2
H2S
bj
xi
yi
2
1
9.7801 10
7.7979 103
1.9961 103
5.1475 102
8.4093 101
0.1896
0.66
0.03
0.01
0.05
0.25
7.9150 10
3.5193 102
1.1872 102
4.9655 102
1.1178 101
0.8104
zi
Kiy
Kiz
8.0930
4.5132
5.9477
0.9646
0.1329
15.318
1.1972
The labels x, y, and z refer to rst liquid, second liquid, and solid phases, respectively. Feed mole fractions (ni) and equilibrium ratios (Kiy and Kiz) are from
Michelsen.5
N
P
i1
N
P
i1
ni Kyi 1
0;
0:
(10)
Table 4. Feed Mole Fractions (n), Critical Temperatures TC, Critical Pressures PC, Acentric Factors x and Nonzero Binary
Interaction Coeffcients kij for Sour Gas
Component
CO2
N2
H2S
C1
C2
C3
2560
TC (K)
PC (bar)
ki,CO2
ki,N2
ki,H2S
0.7059
0.0703
0.0197
0.0686
0.1056
0.0297
304.2
126.2
373.2
190.6
305.4
369.8
73.9
33.5
89.4
45.4
48.2
41.9
0.225
0.040
0.081
0.008
0.098
0.152
0.020
0.120
0.125
0.135
0.150
0.200
0.031
0.042
0.091
0.100
0.080
0.080
DOI 10.1002/aic
AIChE Journal
AIChE Journal
Results
The challenge of nding a good initial guess for the threephase RachfordRice equation is nearly ignored in the literature. One notable exception is Michelsen5 who obtains phase
fractions from the minimization of an alternative objective
function. The approach is valid for any number of phases.
Moreover, as the objective function is convex, a unique solution is guaranteed to exist. Michelsen argues that the main
complexity of calculating the phase distribution in multiphase problems is that phases may appear or disappear
DOI 10.1002/aic
2561
2562
DOI 10.1002/aic
phase fractions for the rst successive substitution. Subsequent iterations use phase fractions from the previous iteration as initial guesses.
Michelsen5 provides the results of four example calculations. In addition to feed compositions and phase fractions,
he also reports the fugacity coefcients of each component
in all phases for each mixture. After choosing a reference
phase, the information can be used to calculate equilibrium
ratios. We can then compare Michelsens results to those
AIChE Journal
Table 5. Feed Mole Fractions (n), Critical Temperatures TC, Critical Pressures PC, Acentric Factors x and Nonzero Binary
Interaction Coeffcients kij for Oil B
Component
CO2
N2
C1
C2
C3
iC4
nC4
iC5
nC5
C6
PC1
PC2
PC3
PC4
PC5
PC6
TC (K)
PC (bar)
ki,CO2
ki,N2
ki,C1
0.0011
0.0048
0.1630
0.0403
0.0297
0.0036
0.0329
0.0158
0.0215
0.0332
0.1813
0.1614
0.1253
0.0954
0.0579
0.0228
304.2
126.2
190.6
305.4
369.8
408.1
425.2
460.4
469.6
506.4
566.6
647.1
719.4
784.9
846.3
919.4
73.9
33.5
45.4
48.2
41.9
36.0
37.5
33.4
33.3
33.9
25.3
19.1
14.2
10.5
7.5
4.8
0.225
0.040
0.008
0.098
0.152
0.176
0.193
0.227
0.251
0.299
0.389
0.529
0.691
0.878
1.101
1.448
0.020
0.075
0.080
0.080
0.085
0.085
0.085
0.085
0.095
0.095
0.095
0.095
0.095
0.095
0.095
0.080
0.070
0.070
0.060
0.060
0.060
0.060
0.050
0.100
0.120
0.120
0.120
0.120
0.120
0.003
0.010
0.018
0.018
0.025
0.026
0.036
0.049
0.073
0.098
0.124
0.149
0.181
(1) Sour gas from Robinson et al.23 with the modied composition from Pan and Firoozabadi,24 (2) Oil B from Shelton
and Yarbourough,25 (3) Maljamar separator oil from Orr
et al.,26 and (4) Maljamar reservoir oil also from Orr et al.26
We provide the composition, critical properties, acentric factors, and nonzero binary interaction coefcients for the oils
in Tables 47.
The sour gas has the largest three-phase region of the
four petroleum uids (see Figure 9). Its three-phase envelope is terminated at three points where the three singlephase regions touch the three-phase boundary. The same
three points separate the three two-phase regions. The sour
gas phase diagram is the most complex in the sense that it
contains all possible equilibrium states. On the other hand,
there are no bicritical points. Therefore, the sour gas threephase envelope is the easiest one to compute. Figure 5
shows variations in phase fractions for a given feed composition.
Oil B has a fairly narrow three-phase region (see Figure
10). Unlike the sour gas, there is a bicritical point on the
three-phase boundary. Our three-phase split algorithm is able
to get very close to either side of the bicritical point. The
three-phase envelope for Oil B is fundamentally different
from that of the sour gas. It is terminated at only two points,
i.e., the bicritical point where the vapor and one of the liquid
phases become indistinguishable and the point where the single liquid phase region touches the three-phase boundary.
Figure 6 shows an example of how phase fractions change
across the three-phase region.
Table 6. Feed Mole Fractions (n), Critical Temperatures TC, Critical Pressures PC, Acentric Factors x and Nonzero Binary
Interaction Coeffcients kij for the Maljamar Separator Oil
Component
CO2
C57
C810
C1114
C1520
C2128
C29
AIChE Journal
TC (K)
PC (bar)
ki,CO2
0.2354
0.3295
0.1713
0.1099
0.0574
0.0965
304.2
516.7
590.0
668.6
745.8
812.7
914.9
73.9
28.8
23.7
18.6
14.8
12.0
8.5
0.225
0.265
0.364
0.499
0.661
0.877
1.279
0.115
0.115
0.115
0.115
0.115
0.115
DOI 10.1002/aic
2563
TC (K)
PC (bar)
ki,CO2
ki,C1
0.2939
0.1019
0.0835
0.0331
0.1204
0.1581
0.0823
0.0528
0.0276
0.0464
304.2
190.6
305.4
369.8
425.2
516.7
590.0
668.6
745.8
812.7
914.9
73.8
45.4
48.2
41.9
37.5
28.8
23.7
18.6
14.8
12.0
8.5
0.225
0.008
0.098
0.152
0.193
0.265
0.364
0.499
0.661
0.877
1.279
0.115
0.115
0.115
0.115
0.115
0.115
0.115
0.115
0.115
0.115
0.045
0.055
0.055
0.060
0.080
0.280
Acknowledgments
As for Oil B, the three-phase envelope is terminated at a
bicritical point and at the point where a single liquid-phase
region touches the three-phase boundary. Therefore, the
three-phase envelope for the Maljamar separator oil can be
perceived as lying between those of the sour gas and Oil B.
As we will discuss shortly, our computed three-phase envelope is wider than those detected by other authors. The reason may be that when the three-phase region becomes very
narrow, the phase fractions change rapidly with composition
and pressure. Consequently, the phase fractions from one
three-phase split calculation is not necessarily a good guess
for the next one. In our approach, the problem is alleviated
by using two-dimensional bisection to provide the initial
guess. Figure 7 shows phase fraction variations near the
bicritical point.
The three-phase region associated with the Maljamar reservoir oil is completely immersed in a two-phase region (see
Figure 12). This is due to the fact that the three-phase region
is terminated by two bicritical points. There is, therefore, a
smooth transition between the two two-phase regions at
either extreme of the three-phase region. Figure 8 shows
variations in phase fractions for a xed feed composition
(Figure 8).
In the past, a number of authors have computed the
three-phase region for Oil B.15,16,27 Nghiem and Li,15 and
Cultinho et al.16 compute a narrower region for the threephase region than we do. Nichita et al.27 do a ne job
except toward the bicritical point on the right side of
Figure 6 and they fail to detect the single phase liquid at
the extreme right in.11 For the Maljamar separator oil, Cultinho et al.16 show a termination of the three-phase region
to the left different from ours. Perschke28 computes a
much narrower three-phase region than we do.
Concluding Remarks
There are two ways of solving the three-phase split problem. One approach is based on minimization techniques.
Another approach is based on a direct solution of the
RachfordRice expressions. In this work, we show that a
combination of a two-dimensional bisection technique and
Newtons method provides a robust and efcient solution
algorithm for the second approach. The robustness is demonstrated by consistent phase diagrams, which is perhaps the
2564
DOI 10.1002/aic
This work was supported by the member companies of the Reservoir Engineering Research Institute (RERI). Their support is greatly
appreciated.
Notation
~
e
f
J
K
N
n
RR
x
y
z
b
~
D
vector of residuals
fugacity
Jacobian
equilibrium ratio
number of components
feed mole fraction
RachfordRice residuals
mole fraction (rst phase)
mole fraction (second phase)
mole fraction (third phase)
phase fraction
vector of updates of the independent variables for the Newton
method
/ fugacity coefcient
Subscripts
i
x
y
z
component label
phase label (rst phase)
phase label (second phase)
phase label (third phase)
Literature Cited
1. Michelsen M. The isothermal ash problem. I. Stability. Fluid Phase
Equilib. 1982;9:1.
2. Michelsen M. The isothermal ash problem. II. Phase-split calculation. Fluid Phase Equilib. 1982;9:21.
3. George B, Brown J, Farmer C, Buthod P, Manning F. Computation
of multicomponent, multiphase equilibrium. Ind Eng Chem Process
Des Dev. 1976;15:372.
4. Mauri C. Unied procedure for solving multiphase-multicomponent
vapor-liquid equilibrium calculation. Ind Eng Chem Process Des
Dev. 1980;19:482.
5. Michelsen M. Calculation of multiphase equilibrium. Comput Chem
Eng. 1994;18:545.
6. Leibovici C, Neoschil J. A solution of Rachford-Rice equations for
multiphase systems. Fluid Phase Equilib. 1995;112:217.
7. Michelsen M, Mllerup J. Thermodynamic Models: Fundamentals
and Computational Aspects. Holte, Denmark: Tie-Line Publications,
2004.
8. Ohanomah M, Thompson D. Computation of multicomponent phase
equilibriapart III. Multiphase equilibria. Comput Chem Eng.
1984;8:163.
9. Nelson P. Rapid phase determination in multiple-phase ash calculations. Comput Chem Eng. 1987;11:581.
AIChE Journal
AIChE Journal
DOI 10.1002/aic
2565