Professional Documents
Culture Documents
BY
Fawzl M. Guehrla
Leslie G. Thompson
Albert C. Reynolds
Tulsa University
100-1
SfE 21588
100-2
RE 21588
100-3
SPE 21588
He
partial fugacity of component i in the phase. The resulting
LXi = 1, (I7.2a)
expression 888umes the following generalized form: i=1
(17.2b)
Equation (14) represents the partial fugacity of com- where h,L is the fugacity of component i in the liquid
ponent i for the SW EOS. It reduces to the PR, SRK and phase at pressure p and temperature T and h,v is the
RK and ZJRK cases by setting Wi - W = 0 and by us- fugacity of component i in the vapor phase at pressure
ing the appropriate coefficients Am, Bm (Eqs. (12.1) and p and temperature T.
(12.2)), U and W. This equation will be used throughout We have chosen to use Eq. (18) as our criterion for
the remainder of this work. thermodynamic equilibrium since fugacities are easily ob-
tainable as functions of pressure, temperature and compo-
THE MODIFIED SUCCESSIVE SUBSTITUTION METHOD sition from an Equation of State.
Nghiem et al. 6 used the modified successive substi-
The condition of thermodynamic equilibrium between
tution method for the SRK EOS. In our phase package,
coexisting phases is described by the following mathemat-
ical equations: we have successfully implemented the successive substitu-
(i) The overall material balance: tion method for all EOS's considered here. This method
may be used for detecting the single phase region or per-
L+ V = 1, (15) forming flash calculations. Its main disadvantage is that it
converges slowly (or not at all) in the neighborhood of the
where L is the moles of liquid per mole of fluid mixture critical point. Whenever this problem occurs, the program
and V is the moles of vapor per mole of fluid mixture. switches automatically to the robust MVNR (Minimum
(ii) The component material balance: Variable Newton-Raphson) method.
We now provide a brief description of the Successive
Zi = LXi + V'!Ii, (I6)
Substitution Method. Equations (15), (16), (17.1) and
where {Zi} f.; 1 is the mole fraction composition of the (17.2a) or (17.2b) can be combined to give:
100-4
SP.E 21588
It is easy to see that the equilibrium K - values are If r(O) > 0 and r(1) < 0 solve Eq. (19.5) for V.
related to the fugacities via the following equation : (7) Update Xi and Yi from Eqs.(19.1) and (19.2) and go
to step (4)
In the single phase region, where V = 0 or V = I, the
Ki = (J;,L/ XiP) = Fi Yi • (19.4)
(J;,v /YiP) Xi
F;'s may converge to a value different than unity. Nghiem
et al. 6 suggest iterating until Eq.(20.2) is satisfied even in
A major step in the successive substitution method is single phase cases. However, in all computations we have
the solution of
done, if r(O) < 0 (or r(l) > 0) at the second iteration (i.e.,
N. N. N. z.(K- _ 1) at the first application of steps (4) and (5), then r(O) < 0
r(V) = LYi - LXi =L " =0 (19.5) (or r(1) > 0) at all subsequent iterations.
i=1 i=1 i=1 1 + V(Ki - 1)
The advantage of this procedure is that it allows us
for V. to detect the single phase region. Our phase package also
uses this technique to provide a reasonable initial guess for
Successive Substitution Algorithm
the MVNR method. In Eq. (20.2), we have normally used
First iteration 7
£ = 10- for the error tolerance.
(1) Compute initial estimate of Ki from the following
semi-theoretical equation 14: MVNR METHOD
100-5
seE 21588
Successive Substitution method (described above) with a The dew point calculation analog of Eq.(21.2a) is
large value of f ( R: 10- 3 ) in Eq. (20.2) to obtain our initial
guess for the phase compositions. (21.2b)
While an "upper"saturation point (bubble or dew)
will always exist for a tw<>-phase mixture, the existence of The method involves the following steps:
a "lower" dew point pressure is dependent on the shape of (1) pick a low pressure (e.g., 1 psi)
the tw<>-phase envelope on a p- T diagram. For all practical (2) Compute tPi,V and tPi,L at the pressure of the new
purposes, petroleum engineers are only interested in min- iteration level using the composition from the old it-
imum pressures in excess of a few hundred psi. Thus, we eration level.
have designed the following simple method of determining (3) Evaluate the unknown phase composition using Eq.
(a) whether the "upper" saturation pressure is a bubble or (21.2a) for bubble point or Eq. (21.2b) for dew point.
dew point pressure; and (b) whether we will encounter the If L~l Xi,m < 1 then the assumed pressure is too
lower dew point pressure over normal operating pressures. high, if not, the assumed pressure is lower than the
(This information is vital in modeling the behavior of flow saturation pressure.
of multiple hydrocarbon components in a porous medium, (4) Correct the pressure in accordance with step (3). Baker
where in 8itu fluid composition varies continuously with and Luks 15 recommend an increment of 100 to 300 psi.
time.) At this stage, a bisection type method may be used
Assuming that a tw<>-phase region exists at the system to narrow the search range.
temperature (i.e., system temperature is to the left of the (5) Repeat steps (2) - (4) until convergence.
cricondentherm on a p-T diagram), the method consists The resulting phase composition and pressure is then
of the following steps: used to start the p - X or p - Y iteration of the MVNR
i) perform a Flash calculation (using the previously de- method. This procedure inevitably results in an "upper"
scribed modified successive substitution method) at saturation point. The "lower" dew point is obtained by
system temperature and a very high pressure (e.g., starting at the last Baker and Luks estimated "upper" sat-
10000 psi) so that we are assured of single phase fluid. uration point and modifying the criterion of step (3) above
This determines the location of the system tempera- in the following way: if Li Xi,m < 1, the guessed pressure
ture relative to the mixture critical temperature: i.e., is less than the lower dew point pressure; otherwise, the
if V = 1, the fluid is retrograde condensate; conversely pressure estimate is too high.
if V = 0 the fluid is black oil.
ii) Repeat Step (i) at the lowest anticipated system pres- MODEL VERIFICATION
sure; if 0 < V < 1, the lower dew point pressure is The package has been extensively tested for each Equa-
of no practical significance. Otherwise (if V = 1), the tion of State and here, we compare our results with pub-
lower dew point pressure must be determined. lished results.
The initial guess for determining upper and lower sat- Saturation points
uration points employs the following method due to Baker Tables (1) - (5) compare saturation point computa-
and Luks 15 . tions from three Equations of State, (ZJRK, PR and SW
The phase m partial fugacity coefficient is defined as: EOS).
One of the modifications made by Zudkevitch and
tP. - !;,m (21.1)
I,m - PXi,m· Joffe to the original RK EOS was expression of the van
der Waals coefficients Oa and Ob as functions of tempera-
For a bubble point calculation, the Xi'S are known (equal
ture and acentric factor. Table (1) shows the computation
to z;'s for the overall fluid mixture in-place) and the vapor
of the bubble point pressure (referred to simply as pres-
phase composition is given by
sure in table (1))and the composition of the forming gas in
a methane/butane/decane system, using the ZJRK EOS.
Yi = (PtPi,LXi) = (tPi'L) Xi, 1 ~i ~ Nc (21.2a)
(pt/Ji,V) tPi,V We used the same set of binary interaction parameters as
100-6
SPE 21588
ranging from 0 to 50%. In both cases, our phase pack- am Attraction parameter in the generalized EOS for mul-
age yields results that agree well with published data 18. tiphase systems, Eq.(4).
The results in column 2 of Tables (4) and (5) represent ai,i mixing rule parameter, Eq.(6).
Laboratory values. ai,m mixing rule parameter, Eq. (B2).
Flash calculations Am Cubic equation coefficient, Eq. (12.1).
Table (6) shows results for flash calculations on a ten bi Repulsion parameter of component i in the van der
component system over a range of pressure which included Waals EOS, Eq.(2).
the system critical point at 2810 psia and 162.2° F. The
bi,m mixing rule parameter as defined in Eq. (Bl).
SRK EOS was used and as expected, the SS method did
Bm Cubic equation coefficient, Eq. (12.2).
not converge near the critical region; however, the robust
MVNR predicted properties that agree closely with those
Ii,m Fugacity of component i in phase m.
of Ref. 6. Note that Ref. 6 uses Powell's method 19 ,2o Ii,L Fugacity of component i in the liquid phase.
instead of the MVNR. Equally good results were obtained Ii, v Fugacity of component i in the vapor phase.
with other mixtures presented in Ref. 6. Fi Ratio of fugacities, Eq. (19.3)
100-7
aeE 21588
k parameter in the Schmidt and Wensel EOS, Eq. (A4). i Component i.
Ki K - value of component i. j Component j.
L Number of moles of liquid per mole of fluid mixture. L Liquid phase.
M Molecular weight. m phase.
Nc Number of components in a mixture. mix Mixture.
Ni,m Number of moles of component i in phase m.
r Reduced property.
P System pl'etl8Ule, pai.
&at At saturation point.
Pc Critical pressure, pai.
Transpose.
Pc,i Critical pressure of component i, pai.
VP At vapor point.
R Universalgu constant.
V Vapor phase.
T System temperature, degree Rankine.
Tc Critical temperature, degree Rankine.
Superscript
Tc,i Critical temperature of component i, degree Rankine.
• Idealgu property.
Ui,m parameter uaed in differentiation, Eq.(B3).
U parameter in the generalized EOS, Eq.(8.1).
Greek notation
Vm Specific molar volume of phase m, ItS /llnnole.
Q Equation of State parameter, Eqs. (AI), (A2), (A3).
V Volume, ItS.
V Number of moles of vapor per mole of fluid mixture.
fJ parameter in the Schmidt - Wensel EOS, Eq. (A6).
Vc Critical volume, ItS. 6i,i Kroenecker delta.
W parameter in the generalized EOS, Eq. (8.2). o van der Waala coefficient, Eqa. (1), (2).
Xi Mole fraction of component i in the liquid phase. tPi,m Fugacity coefficient of component i in phase m, Eq.
Xi,m Mole fraction of component i in phase m. (21.1).
Jli Mole fraction of component i in the vapor phase. p Density, lbmole/ Its.
Zi Overall mole fraction of component. e parameter in the Schmidt - Wensel EOS, Eq. (A8).
Z Compressibility factor.
REFERENCES
Zm Compressibility factor of phase m.
Zt Compressibility factor of component i saturated liquid 1. Redlich, O. and Kwong, J.N.S.:"On the Thermody-
Zi,L Compressibility factor of the liquid phase of comp<>- gacities of Gaseous Solutions," Chemical Review8, Vol.
nent i. 44 (52-63).
2. Zudkevitch, D. and Joffe, J.:"Correlation and pre-
diction of Vapor-Liquid Equilibria with the R.edlich-
Subscripts
Kwong Equation of State," AIChE Journal, Jan. 1970,
a Relative to the parameter a.
(112-119).
b Relative to the parameter b.
3. Soave, G.:"Equilibrium Constants from a Modified
c Critical property. Redlich-Kwong Equation of State," Chemical Engi-
dew At dew point. neering Science, 1972, Vol. 27, (1197-1203).
100-8
SPE 21588
4. Peng, Ding-Yu and Robinson, D.B.:"A New Two - 17. Firoozabadi, Abbas: Reservoir - Fluid phase Be-
Constant Equation of State," Ind. Eng. Chern. Fund. havior and Volumetric prediction With Equation of
(1976) 59--64. State., JPT, April 1988,397-406.
5. Schmidt, G. and Wenzel, H.:"A Modified Van Der 18. Hong, C.: "Lumped-Component Characterization of
Waals Type Equation of State," Chern. Eng. Science, Crude Oils for Compositional Simulation," SPE DOE
Vol. 35, 1503-1512. 10691 241-245
6. Nghiem, L.X., Aziz, K. and Li, Y.K.:"A Robust Iter- 19. Powell, M. J. D.:"A Hybrid Method for Nonlinear
ative Method for Flash Calculations Using the Soave- Equations," Numerical Methods for Nonlinear
Algebraic Equations, T. Rabinowitz (ed.), Gordon
Redlich-Kwong or the Peng-Robinson Equation of
and Breach, London (1970).
State," SPEJ, June 1983,521-530.
20. Powell, M. J. D.:"A Fortran Subroutine for Solving
7. Fussell, D.D. and Yanosik, J.L.:"An Iterative Sequence
Systems of Nonlinear Algebraic Equations," Numer-
for phase-Equilibria Calculations Incorporating the
ical Methods for Nonlinear Algebraic Equa-
Redlich-Kwong Equation of State," SPEJ, June 1978,
tions, T. Rabinowitz (ed.), Gordon and Breach, Lon-
173-182.
don (1970).
8. Lohrenz, J., Bray, B.G. and Clark, C.R.:"Caiculating
21. Yarborough, Lyman: "Applications of A Generalized
Viscosities of Reservoir Fluids From Their Composi- Equation Of State to Petroleum Fluids," in: Equa-
tions," JPT, Oct. 1964,1171-1176. tions 0/ State in Engineering, Advances in Chemistry
9. J088i, J.A., Stiel, L.!. and Thodos, G.:"The Viscosity Series, 182 K. C. Chao and Robert L. Robinson, ed.,
of pure Substances in the Dense Gaseous and Liquid American Chemical Society, Washington, DC, (1979),
phases," AIChE Journal, March 1962, Vol. 8, No.1, 385-435.
59-62.
10. Heming, F. and Zipperer, L. :" Calculation of the Vis- ApPENDIX A
100-9
seE 21588
factor12 and with binary interaction parameter developed is solved for Pi. H an iterative method (such as Newton -
for the cases in hand. Raphson) is used to solve this cubic, then an initial guess
Soave Redlich Kwong EOS is provided via:
Here Q is given by:
with
kl = ko + (;0) (5Tr - 3ko - 1) 2
a;,m
N.
= L X I,mP(l- ki,l) n .. ,in .. ,IQiQI (Te,iT.,,)"
1=1
A~ (P.,iP.,I) Tn
k2 = ko + 0.71 (Tr - 0.779)2 (B2)
ko = {0.465 + 1.347w - 0.528w 2 ; if W ::; 0.3671; where m = Liquid or Vapor;
0.5361 + 0.9593w; if W > 0.3671
and
100-10
seE 21588
ah,m -f.
ap - ',m p {I 2
aZm
ap
+ aBm (U + v'U2 - 4W)
ap
2Zm + U Bm + Bm ';U2 - 4W
a 1 a
+ ap [bi,m (Zm - 1)]- Zm _ Bm ap (Zm - Bm) 2 aZm + aBm (U _ v'U2 _ 4W)
ap ap . (Bll)
+~ [Ui min (2Zm + UBm + Bm';U2 - 4W)] 2Zm + UBm - Bm';U2 - 4W '
ap' 2Zm + U Bm - Bm ';U2 - 4W
+ --ap
aWi,m}
, (BS)
(BI2)
where,
a [bi,m (Zm - 1)]
ap
= bi,m aaZm
p
(B6)
and (BI3)
aZm aZm aAm aZ aBm
- - = - - - - + -m
--- (B7)
ap aAm ap aBm ap .
Differentiating the cubic equation with respect to Am aA", Am
--=-;
and Bm, we get ap p
(BS) (BIS)
Note that U and W are functions of composition and All the equations derived above define the variation
not of pressure 80 that they are not affected by this differ- of the partial fugacity of both phases with respect to pres-
entiation process. sure, which appears in the Jacobian matrices of both the
p- % and the p - 11 iterations. The partial derivative of
~
ap
[u. ',m
In (2Zm + UBm + Bm';U2 - 4W)] _
2Zm + UBm - Bm';U2 - 4W -
the partial fugacity of vapor with respect to the gas mole
fraction composition which appears in the p - % iteration
Ui m~ [In (2Zm + UBm + Bm';U2 - 4W)] Jacobian is the same as the one developed below for the
'ap 2Zm + UBm - Bm';U2 - 4W L- % iteration.
100-11
RE 21588
1 a W . -
"Ne
L-,i=1 Wi%i f In
bo
"
.r
m,z - "",Ne 0.7 '
Z
v -
B a (Zv - Bv)
v 'II; ~i=1 Zi,mbi
a
+- [ U'V In (2ZV + UBv + BV";U2 - 4W)] then
a'll;" 2Zv + U Bv - Bv";U2 - 4W
au _
-3 [b
or "N.
; . ( W,. ~i=1 'IIi bO.
i
r "Ne
- ~i=1 WiYi bo.
2 '
i )
r 1
(BI7)
a'll; ("Ne
L.J,=1 '1
y.bo.r )
(B2S)
a a~
- [b iV (Zv -1)J
a'll; ,
=- (Zv -1)b· v b· v +b·v-·
"" "a'll; ,
Again, we have
aw au
(BlS) (B26)
a'll; = - a'll;'
where
ab· v
-"-
a'll;
= -b·vb·
' " ,v .
(BI9)
~ [. In (2Zv + UBv + BV";U2 - 4W)] _
Here Zv is a function of Av, Bv, U and W, which in turn a'll; u"m 2Zv + UBv - BV";U2 - 4W -
are all functions of the composition. Thus
u. ~ [In (2Zv + UBv + BV";U2 - 4W)]
az v v az aAv v az aBv az au az aw ',m a'll; 2Zv + UBv - BV";U2 - 4W
-a'll;- =- - -- + - - - - + - -v - - + - -v - -
aAv a'll; aBv a'll; au a'll; away;
(B20) + In (2ZV + U Bv + BV";U2 - 4W) (B27) aUi,m j
azv azv . 2Zv + UBv - BV";U2 - 4W a'll;
aA and aBv are given by Eqs.(BS) and (B9) re-
spectivel';..
aBv Oh,jpTc,j
a'll; = Tpc,j j
(B21) ~ [In (2Zv + UBv + BV";U2 - 4W)] =
a'll; 2Zv + UBv - BV";U2 - 4W
aA N.
a ~ = 2p E '11,(1 - k;,I)
Oo,jOo,IQ;QI (Tc,jTc,,)" .
(Pc,jPc,l) T" '
v
1 {az
.... 2-- + ( U + VU2 - 4W ) --
aBv
'II, 1=1 yay; a'll;
(B22)
UBU_2BW]
Now, the following expr_ions are only needed for the +Bv au + 8¥i ~
SW EOS. They are obtained from the cubic equation 4W
[ a'll; ";U2 -
- - + (v
U+U2 -4W ) --
v
- 2az aBv
azv X" a'll; ay;
(B23)
au = Y"' au UBU - 2BW]}
+Bv - - ~ ~ .
where [ a'll; ";U2 - 4W '
(B2S)
X" = - Bv Z~ + (2B~ + Bv) Zv - (B~ + B~ ) ,
where
and Y = 2Zv + UBv + Bv";U2 - 4W.
aWi v
aUi v .
X" = 3Z~ - 2 (Bv +1- U Bv ) Zv Finally, To evaluate
v'll;
~
and ~, we will need to
v'll;
+ (W B~ - U B~ - U Bv + Av) . apply the product rule to the derivatives of the parameters
developed and to the following,
Since U + W = 1 (see Eqs.(S.I) and(S.2)), then
azv azv
(B24)
aw au
+ (1 - ki,;)
Oa,iOa,;QiQ; (Tc,iTc,; r p2 ] . (B29)
(Pc,iPc,;) T"
100-12
SPE 21588
=~ [(1 - ki .)
All these expressiona allow us to find aa"'v for the
IIi aai,L
ax; AL oJ
L- % and the P - II iterationa. now we will evaluate aa/;,L
needed for the L - % and the p - % iterationa. We remind
the reader that here the %i is one of the iteration variables
%i
- ~ [(1-
AL
kl .)
oJ
a 1 a
+-a [bi,L (Zv -1)]- Z B a (Zv - Bv)
~ v- v ~
a
+- [
"iL
In (2Zv + UBv + Bvy=U"'2----4W=)]
a%i ' 2Zv + UBv - BV';U2 - 4W
+ aWi'L}. (B30)
a%i
(B33)
100-13
SPE 21588
TABLE 1
TABLE 2
100-14
"
SPE 21588
TABLE 3
TABLE 4
Computation of Saturation Point. for CO2 / C1 - C 1H
Penc - Robiuon EOS
Bubble Point
h,.ia)
with 0% CO2 UIU 1653
20% 1860 1857
40% 2088 2085
60% 2228 2234
65% 2637 2630
D_ Point
(peia)
with 60% CO2 2113 2110
65% 2487 2485
70% 3868 2865
75% 3182 3179
80% 3769 3773
100-15
SPE 21588
TABLE 5
Calculation of Saturation Points for N, - CO, / C 1 - C l 6+
Peng - Robinaon EOS
Bubble Point
(paia)
with 0% N, 3990 3993
5% 4742 4745
10% 5603 5606
15% 66(M 6608
20% 7787 7790
25% 9217 9221
Dew Point
(paia)
with 0% N, 3565 3567
10% 4080 4081
20% 4644 4646
30% 5259 5260
40% 5921 5924
50% 6609 6612
TABLE 6
Flash Calculatiou for 15 CompOlleM Oil
N, -CO, / C 1 - CT+
Soave - Recllida - Kwong EOS
Pressure V V
(paia) Ref. 6 Pacbce
100-16