Sie sind auf Seite 1von 10

An Efficient Implicit-Pressure/Explicit-

Saturation-Method-Based Shifting-Matrix
Algorithm To Simulate Two-Phase,
Immiscible Flow in Porous Media With
Application to CO2 Sequestration in the
Subsurface
Amgad Salama, Shuyu Sun, and M.F. El-Amin, King Abdullah University of Science and Technology

Summary roscale (i.e., the scale at which the continuum approach may
The flow of two or more immiscible fluids in porous media is apply) (Salama and Van Geel 2008a, b), we are faced with the
widespread, particularly in the oil industry. This includes second- spatial heterogeneity of porous media, which makes characteriza-
ary and tertiary oil recovery and carbon dioxide (CO2) sequestra- tion of the domain structure difficult. In this case, finer mesh
tion. Accurate predictions of the development of these processes would generally be required to accurately capture the fine details
are important in estimating the benefits and consequences of the of processes taking place in a given porous-medium domain. If
use of certain technologies. However, this accurate prediction the size of the domain is large (e.g., in oil reservoirs), a much
depends—to a large extent—on two things. The first is related to larger system of equations would have to be solved simultane-
our ability to correctly characterize the reservoir with all its com- ously, which would generally require larger computing resources
plexities; the second depends on our ability to develop robust and execution time. It remains important, therefore, to design
techniques that solve the governing equations efficiently and computer algorithms in the most efficient way possible to reduce
accurately. In this work, we introduce a new robust and efficient CPU time. In the past few decades, a number of computer lan-
numerical technique for solving the conservation laws that govern guages, such as Python and Matlab (fourth-generation program-
the movement of two immiscible fluids in the subsurface. As an ming languages), have gained popularity among researchers and
example, this work is applied to the problem of CO2 sequestration engineers. These languages show a steady increase in the number
in deep saline aquifers; however, it can also be extended to incor- of users compared with traditional programming languages (e.g.,
porate more scenarios. The traditional solution algorithms to this Fortran, C, Cþþ) because of the relatively easy interface, the
problem are modeled after discretizing the governing laws on a run-time graphical display of results, the ease of manipulation of
generic cell and then proceed to the other cells within loops. matrices and vectors, andother features. The major difference
Therefore, it is expected that calling and iterating these loops mul- between these two classes of programming languages is that the
tiple times can take a significant amount of computer time. former do not produce an executable file. In other words, each
Furthermore, if this process is performed with programming lan- time a script is executed, it must go through an interpretation pro-
guages that require repeated interpretation each time a loop is cess. Furthermore, if the script contains loops, repeated interpreta-
called, such as Matlab, Python, and others, much longer time is tion would be required every time the loop is called. One can
expected, particularly for larger systems. In this new algorithm, imagine how much computer time this can take, particularly for
the solution is performed for all the nodes at once and not within larger, time-dependent problems. The latter category, on the other
loops. The solution methodology involves manipulating all the hand, does not have the same shortcoming because the languages
variables as column vectors. By use of shifting matrices, these produce an executable file, and no further interpretation would be
vectors are shifted in such a way that subtracting relevant vectors required. It is important when using these programming languages
produces the corresponding difference algorithm. It has been to minimize the use of loops, which is the most time-consuming
found that this technique significantly reduces the amount of cen- part of code execution.
tral-processing-unit (CPU) time compared with a traditional tech- In this work, we develop a new technique that makes the exe-
nique implemented within the framework of Matlab. cutable time of codes written by Matlab, Python, and others
comparable with those of the other high-level programming lan-
guages. The main essence of this approach is to replace spatial-
Introduction loop operations with matrix operations. In other words, within
Problems related to flow and transport in porous media span a temporal loops, all the calculations are performed using matrix
large spectrum of scales, from pore-related applications to large- operations rather than inside loops. In this case, in the framework
scale reservoirs. Furthermore, although the governing conserva- of the finite-difference method, all the difference operations for
tion laws describing phenomena occurring in porous media are all the cells are performed all at once using matrices rather than
relatively simple (e.g., in comparison with those related to flow within loops. This technique was first developed by Sun et al.
and transport in fluids), they present difficulties characteristic of (2012) and shows significant reduction in execution time, particu-
the complexity of porous media. Probably the most obvious one is larly for larger systems. In this work, we apply this technique to
our inability to give complete detailed microscopic description of the problem of two-phase, immiscible flow in porous media with
any naturally occurring porous media. Moreover, even at the mac- application to CO2 sequestration in the subsurface.
CO2 sequestration is one of the most attractive methods to
reduce the amount of CO2 in the atmosphere by injecting CO2
Copyright V
C 2013 Society of Petroleum Engineers
into deep geologic formations. Currently, a number of pilot proj-
This paper (SPE 163140) was accepted for presentation at the Carbon Management ects for CO2 sequestration are in operation around the world,
Technology Conference, Orlando, Florida, USA, 7–9 February 2012, and revised for
publication. Original manuscript received for review 4 May 2012. Revised manuscript
including that in Weyburn, Canada; in Salah, Algeria; in Sleipner,
received for review 7 September 2012. Paper peer approved 19 December 2012. Norway; in Frio, Texas, USA; in Qinshui basin, China; and in

1092 December 2013 SPE Journal


Larger
porosity

Smaller Medium
porosity porosity

Fig. 2—Buoyancy force leads CO2 plume to move upward (from


Fig. 1—Porosity requirements for suitable CO2-sequestration
www.ifpenergiesnouvelles.com).
sites (from www.ifpenergiesnouvelles.com).

Yubari, Japan (Salama and Van Geel 2008b). On the other hand, formed in modeling CO2 injection consider only gravity while
CO2 sequestration may combine with enhanced-oil-recovery neglecting capillarity (Bielinski 2007; Liu et al. 2010; Nghiem
(EOR) schemes (Blunt et al. 1993; Jessen et al. 2005; Metz et al. et al. 2010). In contrast, other studies show little difference
2005; Alavian and Whitson 2009; Carneiro 2009; Gaspar Ravag- between the results with and without capillarity (Altundas et al.
nani et al. 2009; Ferguson et al. 2010; Sbai and Azaroual 2010). 2010). Hoteit and Firoozabadi (2008) show that capillarity could
Some studies suggest that the CO2-EOR scheme is able to increase be neglected, especially in a homogeneous domain (however, not
oil production by 7 to 23% of the original oil in place (Martin and in a heterogeneous domain).
Taber 1992; Todd and Grand 1993; Holt et al. 1995, 2000; Taber The most well-known method used to numerically solve the
et al. 1997; Jahangiri and Zhang 2010). Hence, the CO2-EOR flow of two-phase incompressible and immiscible fluids in porous
scheme has the double benefit of improving oil production and media is the IMplicit Pressure/Explicit Saturation (IMPES)
reducing the amount of CO2 in the atmosphere. Three types of geo- method (Chen et al. 2004; Kou and Sun 2010a, b; Negara 2011).
logical formations have potential for long-term storage of CO2. In this scheme, the pressure equation is evaluated implicitly and
These include depleted oil and gas reservoirs, deep coalbeds, and the saturation equation is solved explicitly. We adapt this scheme
deep saline aquifers (Carneiro 2009). Certain requirements, how- to the problem when both phases are considered compressible. In
ever, need to be fulfilled for a site to be suitable for CO2 sequestra- this study, both capillary pressure and gravity are taken into con-
tion. This includes higher porosity (Fig. 1), which is related to sideration. The motivation for this study is, therefore, to investi-
storage capacity, and freedom from faults and fractures. In sum- gate the flow behavior of a supercritical, compressible CO2 plume
mary, the potential sites should satisfy the suitability, inventory, in the subsurface. We simulate the early stage of CO2-plume
safety, and capacity (Taber et al. 1997). The injection of CO2 migration, considering only the structural-trapping mechanism.
requires at least a depth of approximately 800 m (Bielinski 2007;
Burruss et al. 2009) to ensure that CO2 is injected into the forma- Governing Equations
tions in supercritical state, in which CO2 exists above its critical
The adaptation of the continuum hypothesis to transport phenom-
temperature and pressure. This enables higher density of CO2 and
ena in porous media allows the description of conservation laws
therefore increased capacity. However, the density of CO2 at these
in the form of differential equations. This may be successful pro-
conditions is still less than that of the surrounding brine solution.
vided that certain conditions and length-scale constraints are satis-
As a consequence, because of the density difference, CO2 will tend
fied (Salama and Van Geel 2008a, b). In this work, we consider
to rise buoyantly until it reaches a structural trap or physical bar-
the injection of supercritical CO2 into a rectangular domain meas-
rier; see Fig. 2. The caprock is shaped as a dome and usually it can
uring 100  50 m and saturated initially with brine. Because the
contain a large amount of the injected CO2 for long-term retention.
density of the injected CO2 is less than that of the brine solution,
The caprock should have low permeability to ensure that the
the CO2 plume will tend to move upward because of buoyancy
injected CO2 does not spread rapidly toward the surface. There are
forces. As indicated earlier, suitable sites for CO2 sequestration
four mechanisms to trap the injected CO2 for long-term storage:
possess certain features, including the existence of caprock, to
structural (stratigraphic) trapping, residual-fluid trapping, solubil-
allow for long-term storage. In this work, different injection sce-
ity trapping, and mineral trapping. Structural trapping is the most
narios are considered, including injection from both vertical and
widely used method: The injected CO2 plume migrates upward
horizontal wells. Furthermore, because this work focuses on simu-
until it reaches the caprock, where it becomes trapped for longer
lating the early-time plume movement, structural trapping is con-
period of time. The residual-fluid trapping mechanism, on the other
sidered and solubility trapping is neglected. This assumption may
hand, refers to the trapping of CO2 as immobile gas in the pore
be valid because of the different time scales involved for plume
space. The next mechanism is solubility trapping, in which the
advancement and solubility capture of CO2. We adopt the shift-
injected CO2 dissolves in brine (salty water) such that the resulting
ing-matrix technique, Sun et al. (2012), which proves to be effi-
mixture has higher density than the surrounding brine, so the satu-
cient in numerically solving the governing set of partial-
rated brine sinks to the bottom of the geological formations. The
differential equations. The equations are defined for this system as
last mechanism is mineral trapping. The basic idea of this mecha-
follows. The mass-conservation equation for both phases is
nism is that CO2 will produce weak carbonic acid (such as mineral
water) when it is dissolved in water. The weak acid reacts with the @/qn Sn
minerals of the rock, forming solid carbonate minerals. þ r  qn vn ¼ qn : . . . . . . . . . . . . . . . . . . . . . ð1Þ
@t
Modeling of CO2 injection is helpful to assess the behavior of
the CO2 plume upon injection and the storage capacity of the res- @/qw Sw
þ r  qw vw ¼ qw ; . . . . . . . . . . . . . . . . . . . . . ð2Þ
ervoir. Numerical investigation of CO2 injection has been the @t
focus of many research works in recent years (Izgec and Demiral
together with Darcy’s laws
2005; Bielinski 2007; Doughty 2007; Sasaki et al. 2008; Alavian
and Whitson 2009; Carneiro 2009; Hayek et al. 2009; Nasrabadi vn ¼ k krn =ln ðrpn  qn grzÞ . . . . . . . . . . . . . . . . ð3Þ
et al. 2009; Sifuentes et al. 2009; Sun and Firoozabadi 2009; Liu
et al. 2010; Moortgat et al. 2010; Nghiem et al. 2010; Sbai and vw ¼ k krw =lw ðrpw  qw grzÞ; . . . . . . . . . . . . . . . ð4Þ
Azaroual 2010; Thomas and Wheeler 2011). Some studies per-

December 2013 SPE Journal 1093


and the constraints relations Let kn ¼ krn =ln and kw ¼ krw =lw be the mobilities of the
nonwetting and the wetting phases, respectively. The total mobil-
Sn þ Sw ¼ 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð5Þ ity is, thus, defined as

pc ¼ pn  pw : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð6Þ kt ¼ kn þ kw : . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð16Þ

When the compressibility of the phases and the nonlinearity of We define the fractional flow of the two phases as
relative permeability and/or capillary pressure are pronounced,
the two saturation equations (Eqs. 1 and 2) need to be solved im- fn ¼ kn =kt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð17Þ
plicitly. In other words, there is no need to add these two equa-
tions as is suggested by the IMPES algorithm. For the case in fw ¼ kw =kt : . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð18Þ
which there is no external loading, and the grains of the porous
medium are incompressible but not stationary, the first term in the Therefore, the second term on the left-hand side of Eq. 11 may
mass-conservation equation for the a-phase may be expanded as be written as
@/qa Sa @Sa @q @/
¼ /qa þ /Sa a þ qa Sa ; . . . . . . . . . . ð7Þ 
1 1
r  k½qn fn kt ðrpn  qn grzÞ  r
@t @t @t @t qn qw
or
 k½qw fw kt ðrpn  pc  qw grzÞ: . . . . . . . . . . . . ð19Þ
@/qa Sa @pa @pa @Sa
¼ /Sa qa cf ;a þ q a S a cr þ /qa : . . . . ð8Þ
@t @t @t @t Let na ¼ qa fa kt k and a ¼ n; w, and 19 further reduces to
 
1 @qa 1 1 1
In this formula, cf ;a ¼ is the a-phase compressibility,  r  nn rpn  r  nw rpn þ r  nw rpc
qa @p qn qw qw
cr ¼ @e=@r ffi @/=qa is the rock compressibility where e is the 1 1
volumetric strain and r is the effective stress. A typical value of þ r  nn qn grz þ r  nw qw grz :       ð20Þ
rock compressibility at depths similar to those suggested for CO2 qn qw
sequestration is on the order of 10–11 Pa–1 (Neuzil 1986), whereas
it is for supercritical CO2 on the order of 10–9 Pa–1 (Law and Eq. 9 therefore reduces to
Bachu 1996; Span and Wagner 1996). Apparently, the compressi-    
@pn @pc
bility of CO2 is quite small; however, it is orders of magnitudes /ðSn cf ;n þ Sw cf ;w Þ  /Sw cf ;w
larger than that of the rock mass. Therefore, rock compressibility @t @t
   
can be neglected in the CO2-rich zone. Under these conditions, 1 1 1
 r  nn rpn þ r  nw rpn þ r  nw rpc
one may still be able to consider the IMPES algorithm if certain qn qw qw
approximations are considered.  
1 1
Adding Eqs. 1 and 2, by use of Eq. 5, and neglecting rock þg r  nn qn rz þ r  nw qw rz ¼ q~t :       ð21Þ
compressibility, one obtains qn qw

X 1 @ X 1 X qa Let c ¼ /ðSn cf ;n þ Sw cf ;w Þ, and Eq. 21 reduces to


ðqa /Sa Þ þ r  ðqa va Þ ¼ . . . . ð9Þ    
q
a¼w;n a
@t q
a¼w;n a
q
a¼w;n a @pn 1 1 1
c ¼ r  nn rpn þ r  nw rpn  r  nw rpc
X @Sa X /Sa @qa X 1 X qa @t q qw q
/ þ þ r  ðqa va Þ ¼ n  w 
@t q @t q q 1 1 @pc
a¼w;n a¼w;n a a¼w;n a a¼w;n a þ q~t  g r  nn qn rz þ r  nw qw rz þ /Sw cf ;w :
qn qw @t
                   ð10Þ
                   ð22Þ
X @pa X 1 X qa
/Sa cf ;a þ r  ðqa va Þ ¼ : . . . . ð11Þ The term involving the time derivative of the capillary pres-
a¼w;n
@t q
a¼w;n a
q
a¼w;n a
sure can be written as
By use of Eq. 6, the first term in the left side of Eq. 11 may be @Sw
expanded as /Sw cf ;w p0c ; . . . . . . . . . . . . . . . . . . . . . . . . . . . ð23Þ
@t
@pn @pn @pc where p0c ¼ @pc =@Sw . Two approaches may be introduced to deal-
/Sn cf ;n þ /Sw cf ;w  /Sw cf ;w ; . . . . . . . . . .ð12Þ
@t @t @t ing with this term. In the first approach, one may obtain @Sw =@t
from the two previous timesteps (time-lagged technique). In the
or second approach, one may substitute Eq. 2 into Eq. 23 (Kou and
@pn @pc Sun 2010a). The density and compressibility of CO2 at the given
/ðSn cf ;n þ Sw cf ;w Þ  /Sw cf ;w : . . . . . . . . . . . . ð13Þ pressure values can be obtained from any equation-of-state
@t @t
(EOS); in this work, however, we used the Peng-Robinson EOS.
By use of Eqs. 3, 4, and 6, the second term of Eq. 11 may, like- Apparently, if we consider a diagonal permeability tensor and the
wise, be expanded to compressibility of the two phases is ignored, Eq. 22 reduces to
  @
1 qn k krn 1 r  kt krpn ¼ r  fw kt k rpc þ g kt kðqn fn þ qw fw Þ  q~t :
 r ðrpn  qn grzÞ  r @z
qn ln qw
                     ð24Þ
q k krw
 w ðrpn  pc  qw grzÞ : . . . . . . . . . . . . . ð14Þ
lw We introduce (Hayek et al. 2009)
Sn  Srn
The last term in Eq. 9 can also be expanded to Sen ¼ . . . . . . . . . . . . . . . . . . . . . . . . .ð25Þ
1  Srn  Srw
qn qw 2þk
þ ¼ q~n þ q~w ¼ q~t : . . . . . . . . . . . . . . . . . . . . . ð15Þ krn ðSen Þ ¼ S2en ½1  ð1  Sen Þ k  . . . . . . . . . . . . . . . ð26Þ
qn qw

1094 December 2013 SPE Journal


which may be simplified as
i, j +1
Aði; j  1Þpði; j  1Þ þ Aði  1; jÞpði  1; j; i; jÞ
þ Aði; j; i; jÞpði; jÞ þ Aði þ 1; j; i; jÞpði þ 1; jÞ
þ Aði; j þ 1; i; jÞpði; j þ 1Þ ¼ bði; jÞ:             ð30Þ
i, j i +1, j Here, i ¼ 1,m and j ¼ 1, n, where m and n are the number of
segments in the x- and y-directions, respectively. Note that differ-
ent equations will be used for the boundary cells and the corner
cells. In the global grid, the pressure and the source term are
indexed by one index and the above equation (Eq. 31) is modified
z as

Aði; i  mÞpði  mÞ þ Aði; i  1Þpði  1Þ þ Aði; iÞpðiÞ


x þ Aði; i þ 1Þpði þ 1Þ þ Aði; i þ mÞpði þ mÞ ¼ bðiÞ:
                   ð31Þ
Fig. 3—Illustration of variables on a generic cell.
2þ3k
Note that the index i in the global system ¼ {1,2,…mn}. These
krw ðSen Þ ¼ ð1  Sen Þ k . . . . . . . . . . . . . . . . . . . . . ð27Þ expressions generate the matrix of coefficients and the right side
vector of the form Ap ¼ b, which may be solved numerically to
Sn obtain the pressure field. The velocity field is backed up using
pc ¼ p0c ð1  þ bc Þmc : . . . . . . . . . . . . . . . . . ð28Þ
1  Srw Darcy’s law. A pseudocode is shown to highlight the temporal
and spatial loops used for the pressure equation:
These equations together with the appropriate boundary condi-
tions represent a closed system that may be solved to obtain satu- Sat ¼ sat_Initial
ration of the a-phase with time. time ¼ 0.0
for i ¼ 1,mn
Solution Methodology A(i,i – m) ¼
As indicated, the previously discussed equations (Eqs. 25 through A(i,i – 1) ¼
29) are solved using the IMPES algorithm (Chen et al. 2006), in A(i,ij) ¼
which the pressure field at the new timestep is obtained using the A(i,i þ 1) ¼
saturation from the previous timestep. The traditional solution A(i,i þ m) ¼
methodology is to discretize the previously mentioned equations b(i) ¼
(Eqs. 25 through 29) on a generic cell and obtain the solution for end
all the cells within loops. In programming languages that require … … … … … … … … … ….
repeating interpretation each time a loop is called (e.g., Matlab, … … … … … … … … … ….
Python), exhaustively longer time is required, particularly for time ¼ time þ Dt
larger systems, which limits the usefulness of such algorithms (as … … … … … … … … … ….
explained previously). We apply the shifting-matrix technique, in continue
which the solution is sought for all the cells at once using matrix
operations rather than loops. This technique significantly reduces It is clear that within the temporal loop, there exists a nested
the CPU time and simplifies the use of boundary conditions. A set loop over the local indices i and j or the global index i. As
of comparison examples on the accuracy and efficiency of this explained previously, this would require an nm repeated interpre-
technique can be found in Sun et al. (2012). tation process and create an exhaustively longer CPU time, partic-
ularly for larger systems. In this work, we generalize a technique
Traditional Programming Algorithms. Traditionally, the pres- that was developed by Sun et al. (2012), which replaces all the
sure field at the cell’s center as well as the velocity field at the spatial loops with matrix operations, which is much faster.
edge centers surrounding each cell are usually saved in arrays
characterized by number of indices, which are as many as the
dimensions of the space. All discussion in this paper applies to the The Shifting-Matrix Technique
three spatial dimensions; however, for convenience of presenta- For the sake of illustration, consider the unknown cell-center pres-
tion, we consider two dimentions in our example here. Therefore, sure data, which are saved in the 2D array, P(i,j), as shown:
in our 2D problem the unknown pressure field, P(i,j), and the 2 3
phase saturations, S(i,j), are saved in m  n matrices, where m Pð1; 1Þ Pð1; 2Þ    Pð1; nÞ
6 7
is the number of segments in the x-direction and n is the number Pði; jÞ ¼ 4 ... ..
. 5 : . . . ð32Þ
of segments in the y-direction. Likewise, the velocity field, ux(i,j) Pðm; 1Þ Pðm; 2Þ  Pðm; nÞ mn
and uy(i,j), are saved in arrays of dimensions (m þ 1),n and
m,(n þ 1), respectively. The difference scheme is usually per- The first step is to reshape this matrix into a column vector.
formed on a generic cell, as shown in Fig. 3, and the discretization Shifting this column vector up and down by inserting zeros at cer-
of the various terms is achieved using a cell-center finite-differ- tain locations corresponding to boundary edges will result in the
ence scheme to satisfy conservation of mass. new column vectors, larger by the size of boundary terms (i.e.,
As an example, in the traditional numerical approach, over the mn þ n and mn þ m). Several useful operations may be performed
generic cell shown in Fig. 3, the pressure equation (e.g., for single- using this shifting process. For example, subtracting these new vec-
phase flow in porous media) (i.e., r  Krp ¼ q) is discretized as tors will generate the difference scheme, which is required in the fi-
piþ1;j  pi;j pi;j  pi1;j nite-difference algorithms. Adding these new vectors may be used
 to generate average values between adjacent cell information, for
Dxi Dxi1
 k xx example, as will be detailed later. The shifting process is performed
Dx by the use of special shifting matrices. Appendix A shows exam-
pi;jþ1  pi;j pi;j  pi;j1
 ples of the different shifting operations. The construction of these
Dyj Dyj1 matrices is rather simple; Appendix B contains Matlab scripts for
 k yy ¼ qi;j ;            ð29Þ
Dy the construction of these matrices in just a few lines.

December 2013 SPE Journal 1095


2  3
Cell-to-Face Shifting Matrices. We define the matrix AE 2 I11
f0; 1gðmþ1Þnmn , which we call the east-side shifting matrix, such 6 7
6 0m1 7
that 6   7
2 3 6 I11 7
 6 7
01m 6 0m1 7
6 I 7 6 7
BW ¼ 6 7
6 mm 7 6 7
6   7 6 7
6 0 1m 7 6 .. 7
6 7 6 7
6 I 7 6 . 7
6 mm 7 4 I11 5
AE ¼ 6 7 :
6 7 0m1
6 7 ðmþ1Þnn
6 .. 7
6 . 7                    ð38Þ
6 7
4 01m 5
Imm BN 2 f0; 1gmðnþ1Þ m
ðmþ1Þnmn
 
                   ð33Þ ð0mnm Þ
BN ¼ . . . . . . . . . . . . . . . . . . . . ð39Þ
ðImm Þ mðnþ1Þ m
Multiplying the pressure, P, by the shifting matrix AE results
in a new column vector, AEP, of size (m þ 1)n. This column vec- BS 2 f0; 1gmðnþ1Þm
tor contains n more entries, which are zeros. These extra elements  
will be filled with information at the boundary, as will be shown ðImm Þ
BS ¼ : . . . . . . . . . . . . . . . . . . . . ð40Þ
later. That is to say, the operation of AE on cell-centered informa- ð0mnm Þ mðnþ1Þm
tion vectors maps these vectors (mn components) to a higher
space of dimension (m þ 1)n. Likewise, we construct three more We also define a pressure-boundary and velocity-boundary flag
shifting matrices toward the west, AW, the north, AN, and the vector. These column vectors define the kind of boundary condi-
south, AS, directions: tions assigned to the faces. Appendix A shows a graphical repre-
sentation of the operation of these shifting matrices on the
AW 2 f0; 1gðmþ1Þn  mn pressure vector.
2  3
Imm
6 0 7
6 1m 7 Implementations. In cases when the compressibility of CO2 may
6   7
6 Imm 7 be ignored, the time-derivative terms in Eq. 22 vanish and a time-
6 7 independent equation in the pressure only appears (i.e., Eq. 23).
6 01m 7
6 7 Discretizing this equation using the cell-centered finite-difference
AW ¼ 6 7
6 7 scheme would require the permeability, the mobility, and the frac-
6 7
6 .. 7 tional flows, which are defined at the cell’s center, to be determined
6 . 7
6 7 at the midedges on the basis of the harmonic mean formulation by
4 Imm 5
use of the properties in the two adjacent cells sharing the same
01m ðmþ1Þn  mn edge. It is also possible to consider the upwind scheme in solving
                   ð34Þ this problem. In this scheme, the properties are evaluated on the ba-
sis of the direction of the velocity vector.
AN 2 f0; 1gmðnþ1Þ; mn The numerical algorithm would, generally, reformulate the
pressure equation (Eq. 22) into a set of algebraic equations that
 
ð0mmn Þ may be written in a matrix form as:
AN ¼ . . . . . . . . . . . . . . . . . . ð35Þ
ðImnmn Þ mðnþ1Þ  mn f½M  Dt½A1   Dt½A2 gptþ1
n ¼ ½Mptn  Dt½A2 ptc
AS 2 f0; 1gmðnþ1Þ; mn þ Dtqt  DtG þ ½Nðptc  pt1
c Þ:            ð41Þ
 
ðImnmn Þ To evaluate these matrices using the shifting-matrix technique,
AS ¼ : . . . . . . . . . . . . . . . . . . . ð36Þ
ð0mmn Þ mðnþ1Þ  mn the following set of operators (namely, the sum operator and the
difference operator) are defined:
The transposition of these matrices, on the other hand, maps
face-centered information vectors to a lower-dimension space Sum EW ¼ AW þ AE þ BE ½diagðisBdryEÞ BTE AE
with dimensions equal to the number of cells (i.e., mn).
Furthermore, boundary data are also shifted using boundary- þ BW ½diagðisBdryWÞBTW AW . . . . . . . . . . ð42Þ
shifting matrices defined as
Sum NS ¼ AN þ AS þ BN ½diagðisBdryNÞBTN AN
BE 2 f0; 1gðmþ1Þn  n :
þ BS ½diagðisBdrySÞBTS AS . . . . . . . . . . . . . ð43Þ
2  3
0m1
6 I 7 Diff EW ¼ AW  AE þ BE ½diagðisBdryEÞBTE AE
6 11 7
6   7  BW ½diagðisBdryWÞBTW AW . . . . . . . . . . ð44Þ
6 0m1 7
6 7
6 I11 7
6
BE ¼ 6
7 Diff NS ¼ AS  AN þ BS ½diagðisBdrySÞBTS AS
7
6 7
6 7  BN ½diagðisBdryNÞBTN AN : . . . . . . . . . . . ð45Þ
6 .. 7
6 . 7
6 7
4 0m1 5 In Eqs. 43 through 46, isBdryE is a vector of ones (size n) that
I11 defines the east boundary edges; likewise for the other boundaries.
ðmþ1Þn  n
The sum operator adds the information at the cell center of two
                   ð37Þ adjacent cells and assigns it to the shared edge, with the boundary
edges assigned twice the information of the adjacent cells. On the
BW 2 f0; 1gðmþ1Þnn
other hand, the difference operator subtracts information at the

1096 December 2013 SPE Journal


center of two adjacent cells and likewise assigns it to the shared Finally, the matrix ½N is defined as
edge, with the boundary edges assigned zero.
Furthermore, we define differential operators as ½N ¼ diagð/Sw cf ;w Þ: . . . . . . . . . . . . . . . . . . . . . . . . ð54Þ
Diffrn EW ¼ AW  AE þ BE diagðisNumEÞ BTE AE Substituting these matrices into Eq. 40, one could obtain the
 BW diagðisNumWÞ BTW AW . . . . . . . . ð46Þ new pressure field at the new timestep. By use of Eqs. 3 and 4,
one obtains the velocity fields, and by solving Eq. 1, the saturation
Diffrn NS ¼ AS  AN þ BS diagðisNumSÞ BTS AS field is obtained. It is to be noted that the saturation equation is
solved using the upwind scheme. In this scheme, na is not eval-
 BN diagðisNumNÞ BTN AN ; . . . . . . . . . .ð47Þ uated at the midedges; instead, it is evaluated at the center of the
cells on the basis of the direction of the velocity vector, and it
where diag implies a diagonal matrix and isNumE is a logical vec- could also be performed using the shifting-matrix technique. To
tor of size n that defines that part of the east boundary that is do so, we define
assigned as a Neumann boundary condition; likewise for the other
boundaries. These operators construct the difference equations for qa;W ¼ AW qa þ BE qBa;E . . . . . . . . . . . . . . . . . . . . ð55Þ
all the cells as depicted in the cell-centered finite-difference
method. Applying these operators on the terms defining the right- qa;E ¼ AE qa þ BW qBa;W . . . . . . . . . . . . . . . . . . . . . ð56Þ
hand side of Eq. 22, for example the term ðr  na rpa Þ, as follows,
qa;N ¼ AN qa þ BS qBa;S . . . . . . . . . . . . . . . . . . . . . ð57Þ
For the coefficient na ¼ qa fa kt k, it is important to note that
qa ; fa ; kt , and k are defined at the center of the cells and they are qa;S ¼ AS qa þ BN qBa;N . . . . . . . . . . . . . . . . . . . . . ð58Þ
to be evaluated at the cell faces using the harmonic mean formula.
As an example, consider the harmonic mean n a;xx evaluated at the where qa is the cell-center value of the density and qBa;E , qBa;W ,
east edge of the 2D cell shown in Fig. 3: qBa;S , and qBa;N are the prescribed values at the east, west, south,
Dxi þ Dxiþ1 and north boundaries, respectively. The advection term in Eq. 1,
n a;xx ðiÞ ¼ : . . . . . . . . . . . . . . . ð48Þ therefore, takes the form
Dxi Dxiþ1
þ
na;xx ðiÞ na;xx ði þ 1Þ diagðuþ 
x Þqa;E þ diagðux Þqa;W : . . . . . . . . . . . . . . . . . . ð59Þ
For all the edges, this can be obtained using the aforemen- Similarly, the third term takes the form
tioned operators:
Sum EWðdxÞ diagðuþ 
y Þqa;N þ diagðuy Þqa;S . . . . . . . . . . . . . . . . . . .ð60Þ
n a;xx ¼   ; . . . . . . . . . . . . . . . . . . . . ð49Þ
dx
Sum EW where uþ x is the x-component velocity in the positive x-direction
na;xx and ux , likewise, is the x-component velocity in the negative x-
dx direction; the y-direction velocity components are similarly organ-
where dx and are column vectors and the division is performed
na ized. The advection term in Eq. 1 may, be evaluated as
elementwise (this is performed in Matlab using the dot slash oper-  
ator). After preparing the coefficients, discretizing the terms for 1
diag ðAE  AW ÞT ½diagðuþ 
x Þqa;E þ diagðux Þqa;W 
the pressure produces a matrix of coefficients and boundary terms dx
 
that may be moved to the right-hand side, such that 1
  þ diag ðAN  AS ÞT ½diagðuþ 
y Þqa;N þ diagðuy Þqa;S 
1 dy
MatA ¼ diag ðAE  AW ÞT diagðn a;xx Þ
dx                    ð61Þ
    or
2 1
diag Diffrn EW þ diag ðAN  AS ÞT  
Sum EWðdxÞ dy 1
  ðAE  AW ÞT ½diagðuþ B
2 diag x ÞðAE qa þ BW qa;W Þ
diagðn a;yy Þ diag Diffrn NS:         ð50Þ dx
Sum NSðdyÞ þ diagðu B
x ÞðAW qa þ BE qa;E Þ
 
MatA defines the two matrices ½A1  and ½A2 , and the only dif- 1
ference between them is the matrix diagðn a Þ, which depends on the þ diag ðAN  AS ÞT f½diagðuþ B
y ÞðAN qa þ BS qa;S Þ
dy
phases n, w. The corresponding boundary terms are determined as
  þdiagðu B
y ÞðAS qa þ BN qa;N Þg ¼ Aadv qa  b
1
b ¼ diag ðAE  AW ÞT diagðn a;xx Þ                    ð62Þ
dx
 
2 Therefore, the advection matrix may be written as
 diag ðBE PE  BW PW Þ þ BE uE  BW uW  
Sum EWðdxÞ 1
  Aadv ¼ diag ðAE  AW ÞT ½diagðuþ 
1 x ÞAE þ diagðux ÞAW 
þ diag ðAN  AS ÞT diagðn a;yy Þ dx
dy  
  1
2 þ diag ðAN  AS ÞT ½diagðuþ 
y ÞAN þ diagðuy ÞAS ;
 diag ðBN PN  BS PS Þ þ BN uN  BS uS dy
Sum NSðdyÞ                    ð63Þ
                   ð51Þ
and the right side as
The matrix ½M is determined as  
1
badv ¼ diag ðAE  AW ÞT
½M ¼ diagðcÞ: . . . . . . . . . . . . . . . . . . . . . . . . . . . . ð52Þ dx
 ½diagðuþ B  B
x ÞBW qa;W þ diagðux ÞBE qa;E 
The term that involves the gravity may be given as  
1
  diag ðAN  AS ÞT f½diagðuþ B  B
y ÞBS qa;S þ diagðux Þ BN qa;N g:
1 dy
Ga ¼ g diag ðAN  AS ÞT n a;yy : . . . . . . . . . . . ð53Þ
qa dy                   ð64Þ

December 2013 SPE Journal 1097


50 50 50 50 50
45 45 45 45 45
40 40 40 40 40
35 35 35 35 35
30 30 30 30 30
25 25 25 25 25
20 20 20 20 20
15 15 15 15 15
10 10 10 10 10
5 5 5 5 5
0 0 0 0 0
0 5 10 15 0 5 10 15 20 0 5 10 15 20 25 0 5 10 15 20 25 30 0 5 10 15 20 25 30
1 year 2 years 3 years 4 years 5 years

Fig. 4—Evolution of CO2 plume in homogeneous porous-medium domain injected at the bottom-left corner of a 2D rectangular
domain.

Therefore, the saturation equation may be given as next, we consider injection from a vertical well in the middle of
the domain; and in the third case, we consider injection at the bot-
@Sa @pa tom boundary as an example of a horizontal well. The rock is con-
/qa ¼ qa  /Sa qa cf ;a  r  qa va . . . . . . . . . . ð65Þ
@t @t sidered initially fully saturated with water, and CO2 is injected at
@Sa @pa the bottom-left corner with a constant inflow rate. On the right
½‘ ¼ qa  ½J   Aadv qa  badv . . . . . . . . . . . ð66Þ boundary, a constant pressure is imposed. The top and the bottom
@t @t
boundaries are considered impermeable. Fluid-property parame-
where ½‘ and ½J  are diagonal matrices representing the given ters such as the densities, viscosities, residual saturations, and rel-
coefficients and may be solved to update the saturation. ative permeability are taken on the basis of Hayek et al. (2009).
In the first case, a 2D, homogeneous rectangular domain of
100  50 m is considered. The domain is discretized into a uni-
Numerical Examples form 100  100 mesh. The permeability of the entire medium is
In this work, we consider several examples of CO2 injections. In taken as 1 md. As indicated earlier, the rock is initially fully satu-
the first case, we consider injection from the bottom-left corner; rated with water. Then, CO2 is injected into the domain at the

35 35 35 35

30 30 30 30

25 25 25 25

20 20 20 20

15 15 15 15

10 10 10 10

5 5 5 5

5 10 15 5 10 15 5 10 15 5 10 15
Time = 9 months 1.5 years 2.5 years 4 years

Fig. 5—Evolution of CO2 plume in homogeneous porous-medium domain injected at the middle of a 2D rectangular domain.

40
35
30
30
25
25 25
20
20 20
15
15 15
10 10 10
5 5 5
0 0 0
0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50 0 5 10 15 20 25 30 35 40 45 50
1 year 2 years 3 years

Fig. 6—Evolution of CO2 plume in homogeneous porous-medium domain injected at the middle of the bottom boundary of a 2D
rectangular domain.

1098 December 2013 SPE Journal


bottom-left corner with a velocity of 0.000001 m/s and constant Gaspar Ravagnani, A., Ligero, E., and Suslick, S. 2009. CO2 Sequestration
pressure on the right side. The top and the bottom boundaries are through Enhanced Oil Recovery in a Mature Oil Field. J. Petrol. Sci.
considered impermeable, and the left side is considered a side of Eng. 65 (3–4): 129–138. http://dx.doi.org/10.1016/j.petrol.2008.
symmetry apart from the injection region. When both capillarity 12.015.
and gravity are considered, interesting patterns emerge. The dif- Hayek, M., Mouche, E., and Mügler, C. 2009. Modeling Vertical Stratifi-
ference in density between the brine initially saturating the do- cation of CO2 Injected into a Deep Layered Aquifer. Adv. Water
main and the injected supercritical CO2 tends to lift the plume up Resour. 32 (3): 450–462. http://dx.doi.org/10.1016/j.advwatres.2008.
because of buoyancy forces, as depicted in Fig. 4. This behavior 12.009.
is similar to that reported by Negara (2011). In the second exam- Holt, T., Jensen, J.I., and Lindeberg, E. 1995. Underground Storage of
ple, CO2 is injected from a well in the middle of the domain. It is CO2 in Aquifers and Oil Reservoirs. Energ. Converg. Manag. 36
apparent that the difference in density between CO2 and the host- (6–9): 535–538. http://dx.doi.org/10.1016/0196-8904(95)00061-H.
ing fluid induces an upward buoyancy force. This force induces Holt, T., Lindeberg, E., and Taber, J. 2000. Technologies and Possibilities
an upward motion of the CO2 plume, as shown in Fig. 5. In the for Larger-Scale CO2 Separation and Underground Storage. Paper
last example, CO2 is injected at the middle of the bottom bound- SPE 63103, presented at the SPE Annual Technical Conference and
ary. This simulates injection of CO2 from a horizontal well. Exhibition, Dallas, Texas, 1–4 October. http://dx.doi.org/10.2118/
Again, it is apparent that the CO2 plume moves up as a manifesta- 63103-MS.
tion of buoyancy forces (Fig. 6). Hoteit, H. and Firoozabadi, A. 2008. Numerical Modeling of Two-Phase
Flow in Heterogeneous Permeable Media with Different Capillarity
Pressures. Adv. Water Resour. 31 (1): 56–73. http://dx.doi.org/
Conclusions
10.1016/j.advwatres.2007.06.006.
In this work, the shifting-matrix technique is used to investigate Izgec, O. and Demiral, B. 2005. Experimental and Numerical Investiga-
the problem of flow of two immiscible fluids in porous media. tion of Carbon Sequestration in Saline Aquifers. Paper SPE 94697
Compressibility, capillarity, and gravity are considered in relation presented at the SPE/EPA/DOE Exploration and Production Environ-
with CO2 sequestration in the subsurface. Use of shifting-matrix mental Conference, Galveston, Texas, 7–9 March. http://dx.doi.org/
technique eliminates the use of looping when coding, and this 10.2118/94697-STU.
proves to be efficient particularly for computer languages that are Jahangiri, H.R. and Zhang, D. 2010. Optimization of Carbon Dioxide
inefficient at looping, such as Matlab and Python. The results Sequestration and Enhanced Oil Recovery in Oil Reservoir. Paper SPE
show that the difference in density between the injected CO2 and 133594 presented at the SPE Western Regional Meeting, Anaheim,
the fluid saturating the porous medium results in the CO2 plume California, 27–29 May. http://dx.doi.org/10.2118/133594-MS.
moving upward because of buoyancy.
Jessen, K., Kovscek, A.R., and Orr, F.M. Jr. 2005. Increasing CO2 Storage
in Oil Recovery. Energ. Converg. Manag. 46 (2): 293–311. http://
References dx.doi.org/10.1016/j.enconman.2004.02.019.
Kou, J. and Sun, S. 2010a. A New Treatment of Capillarity to Improve the
Alavian, S.A. and Whitson, C. 2009. Modeling CO2 Injection in a
Stability of IMPES Two-Phase Flow Formulation. Comput. Fluids 39
Fractured Chalk Experiment. Paper SPE 125362 presented at the SPE/
(10): 1923–1931. http://dx.doi.org/10.1016/j.compfluid.2010.06.022.
EAGE Reservoir Characterization and Simulation Conference, Abu
Kou, J. and Sun, S. 2010b. On Iterative IMPES Formulation for Two-
Dhabi, UAE, 19–21 October. http://dx.doi.org/10.2118/125362-MS.
Phase Flow with Capillarity in Heterogeneous Porous Media. Int. J.
Altundas, Y. B., Ramakrishnan, T. S., Chugunov, N., et al. 2010. Retarda-
Numer. Anal. Mod. Series B 1 (1): 20–40.
tion of CO2 Migration due to Capillary Pressure Hysteresis: a New
Law, D.H.S. and Bachu, S. (1996). Hydrogeological and Numerical Anal-
CO2 Trapping Mechanism. Paper SPE 139641 presented at the SPE
ysis of CO2 Disposal in Deep Aquifers in the Alberta Sedimentary Ba-
International Conference on CO2 Capture, Storage, and Utilization,
sin. Energ. Converg. Manag. 37 (6–8): 1167–1174. http://dx.doi.org/
New Orleans, Louisiana, 10–12 November. http://dx.doi.org/10.2118/
10.1016/0196-8904(95)00315-0.
139641-MS.
Bielinski, A. 2007. Numerical Simulation of CO2 Sequestration in Geolog- Liu, X., Gong, B., and Huo, D. 2010. Numerical Simulation on CO2
ical Formations. PhD dissertation, Universität Stuttgart, Stuttgart, Ger- Sequestration in Saline Formations with Natural or Hydraulic Frac-
many (February 2007). tures Using a Discrete Modeling Approach. Paper SPE 137621 pre-
Blunt, M., Fayers, F.J., and Orr, F.M. Jr. 1993. Carbon Dioxide in sented at the Canadian Unconventional Resources and International
Enhanced Oil Recovery. Energ. Converg. Manag. 34 (9–11): Petroleum Conference, Calgary, Alberta, Canada, 19–21 October.
1197–1204. http://dx.doi.org/10.1016/0196-8904(93)90069-M. http://dx.doi.org/10.2118/137621-MS.
Burruss, R.C., Brennan, S.T., Freeman, P.A., et al. 2009. Development of Martin, D. and Taber, J. 1992. Carbon Dioxide Flooding. J. Pet Tech 44
a Probabilistic Assessment Methodology for Evaluation of Carbon (4): 396–400. http://dx.doi.org/10.2118/23564-PA.
Dioxide Storage. U.S. Geological Survey Open-File Report Metz, B., Davidson, O., de Coninck, H., et al., eds. 2005. IPCC Special
2009–1035, http://pubs.usgs.gov/of/2009/1035/ofr2009-1035.pdf. Report on Carbon Dioxide Capture and Storage. Cambridge: Cam-
Carneiro, J.F. 2009. Numerical Simulations on the Influence of Matrix bridge University Press.
Diffusion to Carbon Sequestration in Double Porosity Fissured Aqui- Moortgat, J., Firoozabadi, A., Li, Z., et al. 2010. A Detailed Experimental
fers. Int. J. Greenh. Gas Con. 3 (4): 431–443. http://dx.doi.org/ and Numerical Study of Gravitational Effects on CO2 Enhanced Re-
10.1016/j.ijggc.2009.02.006. covery. Paper SPE 135563 presented at the SPE Annual Technical
Chen, Z., Huan, G., and Li, B. 2004. An Improved IMPES Method for Conference and Exhibition, Florence, Italy, 19–22 September. http://
Two-Phase Flow in Porous Media. Transport Porous Med. 54 (3): dx.doi.org/10.2118/135563-MS.
361–376. http://dx.doi.org/10.1023/B:TIPM.0000003667.86625.15. Nasrabadi, H., Firoozabadi, A., and Ahmed, T. 2009. Complex Flow and
Chen, Z., Huan, G. and Ma, Y. 2006. Computational Methods for Multi- Composition Path in CO2 Injection Schemes from Density Effects in 2
phase Flows in Porous Media. Philadelphia: Society for Industrial and and 3D. Paper SPE 124803 presented at the SPE Annual Technical
Applied Mathematics. Conference and Exhibition, New Orleans, Louisiana, 4–7 October.
Doughty, C. 2007. Modeling Geologic Storage of Carbon Dioxide: Com- http://dx.doi.org/10.2118/124803-MS.
parison of Non-Hysteretic and Hysteretic Characteristic Curves. Negara, A. 2011. Simulation of CO2 Injection in Porous Media with Struc-
Energ. Converg. Manag. 48 (6): 1768–1781. http://dx.doi.org/10.1016/ tural Deformation Effect. MSc thesis, King Abdullah University of
j.enconman.2007.01.022. Science and Technology, Thuwal, Saudi Arabia (June 2011).
Ferguson, R.C., Kuuskraa, V.A., Van Leeuwen, T.S. 2010. Storing CO2 Neuzil, C.E. 1986. Groundwater Flow in Low-Permeability Environments.
with Next-Generation CO2-EOR Technology. Paper SPE 139717 pre- Water Resour. Res. 22 (8): 1163–1195. http://dx.doi.org/10.1029/
sented at the SPE International Conference on CO2 Capture, Storage, WR022i008p01163.
and Utilization, New Orleans, Louisiana, 10–12 November. http:// Nghiem, L., Shrivastava, V., Kohse, B., et al. 2010. Simulation and
dx.doi.org/10.2118/139717-MS. Optimization of Trapping Processes for CO2 Storage in Saline

December 2013 SPE Journal 1099


Aquifers. J Cdn. Pet. Tech. 49 (8): 15–22. http://dx.doi.org/10.2118/
139429-PA.
Salama, A. and Van Geel, P. J. 2008a. Flow and Solute Transport in Satu-
rated Porous Media: 1. The Continuum Hypothesis. J. Porous Media
11 (4): 403–413. http://dx.doi.org/10.1615/JPorMedia.v11.i4.
Salama, A. and Van Geel, P. J. 2008b. Flow and Solute Transport in Satu-
rated Porous. Media: 2. Violating the Continuum Hypothesis. J. Po-
rous Media 11 (5) 421–441. http://dx.doi.org/10.1615/JPorMedia.
v11.i5.
Sasaki, K., Fujii, T., Niibori, Y., et al. 2008. Numerical Simulation of
Supercritical CO2 Injection into Subsurface Rock Masses. Energ. Con-
verg. Manag. 49 (1): 54–61. http://dx.doi.org/10.1016/j.enconman.
2007.05.015.
Sbai, M. and Azaroual, M. 2010. Numerical Modeling of Formation Dam-
age by Two-Phase Particulate Transport Processes during CO2 Injec-
tion in Deep Heterogeneous Porous Media. Adv. Water Resour. 34 (1):
62–82. http://dx.doi.org/10.1016/j.advwatres.2010.09.009.
Sifuentes, W., Giddins, M., and Blunt, M. 2009. Modeling CO2 Storage in
Aquifers: Assessing the Key Contributors to Uncertainty. Paper SPE
123582 presented at Offshore Europe, Aberdeen, UK, 8–11 Septem-
ber. http://dx.doi.org/10.2118/123582-MS.
Span, R. and Wagner, W. 1996. A New Equation of State for Carbon
Dioxide Covering the Fluid Region from the Triple-Point Temperature
to 1100 K at Pressures Up to 88 MPa. J. Phys. Chem. Ref. Data 25 (6):
1509–1595. http://dx.doi.org/10.1063/1.555991.
Sun, S. and Firoozabadi, A. 2009. Compositional Modeling in Three-
Phase Flow for CO2 and Other Fluid Injections Using Higher-Order
Finite Element Methods. Paper SPE 124907 presented at the SPE An-
nual Technical Conference and Exhibition, New Orleans, Louisiana,
4–7 October. http://dx.doi.org/10.2118/124907-MS.
Sun, S., Salama, A., and El-Amin, M.F. 2012. Matrix-Oriented Implemen-
tation for the Numerical Solution of the Partial Differential Equations
Governing Flows in Porous Media. Comput. Fluids 68: 38–46. http://
dx.doi.org/10.1016/j.compfluid.2012.07.027.
Taber, J., Martin, F., and Seright, R. 1997. EOR Screening Criteria Revis-
ited—Part 2: Applications and Impact of Oil Prices. SPE Res Eval &
Eng 12 (3): 199–206. http://dx.doi.org/10.2118/39234-PA.
Thomas, S. and Wheeler, M. 2011. Multiblock Methods for Coupled
Flow-Transport and Compositional Flow Through Porous Media –
Applications to the Simulation of Transport of Reactive Species and
Carbon Sequestration. Paper SPE 141824 presented at the SPE Reser-
voir Simulation Symposium, Woodlands, Texas, 21–23 February.
http://dx.doi.org/10.2118/141824-MS.
Todd, M. and Grand, G. 1993. Enhanced Oil Recovery Using Carbon
Dioxide. Energ. Converg. Manag. 34 (9–11): 1157–1164. http://
dx.doi.org/10.1016/0196-8904(93)90065-I.

Appendix A
To illustrate this method, consider the rectangular domain shown
in Fig. A-1, which is a schematic diagram of the mesh and bound-
ary conditions. As shown in this figure, the domain is divided into
a 3  3 mesh. To simplify the presentation, we assume a pressure
boundary condition at all four sides.

N N N
p1 p2 p3

W E
p3 p7 p8 p9 p3
Appendix B
W
p2 p4 p5 p6 E
p2 % construct shifting matrices of cell-face:
ShiftW_unit ¼ {[sparse(1, nx); speye(nx, nx)] };
ShiftW ¼ blkdiag(adjW_unit{ones(ny, 1)});
p1
W
p1 p2 p3 p1
E ShiftE_unit ¼ {[speye(nx, nx); sparse(1, nx)] };
ShiftE ¼ blkdiag(adjE_unit{ones(ny, 1)});
S S S
ShiftS ¼ [sparse(nx, nx*ny); speye(nx*ny, nx*ny)];
p1 p2 p3 ShiftN ¼ [speye(nx*ny, nx*ny); sparse(nx, nx*ny)];
ShiftBW_unit ¼ {[1; sparse(nx, 1)] };
Fig. A-1—Schematic diagram of the mesh and boundary ShiftBW ¼ blkdiag(adjBW_unit{ones(ny, 1)});
conditions. ShiftBE_unit ¼ {[sparse(nx, 1); 1] };

1100 December 2013 SPE Journal


ShiftBE ¼ blkdiag(adjBE_unit{ones(ny, 1)}); by the program of Earth Sciences and Engineering and the
ShiftBS ¼ [speye(nx, nx); sparse(nx*ny, nx)]; program of Applied Mathematics and Computational Sci-
ShiftBN ¼ [sparse(nx*ny, nx); speye(nx, nx)]; ence at KAUST, currently at the rank of associate professor. He
where also holds a number of adjunct faculty positions around the
world. Before joining KAUST, Sun served as an assistant profes-
ShiftW ¼ AW sor of mathematical sciences at Clemson University. He
ShiftE ¼ AE earned a PhD degree in computational and applied mathe-
ShiftS ¼ AS matics from the University of Texas at Austin and a Doctor of
ShiftN ¼ AN Engineering degree in chemical engineering from Tianjin Uni-
ShiftBW ¼ BW versity, China. In addition to numerous conference papers
ShiftBE ¼ BE and technical reports, Sun has published more than 60 refer-
ShiftBS ¼ BS eed journal articles. He currently serves as an editor, guest edi-
ShiftBN ¼ BN tor, associate editor, or editorial board member for seven
international refereed journals in his field. Sun has given more
than 100 invited or contributed presentations to conferences,
Amgad Salama holds BSc and MSc degrees in mechanical en- forums, or seminars. Sun achieved certification under the SPE
gineering from El Menoufia and Cairo Universities, Egypt, Petroleum Engineering Certification Program, and he is also a
respectively, and a PhD degree in environmental engineering licensed professional engineer in Texas.
from Carleton University, Ottawa, Ontario, Canada. Salama’s
research work focuses on areas related to heat transfer and Mohamed El-Amin has been a Research Fellow at KAUST since
fluid flows in mechanical systems, as well as to transport phe- 2009. He is a mathematician and has 17 years of research ex-
nomena in porous media. He had the opportunity to work as a perience in the field of applied mathematics, heat and mass
research fellow at Kyushu University, Japan, for 2 years and as transfer, and fluid dynamics. El-Amin earned his BSc degree
an assistant professor in the Department of Environmental Engi- from Assiut University, Assiut, Egypt, and his MSc degree and
neering, Konkuk University, South Korea, for more than 2 years. PhD degree from South Valley University (SVU), Aswan, Egypt.
Salama is currently an associate researcher at the Computa- After earning his PhD degree in applied mathematics from
tional Transport Phenomena Laboratory at King Abdullah Uni- SVU, he served as an assistant professor at SVU until 2003. El-
versity of Sciences and Technology (KAUST). Amin then moved to Germany to work as a visiting researcher
for more than 2 years, funded by the Alexander von Humboldt
Shuyu Sun, a mathematician and an engineer, works on Foundation at the Institute of Thermodynamics and Thermal
computational methods for various engineering and scientific Engineering, Stuttgart University, Germany. After that, he
applications and engages in solving engineering and scien- served as an associate professor at SVU until 2007. In 2007, El-
tific problems through computation and simulations. He is Amin moved to Japan as a research fellow for 2 years, funded
currently the Principal Investigator of the Computational Trans- by the JSPS Foundation at the Computational Mechanics lab-
port Phenomena Laboratory at KAUST and a Codirector of the oratory of the Mechanical Engineering Department at Kyushu
Center for Subsurface Imaging and Fluid Modeling consortium University, Japan. His research projects have resulted in
at KAUST. Sun is a founding faculty member jointly appointed approximately 65 journal papers and 45 conference papers.

December 2013 SPE Journal 1101

Das könnte Ihnen auch gefallen