Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Article

Cite This: Ind. Eng. Chem. Res. 2019, 58, 15666−15680 pubs.acs.org/IECR

Robust Three-Phase Vapor−Liquid−Asphaltene Equilibrium


Calculation Algorithm for Isothermal CO2 Flooding Applications
Ruixue Li†,‡ and Huazhou Li*,†

School of Mining and Petroleum Engineering, Faculty of Engineering, University of Alberta, Edmonton, Canada T6G 1H9

College of Energy, Chengdu University of Technology, Chengdu 610059, P. R. China

ABSTRACT: CO2 flooding is an effective enhanced oil recovery process for


light oil reservoirs. Asphaltenes can easily precipitate during CO2 flooding,
See https://pubs.acs.org/sharingguidelines for options on how to legitimately share published articles.

leading to the appearance of three-phase vapor−liquid−asphaltene (VLS)


equilibria. A prerequisite for accurately simulating the CO2 flooding process is
developing a robust three-phase VLS equilibrium calculation algorithm. In
this study, we develop a robust and efficient three-phase VLS equilibrium
Downloaded via UNIV OF GLASGOW on July 13, 2020 at 04:40:36 (UTC).

calculation algorithm with the use of asphaltene precipitation model proposed


by Nghiem et al. [Efficient Modelling of Asphaltene Precipitation, SPE, 1993].
To develop this algorithm, a two-phase flash calculation algorithm is first
developed to split the mixture into an asphaltene phase and a nonasphaltene
phase. Moreover, two different three-phase VLS flash calculation algorithms
are developed and incorporated into our three-phase equilibrium calculation
algorithm. New initialization approaches for both stability test and flash
calculations are proposed. The performance of this three-phase VLS equilibrium calculation algorithm is tested by generating
pressure−composition (P−X) diagrams for several reservoir fluids mixed with pure or impure CO2.

1. INTRODUCTION the solubility theory, asphaltenes are assumed to be dissolved in


Carbon dioxide (CO2) flooding becomes one of the most crude oil.8 If the solubility falls below a certain value,
effective enhanced oil recovery processes for light oil asphaltenes begin to deposit. There are two main approaches
reservoirs.2 During CO2 flooding, asphaltenes can easily in the solubility theory, i.e., regular solution model and equation
precipitate due to the change in the composition of reservoir of state (EOS).5 Since a large number of three-phase
fluids or the change in pressure/temperature conditions.3,4 equilibrium calculations are required to be conducted in
Therefore, three-phase vapor−liquid−asphaltene (VLS) equi- compositional simulations, we would like to select an
libria can frequently appear in light oil reservoirs where CO2 asphaltene precipitation model with relatively low mathematical
flooding is implemented. To have a better understanding of the complexity that can be readily incorporated into the three-
CO2 flooding process in light oil reservoirs, it is necessary to phase VLS equilibrium calculation algorithm. In 1993, Nghiem
have a compositional simulator that is capable of handling et al.1 developed an efficient thermodynamic model for
three-phase VLS equilibria. In compositional simulations, phase asphaltene precipitation. In their model, vapor and liquid
equilibrium calculation will be conducted in each grid at each phases are modeled using a cubic EOS, while the precipitated
time step, implying that phase equilibrium calculations will be asphaltenes are regarded as a pure dense phase. Moreover, they
conducted at varying conditions. In CO2 flooding where assumed that the heaviest component in crude oil can be
reservoir temperature can be considered as constant, the divided into a precipitating component and a nonprecipitating
varying conditions correspond to varying pressures and gas component. These two components have identical critical
concentrations. Therefore, a prerequisite for building a robust properties and acentric factors but different binary interaction
compositional simulator is having an efficient and robust three- parameters (BIPs) with respect to light components. A good
phase VLS equilibrium calculation algorithm, which performs agreement can be seen between the experimental results and
well at varying pressures, varying gas concentrations, and the the results yielded by the model with some parameters
given reservoir temperature. estimated from experimental data.
To build such three-phase VLS equilibrium calculation One challenge in multiphase equilibrium calculations is how
algorithm, we first need to select a thermodynamic model that to determine the number of present phases in the system.
can describe the asphaltene precipitation phenomenon. Over Multiphase equilibrium calculations consist of phase stability
the last 30 years, many asphaltene precipitation models have
been proposed in the literature based on either colloidal theory Received: May 19, 2019
or solubility theory.5 In the colloidal theory, asphaltenes are Revised: July 30, 2019
regarded as colloidal particles with resins adsorbed onto their Accepted: August 5, 2019
surfaces.6 If enough resin desorbs, asphaltenes will deposit.7 In Published: August 5, 2019

© 2019 American Chemical Society 15666 DOI: 10.1021/acs.iecr.9b02740


Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

test and flash calculations, which are normally conducted in a in this method. However, it is difficult to provide good initial
stagewise manner.9−11 Phase stability tests are conducted to estimates for equilibrium ratios in three-phase flash calcu-
determine whether the tested mixture is stable or will split into lations.11 Lapene et al.18 developed a three-phase vapor−
two or more phases,9 while flash calculations are performed at liquid−aqueous (VLA) flash calculation algorithm by assuming
the given number of phases to calculate the phase mole that the aqueous phase is pure water phase, i.e., the so-called
fractions and phase compositions.10 The most widely applied free-water assumption.19 With this assumption, the equilibrium
stagewise method is alternately conducting phase stability tests ratios of the aqueous phase with respect to the reference phase
and flash calculations.9 For example, in a three-phase for all of the nonaqueous components are zero. Therefore, the
equilibrium calculation, stability test is first conducted on the number of equilibrium ratio sets (which need to be initialized in
feed to check if a new phase needs to be introduced by locating the three-phase VLA flash calculation) is reduced, making it
the stationary points on the tangent plane distance (TPD) possible and easy to provide good initial estimates for
function.9 If a negative value of the TPD function is found at equilibrium ratios. They provided efficient initialization method
any of the stationary points (implying that the feed is unstable), for equilibrium ratios in their three-phase VLA flash calculation
a two-phase flash calculation needs to be conducted; otherwise, algorithm. Li and Li16 modified this three-phase flash
the given mixture is considered to be stable as one phase. Then, calculation algorithm as well as the alternative stagewise
stability test is again conducted on the phases yielded by the procedure. By integrating the modified three-phase flash
two-phase flash calculation. If those phases are unstable, a three- calculation algorithm into the modified alternative stagewise
phase flash calculation is required to split the mixture into three procedure, they developed an efficient and robust three-phase
phases; otherwise, the given mixture is considered to split into free-water vapor−liquid−aqueous (VLA) equilibrium calcu-
two phases. lation algorithm.16 Since the assumption made on the
However, convergence problems are frequently encountered asphaltene phase in the asphaltene precipitation model
in phase equilibrium calculations for three or more than three proposed by Nghiem et al.1 is similar to the free-water
phases, even when one rigorously applies the aforementioned assumption, the number of equilibrium ratio sets in the three-
stagewise procedure. One reason causing the convergence issue phase VLS flash calculation can be also reduced when
is that there may be several stationary points on the TPD implementing the asphaltene precipitation model proposed by
surface in three-phase equilibrium calculations. Thus, in three- Nghiem et al.1 Thus, it is possible for us to develop a robust
phase equilibrium calculations, there is a high chance that the three-phase VLS equilibrium calculation algorithm by taking
stability test fails to detect the negative stationary point(s), advantage of the free-solid assumption. To our knowledge, such
since the negative stationary point(s) may be hidden by the robust algorithm has not been reported in the literature.
non-negative one(s). To increase the possibility of detecting the In this work, we develop a robust three-phase VLS
negative stationary point(s), stability tests are required to be equilibrium calculation algorithm that is coupled with the
conducted with multiple sets of initial equilibrium ratios.9,11 For asphaltene precipitation model proposed by Nghiem et al.1 The
different types of fluids, different initialization methods might key parameters used in this model are first adjusted based on
be required. For hydrocarbon fluids mixed with CO2, Li and experimental data. As previously mentioned, such asphaltene
Firoozabadi11 suggested that (c + 4) initial estimates of precipitation model assumes that asphaltene phase only
equilibrium ratios should be applied for stability tests (where c contains pure asphaltene. This assumption enables the
represents the number of components). appearance of the asphaltene phase to be checked simply by
Another reason leading to the convergence problems comparing the fugacity of asphaltene component in the
encountered in three-phase equilibrium calculations is that nonasphaltene phase against that in the asphaltene phase.
multiple two-phase equilibria may be yielded by two-phase flash The appearance of the nonasphaltene phase (i.e., vapor or
calculations that are conducted with different initial equilibrium liquid phase in this study) is determined by the phase stability
ratios.12 This requires one to first determine if the calculated test. New initialization methods for equilibrium ratios are
two-phase equilibrium can be used for the subsequent provided for both stability test and flash calculations. To
calculations. Gorucu and Johns13 recommended that the one develop this three-phase VLS equilibrium calculation algorithm,
with the minimum Gibbs free energy should be applied to the we first develop a two-phase flash calculation algorithm used to
subsequent calculations. To yield the two-phase equilibrium split the mixture into an asphaltene phase and a nonasphaltene
with the minimum Gibbs free energy, Gorucu and Johns13 phase. Moreover, to enhance the robustness and efficiency of
suggested that two-phase flash calculations should be our three-phase VLS equilibrium calculation algorithm, two
conducted several times with the use of different initial different three-phase VLS flash calculations algorithms are
equilibrium ratios. However, it is time-consuming to repeat developed and incorporated into our three-phase VLS
two-phase flash calculations several times. equilibrium calculation algorithm. The performance of the
Another way to prevent yielding the trivial two-phase newly developed algorithm is tested by generating pressure−
equilibrium and thereby having a chance of yielding a trivial composition (P−X) diagrams for several real reservoir fluids
three-phase equilibrium is to perform three-phase equilibrium mixed with pure or impure CO2.
calculations with an alternative stagewise method. In this
alternative stagewise method, a three-phase flash calculation is
first conducted. If any calculated phase fraction is negative, a 2. MATHEMATICAL FORMULATIONS
two-phase flash calculation needs to be conducted.14,15 If any 2.1. Thermodynamic Model. Nghiem et al.1 proposed a
phase fraction calculated by the two-phase flash calculation is thermodynamic model in which vapor and liquid phases are
negative, the feed is considered to be stable as one phase. Li and modeled using a cubic EOS, while asphaltene phase is
Li16 proposed that the results yielded by the three-phase flash considered as a pure dense phase only containing asphaltene.
calculation can provide a knowledge of the present phases in the The fugacity of asphaltene in the asphaltene phase is calculated
two-phase equilibrium. Negative flash14,15,17 should be allowed by the following equation:1
15667 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Vs(P − P*) fi x = fi y , i = 1 , ..., c (5)


ln fs = ln f s* +
RT (1)
where f ix and f iy represent the fugacities of component i in liquid
where P and P* represent the actual pressure and reference phase and vapor phase, respectively, and the subscripts x and y
pressure, respectively; fs and fs* represent the fugacities of represent liquid phase and vapor phase, respectively. The
asphaltene in the asphaltene phase at P and P*, respectively; Vs Rachford−Rice (RR) equation is developed to solve phase
represents the asphaltene molar volume; R represents the mole fractions based on the material balance.23 RR equation
universal gas constant; T represents temperature; and the used for the two-phase VL flash calculation is provided as
subscript s represents asphaltene phase. In this work, the Peng− follows:23
Robinson (PR) EOS20 is applied to model vapor and liquid c c zi(K i y − 1)
phases. RR = ∑ (yi − xi) = ∑ =0
2.2. Phase Stability Test. In this study, asphaltene i=1 i=1
1 + βy (K i y − 1) (6)
precipitation can be simply checked by the following inequal-
ity:21 where xi, yi, and zi represent the mole fractions of component i

l
o
in liquid phase, vapor phase, and feed, respectively; βy
o
o
m
o
represents the mole fraction of vapor phase; and Kiy represents
o
fc x < fc s , asphaltene phase does not exist
o
n cx
the equilibrium ratio of component i in vapor phase with
f ≥ fc s , asphaltene phase exists (2) respect to liquid phase. Kiy can be calculated by
yi ϕi x
where fcx and fcs represent the fugacity of asphaltene component Kiy = = , i = 1 , ..., c
in the nonasphaltene phase calculated by PR EOS20 and that in xi ϕi y (7)
the asphaltene phase calculated by eq 1, respectively, and the
subscripts c, x, and s represent asphaltene component, where ϕix and ϕiy represent the fugacity coefficients of
nonasphaltene phase, and asphaltene phase, respectively. The component i in liquid phase and vapor phase, respectively.
appearance of vapor or liquid phase is checked by phase Based on material balance, phase compositions can be
stability test.9 The expression of the TPD function used in the calculated by23
stability analysis is shown as follows:9 zi
xi = ; yi = ziK i y
c 1 + βy (K i y − 1) (8)
g (y ) = ∑ yi [ln ϕi(y) + ln yi − ln ϕi(z) − ln zi]
i=1 (3) The two-phase VL flash calculation algorithm used in this
research is the same as that provided by Michelsen.10 The two-
where y and z represent the compositions of the trial phase and phase VL flash calculation algorithm is composed of two
the tested phase, respectively; ϕi(y) and ϕi(z) represent the iteration loops. The outer loop aims to satisfy the equal-fugacity
fugacity coefficients of component i in the trial phase and the constraint by updating equilibrium ratios, while the inner loop
test phase, respectively; c is the number of components in the solves the RR equation to yield phase mole fractions and phase
mixture; and the subscript i is the component index. If the compositions. In this work, successive substitution iteration
values of the TPD function are non-negative at any composition (SSI) is used in the outer loop, while Newton method is applied
of the trial phase, the tested phase is considered to be stable. in the inner loop.24,25
Michelsen proposed a stability test algorithm,9 suggesting 2.3.2. Two-Phase Vapor/Liquid-Asphaltene (V/L-S) Flash
finding all stationary points on the TPD surface. If the values of Calculation. In two-phase V/L-S flash calculation, one of the
all stationary points are non-negative, the tested phase can be present phases is the asphaltene phase. Based on the
considered stable. The stationary points on the TPD function assumption that the asphaltene phase only contains asphaltene,
can be detected by the following equation:9 the two-phase V/L-S flash calculation can be much simpler than
the two-phase VL flash calculation. The equal-fugacity
ln ϕi(y) + ln yi − ln ϕi(z) − ln zi = k , i = 1 , ..., c (4) constraint for the two-phase V/L-S flash calculation can be
simplified to one equation:
where k is the value of the stationary point (which is a
constant). The detailed procedure for conducting stability test fc x = fc s (9)
is provided by Michelsen.9 In this work, the quasi-Newton
successive substitution method22 is used in the stability test to where fcx and fcs represent the fugacities of asphaltene in
search for the local stationary points. Moreover, multiple nonasphaltene phase and asphaltene phase, respectively, and
estimates of equilibrium ratios are used to initialize the stability the subscripts c, x, and s represent asphaltene component,
test. Section 3 will provide the detailed initialization method nonasphaltene phase, and asphaltene phase, respectively. fcs can
used in our stability tests. be calculated based on eq 1, while fcx can be calculated based on
2.3. Flash Calculation. Flash calculations aim to obtain PR EOS with a given composition of nonasphaltene phase.
phase fractions and phase compositions for a given mixture Based on the material balance, composition of nonasphaltene

l
phase can be calculated by the following equation:
o
equilibrating at a given pressure/temperature condition and a
o zi /(1 − βs),
xi = o
m
given number of present phases.10 The convergence of flash
o
o
i = 1 , ..., c − 1
o(zi − βs)/(1 − βs), i = c
calculations is subject to the material balance constraint and the
n
equal-fugacity constraint (i.e., the fugacities of each component
(10)
in all present phases should be equivalent).10
2.3.1. Two-Phase Vapor−Liquid (VL) Flash Calculation. where xi and zi represent the mole fractions of component i in
The equal-fugacity constraint for the two-phase VL flash nonasphaltene phase and feed, respectively, and βs represents
calculation is shown as follows:10 mole fraction of asphaltene phase. Therefore, the equal-fugacity
15668 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

l
o
o
o
o
o
constraint can be satisfied by updating βs. Appendix A provides
o K i y − Kc*yβy + Kc*z
zi
o
, i≠c
xi = m
the detailed procedure of the two-phase V/L-S flash calculation
o
o
o
o
o
algorithm.

o
o
o
2.3.3. Three-Phase VLS Flash Calculation. The equal- 1
n is
, i=c
fugacity constraints for the three-phase VLS flash calculation K
are given by1
yi = K i yxi (16)
fi x = fi y , i = 1 , ..., c (11)
where

fc x = fc y = fc s si ϕ
(12) K is = = ix , i = 1 , ..., c
xi ϕis (17)
In this work, two algorithms are developed to conduct the
where si represents the mole fraction of component i in
three-phase VLS flash calculations. Both of them are
asphaltene phase and ϕis represents the fugacity coefficient of
incorporated into the three-phase VLS equilibrium calculation
component i in asphaltene phase. Based on the assumption that
algorithm to enhance the robustness and efficiency of the new

l1, i = c
asphaltene phase only contains asphaltene, we can have
o
si = o
three-phase VLS equilibrium calculation algorithm. Section 3
m
o
o
will provide the details about how to incorporate these two
n 0, i ≠ c
algorithms. The difference in these two algorithms lies in the
(18)
method used for solving the phase compositions and phase
fractions. The procedure adopted by Algorithm #1 is similar to that of the
Li and Li16 derived the objective function and constraints three-phase free-water VLA flash calculation algorithm
(used to solve phase mole fractions) for three-phase free-water developed by Li and Li.16 This algorithm can be simply
VLA flash calculation by simplifying the objective function and summarized as two iteration loops (which is similar to the two-
constraints developed by Okuno et al.26 based on the free-water phase VL flash calculation algorithm). The outer loop is used to
assumption.19 The objective function and constraints used in update equilibrium ratios for satisfying the equal-fugacity
Algorithm #1 for three-phase VLS flash calculations is similar to constraint by SSI, while the inner loop is used to calculate
that used in the three-phase free-water VLA flash calculation phase mole fractions and phase compositions by minimizing eq
algorithm developed by Li and Li.16 The objective function and 13 using the interior-point method. This algorithm is efficient,
constraints for three-phase VLS flash calculations can be but the performance of Algorithm #1 relies on the quality of
expressed as follows:16 initial equilibrium ratios. In Section 3, we provide detailed
initialization method for equilibrium ratios in Algorithm #1.
c−1 Algorithm #2 for three-phase VLS flash calculations is
min f (βy ) = ∑ −zi ln|(Ki y − Kc*y)βy + Kc*z| motivated by two-phase V/L-A flash calculation algorithm. In
(13)
i=1
Algorithm #2, we perform two-phase VL flash calculations in
subject to the inner loop to satisfy eq 11 in the equal-fugacity constraint,
while the outer loop is used to update βs to give a new feed used
(Kc*y − K i y )βy ≤ min{Kc*z − zi , Kc*z − K i yzi}, i ≠ c in the inner loop. Equation 12 in the equal-fugacity constraint
should be satisfied in the outer loop. The feed used in the inner

l
loop can be updated by
o
o zi /(1 − βs),
where
l
o
o
o zi 2 = o
m
o
o o
i = 1 , ..., c − 1

o
o o(zi − βs)/(1 − βs), i = c
n
1 − yc
o
o
Kc*y =
m
o
o
1 − xc (19)

o
o
o
o
o
o
1 − zc where zi2 represents the mole fraction of component i in the
n
Kc*z = feed used in the inner loop. Algorithm #2 is reliable when three-
1 − xc (14) phase equilibrium actually appears, but it is time-consuming
since several times of two-phase VL flash calculations are
Here, xc, yc, and zc represent the mole fractions of asphaltene
conducted in the inner loop. The detailed procedure of
component in liquid phase, vapor phase, and feed, respectively. Algorithm #2 is summarized in Appendix B.
As noted by Li and Li,16 there is only one unknown in the above
objective function, i.e., phase mole fraction of vapor phase (βy). 3. THREE-PHASE VLS EQUILIBRIUM CALCULATION
Moreover, the constraints in eq 14 form a reliable feasible ALGORITHM
region of βy.16,2616,26 The mole fractions of asphaltene phase
and liquid phase can be solved by the following equations:16 In this section, we will introduce the robust three-phase VLS
equilibrium calculation algorithm. To ensure the robustness of
zc + (xc − yc )βy − xc the three-phase VLS equilibrium calculation algorithm, it is
βs = ; βx = 1 − βy − βs essential to have good initial values for both stability tests and
1 − xc (15) flash calculations. In general, for different types of fluids,
different initialization methods are required. To apply our
where βx represents the mole fraction of liquid phase. The algorithm to simulate CO2 flooding in light oil reservoirs, we
compositions of liquid and vapor phases can be calculated provide new initialization methods for equilibrium ratios in
based on the following equations:16 both stability tests and flash calculations.
15669 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Figure 1. Flowchart of three-phase VLS equilibrium calculation algorithm. V, vapor phase; L, liquid phase; and S, solid asphaltene phase.
2‑NS 2‑S
The new initialization method for equilibrium ratios in represents acentric factor of component i. KCO
i and KCO
i

l
stability tests is a modification of that proposed by Li and can be calculated by the following equations, respectively:

o
o 0.8/zi ,
Firoozabadi.11 This new method is shown as follows:
K iCO2 ‐ NS = m
o[0.2/(c − 1)] /z , i ≠ 2
o
i=2
K iST {K iWilson , 1/K iWilson , 3 K iWilson , K iWilson , K iCO2 ‐ NS , K iCO2 ‐ S}
o
n
3
= 1/
i (22)

l
(20)

o
o
o
o
o −8
o
where KST i represents the initial equilibrium ratio of component 0.8/zi , i=2
=m
o
i used for stability tests. The first four terms are the same as
o
o
o
o
K iCO2 ‐ S 10 /zi , i=c
o[(0.2 − 10−8)/(c − 2)]/zi , i ≠ 2 and c
those proposed by Li and Firoozabadi.11 KWilson represents the

n
i
equilibrium ratio of component i calculated by the Wilson

ÄÅ É
equation:27

ÅÅ
Å ij Tci yzÑÑÑÑ
(23)

expÅÅ5.37(1 + ωi)jj1 − zzÑÑ


ÅÅ k T {ÑÑÖ
Ç
Wilson Pci where 2 and c represent components CO2 and asphaltene,
Ki =
P (21) respectively. The new initialization method for equilibrium
ratios in flash calculations will be introduced in the detailed
where P and Pci represent pressure and critical pressure of procedure of the three-phase VLS equilibrium calculation
component i, respectively; T and Tci represent temperature and algorithm. Figure 1 depicts the flowchart of this algorithm. The
critical temperature of component i, respectively; and ωi detailed procedure is listed below:
15670 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

(1) Using the new initialization method for equilibrium compositions (xi2‑VL and yi2‑VL) and mole fractions of liquid
ratios as shown in eq 20, conduct the stability test on the feed phase and vapor phase (βx2‑VL and βy2‑VL).
(zi) to detect the negative stationary points. Record the (11) Conduct stability test and check inequality (2) on the
compositions of the trial phases at all stationary points with two phases yielded by the two-phase VL flash calculation. If
negative TPD values as x_0i, x_01i, x_02i, etc. Note that x_0i both of these two phases are stable, output two-phase VL
corresponds to the smallest TPD value, while the last trial phase equilibrium; otherwise, conduct three-phase VLS flash
composition corresponds to the largest TPD value. calculation Algorithm #1 to yield liquid-phase, vapor-phase,
(2) If negative stationary point exists, vapor or liquid phase and asphaltene-phase compositions (xi3‑2, yi3‑2, and si3‑2) and
may appear. If so, go to step (5). Otherwise, continue to step mole fractions of liquid phase, vapor phase, and asphaltene
(3). phase (βx3‑2, βy3‑2, and βs3‑2). The initial equilibrium ratios used
(3) Check inequality (2). If asphaltene phase exists, continue in the three-phase VLS flash calculation are the same as those
to step (4); otherwise, output single-phase equilibrium. expressed by eq 26.
(4) Conduct two-phase V/L-S flash calculation and output (12) If the results calculated by the three-phase VLS flash are
two-phase V/L-S equilibrium. physical, output three-phase VLS equilibrium; otherwise,
(5) Check inequality (2). If asphaltene phase exists, go to conduct two-phase V/L-S flash calculation to yield non-
step (8); otherwise, continue to step (6). asphaltene-phase and asphaltene-phase compositions (xi2‑V/L‑S
(6) Conduct two-phase VL flash calculation to yield liquid- and si2‑V/L‑S) and phase mole fractions of nonasphaltene phase
phase and vapor-phase compositions (xi2‑VL and yi2‑VL) and and asphaltene phase (βx2‑V/L‑S and βs2‑V/L‑S).
mole fractions of liquid phase and vapor phase (βx2‑VL and (13) Conduct stability test on nonasphaltene phase obtained
βy2‑VL). The initial equilibrium ratios used in the two-phase VL by the two-phase V/L-S flash calculation. If vapor or liquid
flash calculation can be generated by the following equation: phase does not appear, output two-phase V/L-S equilibrium;
otherwise, conduct three-phase VLS flash calculation Algorithm
K i y = zi /x _0i , i = 1 , ..., c (24) #2 and output three-phase VLS equilibrium.
(7) Check inequality (2) again. If asphaltene phase does not
exist, output two-phase VL equilibrium; otherwise, conduct 4. RESULTS AND DISCUSSION
three-phase VLS flash calculation Algorithm #1 and output An example calculation using one crude oil sample is first
three-phase VLS equilibrium. The initial equilibrium ratios used carried out using the newly developed three-phase VLS
in the three-phase VLS flash calculation are given by equilibrium calculation algorithm. The detailed physical
K i y = yi2 ‐ VL /xi , i = 1 , ..., c properties and compositions of this oil sample are provided
(25)
by Burke et al.28 Asphaltene precipitation data at different
pressures are provided by Burke et al.28 as well. Then, two crude
l
where
o
o
o
oil samples from Weyburn reservoir in Saskatchewan, Canada,

xi = m
o
xi2 ‐ VL /(1 − 0.99 × xc2 ‐ VL),
o
i≠c are used to test the performance of the newly developed three-
o 0.01 × xi /(1 − 0.99 × xc ), i = c
n
2 ‐ VL 2 ‐ VL
phase VLS equilibrium calculation algorithm at various pressure
(26) and gas concentration conditions. These two oil samples are
mixed with pure or impure CO2. Srivastava et al.4 provided
(8) Conduct three-phase VLS flash calculation Algorithm #1 detailed physical properties and compositions of these two oil
to yield liquid-phase, vapor-phase, and asphaltene-phase samples. They also conducted experiments to obtain the
compositions (xi3‑1, yi3‑1, and si3‑1) and phase mole fractions asphaltene precipitation data. In this work, we first use the
of liquid phase, vapor phase, and asphaltene phase (βx3‑1, βy3‑1, asphaltene precipitation data to adjust the key model
and βs3‑1). KiWilson are used as the initial equilibrium ratios. parameters. Then, with the adjusted parameters, the three-
(9) If the results calculated by the three-phase VLS flash are phase VLS equilibrium calculation algorithm is applied to
physical, output three-phase VLS equilibrium; otherwise, generate P−X diagrams for each oil sample mixed with pure or
continue to step (10). This judging criterion is the same as impure CO2.
that proposed by Li and Li.16 As mentioned by Li and Li,16 the 4.1. Oil Sample 1. Table 1 shows the compositions of oil
results of a three-phase flash calculation can be considered to be sample 1.28 Oil sample 1 has a gravity of 19°API.28 The
unphysical if an open feasible region (i.e., a region where any of molecular weight (MW) of C7+ of oil sample 1 is measured to
the endpoints is a pole) appears in any iteration or any of the
ultimately calculated phase mole fractions does not fall into [0,
Table 1. Compositions of Oil Sample 128
1].
(10) If βs3‑1 can be calculated and βs3‑1 < 0, conduct two-
component oil sample 1
phase VL flash with the initial equilibrium ratios calculated by
the following equation: N2 0.57
CO2 2.46
K i y = yi3 ‐ 1 /xi3 ‐ 1 , i = 1 , ..., c (27) C1 36.37
C2 3.47
Otherwise, conduct the two-phase VL flash with multiple initial C3 4.05
equilibrium ratios calculated by the following equations: i-C4 0.59
n-C4 1.34
K i y = zi /x _0i , K i y = zi /x _01i , etc.; i = 1 , ..., c (28) i-C5 0.74
If multiple two-phase equilibria are yielded, select the one with n-C5 0.83
the lowest Gibbs free energy. The aforementioned two-phase C6 1.62
VL flash will yield the liquid-phase and vapor-phase C7+ 47.96

15671 DOI: 10.1021/acs.iecr.9b02740


Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Table 2. Composition and Component Properties of Oil Sample 135


component mole fraction (mol %) molecular weight (g/mol) critical temperature (K) critical pressure (bar) critical volume (m3/kmol) acentric factor
CO2 2.46 44.01 304.20 73.80 0.0898 0.23
N2, C1-2 40.41 17.42 206.16 46.14 0.1062 0.02
C3-5 7.55 53.52 410.48 38.67 0.2467 0.19
C6-19 27.12 163.74 696.34 23.82 0.6476 0.54
C20-30 10.64 339.89 863.86 15.87 1.0327 0.84
C31A+ 7.49 665 979.74 8.17 1.9107 1.24
C31B+ 4.33 665 979.74 8.17 1.9107 1.24

Table 3. BIPs Used for Oil Sample 130


CO2 N2, C1-2 C3-5 C6-19 C20-30 C31A+ C31B+
CO2 0 0 0.007 0.038 0.065 0.095 0.240
N2, C1-2 0 0 0.006 0.035 0.062 0.091 0.240
C3-5 0.007 0.006 0 0.013 0.032 0.055 0.240
C6-19 0.038 0.035 0.013 0 0.005 0.016 0
C20-30 0.065 0.062 0.032 0.005 0 0.004 0
C31A+ 0.095 0.091 0.055 0.016 0.004 0 0
C31B+ 0.240 0.240 0.240 0 0 0 0

be 329 g/mol.28 The asphaltene content of oil sample 1 is 16.8


wt %.28
4.1.1. Oil Characterization. The exponential distribution
function proposed by Pedersen et al.29 is applied to split the
plus fraction. The lumping method is the same as that used by
Qin et al.30 Kesler−Lee correlations31,32 are used to calculate
the critical temperatures, critical pressures, and acentric factors
of single carbon numbers (SCNs), while the Riazi−Daubert
correlation33 is used to calculate the critical volumes of SCNs.
The heaviest component is split into two components: a
nonasphaltene component (i.e., C31A+ for oil sample 1) and an
asphaltene component (i.e., C31B+ for oil sample 1). As
mentioned by Nghiem et al.,1 these two components have
identical critical properties and acentric factors, while the BIPs
between C31B+ and other components are larger than the BIPs
between C31A+ and other components. The mole fraction of
asphaltene component can be calculated by the equation
developed by Nghiem et al.:1 Figure 2. Comparison between the weight fractions of the precipitated
asphaltenes as a function of pressure measured by Burke et al.28 and
wC31B + × MWoil those calculated by our algorithm and those calculated by Nghiem and
zC31B + = Coombe21 for oil sample 1 at 100 °C.
MWC31B + (29)

where zC31B+ represents the mole fraction of asphaltene precipitated asphaltenes calculated by our algorithm and those
component, wC31B+ represents the asphaltene content, and calculated by Nghiem and Coombe.21 This indicates that our
MWoil and MWC31B+ represent the molecular weight of oil and algorithm can model asphaltene precipitation phenomena at
C31B+, respectively. Table 2 summarizes the composition and different pressure conditions.
component properties of oil sample 1. The critical properties 4.2. Oil Sample 2. Table 4 shows the compositions of oil
and acentric factors of CO2 are taken from the literature,35 sample 2 and injection gas.4 Oil sample 2 is named as fluid W2
while the mole fractions and component properties of by Srivastava et al.4 Oil sample 2 has a gravity of 36°API.4
pseudocomponents are calculated by this work. Asphaltene content of oil sample 2 is measured to be 4 wt %.4
Table 3 summarizes the BIPs used for oil sample 1. The BIPs 4.2.1. Oil Characterization. The exponential distribution
between the first six components are taken from the literature.30 function proposed by Pedersen et al.29 is adopted to split the
The BIPs between C31B+ and the first three components are plus fraction. The lumping method is the same as that used by
set to be 0.24, while the BIPs between C31B+ and other Srivastava et al.4 To get a composition of oil sample 2 similar to
components are set to be 0. As mentioned by Nghiem and that proposed by Srivastava et al.,4 the molecular weight of C6+
Coombe,21 the reference pressure (P*) is set to be 357 bar. of oil sample 2 is set to be 195 g/mol. Again, Kesler−Lee
Figure 2 shows the comparison between the weight fractions correlations31,32 are used to calculate the critical temperatures,
of the precipitated asphaltenes as a function of pressure critical pressures, and acentric factors of single carbon numbers
measured by Burke et al.28 and those calculated by our (SCNs), while the Riazi−Daubert correlation33 is used to
algorithm and those calculated by Nghiem and Coombe.21 The calculate the critical volumes of SCNs. Table 5 summarizes the
tested temperature is 100 °C. As seen in Figure 2, a good composition and component properties of oil sample 2. The
agreement can be seen between the weight fractions of the critical properties and acentric factors of the first nine
15672 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Table 4. Compositions of Oil Sample 2 and Injection Gas4 Table 6. Adjustable Parameters and Their Values Used in
Our Algorithm for Oil Sample 2 Mixed with Impure CO2
component oil sample 2 gas (impure CO2)
N2 1.59 2.68 adjusted
parameter value
CO2 0.23 94.45
C1 4.54 2.87 critical gas concentration above which asphaltenes start to 47
precipitate (mol %)
C2 2.07 0
θ 3.8
C3 4.41 0
BIP between CO2 and HCs 0.05
i-C4 1.23 0
asphaltene content (wt %) 6
n-C4 2.59 0
i-C5 4.53 0
where kij represents the BIP between components i and j; vci and
n-C5 4.96 0
vcj represent the critical volumes of components i and j,
C6+ 73.85 0
respectively; θ represents the exponential parameter; and the
subscripts i and j represent components i and j, respectively.
components are taken from the literature,34,35 while the mole The same value of θ is used to calculate BIPs between
fractions and component properties of pseudocomponents are asphaltene component (C28B+) and other components. This
calculated by this work. value can be tuned based on the experimental data. Based on
4.2.2. Tuning of Key Model Parameters. Table 6 lists the our tests, the BIPs between CO2 and hydrocarbon components
adjustable parameters and their values used in our algorithm for (HCs) also need to be tuned to match the experimental data.
oil sample 2 mixed with impure CO2. In the thermodynamic Table 7 summarizes the BIPs used for oil sample 2. The BIPs
model of asphaltene phase developed by Nghiem et al.,1 there
are two adjustable parameters: fs* and Vs. In this work, we
Table 7. BIPs Used for Oil Sample 235
desire to match the experimental data of asphaltene
precipitation for oil sample 2 under different gas concentrations N2 CO2 C28B+
at given temperature/pressure condition. Based on eq 1, it is N2 0 −0.0170 0.2836
obvious that the changing of Vs will not affect the fugacity of CO2 −0.0170 0 0.2760
asphaltene in the asphaltene phase when the pressure is fixed. C1 0.0311 0.0500 0.2660
Therefore, Vs cannot be adjusted based on the experimental C2 0.0515 0.0500 0.1965
data that are obtained at a fixed pressure. However, as C3 0.0852 0.0500 0.1457
mentioned by Nghiem and Coombe,21 Vs can be estimated i-C4 0.1033 0.0500 0.1083
based on the measured amounts of asphaltenes precipitated n-C4 0.0800 0.0500 0.1125
under different pressures. In our example calculations, we do i-C5 0.0922 0.0500 0.0883
not tune Vs, but the effect of this parameter on asphaltene n-C5 0.1000 0.0500 0.0891
precipitation is discussed in Section 4.2.3. Moreover, at the C6-9 0.1000 0.0500 0.0609
given temperature/pressure condition, fs* can be determined C10-17 0.1000 0.0500 0.0175
based on the critical gas concentration, above which C18-27 0.1000 0.0500 0.0026
asphaltenes start to precipitate.1 Therefore, in our case, we C28A+ 0.1000 0.0500 0
tune this parameter instead of fs*. C28B+ 0.2836 0.2760 0
The BIPs between asphaltene component (C28B+) and
other components should be adjusted as well. These BIPs can

ÄÅ 1/6 1/6 ÉÑθ


be calculated by the Chueh and Prausnitz model:36
ÅÅ 2v v Ñ
Å ci cj ÑÑÑ
kij = 1 − ÅÅÅÅ 1/3 ÑÑ
between N2 and other components except C28B+ are taken

ÅÅ vci + vcj1/3 ÑÑÑ


from the literature.35 Moreover, during our tests, we find that
ÅÇ ÑÖ
the experimental data cannot be matched with the measured
(30) asphaltene content for oil sample 2. Nghiem and Coombe21

Table 5. Composition and Component Properties of Oil Sample 234,35

component mole fraction (mol %) molecular weight (g/mol) critical temperature (K) critical pressure (bar) critical volume (m3/kmol) acentric factor
N2 1.59 28.01 126.20 34.40 0.0901 0.04
CO2 0.23 44.01 304.70 74.80 0.0940 0.23
C1 4.54 16.04 190.60 46.70 0.0993 0.01
C2 2.07 30.07 305.43 49.50 0.1479 0.10
C3 4.41 44.10 369.80 43.00 0.2029 0.15
i-C4 1.23 58.12 408.10 37.00 0.2627 0.18
n-C4 2.59 58.12 419.50 38.00 0.2547 0.20
i-C5 4.53 72.15 460.40 34.30 0.3058 0.23
n-C5 4.96 72.15 465.90 34.00 0.3040 0.24
C6-9 27.56 100.96 582.49 34.80 0.3869 0.32
C10-17 28.11 178.54 720.86 24.13 0.6475 0.54
C18-27 12.53 299.81 846.90 18.16 0.9254 0.75
C28A+ 3.78 503.00 963.69 15.02 1.1550 0.93
C28B+ 1.87 503.00 963.69 15.02 1.1550 0.93

15673 DOI: 10.1021/acs.iecr.9b02740


Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

also mentioned the effect of asphaltene content on asphaltene concentrations. The three curves drawn in Figure 4 are
precipitation. Therefore, we tune the asphaltene content as well. generated by running the new three-phase VLS equilibrium
Figure 3 shows the comparison between the weight fractions algorithm under three different levels of asphaltene contents;
of the precipitated asphaltenes as a function of gas other parameter values are the adjusted ones shown in Table 6.
The asphaltene contents used to generate these three curves are
4, 5, and 6 wt %, respectively. As shown in Figure 4, a change in
the asphaltene content has a large effect on the asphaltene
precipitation trends. A decrease in the asphaltene content will
decrease the weight fractions of the precipitated asphaltenes,
flattening the precipitation curve. As previously mentioned, the
asphaltene content is measured to be 4 wt % by Srivastava et al.4
However, the weight fractions of the precipitated asphaltenes
calculated by our algorithm using 4 wt % asphaltene content are
much smaller than the measured ones under a given gas
loading. Therefore, to match the experimental data, we increase
the asphaltene content in oil sample 2. As can be seen in Figure
4, using 6 wt % of asphaltene content in our calculations gives
the best match with the experimental data.
Figure 5 shows the effect of the critical gas concentration,
above which asphaltenes start to precipitate, on asphaltene

Figure 3. Comparison between the weight fractions of the precipitated


asphaltenes as a function of gas concentration calculated by our
algorithm with the adjusted parameters and those measured by
Srivastava et al.4 for oil sample 2 at 61 °C and 160 bar.

concentration calculated by our algorithm with the adjusted


parameters and those measured by Srivastava et al.4 The
injection gas is an impure CO2 stream, whose composition is
shown in Table 1. The tested temperature and pressure are 61
°C and 160 bar, respectively. As seen in Figure 3, a good
agreement can be seen between the calculated weight fractions
of the precipitated asphaltenes and the measured counterparts,
leading to the conclusion that our algorithm with the adjusted
parameters can have a good description of the asphaltene
precipitation phenomenon. As shown in Figure 3, at high gas
concentrations, three-phase VLS equilibria appear, leading to a
decrease of the weight fraction of the precipitated asphaltenes Figure 5. Effect of the critical gas concentration (above which
as gas concentration increases. asphaltenes start to precipitate) on asphaltene precipitation under
Figure 4 shows the effect of changing asphaltene content in different gas concentrations.
oil sample 2 on the asphaltene precipitation under different gas
precipitation under different gas concentrations. The three
curves drawn in Figure 5 are calculated by our three-phase VLS
equilibrium algorithm; we use the parameter values shown in
Table 6 except the critical gas concentration (above which
asphaltenes start to precipitate). The critical gas concentrations
used to generate these three curves are 43, 47, and 50 mol %,
respectively. As shown in Figure 5, an increase in the critical gas
concentration tends to shift the left slope of the asphaltene
precipitation curve to the right, but has negligible impact on the
right slope of the asphaltene precipitation curve. In addition, an
increase in the critical gas concentration tends to suppress the
peak amount of the precipitated asphaltenes.
Figure 6 depicts the effect of the exponential parameter (θ)
on asphaltene precipitation under different gas concentrations.
The three curves drawn in Figure 6 are calculated by our three-
phase VLS equilibrium algorithm with the adjusted values of
the parameters shown in Table 6 except the exponential
parameter. The exponential parameter values used to generate
these three curves are 3, 3.8, and 4.5, respectively. As seen in
Figure 4. Effect of asphaltene content in oil sample 2 on asphaltene Figure 6, an increase in the exponential parameter value
precipitation under different gas concentrations. increases the amount of precipitated asphaltenes. Moreover, it
15674 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Figure 8 depicts the calculation results. The temperature is set


to be 61 °C. Vs is calculated to be 0.4323 m3/kmol by PR

Figure 8. P−X diagram calculated by the three-phase VLS equilibrium


Figure 6. Effect of the exponential parameter (θ) on asphaltene calculation algorithm with the adjusted parameters for oil sample 2
precipitation under different gas concentrations. mixed with impure CO2 at 61 °C. V: vapor phase; L: liquid phase; and
S: solid asphaltene phase.
tends to exert a larger effect on asphaltene precipitation in the
region where the weight fractions of the precipitated EOS.20 Pressure is varied from 1 to 250 bar with a step size of
asphaltenes increase with an increasing gas concentration, 0.25 bar, while the gas concentration is varied from 0 to 99 mol
while it has smaller effect on asphaltene precipitation in the % with a step size of 0.25 mol %. Our algorithm is run a total of
region where the weight fractions of the precipitated 395 809 times to generate this P−X diagram. As shown in
asphaltenes decrease with an increasing gas concentration. Figure 8, this algorithm converges at all of the tested points.
Figure 7 depicts the effect of the BIP between CO2 and HCs The generated P−X diagram has smooth and continuous phase
on the asphaltene precipitation under different gas concen- boundaries. Note that the line at the gas concentration of 99
mol % is not phase boundary since we do not conduct phase
equilibrium calculations at gas concentrations larger than 99
mol %.
To show the effect of Vs on the resulting phase equilibria, we
run our three-phase VLS equilibrium calculation algorithm with
different Vs values to generate several P−X diagrams for oil
sample 2 mixed with impure CO2. Figure 9 shows the calculated
P−X diagrams for oil sample 2 mixed with impure CO2 at 61
°C. Figure 9a,b depicts the P−X diagram generated by our
algorithm with Vs set as 0.5000 and 0.5500 m3/kmol,
respectively. For both phase diagrams, pressure is varied from
1 to 250 bar with a step size of 0.25 bar, while gas concentration
is varied from 0 to 99 mol % with a step size of 0.25 mol %.
Again, Figure 9a,b shows that our algorithm converges at all of
the tested points. Figure 9c shows the comparison of the
different P−X phase boundaries yielded by our algorithm with
different Vs values. As shown in Figure 9c, if Vs increases,
asphaltenes start to precipitate at a lower pressure and a smaller
Figure 7. Effect of the BIP between CO2 and HCs on the asphaltene gas concentration. Moreover, under a constant pressure that is
precipitation under different gas concentrations. larger than the reference pressure P*, the critical gas
concentration (above which asphaltenes start to precipitate)
increases as Vs increases.
trations. The three curves drawn in Figure 7 are calculated by Figure 10 shows the weight fractions of the precipitated
our three-phase VLS equilibrium algorithm with the adjusted asphaltenes calculated by our algorithm with different Vs as a
values of the parameters shown in Table 6 except the BIP function of pressure and gas concentration at 61 °C. Figure
between CO2 and HCs. The BIP between CO2 and HCs used 10a−c is generated with Vs set as 0.4323, 0.5000, and 0.5500
to generate these three curves are 0.02, 0.05, and 0.08, m3/kmol, respectively. These figures show that Vs can
respectively. As Figure 7 shows, a decrease in the BIP between significantly affect how much asphaltenes will get precipitated
CO2 and HCs increases the amount of the precipitated in the mixture. The weight fractions of the precipitated
asphaltenes. asphaltenes shown in the three figures in Figure 10 are
4.2.3. P−X Diagrams. To test the performance of the newly continuous everywhere, which proves that our algorithm
developed three-phase VLS equilibrium calculation algorithm, performs well at all of the tested conditions.
we apply this algorithm with the adjusted parameters to 4.3. Oil Sample 3. Table 8 depicts the compositions of oil
generate a P−X diagram for oil sample 2 mixed with impure sample 3 and three injection gas.4,37 Oil sample 3 is named as
CO2. The composition of this impure CO2 is shown in Table 4. fluid W1 by Srivastava et al.4 Oil sample 3 has a gravity of
15675 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

29°API.4 The molecular weight of C6+ in oil sample 3 is


measured to be 205 g/mol,37 while its asphaltene content is
measured to be 4.9 wt %.4
4.3.1. Oil Characterization. Table 9 summarizes the
composition and component properties of oil sample 3. The
critical properties and acentric factors of the first 10
components are taken from the literature,34,35 while the mole
fractions and component properties of the pseudocomponents
are calculated by this work. The method used to determine the
mole fractions and component properties of the pseudocom-
ponents for oil sample 3 is the same as that used for oil sample
2.
4.3.2. Tuning of Key Model Parameters. Table 10 lists the
adjustable parameters and their values used in our algorithm for
oil sample 3 mixed with pure CO2. For oil sample 3, we find that
the weight fractions of the precipitated asphaltenes measured
by the experiments conducted by Srivastava et al.4 can be well
matched by those calculated by our algorithm using the
asphaltene content measured by experiments and the adjusted
parameter values given in Table 10. Therefore, we do not tune
the asphaltene content in this case study. Table 11 summarizes
the BIPs used for oil sample 3 calculations. The BIPs between
N2 and other components (except C28B+) and the BIPs
between H2S and other components (except C28B+) are taken
from the literature.35
Figure 11 shows the comparison between the weight
fractions of the precipitated asphaltenes as a function of gas
concentration calculated by our algorithm with the adjusted
parameters and those obtained by experiments conducted by
Srivastava et al.4 The injection gas is gas 1 (pure CO2) in Table
4. The tested temperature and pressure are 59 °C and 160 bar,
respectively. As shown in Figure 11, a good agreement can be
seen between the calculated weight fractions of the precipitated
asphaltenes and those measured by experiments, except one
point which corresponds to the highest precipitation amount
(larger than 3.0 wt %). The gas concentration at this point is 75
mol %. However, the weight fraction of asphaltene component
in the mixture (composed of 75 mol % gas 1 and 25 mol % oil
sample 3) is smaller than 3.0 wt %. Therefore, we ignore these
experimental data point in our calculations. From Figure 11, we
can again conclude that our algorithm with the adjusted
Figure 9. P−X diagrams for oil sample 2 mixed with impure CO2 at 61 parameters can have a good description of the asphaltene
°C yielded by our three-phase VLS equilibrium calculation algorithm precipitation phenomenon.
with different Vs: (a) Vs is set to be 0.5000 m3/kmol; (b) Vs is set to be 4.3.3. P−X Diagram. Figure 12 depicts the P−X diagram
0.5500 m3/kmol; and (c) comparison of the different P−X phase
calculated by the three-phase VLS equilibrium calculation
boundaries yielded by our algorithm with different Vs. V: vapor phase;
L: liquid phase; and S: solid asphaltene phase. algorithm with the adjusted parameters for oil sample 3 mixed
with gas 1 (pure CO2). The temperature is set to be 59 °C. Vs is

Figure 10. Weight fractions (in wt %) of the precipitated asphaltenes calculated by our algorithm with different Vs as a function of pressure and gas
concentration at 61 °C: (a) Vs is set to be 0.4323 m3/kmol; (b) Vs is set to be 0.5000 m3/kmol; and (c) Vs is set to be 0.5500 m3/kmol.

15676 DOI: 10.1021/acs.iecr.9b02740


Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Table 8. Compositions of Oil Sample 3 and Three Injection Gases4,37


component oil sample 3 gas 1 (pure CO2) gas 2 (impure CO2) gas 3 (impure CO2)
N2 0.96 0 0 5.10
CO2 0.58 100 90.10 89.80
H2S 0.30 0 0 0
C1 4.49 0 9.90 5.10
C2 2.99 0 0 0
C3 4.75 0 0 0
i-C4 0.81 0 0 0
n-C4 1.92 0 0 0
i-C5 1.27 0 0 0
n-C5 2.19 0 0 0
C6+ 79.74 0 0 0

Table 9. Composition and Component Properties of Oil Sample 334,35


component mole fraction (mol %) molecular weight (g/mol) critical temperature (K) critical pressure (bar) critical volume (m3/kmol) acentric factor
N2 0.96 28.01 126.20 34.40 0.0901 0.04
CO2 0.58 44.01 304.70 74.80 0.0940 0.23
H2S 0.30 34.08 373.60 90.60 0.0976 0.10
C1 4.49 16.04 190.60 46.70 0.0993 0.01
C2 2.99 30.07 305.43 49.50 0.1479 0.10
C3 4.75 44.10 369.80 43.00 0.2029 0.15
i-C4 0.81 58.12 408.10 37.00 0.2627 0.18
n-C4 1.92 58.12 419.50 38.00 0.2547 0.20
i-C5 1.27 72.15 460.40 34.30 0.3058 0.23
n-C5 2.19 72.15 465.90 34.00 0.3040 0.24
C6-9 27.93 101.12 579.68 34.34 0.3897 0.32
C10-17 29.94 179.18 717.68 23.72 0.6536 0.54
C18-27 14.43 300.79 843.53 17.74 0.9369 0.77
C28A+ 5.80 513.00 963.33 14.39 1.1924 0.96
C28B+ 1.64 513.00 963.33 14.39 1.1924 0.96

Table 10. Adjustable Parameters and Their Values Used in


Our Algorithm for Oil Sample 3 Mixed with Pure CO2
adjusted
parameter value
critical gas concentration above which asphaltenes start to 46
precipitate (mol %)
θ 4.7
BIP between CO2 and HCs 0.07

Table 11. BIPs Used for Oil Sample 3 Calculations35


N2 CO2 H2S C28B+
N2 0 −0.0170 0.1767 0.3447
CO2 −0.0170 0 0.0974 0.3359
H2S 0.1767 0.0974 0 0.3280
C1 0.0311 0.0700 0.080 0.3245
C2 0.0515 0.0700 0.0833 0.2433
C3 0.0852 0.0700 0.0878 0.1828 Figure 11. Comparison between the weight fractions of the
i-C4 0.1033 0.0700 0.0474 0.1374 precipitated asphaltenes as a function of gas concentration calculated
by our algorithm with the adjusted parameters and those obtained by
n-C4 0.0800 0.0700 0.0600 0.1426
experiments conducted by Srivastava et al.4 for oil sample 3 at 59 °C
i-C5 0.0922 0.0700 0.0600 0.1129
and 160 bar.
n-C5 0.1000 0.0700 0.0600 0.1139
C6-9 0.1000 0.0700 0.0600 0.0780
C10-17 0.1000 0.0700 0.0600 0.0233 while the tested gas concentration is varied from 0 to 99 mol %
C18-27 0.1000 0.0700 0.0600 0.0038 with a step size of 0.25 mol %. This algorithm is run 475 209
C28A+ 0.1000 0.0700 0.0600 0 times to generate the P−X diagram. Figure 12 shows that our
C28B+ 0.3447 0.3359 0.3280 0 three-phase VLS equilibrium calculation algorithm performs
well at of all the tested points. Note that there is a red region,
calculated by the PR EOS to be 0.4505 m3/kmol.20 The tested named as region 1, in Figure 12. This region is a three-phase
pressure is varied from 1 to 300 bar with a step size of 0.25 bar, VLS region. However, the liquid phase in this region is found to
15677 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

sample 3 mixed with impure CO2. Figure 13a,b shows the P−X
diagrams generated for oil sample 3 mixed with gas 2 and gas 3,
respectively. The tested pressure in Figure 13a is varied from 1
to 300 bar, while the tested pressure in Figure 13b is varied
from 1 to 360 bar. In both figures, a step size of 0.25 bar is used.
Moreover, in both figures, the tested gas concentration is varied
from 0 to 99 mol % with a step size of 0.25 mol %. Our
algorithm is run 475 209 times to generate Figure 13a, while it
is run 570 489 times to generate Figure 13b. As shown in Figure
13, this algorithm performs well at all of the tested points.
Again, a special region (region 1) appears in both figures.

5. CONCLUSIONS
Figure 12. P−X diagram calculated by the three-phase VLS
equilibrium calculation algorithm with the adjusted parameters for Based on the asphaltene precipitation model proposed by
oil sample 3 mixed with gas 1 (pure CO2) at 59 °C. V: vapor phase; L: Nghiem et al.,1 we develop a robust three-phase VLS
liquid phase; and S: solid asphaltene phase. equilibrium calculation algorithm. In this algorithm, new
initialization methods for equilibrium ratios are provided for
be very dense and more like an asphaltene phase. We think the both stability test and flash calculation. To develop this three-
reason underlying the appearance of this three-phase region is phase VLS equilibrium calculation algorithm, a simple two-
that the liquid phase cannot merge with the asphaltene phase phase V/L-S flash calculation algorithm is first developed.
due to the assumption that asphaltene phase is a pure Moreover, two three-phase VLS flash calculation algorithms are
asphaltene phase. simultaneously developed to greatly ensure the robustness and
Figure 13 shows the P−X diagrams calculated by the three- efficiency of the three-phase VLS equilibrium calculation
phase VLS equilibrium calculation algorithm with the adjusted algorithm. Algorithm #1 is similar to the three-phase free-
water VLA flash calculation algorithm developed by Li and Li.16
It is more efficient, but relies on the proper assignment of the
initial equilibrium ratios. Algorithm #2 uses an outer loop to
update the mole fraction of asphaltene phase and uses an inner
loop to perform the two-phase VL flash calculation. This
algorithm is more robust, but it is more time-consuming since
several two-phase VL flash calculations are required to be
conducted in the inner loop. Moreover, the prerequisite for
conducting Algorithm #2 is that a three-phase VLS equilibrium
actually appears.
We test the performance of this newly developed algorithm
by several real reservoir fluids mixed with pure or impure CO2.
The parameters used in the asphaltene precipitation model are
first tuned to match the experimental asphaltene precipitation
data. With the adjusted parameters, our three-phase VLS
equilibrium calculation algorithm is run hundreds of thousands
of times to generate P−X diagrams for two crude oils mixed
with pure or impure CO2. Our algorithm performs well at all of
the test points. In general, four types of phase equilibria can be
observed when the crude oil is mixed with pure or impure CO2:
L equilibrium, LV equilibrium, LS equilibrium, and VLS
equilibrium. When the gas concentration is very high, a small
three-phase equilibrium region shows up between the two-
phase VL equilibrium region and the two-phase LS equilibrium
region. In this region, the three-phase equilibrium contains a
vapor phase, an asphaltene phase, and a liquid phase, which is
very dense and more like an asphaltene phase. The appearance
Figure 13. P−X diagrams calculated by the three-phase VLS of this three-phase region can be attributed to the immiscibility
equilibrium calculation algorithm with the adjusted parameters for of the dense liquid phase and the pure asphaltene phase and the
oil sample 3 mixed with impure CO2 at 59 °C: (a) gas 2 and (b) gas 3. assumption that the asphaltene phase is assumed to be a pure
V: vapor phase; L: liquid phase; and S: solid asphaltene phase. phase.

parameters for oil sample 3 mixed with impure CO2. The


temperature is set to be 59 °C. Vs is calculated by the PR EOS
■ APPENDIX A: TWO-PHASE V/L-S FLASH
CALCULATION ALGORITHM #1
to be 0.4505 m3/kmol.20 The adjusted parameters used for Figure 14 depicts the flowchart of the two-phase V/L-S flash
modeling the phase behavior of oil sample 3 mixed with pure calculation algorithm. The detailed procedure of this algorithm
CO2 are also applied for modeling the phase behavior of oil is given below
15678 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

Figure 14. Flowchart of the two-phase V/L-S flash calculation


algorithm.

(1) Input the pressure (P), temperature (T), feed (zi), and
thermodynamic properties of each component (Tci, Pci,
and ωi). Figure 15. Flowchart of the three-phase VLS flash calculation
(2) Initialize phase mole fraction of asphaltene phase (βs) Algorithm #2.
and set its tolerance (tol) to be 10−6.
(3) Calculate the composition of nonasphaltene phase (xi) (5) Calculate the fugacities of each component in liquid and
using eq 10 and calculate the fugacity of each component vapor phases (f ix and f iy) based on PR EOS.
in nonasphaltene phase (f ix) based on PR EOS. (6) Calculate the absolute relative error (err) between the
(4) Calculate the absolute relative error (err) between the fugacities of asphaltene component in the nonasphaltene
fugacities of asphaltene component in the nonasphaltene phase (fcx) and asphaltene phase (fcs) using eq A-A-1.
phase (fcx) and the asphaltene phase (fcs) using the (7) If err > tol, update mole fraction of asphaltene phase (βs)
following equation: and go back to step (3); otherwise, update phase mole
fractions of liquid phase and vapor phase (βx and βy) by
|fc s − fc x |
err = the following equation and output the calculated phase
fc s (A-1) fractions and phase compositions:

(5) If err > tol, update mole fraction of asphaltene phase (βs) βx = βx × (1 − βs); βy = βy × (1 − βs) (B-1)
and go back to step (3); otherwise, output the calculated


phase mole fractions and phase compositions.

APPENDIX B: THREE-PHASE VLS FLASH


■ AUTHOR INFORMATION
Corresponding Author
CALCULATION ALGORITHM #2 *E-mail: huazhou@ualberta.ca. Phone: 1-780-492-1738.
Figure 15 depicts the flowchart of the three-phase VLS flash ORCID
calculation Algorithm #2. The detailed procedure of this Huazhou Li: 0000-0002-4541-670X
algorithms is summarized below Notes
(1) Input the pressure (P), temperature (T), feed (zi), and The authors declare no competing financial interest.
thermodynamic properties of each component (Tci, Pci,
and ωi).
(2) Initialize mole fraction of asphaltene phase (βs) and set
■ ACKNOWLEDGMENTS
The authors acknowledge a Discovery Grant from the Natural
its tolerance (tol) to be 10−6. Sciences and Engineering Research Council (NSERC) of
(3) Calculate the composition of nonasphaltene phase (zi2) Canada to H.L.
using eq 19.
(4) Conduct two-phase VL flash calculation to calculate
phase mole fractions of liquid phase and vapor phase (βx

c
NOMENCLATURE
number of components or asphaltene
and βy) and compositions of liquid and vapor phases (xi component
and yi). f fugacity
15679 DOI: 10.1021/acs.iecr.9b02740
Ind. Eng. Chem. Res. 2019, 58, 15666−15680
Industrial & Engineering Chemistry Research Article

k value of the stationary point (which is a (11) Li, Z.; Firoozabadi, A. General strategy for stability testing and
constant) or BIP phase-split calculation in two and three phases. SPE J. 2012, 17, 1096−
K equilibrium ratio 1107.
MW molecular weight (12) Baker, L. E.; Pierce, A. C.; Luks, K. D. Gibbs energy analysis of
phase equilibria. SPE J. 1982, 22, 731−742.
P pressure (13) Gorucu, S. E.; Johns, R. T. Robustness of three-phase
R universal gas constant equilibrium calculations. J. Pet. Sci. Eng. 2016, 143, 72−85.
T temperature (14) Leibovici, C. F.; Nichita, D. V. A new look at multiphase
s composition of the asphaltene phase Rachford-Rice equations for negative flashes. Fluid Phase Equilib. 2008,
v molar volume 267, 127−132.
V molar volume (15) Michelsen, M. L. Calculation of multiphase equilibrium.
w component weight fraction Comput. Chem. Eng. 1994, 18, 545−550.
x composition of the liquid phase or (16) Li, R.; Li, H. A. New two-phase and three-phase Rachford-Rice
nonasphaltene phase algorithms based on free-water assumption. Can. J. Chem. Eng. 2018,
x_0, x_01, x_02, ... compositions of the trial phase at negative 96, 390−403.
(17) Whitson, C. H.; Michelsen, M. L. The negative flash. Fluid Phase
stationary points
Equilib. 1989, 53, 51−71.
y composition of the trial phase or vapor (18) Lapene, A.; Nichita, D. V.; Debenest, G.; Quintard, M. Three-
phase phase free-water flash calculations using a new modified Rachford-Rice
z composition of the tested phase or feed equation. Fluid Phase Equilib. 2010, 297, 121−128.
(19) Tang, Y.; Saha, S. An efficient method to calculate three-phase
Greek Letters free-water flash for water-hydrocarbon systems. Ind. Eng. Chem. Res.
β phase mole fraction 2003, 42, 189−197.
θ exponential parameter (20) Peng, D.-Y.; Robinson, D. B. A new two-constant equation of
ω acentric factor state. Ind. Eng. Chem. Fundam. 1976, 15, 59−64.
ϕ fugacity coefficients (21) Nghiem, L. X.; Coombe, D. A. Modelling asphaltene
precipitation during primary depletion. SPE J. 1997, 2, 170−176.
Subscripts (22) Nghiem, L. X.; Li, Y. K. Computation of multiphase equilibrium
phenomena with an equation of state. Fluid Phase Equilib. 1984, 17,
2 component CO2 77−95.
c asphaltene component or critical properties (23) Rachford, H. H., Jr.; Rice, J. D. Procedure for use of electronic
i component index digital computers in calculating flash vaporization hydrocarbon
j component index equilibrium. J. Pet. Technol. 1952, 4, 327−328.
s asphaltene phase (24) Haugen, K. B.; Firoozabadi, A.; Sun, L. Efficient and robust
x nonasphaltene phase or liquid phase three-phase split computations. AIChE J. 2011, 57, 2555−2565.
y vapor phase (25) Michelsen, M. L.; Mollerup, J. Thermodynamic Modelling:
Fundamentals and Computational Aspects; Tie-Line Publications, 2004.

■ REFERENCES
(1) Nghiem, L. X.; Hassam, M. S.; Nutakki, R.; George, A. E. D.
(26) Okuno, R.; Johns, R.; Sepehrnoori, K. A new algorithm for
Rachford-Rice for multiphase compositional simulation. SPE J. 2010,
15, 313−325.
(27) Wilson, G. M. A Modified Redlich-Kwong Equation of State,
Efficient Modelling of Asphaltene Precipitation, Presented at SPE Application to General Physical Data Calculations. Presented at the
Annual Technical Conference and Exhibition, Houston, TX, Oct. 3−6, 65th National AIChE Meeting, Cleveland, OH, May 4−7, 1968.
1993; SPE, 1993; Paper No. SPE-26642-MS. (28) Burke, N. E.; Hobbs, R. E.; Kashou, S. F. Measurement and
(2) Jarrell, P. M.; Fox, C. E.; Stein, M. H.; Webb, S. L. Practical Modeling of Asphaltene Precipitation (includes associated paper
Aspects of CO2 Flooding; Society of Petroleum Engineers: Richardson, 23831). J. Pet. Technol. 1990, 42, 1440−1446.
TX, 2002; Vol. 22. (29) Pedersen, K. S.; Fredenslund, A.; Thomassen, P. Properties of
(3) Srivastava, R. K.; Huang, S. S. Laboratory Investigation of Oils and Natural Gases; Gulf Publishing Co., 1989; Vol. 5.
Weyburn CO2 Miscible Flooding. Presented at Technical Meeting/ (30) Qin, X.; Wang, P.; Sepehrnoori, K.; Pope, G. A. Modeling
Petroleum Conference of the South Saskatchewan Section, Regina, asphaltene precipitation in reservoir simulation. Ind. Eng. Chem. Res.
Saskatchewan, Canada, Oct. 19−22, 1997; Petroleum Society of 2000, 39, 2644−2654.
Canada, 1997. (31) Kesler, M. G.; Lee, B. I. Improve prediction of enthalpy of
(4) Srivastava, R. K.; Huang, S. S.; Dong, M. Asphaltene deposition fractions. Hydrocarbon Process. 1976, 55, 153.
during CO2 flooding. SPE Prod. Facil. 1999, 14, 235−245. (32) Lee, B. I.; Kesler, M. G. A generalized thermodynamic
(5) Subramanian, S.; Simon, S.; Sjöblom, J. Asphaltene precipitation correlation based on three-parameter corresponding states. AIChE J.
models: a review. J. Dispersion Sci. Technol. 2016, 37, 1027−1049. 1975, 21, 510−527.
(6) Leontaritis, K.; Mansoori, G. Asphaltene Flocculation during Oil (33) Riazi, M. Simplify property predictions. Hydrocarbon Process.
Production and Processing: A Thermodynamic Colloidal Model. 1980, 59, 115−116.
Presented at SPE International Symposium on Oilfield Chemistry, San (34) Kariman Moghaddam, A.; Saeedi Dehaghani, A. H. Modeling of
Antonio, TX, Feb. 4−6, 1987; SPE, 1987: Paper No. SPE-16258-MS. asphaltene precipitation in calculation of minimum miscibility
(7) Agrawala, M.; Yarranton, H. W. An asphaltene association model pressure. Ind. Eng. Chem. Res. 2017, 56, 7375−7383.
analogous to linear polymerization. Ind. Eng. Chem. Res. 2001, 40, (35) PVTsim Nova, version 3.3; Calsep A/S: Copenhagen, Denmark,
4664−4672. 2019.
(8) David Ting, P.; Hirasaki, G. J.; Chapman, W. G. Modeling of (36) Chueh, P. L.; Prausnitz, J. M. Vapor-liquid equilibria at high
asphaltene phase behavior with the SAFT equation of state. Pet. Sci. pressures: Calculation of partial molar volumes in nonpolar liquid
Technol. 2003, 21, 647−661. mixtures. AIChE J. 1967, 13, 1099−1107.
(9) Michelsen, M. L. The isothermal flash problem. Part I. Stability. (37) Dong, M.; Huang, S.; Dyer, S. B.; Mourits, F. M. A comparison
Fluid Phase Equilib. 1982, 9, 1−19. of CO2 minimum miscibility pressure determinations for Weyburn
(10) Michelsen, M. L. The isothermal flash problem. Part II. Phase- crude oil. J. Pet. Sci. Eng. 2001, 31, 13−22.
split calculation. Fluid Phase Equilib. 1982, 9, 21−40.

15680 DOI: 10.1021/acs.iecr.9b02740


Ind. Eng. Chem. Res. 2019, 58, 15666−15680

You might also like