Petroleum Reservoir Simulation A Basic A p p r o a c h Jamal H. Abou-Kassem Professor of Petroleum Engineering United Arab Emirates University AI-Ain, The United Arab Emirates S. M. Farouq Ali Petroleum Engineering Consultant PERL Canada Ltd. Edmonton, Alberta, Canada M. Rafiq Islam Professor and Killam Chair in Oil and Gas Dalhousie University Halifax, Nova Scotia, Canada
@
Petroleum Reservoir Simulation: A Basic Approach Copyright © 2006 by Gulf Publishing Company, Houston, Texas. All rights reserved. No part of this publication may be reproduced or transmitted in any form without the prior written permission of the publisher.
HOUSTON, TX: Gulf Publishing Company 2 Greenway Plaza, Suite 1020 Houston, T X 77046
AUSTIN, TX: 427 Sterzing St., Suite 104 Austin, T X 78704
1098765432
I
Library of CongressCataloging-in-PublicationData Petroleum Reservoir Simulation: A Basic Approach/ Jamal H. Abou-Kassem ... [et al.]. p. cm. Includes bibliographical references and index. ISBN 0-9765113-6-3 (alk. paper) I. Petroleum--Simulation methods, manuals, etc. 2. Petroleum--Mathematical models, manuals, etc. 3. Hydrocarbon reservoirs--Simulation methods, manuals, etc. 4. Hydrocarbon reservoirs--Mathematical models, manuals, etc. 5. Petroleum engineering--Mathematics, manuals, etc. I. Abou-Kassem~ 3amal H. (lama1 Hussein) TN870.57.R47 2006 553.2'8015118--dc22 2005O29674
Printed in the United States of America Printed on acid-free paper, oo Text design and composition by TIPS Technical Publishing, Inc.
We dedicate this book to our parents.
Preface
The "Information Age" promises infinite transparency, unlimited productivity, and true access to knowledge. Knowledge, quite distinct and apart from "know-how," requires a process of thinking, or imagination--the attribute that sets human beings apart. Imagination is necessary for anyone wishing to make decisions based on science. Imagination always begins with visualization--actually, another term for simulation. Under normal conditions, we simulate a situation prior to making any decision, i.e., we abstract absence and start to fill in the gaps. Reservoir simulation is no exception. The two most important points that must not be overlooked in simulation are science and multiplicity of solutions. Science is the essence of knowledge, and acceptance of the multiplicity of solutions is the essence of science. Science, not restricted by the notion of a single solution to every problem, must follow imagination. Multiplicity of solutions has been promoted as an expression of uncertainty. This leads not to science or to new authentic knowledge, but rather to creating numerous models that generate "unique" solutions that fit a predetermined agenda of the decision-makers. This book reestablishes the essential features of simulation and applies them to reservoir engineering problems. This approach, which reconnects with the o l d - - o r in other words, time-tested--concept of knowledge, is refreshing and novel in the Information Age. The petroleum industry is known as the biggest user of computer models. Even though space research and weather prediction models are robust and are often tagged as "the mother of all simulation," the fact that a space probe device or a weather balloon can be launched--while a vehicle capable of moving around in a petroleum reservoir cannot-makes modeling more vital for tackling problems in the petroleum reservoir than in any other discipline. Indeed, from the advent of computer technology, the petroleum industry pioneered the use of computer simulations in virtually all aspects of decision-making. This revolutionary approach required significant investment in long-term research and advancement of science. That time, when the petroleum industry was the energy provider of the world, was synonymous with its reputation as the most aggressive investor in engineering and science. More recently, however, as the petroleum industry transited into its "middle age" in a business sense, the industry could not keep up its reputation as the biggest sponsor of engineering and long-term research. A recent survey by the United States Department of Energy showed that none of the top ten breakthrough petroleum technologies in the last decade could be attributed to operating companies. If this trend continues, major breakthroughs in the petroleum industry over the next two decades are expected to be in the areas of information technology and materials science. When it comes to reservoir simulators, this latest trend in the petroleum industry has produced an excessive emphasis on the tangible aspects of modeling, namely, the number of blocks used in a simulator, graphics, computer speed, etc. For instance, the number of blocks used in a reservoir model has gone from thousands to millions in just a few years. Other examples can
xi
xii
Preface
be cited, including graphics in which flow visualization has leapt from 2D to 3D to 4D, and computer processing speeds that make it practically possible to simulate reservoir activities in real time. While these developments outwardly appear very impressive, the lack of science and, in essence, true engineering render the computer revolution irrelevant and quite possibly dangerous. In the last decade, most investments have been made in software dedicated to visualization and computer graphics with little being invested in physics or mathematics. Engineers today have little appreciation of what physics and mathematics provide for the very framework of all the fascinating graphics that are generated by commercial reservoir simulators. As companies struggle to deal with scandals triggered by Enron's collapse, few have paid attention to the lack of any discussion in engineering education regarding what could be characterized as scientific fundamentals. Because of this lack, little has been done to promote innovation in reservoir simulation, particularly in the areas of physics and mathematics, the central topical content of reservoir engineering. This book provides a means of understanding the underlying principles of petroleum reservoir simulation. The focus is on basic principles because understanding these principles is a prerequisite to developing more accurate advanced models. Once the fundamentals are understood, further development of more useful simulators is only a matter of time. The book takes a truly engineering approach and elucidates the principles behind formulating the governing equations. In contrast to cookbook-type recipes of step-by-step procedures for manipulating a black box, this approach is full of insights. To paraphrase the caveat about computing proposed by R. W. Hamming, the inventor of the Hamming Code: the purpose of simulation must be insight, not just numbers. The conventional approach is more focused on packaging than on insight, making the simulation process more opaque than transparent. The formulation of governing equations is followed by elaborate treatment of boundary conditions. This is one aspect that is usually left to the engineers to "figure out" by themselves, unfortunately creating an expanding niche for the select few who own existing commercial simulators. As anyone who has ever engaged in developing a reservoir simulator well knows, this process of figuring out by oneself is utterly confusing. In keeping up with the same rigor of treatment, this book presents the discretization scheme for both block-centered and point-distributed grids. The difference between a well and a boundary condition is elucidated. In the same breadth, we present an elaborate treatment of radial grid for single-well simulation. This particular application has become very important due to the increased usage of reservoir simulators to analyze well test results and the use of well pseudo-functions. This aspect is extremely important for any reservoir engineering study. The book continues to give insight into other areas of reservoir simulation. For instance, we discuss the effect of boundary conditions on materialbalance-check equations and other topics with unparalleled lucidity. Even though the book is written principally for reservoir simulation developers, it takes an engineering approach that has not been taken before. Topics are discussed in terms of science and mathematics, rather than with graphical representation in the backdrop. This makes the book suitable and in fact essential for every engineer and scientist engaged in modeling and simulation. Even those engineers and scientists who wish to limit their
Preface xiii activities to field applications will benefit greatly from this book, which is bound to prepare them better for the Information Age.
Acknowledgments We, the authors, are grateful to many colleagues, friends, and students who have contributed to this book. We thank Dr. M. S. Osman, of the Kuwait Oil Company, for his contributions, fruitful discussions, and critiques at the various stages of writing this book, during his tenure at the UAE University. We are indebted to Dr. T. Ertekin, of The Pennsylvania State University, and Dr. R. Almehaideb, of UAEU, for their reviews and comments on chapters of the book. We thank the many students at UAEU who took the undergraduate reservoir simulation course during writing the book. We thank Mr. Othman N. Matahen, of the UAEU Center of Teaching and Learning Technology, for his most skillful computer drafting of all figures in this book. We are most deeply thankful to all our "teachers," from whom we have learned all that we know, and to members of our families, for their encouragement, their support, and most importantly their patience and tolerance during the writing of this book.
J. H. Abou-Kassem S. M. Farouq Ali M. R. Islam
Introduction
In this book, the basics of reservoir simulation are presented through the modeling of single-phase fluid flow and multi-phase flow in petroleum reservoirs using the engineering approach. This text is written for senior-level B.S. students and first-year M.S. students studying petroleum engineering and aims to restore engineering and physics sense to the subject. In this way, it challenges the misleading impact of excess mathematical glitter that has dominated reservoir simulation books in the past. The engineering approach employed in this book uses mathematics extensively but injects engineering meaning to differential equations and to boundary conditions used in reservoir simulation. It does not need to deal with differential equations as a means for modeling, and it interprets boundary conditions as fictitious wells that transfer fluids across reservoir boundaries. The contents of the book can be taught in two consecutive courses. The first, an undergraduate senior-level course, includes the use of a block-centered grid in rectangular coordinates in single-phase flow simulation. This material is mainly included in Chapters 2, 3, 4, 6, 7, and 9. The second, a graduate-level course, deals with a block-centered grid in radial-cylindrical coordinates, a point-distributed grid in both rectangular and radial-cylindrical coordinates, and the simulation of multiphase flow in petroleum reservoirs. This material is covered in Chapters 5, 8, and 10 in addition to specific sections in Chapters 2, 4, 6, and 7 (Secs. 2.7, 4.5, 6.2.2). Chapter 1 provides an overview of reservoir simulation and the relationship between the mathematical approach presented in simulation books and the engineering approach presented in this book. In Chapter 2, we present the derivation of single-phase, multidimensional flow equations in rectangular and radial-cylindrical coordinate systems. In Chapter 3, we introduce the Control Volume Finite Difference (CVFD) terminology as a means to writing the flow equations in multidimensions in compact form. Then we write the general flow equation that incorporates both (real) wells and boundary conditions, using the blockcentered grid (in Chapter 4) and the point-distributed grid (in Chapter 5), and present the corresponding treatments of boundary conditions as fictitious wells and the exploitation of symmetry in practical reservoir simulation. Chapter 6 deals with wells completed in both single and multiple layers and presents fluid flow rate equations for different well operating conditions. Chapter 7 presents the explicit, implicit, and Crank-Nicolson formulations of single-phase, slightly compressible, and compressible flow equations and introduces the incremental and cumulative material balance equations as internal checks to monitor the accuracy of generated solutions. In Chapter 8, we introduce the space and time treatments of nonlinear terms encountered in single-phase flow problems. Chapter 9 presents the basic direct and iterative solution methods of linear algebraic equations used in reservoir simulation. Chapter 10 is entirely devoted to multiphase flow in petroleum reservoirs and its simulation. The book concludes with Appendix A, which presents a user's manual for a singlephase simulator. The CD that accompanies the book includes a single-phase simulator
XV
xvi
Introduction
written in F O R T R A N 95, a compiled version, a users' manual, and data and output files for four solved problems. The single-phase simulator provides users with intermediate results as well as a solution to single-phase flow problems so that a user's solution can be checked and errors are identified and corrected. Educators m a y use the simulator to make up new problems and obtain their solutions.
Contents
Preface
xi
Introduction Nomenclature 1
Introduction
1.1 1.2 1.3 1.4 1.5 2
xvU ..........................................................................
1
Background 1 Milestones for the Engineering Approach 2 Importance of the Engineering and Mathematical Approaches 4 Summary 5 Exercises 5
Single-Phase Fluid Flow Equations in Multidimensional Domain ................................................ 7
2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3
xv
Introduction 7 Properties of Single-Phase Fluid 7 Properties of Porous Media 8 Reservoir Discretization 8 Basic Engineering Concepts 9 Multidimensional Flow in Cartesian Coordinates 11 Multidimensional Flow in Radial-Cylindrical Coordinates Summary 36 Exercises 36
28
Flow Equations Using CVFD Terminology ....................... 43 3.1 Introduction 43 3.2 Flow Equations Using CVFD Terminology 43 3.3 Flow Equations in Radial-Cylindrical Coordinates Using CVFD Terminology 54
vii
viii
Contents
3.4 3.5 3.6 4
5
S i m u l a t i o n with a B l o c k - C e n t e r e d Grid ............................ 63
4.1 4.2 4.3
Introduction 63 Reservoir Discretization 63 Flow Equation for Boundary Gridblocks
4.4 4.5
Treatment of Boundary Conditions 73 Calculation of Transmissibilities 87
4.6 4.7 4.8
Symmetry and Its Use in Solving Practical Problems Summary 115 Exercises 117
66
110
S i m u l a t i o n with a P o i n t - D i s t r i b u t e d Grid ........................ 123
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 6
Flow Equations Using CVFD Terminology in any Block Ordering Scheme 57 Summary 58 Exercises 58
Introduction 123 Reservoir Discretization 123 Flow Equation for Boundary Gridpoints 126 Treatment of Boundary Conditions 135 Calculation of Transmissibilities 152 Symmetry and Its Use in Solving Practical Problems Summary 173 Exercises 175
169
Well R e p r e s e n t a t i o n in S i m u l a t o r s .................................. 181 6.1 Introduction 181 6.2 Single-BIockWells 181 6.3 Multiblock Wells 192 6.4 Practical Considerations Dealing with Modeling Well Operating Conditions 203 6.5 Summary 204 6.6 Exercises 204
Contents
7
8
9
ix
Single-Phase Flow Equation for Various Fluids ............ 207 7.1 7.2
Introduction 207 Pressure Dependence of Fluid and Rock Properties
7.3
General Single-Phase Flow Equation in Multi Dimensions
7.4 7.5
Summary 276 Exercises 276
207 209
Linearization of Flow Equations ...................................... 283 8.1
Introduction
283
8.2 8.3
Nonlinear Terms in Flow Equations 283 Nonlinearity of Flow Equations For Various Fluids
8.4
Linearization of Nonlinear Terms
8.5
Linearized Flow Equations in Time
8.6 8.7
Summary 319 Exercises 321
284
288 293
Methods of Solution of Linear Equations ....................... 325 9.1 9.2
Introduction 325 Direct Solution Methods
9.3
Iterative Solution Methods
9.4 9.5
Summary 361 Exercises 361
325 337
10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs ......................................................................... 365 10.1 Introduction 365 10.2 Reservoir Engineering Concepts in Multiphase Flow 10.3 Multiphase Flow Models 375 10.4 Solution of Multiphase Flow Equations 10.5 Material Balance Checks 10.6 Advancing Solution in Time 10.7 Summary 416 10.8 Exercises 416
414 414
393
365
x
Contents
A
User's Manual for Single-Phase Simulator A,1
Introduction
A.2
Data File Preparation
421
421 421
A.3
Description of Variables Used in Preparing a Data File
A.4
Instructions to Run Simulator
A.5
Limitations Imposed on the Compiled Version
A.6
Example of a Prepared Data File
References
433
Author Index Subject Index
437 439
430 431
430
423
Chapter l
Introduction 1.1
Background
Reservoir simulation in the oil industry has become the standard for solving reservoir engineering problems. Simulators for various recovery processes have been developed and continue to be developed for new oil recovery processes. Reservoir simulation is the art of combining physics, mathematics, reservoir engineering, and computer programming to develop a tool for predicting hydrocarbon reservoir performance under various operating strategies. Figure 1-1 depicts the major steps involved in the development of a reservoir simulator: formulation, discretization, well representation, linearization, solution, and validation (Odeh, 1982). In this figure, formulation outlines the basic assumptions inherent to the simulator, states these assumptions in precise mathematical terms, and applies them to a control volume in the reservoir. The result of this step is a set of coupled, nonlinear partial differential equations (PDEs) that describes fluid flow through porous media. The PDEs derived during the formulation step, if solved analytically, would give reservoir pressure, fluid saturations, and well flow rates as continuous functions of space and time. Because of the highly nonlinear nature of the PDEs, however, analytical techniques cannot be used and solutions must be obtained with numerical methods. In contrast to analytical solutions, numerical solutions give the values of pressure and fluid saturations only at discrete points in the reservoir and at discrete times. Discretization is the process of converting PDEs into algebraic equations. Several numerical methods can be used to discretize the PDEs; however, the most common approach in the oil industry today is the finite difference method. The most commonly used finite difference approach essentially builds on Taylor series expansion and neglects terms that are considered to be small when small difference in space parameters is considered. This expanded form is a set of algebraic equations. Finite element method, on the other hand uses various functions to express variables in the governing equation. These functions lead to the development of an error function that is minimized in order to generate solutions to the governing equation. To carry out discretization, a PDE is written for a given point in space at a given time level. The choice of time level (old time level, current time level, or intermediate time level) leads to the explicit, implicit, or Crank-Nicolson formulation method. The discretization process results in a system of nonlinear algebraic equations. These equations generally cannot be solved with linear equation solvers, and the lincarization of such equations becomes a necessary step before solutions can be obtained. Well representation is used to incorporate fluid production and injection into the nonlinear algebraic equations. Linearization involves approximating
2
Chapter 1 Introduction
C .......... ) C ............. ) NONLINE/kR PDE'S
C ............ ) (
NONLINEAR ALGEBRAIC EQUATIONS
.......
LINEAR ALGEBRAIC EQUATIONS
C
°3
SATURATION DISTRIBUTIONS & WELL RATES
C-............... .3 Figure 1-1
Major steps used to develop reservoir simulators. Redrawn from Odeh (1982),
nonlinear terms (transmissibilities, production and injection, and coefficients of unknowns in the accumulation terms) in both space and time. Linearization results in a set of linear algebraic equations. Any one of several linear equation solvers can then be used to obtain the solution, which comprises pressure and fluid saturation distributions in the reservoir and well flow rates. Validation of a reservoir simulator is the last step in developing a simulator, "after which the simulator can be used for practical field applications. The validation step is necessary to make sure that no errors were introduced in the various steps of development or in computer programming. This validation is distinct from the concept of conducting experiments in support of a mathematical model. Validation of a reservoir simulator merely involves testing the numerical code. There are three methods available for the discretization of any PDE: the Taylor series method, the integral method, and the variational method (Aziz and Settari, 1979). The first two methods result in the finite-difference method, whereas the third results in the variational method. The "mathematical approach" refers to the methods that obtain the nonlinear algebraic equations through deriving and discretizing the PDEs. Developers of simulators relied heavily on the mathematics in the mathematical approach to obtain the nonlinear algebraic equations or the finite-difference equations. However, Abou-Kassem, Farouq Ali, Islam, and Osman (2006) presented a new approach that derives the finite-difference equations without going through the rigor of PDEs and discretization. This approach also uses fictitious wells to represent boundary conditions. This new tactic is termed the "engineering approach" because it is closer to the engineer's thinking and to the physical meaning of the terms in the flow equations. The engineering approach is simple and yet general and rigorous, and both the engineering and m a t h e m a t i c a l approaches treat boundary conditions with the same accuracy if the mathematical approach uses second-order approximations. In addition, the engineering approach results in the same finite-difference equations for any hydrocarbon recovery process. Because the engineering approach is independent of the mathematical approach, it reconfirms the use of central differencing in space discretization and highlights the assumptions involved in choosing a time level in the mathematical approach.
1.2
Milestonesfor the Engineering Approach
The foundations for the engineering approach have been overlooked all these years. Traditionally, reservoir simulators were developed by first using a control volume (or elementary volume), such as that shown in Figure 1-2 for 1D flow or in Figure 1-3 for 3D flow, that was visualized by mathematicians to develop fluid flow equations. Note that point x in 1D and point (x, y, z) in 3D fall on the edge of control volumes. The resulting flow equa-
1.2 Milestones for the Engineering Approach
Flow in
I )
x
iiii!l
3
I '°wou'
,I Ax I, x
Figure 1-2
x+Ax
Controlvolume used by mathematicians for 1D flow. (x,y,z+Az)
~(,y+Ay,z+Az)
zj T
(x+Ax,y,z+Az.
x
(x+Ax,y+Ay, z) Figure 1-3
Controlvolume used by mathematicians for 3D flow. Redrawn from Bear (1988).
tions are in the form of PDEs. Once the PDEs are derived, early pioneers of simulation looked to mathematicians to provide solution methods. These methods started with the description of the reservoir as a collection of gridblocks, represented by points that fall within them (or gridpoints representing blocks that surround them), followed by the replacement of the PDEs and boundary conditions by algebraic equations, and finally the solution of the resulting algebraic equations. Developers of simulators were all the time occupied by finding the solution and, perhaps, forgot that they were solving an engineering problem. The engineering approach can be realized should one try to relate the terms in the discretized flow equations for any block to the block itself and to all its neighboring blocks. A close inspection of the flow terms in a discretized flow equation of a given fluid (oil, water, or gas) in a black-oil model for a given block reveals that these terms are nothing but Darcy' s Law describing volumetric flow rates of the fluid at standard conditions between the block and its neighboring blocks. The accumulation term is the change in the volume at standard conditions of the fluid contained in the block itself at two different times. More than 30 years ago, Farouq Ali was the first to observe that flow terms in the discretized form of governing equations are nothing but Darcy's Law describing volumetric flow rate between any two neighboring blocks. Making use of this observation coupled with an assumption related to the time level at which flow terms are evaluated, he developed the forward-central-difference equation and the backward-central-difference equation
4
Chapter I
Introduction
without going through the rigor of the mathematical approach in teaching reservoir simulation to undergraduate students (Farouq Ali, 1986). Ertekin, Abou-Kassem, and King (2001) were the first to use a control volume represented by a point at its center in the mathematical approach as shown in Figure 1-4 for 1D flow and Figure 1-5 for 3D flow. This control volume is closer to an engineer's thinking of representing blocks in reservoirs. The observation by Farouq Ali in the early seventies and the introduction of the new control volume by Ertekin et al. have been the two milestones that contributed significantly to the recent development of the engineering approach. Overlooking the engineering approach has kept reserw)ir simulation closely tied with PDEs. From the mathematician's point of view, this is a blessing because researchers in reservoir simulation have devised advanced methods for solving highly nonlinear PDEs, and this enriched the literature in mathematics in this important area. Contributions of reservoir simulation to solving PDEs include the following: •
Treating nonlinear terms in space and time (Settari and Aziz 1975; Coats, Ramesh, and Winestock 1977; Saad 1989; Gupta 1990).
•
Devising methods of solving systems of nonlinear PDEs, such as the IMPES (Breitenbach, Thurnau, and van Poollen 1969), SEQ (Spillette, Hillestad, and Stone, 1973; Coats 1978), Fully Implicit SS (Sheffield 1969), and Adaptive Implicit (Thomas and Thurnau 1983) methods.
•
Devising advanced iterative methods for solving systems of linear algebraic equations, such as the Block Iterative (Behie and Vinsome 1982), Nested Factorization (Appleyard and Cheshire 1983), and Orthomin (Vinsome 1976) methods. Well
I
~
,
"J. ....
~"
I
I ..jpm
J s
s
Flow in
m
m
m
m
m
i
Flow out
)'
I
x-Ax/2
Figure 1-4
1.3
I
X
x+Ax/2
Control volume for 1D flow.
Importance of the Engineering and Mathematical Approaches
The importance of the engineering approach lies in being close to the engineer's mindset and in its capacity to derive the algebraic flow equations easily and without going through the rigor of PDEs and discretization. In reality, the development of a reservoir simulator can do away with the mathematical approach because the objective of this approach is to obtain the algebraic flow equations for the process being simulated. In addition, the engineering approach reconfirms the use of central-difference approxi-
1.4 Summary
(x-~d2,y-Ay/2,z+Az/2)
(x+~d2,y-Ay/2,z+~./2)
J
'
x.-
/,
(x+,~x/2,y-Ay/2 ,z-~-/2 ) Figure 1-5
(x-,~x/2,y+Ay/2 ,z+,~./2 )
d
(x+,Sx/2,y+,~y/2,
z~z] (x-A~2,y-'Ay/2,z-Az./2)
/1/t-
5
|
.~l
(x-Ax/2,y+Ay/2,z-Az/2)
I.,,'u (x+Ax/2,y+,~y/2,z-~-/2) Controlvolume for 3D flow.
mation of the second-order space derivative and provides interpretation of the approximations involved in the forward-, backward-, and central-difference of the first-order time derivative that are used in the mathematical approach. The majority, if not all, of the available commercial reservoir simulators were developed without even looking at an analysis of truncation errors, consistency, convergence, or stability. The importance of the mathematical approach, however, lies within its capacity to provide analysis of such items. Only in this case do the two approaches complement each other and both become equally important in reservoir simulation.
1.4
Summary
The traditional steps involved in the development of a reservoir simulator include formulation, discretization, well representation, linearization, solution, and validation. The mathematical approach involves formulation to obtain a differential equation, followed by reservoir discretization to describe the reservoir, and finally the discretization of the differential equation to obtain the flow equation in algebraic form. In contrast, the engineering approach involves reservoir discretization to describe the reservoir, followed by formulation to obtain the flow equation in integral form, which, when approximated, produces the flow equation in algebraic form. The mathematical approach and engineering approach produce the same flow equation in algebraic form but use two unrelated routes. The seeds for the engineering approach existed a long time ago but were overlooked by pioneers in reservoir simulation because modeling petroleum reservoirs has been considered a mathematical problem rather than an engineering problem. The engineering approach is both easy and robust. [t does not involve differential equations, discretization of differential equations, or discretization of boundary conditions.
1.5
Exercises
1-1
Name the major steps used in the development of a reservoir simulator using the mathematical approach.
1-2
Indicate the input and the expected output for each major step in Exercise 1-1.
6
Chapter l
Introduction
1-3
How does the engineering approach differ from the mathematical approach in developing a reservoir simulator?
1-4
Name the major steps used in the development of a reservoir simulator using the engineering approach.
1-5
Indicate the input and the expected output for each major step in Exercise 1-4.
1-6
Draw a sketch, similar to Figure l - l , for the development of a reservoir simulator using the engineering approach.
1-7
Using your own words, state the importance of the engineering approach in reservoir simulation.
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain 2.1
Introduction
The development of flow equations requires an understanding of the physics of the flow of fluids in porous media; the knowledge of fluid properties, rock properties, fluid-rock properties, and reservoir discretization into blocks; and the use of basic engineering concepts. This chapter discusses the items related to single-phase flow. Discussions of fluid-rock properties are postponed until Chapter 10, which deals with the simulation of multiphase flow. The engineering approach is used to derive a fluid flow equation. This approach involves three consecutive steps: l) discretization of the reservoir into blocks, 2) derivation of the algebraic flow equation for a general block in the reservoir using basic engineering concepts such as material balance, formation volume factor (FVF), and Darcy's Law, and 3) approximation of time integrals in the "algebraic flow equation derived in the second step. Even though petroleum reservoirs are geometrically three dimensional, fluids may flow in one direction (1D flow), two directions (2D flow), or three directions (3D flow). This chapter presents the flow equation for single-phase in 1D reservoir. Then it extends the formulation to 2D and 3D in Cartesian coordinates. In addition, this chapter presents the derivation of the single-phase flow equation in 3D radial-cylindrical coordinates for single-well simulation.
2.2
Properties of Single-Phase Fluid
Fluid properties that are needed to model single-phase fluid flow include those that appear in the flow equations, namely, density ( P ), formation volume factor (B), and viscosity (/~ ). Fluid density is needed for the estimation of fluid gravity ( Y ) using Y = YcPg
(2.1)
where Yc = the gravity conversion factor and g = acceleration due to gravity. In general, fluid properties are a function of pressure. Mathematically, the pressure dependence of fluid properties is expressed as: p = f(p) (2.2) B : f(p)
(2.3)
# = f(p).
(2.4)
7
8
Chapter 2
Single-Phase Fluid F l o w Equations in Multidimensional D o m a i n
The derivation of the general flow equation in this chapter does not require more than the general dependence of fluid properties on pressure as expressed by Eqs. 2.2 through 2.4. In Chapter 7, the specific pressure dependence of fluid properties is required for the derivation of the flow equation for each type of fluid.
2.3
Properties of Porous Media
Modeling single-phase fluid flow in reservoirs requires the knowledge of basic rock properties such as porosity and permeability, or more precisely, effective porosity and absolute permeability. Other rock properties include reservoir thickness and elevation below sea level. Effective porosity is the ratio of interconnected pore spaces to bulk volume of a rock sample. Petroleum reservoirs usually have heterogeneous porosity distribution; i.e., porosity changes with location. A reservoir is homogeneous if porosity is constant independent of location. Porosity depends on reservoir pressure because of solid and pore compressibilities. It increases as reservoir pressure (pressure of the fluid contained in the pores) increases and vice versa. This relationship can be expressed as
@ = q¢ll + %(p- p°)]
(2.5)
where ~' = porosity at reference pressure ( p° ) and c¢ = porosity compressibility. Perm e a b i l i ~ is the capacity of the rock to transmit fluid through its connected pores when the same fluid fills all the interconnected pores. Permeability is a directional rock property. If the reservoir coordinates coincide with the principal directions of permeability, then permeability can be represented by k x, ky, and k z. The reservoir is described as having isotropic permeability distribution if k = ky = k z ; otherwise, the reservoir is anisotropic if permeability shows directional bias. Usually kx - - ky -- k H and k z = k v with k v < k H because of depositional environments.
2.4
Reservoir Discretization
R e s e r v o i r discretization means that the reservoir is described by a set of gridblocks (or
gridpoints) whose properties, dimensions, boundaries, and locations in the reservoir are well defined. Chapter 4 deals with reservoirs discretized using a block-centered grid and Chapter 5 discusses reservoirs discretized using a point-distributed grid. Figure 2-1 shows reservoir discretization in the x direction as the focus is on block i. The figure shows how the blocks are related to each other--block i and its neighboring blocks i - 1 and i + 1 --block dimensions ( Axi , ~i-.1 , /~i÷1 ), block boundaries ( xi_l/z , xi.,2 ), distances between the point that represents the block and block boundaries ( 6x i , 6 x , ), and distances between the points representing the blocks ( AXi_l/2 , ~k3fi~tl 2 ). The terminology presented in Figure 2-1 is applicable to both block-centered and pointdistributed grid systems in 1D flow in the direction of the x axis. Reservoir discretization in the y and z directions uses similar terminology. In addition, each gridblock (or gridpoint) is assigned elevation and rock properties such as porosity and permeabilities in the x, y, and z directions. The transfer of fluids from one block to the rest of reservoir takes place through
2.5 Basic Engineering Concepts
9
z~Xi+l/2
Z~Xi-1/2 V ~
8X i-
8Xi+
~k F
•
I • i+1
I 0i
i-1
Xi_ 1
Xi
X i+ 1 ~Xi+ 1
Ax i r
X i-1/2 Figure 2-1
[
),
I
X i+1/2
RelaUonships between block land its neighboring blocks in 1D flow.
the immediate neighboring blocks. When the whole reservoir is discretized, each block is surrounded by a set (group) of neighboring blocks. Figure 2-2a shows that there are two neighboring blocks in l D flow along the x axis, Figure 2-2b shows that there are four neighboring blocks in 2D flow in the x-y plane, and Figure 2-2c shows that there are six neighboring blocks in 3D flow in x-y-z space. It must be made clear that once the reservoir is discretized and rock properties are assigned to gridblocks (or gridpoints), space is no longer a variable and functions that depend on space, such as interblock properties, become well-defined. In other words, reservoir discretization removes space from being a variable in the formulation of the problem. More elaboration follows in Section 2.6.2. Y }ix
T
}px
.
• (i,j+l)
(i,j+l ,k)
...........
-I
(i-l,j)
(a) 1D.
(i+1 ,j)
I
...... I
(i,j-1)
(i,j-1,k)
(b) 2D.
(c) 3D.
Figure 2-2 A block and its neighboring blocks in 1D, 2D, and 3D flow using engineering notation.
2.5
Basic Engineering Concepts
The basic engineering concepts include mass conservation, equation of state, and constitutive equation. The principle of mass conservation states that the total mass of fluid
10
Chapter 2
S i n g l e - P h a s e F l u i d F l o w E q u a t i o n s in M u l t i d i m e n s i o n a l D o m a i n
entering minus the fluid leaving a volume element of the reservoir, shown in Figure 2-3 as block i, must equal the net increase in the mass of the fluid in the reservoir volume element; i.e., mi - m o + m s = m a
(2.6)
Well ms
Figure 2--3 Block ias a reservoir volume element in 1D flow. where m i = the mass o f fluid entering the reservoir volume element from other parts o f the reservoir, m ° = the mass of fluid leaving the reservoir volume element to other parts of the reservoir, m r = the mass of fluid entering or leaving the reservoir volume element externally through wells, and m a = the mass of excess fluid stored in or depleted from the reservoir volume element over a time interval. An e q u a t i o n o f state describes the density of fluid as a function of pressure and temperature. For single-phase fluid, B = p~ / p
(2.7a)
B-
(2.7b)
for oil or water, and
pg~ a pg
for gas, where p and p~ = fluid densities at r e s e r v o i r conditions, Ps,. and P~.,c = fluid densities at standard condmons, and a = the volume conversion factor. A c o n s t i t u t i v e e q u a t i o n describes the rate of fluid movement into (or out of) the reservoir volume element. In reservoir simulation, D a r c y ' s Law is used to relate fluid flow rate to potential gradient. The differential form of D a r c y ' s Law in a 1D inclined reservoir is Ux = qx / ax = - t i c k ~ 0 l~ 3 x
(2.8)
where fl~ = the transmissibility conversion factor, k X = absolute permeability of rock in the direction o f the x a x i s , / z = fluid viscosity, • = potential, and u x = v o l u m e t r i c (or superficial) velocity o f fluid defined as fluid flow rate ( qx ) per unit cross-sectional area ( A ) normal to flow direction x. The potential is related to pressure through the following relationship:
2 . 6 M u l t i d i m e n s i o n a l F l o w in C a r t e s i a n C o o r d i n a t e s
11
(2.9)
- dPrel = (P - Pref) -- y(Z - Zr~f )
where Z = elevation from datum, with positive values downward. Therefore, oqx
~,~ _ y -~-x)
(2.10)
and the potential differences b e t w e e n b l o c k i and its neighbors, b l o c k i - l and block i + 1, are ~ i-1 -- Iff~ i = ( P i - 1 --
(I)i+l
2.6 2.6.1
--
(I)i =
(Pi+l
--
Pi ) - ~/i-I/2 ( Z i - 1 - Z i )
(2.11a)
Pi ) --
(2.11b)
'~i+1/2 ( Zi+l - Zi )
Multidimensional Flow in Cartesian Coordinates Block Identification and Block Ordering
Before writing the flow equation for a l D, 2D, or 3D reservoir, the blocks in the discretized reservoir must be identified and ordered. Any block in the reservoir can be identified either by engineering notation or by the number the block holds in a given ordering scheme. Engineering notation uses the order of the block in the x, y, and z directions; i.e., it identifies a block as ( i , j , k ) , where i, j, and k are the orders of the block in the three directions x, y, and z, respectively. The engineering notation for block identification is the most convenient for entering reservoir description (input) and for printing simulation results (output). Figure 2-4 shows the engineering notation for block identification in a 2D reservoir consisting of 4z5 blocks. Block ordering not only serves to identify blocks in the reservoir but also minimizes matrix computations in obtaining the solution of linear equations.
(1,5)
(2,5)
(3,5)
(4,5)
(1,4)
(2,4)
(3,4)
(4,4)
(1,3)
(2,3)
(3,3)
(4,3)
(1,2)
(2,2)
(3,2)
(4,2)
(1,1)
(2,1)
(3,1)
(4,1)
Figure 2-4
Engineering notation for block identification.
There are many block ordering schemes, including natural ordering, zebra ordering, diagonal (D2) ordering, alternating diagonal (D4) ordering, cyclic ordering, and cyclic-2 ordering. If the reservoir has inactive blocks within its external boundaries, such blocks
12
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
17
18
19
20
13
14
15
16
9
10
11
12
5
6
7
8
1
2
3
4 (b) Zebra ordering.
(a) Natural ordering. 14
17
19
20
10
13
16
18
6
9
12
15
3
5
8
11
1
2
4
7
(c) Diagonal (D2) ordering.
(d) Alternating diagonal (D4) ordering.
11
10
9
8
12
19
18
7
13
20
17
6
14
15
16
5
1
2
3
4
(e) Cyclic ordering.
Figure 2-5
(f) Cyclic-2 ordering,
Block ordering schemes used in reservoir simulaUon.
will be skipped and ordering of active blocks will continue (Abou-Kassem and Ertekin 1992). For multidimensional reservoirs, natural ordering is the simplest to program but is the least efficient in solving linear equations, whereas D4 ordering requires complicated programming but is the most efficient in obtaining the solution when the number of blocks is large. If the number of blocks is very large, however, the zebra ordering scheme becomes twice as efficient as D4 ordering in obtaining the solution (McDonald and Trimble 1977). Figure 2-5 shows the various block ordering schemes for the 2D reservoir shown in Figure 2-4. Given the engineering notation for block identification, block ordering is generated internally in a simulator. Any ordering scheme becomes even more efficient computationally if the ordering is performed along the shortest direction, followed by the intermediate direction, and finally the longest direction (Abou-Kassem and Ertekin 1992). Details related to various ordering schemes and computational efficiency in solving linear equations are not discussed further in this book but can be found elsewhere (Woo, Roberts, and Gustavson 1973; Price and Coats 1974; McDonald and Trimble
2.6 Multidimensional Flow in Cartesian Coordinates
13
1977). The natural ordering scheme is used throughout this book because it produces equations that are readily solvable with handheld calculators and easily programmable for computer usage. The following three examples demonstrate the use of engineering notation and natural ordering to identify blocks in multi dimensions. Example 2.1 Consider the 1D reservoir shown in Figure 2-6a. This reservoir is discretized using four blocks in the x direction as shown in the figure. Order the blocks in this reservoir using natural ordering.
I/SSS
f f J J J /
111213141/1 (b) Natural ordering of blocks.
(a) Reservoir representation.
Figure 2-6
1D reservoir representation in Example 2.1.
Solution We first choose one of the corner blocks (say the left-corner block), identify it as block 1, and then move along a given direction to the other blocks, one block at a time. The order of the next block is obtained by incrementing the order of the previous block by one. The process of block ordering (or numbering) continues until the last block in that direction is numbered. The final ordering of blocks in this reservoir is shown in Figure 2-6b.
Example 2.2 Consider the 2D reservoir shown in Figure 2-7a. This reservoir is discretized using 4x3 blocks as shown in the figure. Identify the blocks in this reservoir using engineering notation and natural ordering. Y
Y
Y
/ / / / /y,:= /
i=1
/
i=2
/
i=3
/
i=4
V~='
(a) Reservoir representation.
Figure 2-7
|
i=1
I
i=2
I
i=3
I
i=4
I,'1='
(b) Engineering notation.
i=I
i=2
}=3
i=4
(c) Natural ordering of blocks.
2D reservoir representation in Example 2.2.
Solution (a) The engineering notation for block identification is shown in Figure 2-7b. (b) We start by choosing one of the corner blocks in the reservoir. In this example, we arbitrarily choose the lower-left corner block, block (1,1), and identify it as block 1. In addition, we choose to order blocks along rows. The rest of the blocks in the first row ( j = ] ) are numbered as explained in Example 2.1. Block (1,2) in the first column ( i = ! ) and second row ( j = 12 ) is numbered next as block 5, and block numbering along this row continues
14
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
as in Example 2.1. Block numbering continues row by row until all the blocks are numbered. The final ordering of blocks in this reservoir is shown in Figure 2-7c.
Example 2.3 Consider the 3D reservoir shown in Figure 2-8a. This reservoir is discretized into 4x3x3 blocks as shown in the figure. Identify the blocks in this reservoir using: (a) Engineering notation. (b) Natural ordering. (1,3,3) (2,3,3) (3,3,3) (4,3,3)
k=3
k=2 z
33
34
35
36
j=3
29
30
31
32
j=2
(1,1,3) (2,1,3) (3,1,3) (4,1,3)
25
26
27
28
j=l
(1,3,2) (2,3,2) (3,3,2) (4,3,2)
21
22
23
24
j=3
17
18
19
20
j=2
(1,1,2) (2,1,2) (3,1,2) (4,1,2)
13
14
15
16
j=l
(1,3,1) (2,3,1) (3,3,1) (4,3,1)
9
10
11
12
j=3
5
6
7
8
j=2
1
2
3
4
j=l
i=1
i=2
i=3
i=4
(1,2,3) (2,2,3) (3,2,3) (4,2,3)
(1,2,2) (2,2,2) (3,2,2) (4,2,2)
k=3
k=2
y
/ k=l
(1,2,1) (2,2,1) (3,2,1) (4,2,1) (1,1,1) (2,1,1) (3,1,1) (4,1,1)
i=1
i=2
i=3
i=4
(a) Reservoir representation.
Figure 2-8
i=1
i=2
i=3
i=4
(b) Engineering notation.
k=l
(c) Natural ordering of blocks.
3D reservoir representation in Example 2.3,
Solution (a) The engineering notation for block identification in this reservoir is shown in Figure 2-8b. (b) We arbitrarily choose the bottom-lower-left corner block, block (1,1,1), and identify it as block 1. In addition, we choose to order blocks layer by layer and along rows. The blocks in the first (bottom) layer ( k = ] ) are ordered as shown in Example 2.2. Next, block (1,1,2) is numbered as block 13 and the ordering of blocks in this second layer is carried out as in the first layer. Finally, block (1,1,3) is numbered as block 25 and the ordering of blocks in this third layer ( k = 3 ) is carried out as before. Figure 2-8c shows the resulting natural ordering of blocks in this reservoir.
2 . 6 M u l t i d i m e n s i o n a l F l o w in C a r t e s i a n C o o r d i n a t e s
2.6.2
15
Derivation of the One-Dimensional Flow Equation in Cartesian Coordinates
F i g u r e 2 - 3 shows b l o c k i and its neighboring b l o c k s i - 1 and i + 1 in the x direction. A t any instant in time, fluid enters b l o c k i, c o m i n g f r o m b l o c k i - 1 across its x i 1/2 face at a mass rate of w lx, ~,~ and leaves to b l o c k i + 1 across its xi+~/2 face at a mass rate of w ] ...... • The fluid also enters b l o c k i through a well at a mass rate of qm, • The mass of fluid contained in a unit v o l u m e of rock in b l o c k i is my, . Therefore, the material balance equation for b l o c k i written over a time step At m,[,, ....
=
I n~l -
tn
Call be rewritten as
-mol....... + m , ,
(2.12)
=m
T e r m s like w x I...... , w I...... , and q,,, are functions of time only because space is not a variable for an already discretized reservoir as discussed in Section 2.4. Further justification is presented later in this section. Therefore, tn~l
mil ..... :
f w l....... dt
(2.13)
tn tn~l
molx .... = f wxL
(2.14)
dt
tn tn+l m ~,i -~ f tn
(2.15)
qm,dt
Using Eqs. 2.13 through 2.15, Eq. 2.12 can be rewritten as t n41
tn+l
f WX[ ..... d r - tn
~ WXI ....... d ' tn
tn+l
+ f qmdt:
ma.
(2.16)
tn
The mass a c c u m u l a t i o n is defined as m
= A t ( V b m v ) i = V,b~.( m v, "÷1 -- m "vi)"
(2.17)
Note that mass rate and mass flux are related through w x = rhxAx
(2.18)
M a s s flux ( rh x ) can be expressed in terms of fluid density and volumetric velocity, rh x = a c p u x
(2.19)
mass of fluid per unit v o l u m e or r o c k ( m v ) can be expressed in terms of fluid density and porosity,
16
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
mv =
q)p
(2.20)
and mass of injected or produced fluid ( qm ) can be expressed in terms of well volumetric rate (q) and fluid density,
qm = acpq
(2.21)
Substitution of Eqs. 2.17 and 2.18 into Eq. 2.16 yields tn+l
tn+l
tn+l
I ('hxA~)l..... at- I (%%)1 ...... a t + [. q.,dt= V~,(mvl +' -m:,). tn
tn
(2.22)
tn
Substitution of Eqs. 2.19 through 2.21 into Eq. 2.22 yields tn+l
tn+l
[. (a,:pu.,A )lx,, ~d t -
~
tn
tn
,-
tn~l
(a~pu Ax)[,,.,,.dt+ [. (acpq),dt=
b,[(~P)~n ~ l -(q~P),n 1"
V~
tn
(2.23) Substitution of Eq. 2.7a into Eq. 2.23, dividing by acpsc, and noting that q / B = qs,: yields
:
n
.
.
_
].
(2.24)
tn
Fluid volumetric velocity (flow rate per unit cross-sectional area) from block i - 1 to block i ( Uxl...... ) at any time instant t is given by the algebraic analog of Eq. 2.8, j~
lP [((IDi-I--(~i)]
kxlx
where k[,,._,,o_ is rock permeability between blocks i - 1 and i that are separated by a distance AXg 1/2, ~i-1 and qbi are the potentials of blocks i - 1 and i, and/zl ...... is viscosity of the fluid contained in blocks i - 1 and i. Likewise, fluid flow rate per unit cross-sectional area from block i to block i + 1 is
Ux/,,1,, '
-
kxlx
~I
1/2 -(lff~i --(I~i41)]. ......
'~Ci+I / 2
Substitution of Eq. 2.25 into Eq. 2.24 and grouping terms results in
(2.25b)
2.6 Multidimensional Flow in Cartesian Coordinates
![(tic ~ ) '°"
x.-,,o(0,_1 , _ - .O,)ldt ,,
,.+1
e
j"l(fl~,. ~-----~)
17
........ (~i)i-Oi+')]dl
n
t°
(2.26) or j" [ T ..... (0,_ 1 - * ~ ) ] d t + j" tTx..... (*~+1-(I)i)]dl q- f tn
tn
q,,~dt= ~,t-B,,
-(~), ]
in
(2.27) where k,a x I
TX .....
=
(tic ~
) ~-,,~,.
(2.28)
is transmissibility in the x direction between block i and the neighboring block i-T-1. The derivation of Eq. 2.27 is rigorous and involves no assumptions other than the validity of D a r c y ' s Law (Eq. 2.25) to estimate fluid volumetric velocity between block i and its neighboring block i -T-1. The validity of Darcy' s Law is well accepted. Note that similar derivation can be made even if Darcy's Law is replaced by another flow equation, such as Brinkman's equation, etc. (Mustafiz, Biazar, and Islam 2005; Belhaj et al. 2005). For heterogeneous block permeability distribution and irregular grid blocks (neither constant nor equal A x , A y , and Az ), the part - kxAxl ....
of transmissibility T ...... is derived in Chapter 4 for a block-centered grid and in Chapter 5 for a point-distributed grid. Note that for a discretized reservoir, blocks have defined dimensions and permeabilities; therefore, interblock geometric factor kA
I (/~c ~)
]
lJLa, x i : 1/2
is constant, i n d e p e n d e n t of s p a c e and time. In addition, the p r e s s u r e d e p e n d e n t term (/~B)[x'.... of transmissibility uses some average viscosity and formation volume factor (FVF) of the fluid contained in block i and the neighboring block i-T-1 or some weight (up-stream weighting, average weighting) at any instant of time t. In other words, the term (/4B)[x~.... is not a function of space but a function of time as block pressures change with time. Hence, transmissibility ~, ...... between block i and its neighboring block i -T-1 is a function of time only; it does not depend on space at any instant of time.
18
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
Again, the accumulation term in Eq. 2.27 can be expressed in terms of the change in the pressure of block i as shown in Eq. 2.29a; t n ~1
tn+l
I [Tj..... ( ( I ~ i - 1 - ¢ i ) ] d t
t n ~1
Vb, d /~,
+ I [ T = (d~i. , -*i)]clt + f q,cdt
tn
tn
[ n+l
tn
(2.29a) or after substituting Eq. 2.11 for potential, tn~l
tn*l
f {T~, ,,z [(Pi
-I --
Pi ) - -
~i
-1,2( Z i - ]
--
Zi )] }dr + f {L,,,,2 [(P,+, - P, ) - }'i-,,z (Zi+, - Z~)]} dt
tn
tn
"" v, d~q~ . . . . . , + f q,c,d t = ' - - ~ - - ) A P i -P'~], ,. a dpB
(2.29b) where
2.6.3
(
)i = the chord slope of (
)i between p,,+li and Pi
"
Approximation of T i m e Integrals
If the argument of an integral is an explicit function of time, the integral can be evaluated analytically. This is not the case for the integrals appearing on the Left-Hand Side (LHS) of either Eq. 2.27 or Eq. 2.29. If Eq. 2.29b is written for every block i = 1, 2, 3...n x, then the solution can be obtained by one of the Ordinary Difference Equations (ODE) methods (Euler's method, the modified Euler method, the explicit Runge-Kutta method, or the implicit Runge-Kutta method) reviewed by Aziz and Settafi (1979). ODE methods, however, are not efficient for solving reservoir simulation problems. Therefore, performing these integrations necessitates making certain assumptions. Consider the integral tn~l
; F(t)dt tn
shown in Figure 2-9. This integral is equal to the area under the curve F(t) in the interval t" < t < t "+1 • This area is also equal to the area of a rectangle with the dimensions of F(t m) , where F is evaluated at time t m where t" < t m < t "+1 , and At , where At = (t ml - t n) , as shown in Figure 2-10. Therefore, ,
tntl
tn+l
tn+l
f F(t)d, = ; F(tm)dt =
; Fmdt
tn
tn
t"
tn+l
= F m ; d t = F m x t :n
: FmX
( tn+l-
tn):
Fm X At.
(2.30)
t"
The value of this integral can be calculated using above equation provided that the value of F " or F(t m) is known. In reality, however, F m is not known and, therefore, it needs to be approximated. The area under the curve in Figure 2-9 can be approximated by one of the following four methods:
19
2.6 Multidimensional F l o w in Cartesian Coordinates
F(t)
F(t)
F(t n+l)
F(t n*l) F(t r")
F(t n)
F(t")
t tn
t
tn+l
tn
tm
t n+l
Figure 2-9 Representation of the Integral of a function as the area under the curve (left). Figure2-10 Representation of the integral of a function as F(fm)×At (right). F(t)
F(t)
F(t)
F(t n+l )
F(tn÷l)
F(t n)
F(tn)
tn
tn+l
F(tn+l) 1/2 [F(tn) + F(tn)
tn
(a)
tn+l
t
tn
(b)
Figure 2-11
t n+1/2 tn+l
t
(c)
Approximations of the Integral of function.
F(t')xAt as s h o w n in F i g u r e 2 - 1 1 a , F(t"~)xAt as s h o w n in F i g u r e 2 - 1 1 b , ~ [F(t ~) + F ( t "+~)1 x At as shown in Figure 2-11 c, or numerical integration.
The argument F in Eq. 2.30 stands for [ T ,.(qb/1 - q b ) ] ,
[T
appears on the LHS of Eq. 2.27, and F m = value of F at time t m. Therefore, Eq. 2.27 after this approximation becomes m (~m,+1 __~m)lAt + " A t [T~,I~(~?I-@?)IAt+,i T ,<,,,2, q,~
Vb ,6 1 ....... ~ " : ~-clt-~) - ( 7 ) , ]
(2.31)
Dividing the above equation by At gives Tm xi 1/2 (dPm \ i-1 - d P m i )i + Tm Xi,ll~ (~i+1--
0 " " + m = Vb, [(q~y,+l _ ( i ) q s ci . n A t B '
)~ 1
(2.32)
Substituting Eq. 2.11 into Eq. 2.32, we obtain the flow equation for block i, Tx.,-.1,2 . I t. P .i _ l. - P. i . ) -. 7 .i llOt~Z i - 1 - Z i ) ] + Tx..2l(Pi+1-P~ . . . . ) - 7 . 1 / 2 ( Z i+1-Zi)]
.~qm :
Vb: [(~)n+l -- (=)i¢n ]. acAt
B
(2.33)
B
The right-hand side (RHS) of the flow equation expressed as Eq. 2.33, known as the fluid accumulation term, vanishes in p r o b l e m s involving the flow of incompressible fluid ( c = 0 ) in an incompressible porous m e d i u m ( % = 0 ). This is the case where both B
20
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
and q~ are constant independent of pressure. Reservoir pressure in this type of flow problem is independent of time. Example 2.4 demonstrates the application of Eq. 2.33 for an interior block in a l D reservoir using a regular grid. In Chapter 7, the explicit, implicit, and Crank-Nicolson formulations are derived from Eq. 2.33 by specifying the approximation of time t" as t" , t "+~ , o r t n~1/2 , which are equivalent to using the first, second, and third integral approximation methods mentioned above. The fourth integration method mentioned above leads to the Runge-Kutta solution methods of ordinary differential equations. Table 2-1 presents the units of all the quantities that appear in flow equations. Example 2.4 Consider single-phase fluid flow in a 1D horizontal reservoir. The reservoir is discretized using four blocks in the x direction, as shown in Figure 2-12. A well located in block 3 produces at a rate of 400 STB/D. All grid blocks have Ax = 250 ft, w = 900 ft, h = 100 ft, andk x = 270 md. The FVFand the viscosity of the flowing fluid are 1.0 RB/STB and 2 cp, respectively. Identify the interior and boundary blocks in this reservoir. Write the flow equation for block 3 and give the physical meaning of each term in the equation. Solution Blocks 2 and 3 are interior blocks, whereas blocks 1 and 4 are boundary blocks. The flow equation for block 3 can be obtained from Eq. 2.33 for i = 3; i.e.,
ttp2 r l....• m rz
m
- P 3 )-~3-1/21, 2 -Z3)I+T~,,,,I(P2 P3 )-~3+i/2(Z4 m
v~,
\
m
~,°+,
+ q Z , - a~-~t[(~)3
z z
.
.
_
m
m
-Z3)] (2.34)
e. -(3)31.
For block 3, Z 2 = Z 3 = Z 4 for horizontal reservoir and q,~'-3= - 4 0 0 STB/D. Because Ax3~l/2 = A x , and b e c a u s e / t and B are constant,
Txm =Tin ......
~....
=tic kxAx - 0 0 0 1 1 2 7 x 2 7 0 x ( 9 0 0 x 1 0 0 ) = 5 4 . 7 7 2 2 STB/D-psi /~BAx
'
(2.35)
2 x 1 x 250
Substitution of Eq. 2.35 into Eq. 2.34 gives
(54.7722)(P2'-p3')+(54.7722)(p4'-p3)-400= acAt (3)3
- ( 3 ) 3 ].
(2.36)
The LHS of Eq. 2.36 comprises three terms. The first term represents the rate of fluid flow from block 2 to block 3, the second term represents the rate of fluid flow from block 4 to block 3, and the third term represents the rate of fluid production from the well in block 3. The RHS of Eq. 2.36 represents the rate of fluid accumulation in block 3. All terms have the units of STB/D.
2.6 M u l t i d i m e n s i o n a l F l o w in C a r t e s i a n C o o r d i n a t e s
Table 2-1
21
Quantities Used in Flow Equations in Different Systems of Units System of Units
Quantity
Length Area
Symbol
Customary Units
SPE Metric Units
Lab Units
x, y, z, r, Z
ft
m
cm
A, A~ Ay, A z, A r, A 0
ift 2
m2
cm 2 darcy
Permeability
k, 1% ky, k:, k,, k o
md
m2
Phase viscosity
# , / l o, ~ , #g
cp
mPa.s
cp
Gas FVF
& Bg
RB/scf
m3/std m 3
cm3/std cm 3
Liquid FVF
B, B o, B w
RB/STB
m3/std m3
cm3/std cm 3
Solution GOR
Rs
scf/STB
std m3/std m3
std cm3/std cm 3
Phase pressure
P, Po, Pw, Pg
psia
kPa
atm
Phase potential
~, ~ o , ~w, ~g
psia
kPa
atm
Phase gravity
Y, Yo, Yw, ~
psi/ft
kPa/m
atm/cm
Gas flow rate
qsc, qgsc
scf/D
std m3/d
std cm3/sec
Oil flow rate
qsc, qosc
STB/D
std m3/d
std cm3/sec
Water flow rate
qsc, qwsc
B/D
std m3/d
std cm3/sec
Volumetric velocity
u
RB/D-ft2
m/d
cm/sec
Phase density
P, Po, Pw, ~
Ibm/ft3
kg/m3
g/cm3
Block bulk volume
Vb
ft3
m3
cm 3
Compressibility
C, Co, C¢
psi-1
kPa -1
atm-1
dimensionless dimensionless
T
dimensionless oR
Compressibility factor Temperature Porosity
K
fraction
fraction
fraction
S, So, Sw, Su
fraction
fraction
fraction
Relative permeability kro, k,~, krg
fraction
fraction
fraction
Gravitational acceleration
g
32.174 ft/sec 2
9.806635 m/s2
980.6635 cm/ sec2
Time
t, At
day
day
sec
Angle
0
rad
rad
rad
Transmissibility conversion factor
tic
0.001127
0.0864
1
Gravity conversion factor
Yc
0.21584x10 -3
0.001
0.986923x10 -6
Volume conversion factor
~zc
5.614583
1
I1
Phase saturation
22
Chapter 2
Single-Phase Fluid F l o w Equations in Multidimensional D o m a i n
400STB/D Z
~"~ .'Yx
O0ft
Figure 2-12
2.6.4
1D reservoir representation in Example 2.4.
Flow Equations in Multidimensions Using Engineering Notation
A close inspection of the flow equation expressed as Eq. 2.33 reveals that this equation involves three different groups: the interblock flow terms between block i and its two neighboring blocks in the x direction m m { Tm Xi-l/2 [ ( P i l - P ~ ) - ~ i - 1 / 2 (
Tx....... t t .P i +. l - P. i . )-'Yi+I/2( .
Z
i-1--Zi)]
and
Z
i+1-Zi)]
},
the source term due to injection or production ( q m ), and the accumulation term
Vb r/(~',n-}] , ~ x n l { - - ~ . tt-), - ~ - ) , J } acAt
B
B
Any block in the reservoir has one source term and one accumulation term, but the number of interblock flow terms equals the number of its neighboring blocks. Specifically, any block has a maximum of two neighboring blocks in 1D flow (Figure 2-2a), four neighb o r i n g b l o c k s in 2D flow (Figure 2 - 2 b ) , and six n e i g h b o r i n g b l o c k s in 3D flow (Figure 2-2c). Therefore, for 2D flow, the flow equation for block (i,j) in the x-y plane is ~..,j-,,2 . ttPu-1 . . .- Pij) . . - Yla-1/2 ( Z ij-1 - Z ~a)] +T....... . .i t t P. - l.a - P. i , j. ) - Y i a/2.j(Z i-la- Z ~a)]
+T....... . .j ttPi+Lj . . - . P~a) . - 7.1/2a ( Z i+l,j-+T .
.
.
.
.
.
.
.
Z
Z
i,j)]
Y,,,,l,2[tPi,j41--Pi,J)--Ti,j,1/2 (" ia+l-Zi,j)]+qm,,,
Vb
~
'B.i.j-.B.i,j."
For 3D flow, the flow equation for block (i,j,k) in the x-y-z space is
(2.37)
2.6 Multidimensional bTow in Cartesian Coordinates
T£j. . . . [ ( P i j k .
1
ijk-1
Pi,j,k)--Ti,jk-1/2(
m
m
m
m
m
m
Z
+Tm Yi,j l/2,k [(Pi,j-l,k--Pi,j,k)--7i4-1/2,k( + T~m,,~,j,~[(Pi-l,j,k
,,
Z
Zi,j,k)]
i,j-l,k--Zid,k)] ,,
-- Pi,j,k ) -- 7i-1/2 j k ( i..1 j k -- Zi,j,k
)1
+T,m,,~,, l(P,"+,j,k - P~,),~)- 7~+~= m , j, k ( Z ~+~,j, ~ - Z~,j,k)l in
m
m
+T"Yi,j-1/2,lc [(Pij*l,k--Pi4,k)--Yij,l/2~( , ,
Z
23
(2.38)
ij*lk--Zi,j,k)] , , ,
m 7, m . . . . Z +Tz j . . . . [(Pi j k~l -- Pi,j,k) -- Yi,j,k+l/2 t i,j,k+l Zi,j,k)]
q~k
- a---~t'~B ~i'j'k
~B ji'j'k~
where
k Ax [
k A ] Li,j ...... ~---(/~c ~B~y)ij ......
L,,j
k,A z
I
(~ kxA )
kyA v = (flc-'~Y
k A -b?-?
1
1 )YiJ ...... ( ~ B ) Y i , j
1
Gx,,~(-~)x,,=j~
(2.39a)
1 ...... --- Gy, j ...... ( ~ - B ) Y i , j
1 G j .... ( ~ ) z j
......
(2.39b)
....
(2.39c)
Expressions for the geometric factors O for irregular grids in heterogeneous reservoirs are presented in Chapters 4 and 5. It should be mentioned that the interblock flow terms in the flow equations for 1D (Eq. 2.33), 2D (Eq. 2.37), or 3D (Eq. 2.38) problems appear in the sequence shown in Figure 2-13 for neighboring blocks. As will be shown in Chapter 9, the sequencing of neighboring blocks as in Figure 2-13 produces flow equations with unknowns already ordered as they appear in the vector of unknowns for the whole reservoir. The following two examples demonstrate the application of Eqs. 2.37 and 2.38 for interior blocks in multidimensional anisotropic reservoirs using regular grids. Example 2.5 Consider single-phase fluid flow in a 2D horizontal reservoir. The reservoir is discretized using 4x3 blocks as shown in Figure 2-14. A well that is located in block (3,2) produces at a rate of 400 STB/D. All gridblocks have A x = 250 ft, A y = 300 ft, h = lOOft, k x = 2 7 0 m d , a n d k y = 2 2 0 m d . TheFVFand the viscosity of the flowing fluid are 1.0 RB/STB and 2 cp, respectively. Identify the interior and boundary blocks in this reservoir. Write the flow equation for block (3,2) and give the physical meaning of each term in the flow equation. Write the flow equation for block (2,2).
24
Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain
Y
2
The sequence of neighboring blocks in the set ~, j, k or ~n"
Figure 2-13
400 STB/D
~ X
/(1,3) /
(2,3,~ 3 , 3 , / 4 , 3 ) / ~
S"~(1,2)~(2,2)~3'~(4,2'~J
=3
300~ ¢ ~ / < 1 , 1 > / ( 2 ' 1 ' / ( 3 ' 1 > / < 4 ' 1 > / ~
100.11
I i=1
Figure 2-14
I i=2
I i=3
j=2
Vi:l i=4
2D reservoir representation in Example 2.5.
Solution
Interior blocks in this reservoir include reservoir blocks that are located in the second and third columns in the second row. Other reservoir blocks are boundary blocks. In explicit terms, blocks (2,2) and (3,2) are interior blocks, whereas Blocks (1,1), (2,1), (3,1), (4,1), (1,2), (4,2), (1,3), (2,3), (3,3), and (4,3) are boundary blocks. The flow equation for block (3,2) can be obtained from Eq. 2.37 for i = 3 andj = 2; i.e., Lm
r/
m
...... l i P 3 , 1
m -- P3,2)
m - - ~'t3,2-1/2
(Z3,l -- Z3,2)]
-~Tx~ ' ,/ 2,,2 [ ( P 2 " ~. - . P 7 2. ) .- ~/3m-1/22 . . .(Z22
- Z32 )]
+T" X3~1/2,2 [(pr~2-P32)-y3m+l/22(Z42-Z32)] . . . . .• +~m ........
....
.. . . . . .
I[P3,3-P3,2)-•32+l/e(Z33-Z3,2)] . . . .
+
,,,
q ....
v~,~,~ r,-~_v,--
acAt
,,B,3
¢
,,
~ -('B)3,2]" -,-
(2.40)
2.6 Multidimensional Flow in Cartesian Coordinates
25
For block (3,2), Z3a = Z2, 2 = Z3, 2 = Z4, 2 = Z3, 3 for a horizontal reservoir and
qm.,~,,= --400
STB/D. Because Ax3_vl/2.2= Ax = 250 ft, Ay3.2~l/2 = Ay = 300 ft,
and/~ and B are constant, T~ =Tm =fl~ kxAx = 0 . 0 0 1 1 2 7 × 2 7 0 × ( 3 0 0 x 1 0 0 ) _ 1 8 . 2 5 7 4 ....... 3. . . . . . ktBAx 2 × 1 x 250
(2.41a)
T~
=Tm
Y......
=fl~ k A y
Y......
/.tBAy = 0 " 0 0 1 1 2 7 ×
2 2 0 x ( 2 5 0 x 100) = 10.3308 2xlx300
(2.41b) Substitution into Eq. 2.40 gives (10.3308)(p3,m~ -- P;,2) + (18.2574)(P2~2 -- P3,2) + (l 8.2574)(P412 -- P3,"2) (2.42)
+(10"3308)(P3,3--P3,"2)--400= aV~,~ q ~ . I. ~Xt "(tp~.+l B "~'2 - (-~)~,2
The LHS of Eq. 2.42 comprises five terms. The first term represents the rate of fluid flow from block (3,1) to block (3,2), the second term from block (2,2) to block (3,2), the third from block (4,2) to block (3,2), and the fourth from block (3,3) to block (3,2). Finally, the fifth term represents the rate of fluid production from the well in block (3,2). The RHS of Eq. 2.42 represents the rate of fluid accumulation in block (3,2). All terms have the units STB/D. The flow equation for block (2,2) can be obtained from Eq. 2.37 for i = 2 andj = 2; i.e., -,
m
)
m
E m.... [(p2ml -- P2,2 -- Y2,2 ,,2(Z2,, -- Z2,2)1 +T~ m ..... [(P,% - P'2~2) - 72"-.2,2 (Z,,2 - Z2,2 )1 + E 2 m ..... [ ( P 5 - P',~ ) - r2Ll,~ 2 (Z3 2 - Z2,2 )I
+ T ~ ..... [ ( P ~ 3 - P ~ " 2 ) - Y " ~ ' ~ " 2 ( Z ~ ' 3 - Z 2 ~ ) ]
+
m
q ....
\
acAt
-'
1
B ~'~" (2.43)
For block (2,2), Z2,1 = Z1,2 = Z2, 2 = Z3,2 = Z2, 3 for a horizontal reservoir, qs~2,2 = 0 STB/D b e c a u s e block (2,2) d o e s not host a well,
Txm = T" = 18.2574 STB/D-psi, a n d T m 2 1/2,2 x2+112,2 Y2,2
112
= T~
Y2,2t112
= 10.3308 STB/D-psi.
Substitution into Eq. 2.43 gives (10.3308)(P2~1 - P+~2) + (l 8.2574)(pt" 2 - P~I2 ) + (l 8.2574)(p~'12 - P2~2)
26
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
(2.44)
(10.3308)(P2.3 - P2z) = ~-~-L..~.,., 2 - (~)z.2]. ' a,, t -'
Example 2.6 Consider single-phase fluid flow in a 3D horizontal reservoir. The reservoir is discretized using 4~3x3 blocks as shown in Figure 2-15a. A well that is located in block (3,2,2) produces at a rate of 133.3 STB/D. All grid blocks have Ax = 250 ft, Ay = 30Oft, ~z = 33.333 ft, kx = 270md, ky = 220 md, and kz = 50 md. The FVF, density, and viscosity of the flowing fluid are 1.0 RB/STB, 55 Ibm/fl3, and 2 cp, respectively. Identify the interior and boundary blocks in this reservoir. Write the flow equation for block (3,2,2). Solution As can be seen in Figure 2 - 1 5 b , interior blocks include reservoir blocks that are located in the second and third columns in the second row in the second layer, i.e., blocks (2,2,2) and (3,2,2). All other reservoir blocks are boundary blocks.
(1,3,3) (2,3,3) (3,3,3) (4,3,3) j=3 k=3
i(1,2,3) (2,2,3) (3,2,3) (4,2,3) j=2 (1,1,3) (2,1,3) (3.1,3) (4,1,3) j=l
z
y (1,3,2) (2,3,2) (3,3,2) (4,3,2) j=3
x/
133.3 STB/D k=2
k=3 k=2 k=l
=3
(1,2,2) (2,2,2) ~ " (4,2,2) j=2 (3,2,2) (1,1,2) (2,1,2) (3,1,2) (4,1,2) j=l
i=1 i=2 i=3 i=4 (a) Reservoir representation.
T
300 ft I (1,3,1) (2,3,1) (3,3,1) (4,3,1) j=3 Y
T
k=l ~,- X
(1,2,1) (2,2,1) (3,2,1) (4,2,1) j=2 (1,1,1) (2,1,1) (3,1,1) (4,1,1) j=l i=1 i=2 i=3 i=4 (b) Engineering notation.
Figure 2-15
3D reservoir representation in Example 2.6.
2.6 Multidimensional Flow in Cartesian Coordinates
27
The flow equation for block (3,2,2) can be obtained from Eq. 2.38 for i = 3, j = 2, and k = 2; i.e., Tz3m;..... [(p3m,2 l -- P3,t2, 2 ) -- 73m,2,2-1/2 (Z3,2,1 - Z3,2,2 )]
+T m
r..,
.,
Y........ [kP3,1,2 -- P3,2,2 ) -- 73,2-1/2,2 (Z3,1,2 - Z3,2,2 )]
+ T~'_....... [(P~,2,2 - P3~,2,2) - 73m-,,2,2,2(Z~.,2,2 - Z3,2,2 )l
+Tx3. ........ . . l [ .P 4,2,z . . -- . P3,z,2 . . ) -.-
7. 3*ll Z,2,:: t Z 4 , 2 , 2 - Z 3 , 2 , 2 )]
+Ty.......... . .ttP3,3,2 . . -. P3,2,z) . . - 73,2+m,2 (Z3,3,2 - Z3,12)] m
+Era ...... l (P312,3 -- P3,2,2)
rn -- 73,2,2t-1/2 (Z3,2,3 - Z3,2,2)1
V, ....
% A t ,,~,3,2,2 - ,~,3,2,2,(2.45)
For block
(3,2,2),
Z3,1, 2 -~ Z2,2, 2 -~ Z3,2, 2 = Z4,2, 2 = Z3,3, 2 , Z3,2,1 - Z3,2, 2 = 3 3 . 3 3 3
Z323 , ,~ - Z 3 2,, ,~ = - 3 3 . 3 3 3
It, a n d q~sc3,2,2 = - 1 3 3 . 3
It,
STB/D. B e c a u s e
Z~kX3zl/2,2, 2 = / ~ f = 2 5 0 It, Ay3,2_T_l/2, 2 = Ay = 300 f't, '~'3,2,2-T-1/2 = / ~
= 33.333 ft, a n d
/~, P , and B are constant, then m
= 73,2,2-1/2 = 7 3,2,2+1/2 m
Tm ............
Tm
7cPg = 0 . 2 1 5 8 4
x 10 -3 X 55 X 3 2 . 1 7 4 = 0 . 3 8 1 9
psi/it,
= tic kxA" = 0 0 0 1 1 2 7 x 2 7 0 x (300 x 33.333) 6.0857 ktBAx " 2 x 1 x 250 =
STB/D-psi
(2.46a)
-= tic kvA~
STB/D-psi
(2.46b)
Y. . . . . . . . .
T" ..........
= 0.001127x
IuBAy
2 2 0 x (250 x 33.333) = 3 . 4 4 3 6 2 x 1 x 300
=tic kzA~ - 0 - 0 0 1 1 2 7 x 5 0 X ( 2 5 0 x 3 0 0 ) = 6 3 . 3 9 4 4 ktBAz
STB/D-psi
(2.46e)
2 x 1 x 33.333
Substitution into Eq. 2.45 gives m
m
m
tn
(63"3944)[(P3,2,1 - P3,2,2) -- 12.7287] + (3.4436)(p3,1,2 - P3,2,2) +(6'0857)(p2m2,2 -- P3~2,2) + (6"0857)(P~2,2 -- P3,m2,2) + (3.4436)(P;,3,2 -- p3m2,2)
+(63.3944)[(p3"2, 3 - P3.~,2)+ 1 2 . 7 2 8 7 1 - 1 3 3 . 3
= a-~-~-,,~-,3,2, 2 - ,B,3,2,2,.
(2.47)
28
Chapter 2
Single-Phase Fluid F l o w Equations in Multidimensional D o m a i n
2.7
Multidimensional Flow in Radial-Cylindrical Coordinates
2.7.1
Reservoir Discretization for Single-Well Simulation
Single-well simulation uses radial-cylindrical coordinates. A point in space in radialcylindrical coordinates is identified as point (r, 8, z) as shown in Figure 2-16. A cylinder with the well coinciding with its longitudinal axis represents the reservoir in single-well simulation. Reservoir discretization involves dividing the cylinder into n concentric radial segments with the well passing through the center. Rays from the center divide the radial segments into n o cake-like slices. Planes normal to the longitudinal axis divide the cake-like slices into n z segments. A reservoir block in a discretized reservoir is identified as block ( i , j , k ) , where i, j, and k are respectively the orders of the block in r, 0, and z directions with 1 < i < n r 1 < j < n o , 1 < k < n z . This block has the shape shown in Figure 2-17. ,
z
z
(x,y,z) (r,O,z) I I I I I
0j.1/2
,y r /
// /s' x
,y (r, ,0j)
X
Figure 2-16 Graphing a point in Cartesian and radial coordinates (left). Figure 2-17 Block (i,j,k) in single-well simulation (right). Figure2-18a
s h o w s that b l o c k ( i , j , k ) is s u r r o u n d e d by b l o c k s ( i - l , j , k )
and
(i + 1 , j , k ) in the r direction, and by blocks ( i , j - l,k) and ( i , j + 1,k) in the Odirection. In
addition, the figure shows the boundaries between block ( i , j , k ) and its neighboring blocks: b l o c k b o u n d a r i e s ( i - ~ , j , k ) ,
(i+~,j,k),
(i,j-~,k),
and ( i , j + ~ , k ) .
Figure 2-18b shows that block ( i , j , k ) is surrounded by blocks ( i , j , k - l) and ( i , j , k + 1) in the z direction. The figure also shows block boundaries ( i , j , k - 1/2) and ( i , j , k + ~ ) . We will demonstrate block identification and ordering in a single-well simulation in the following two examples. In the absence of fluid flow in the 0 direction, block ordering and identification in radial and rectangular coordinates are identical.
2.7 Multidimensional Flow in Radial-Cylindrical Coordinates
I
Zi'j'k+l/2 A Zi.j,k Zi,i,k-l/2
I'i (i,j,k-1)
ri-1/2 • ,
(i,j,k)
ri+1/2
and its neighboring blocks in the z-direction.
0j 1 (a) Block
(i,j,k)
Figure 2-18
and its neighboring blocks in horizontal plane.
Block (i,j,k) and its neighboring blocks in single-well simulation.
Example 2.7 In single-well simulation, a reservoir is discretized in the r direction into four concentric cylindrical blocks as shown in Figure 2-19a. Order blocks in this reservoir using natural ordering. Solution We identify the innermost block enclosing the well as block 1. Then we move to other blocks, one block at a time, in the direction of increasing radius. The order of the next block is obtained by incrementing the order of the previous block by one. We continue the process of block ordering (or numbering) until the outermost block is numbered. The final ordering of blocks in this reservoir is shown in Figure 2-19b.
Example 2.8 Let the reservoir in Example 2.7 consists of three layers as shown in Figure 2-20a. Identify the blocks in this reservoir using (a) Engineering notation. (b) Natural ordering. Solution (a) The engineering notation for block identification in this reservoir is shown in Figure 2-20b. (b) We arbitrarily choose to order blocks in each layer along rows. Blocks in the first layer ( k = ] ) are numbered as explained in Example 2.7. Block (1,2) in
29
30
Chapter 2
Single-Phase Fluid F l o w Equations in Multidimensional D o m a i n
(a) Reservoir representation. Figure 2-19
(b) Natural ordering of blocks.
1D radial-cylindrical reservoir representation in Example 2.7.
~i=11~=3 ~=4 k=l ~i=11~=3 ~=4 k=l
~ . . . . . . . ~ . . . . ~ i = 1 i=2 i=3
(a) Reservoir representation.
Figure 2-20
(b) Engineering notation.
i=4
(c) Natural ordering of blocks.
2D radial-cylindrical reservoir representation In Example 2.8.
the first column ( i = 1 ) and second plane ( k = 2 ) is numbered next as block 5, and block numbering continues as in Example 2.7. Block numbering continues (lager by lager) until all blocks are numbered. The final ordering of blocks in this reservoir is shown in Figure 2 - 2 0 c .
2.7.2
Derivation of the Multidimensional Flow Equation in Radialcylindrical Coordinates
To w r i t c the m a t e r i a l b a l a n c e for b l o c k ( i , j , k ) in F i g u r e 2 - 1 8 o v e r a t i m e step At = t "+] - t " , we a s s u m e that the fluid c o m i n g f r o m n e i g h b o r i n g b l o c k s enters block ( i , j , k ) through b l o c k boundaries ( i - ~ , j , k ) , (i,j-~,k) , and ( i , j , k - ~ ) and leaves through block boundaries (i + ~ , j , k ) , ( i , j + ~ , k ) , and ( i , j , k + ~ ) . The application of Eq. 2.6 results in (miL,,2,k-moL,,,,~, )+(miL, ' ..... -molo, j .... ) + (m,[=,,. . . . . - m ° l .......... ) + m ...... =ma,,,"
Terms like mass rates,
(2.48)
2.7 Multidimensional Flow in Radial-Cylindrical Coordinates
W r [ r I- l l 2 j,k,
and well mass rate, therefore,
~ Woloi,j
qm, j,k ,
..... 'Wz
Zi,j,k-l/2 '
wrl
Fi4ll2,j, k
'w°[%..... "
'
~ w'l~
31
Zi'j'k~ll2
are functions of time only (see justification in Sec. 2.6.2);
ln~l
mil
at
(2.49a)
re'l% ...... = f Wo o j ..... dt
(2.49b)
= ri ll2,j,k
f WFI
Fi ll2,j,k
tn
tn+l
tn tn~l
milzlj ...... = j'w lzj ...... dt
(2.49c)
tn tn+l
moirltll2,j,k : IWrl ri÷ll2,j,k dt
(2.50a)
tn÷l
molo, j...... =
f wolo,...... dt
(2.50b)
tntl
tool
= f w[ Zi,j,k+ll 2
tn
dt
(2.50c)
~ Zi,j,k+ll 2
tn41
m sLy,k = f q~.jdt i,,
(2.51)
tn
In addition, mass accumulation is defined as m ai,j,k
= At(Vom,)ij, k = Vb,,j,~( mvl,),k .~1 _ m"vl,j,k )
(2.52)
Mass rates and mass fluxes are related through WrL
= lhrAr
(2.53a)
%1o = rhoAo
(2.53b)
Wz I= = rh~-A~
(2.53c)
Mass fluxes can be expressed in terms of fluid density and volumetric velocities,
in r = O:cPUr
(2.54a)
32
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
rho = a p u o
(2.54b)
rh z = ~ c p u z
(2.54c)
and m v can be expressed in terms of fluid density and porosity, m.
= (q~P)ia,k
(2.55)
Also, the well mass rate can be expressed in terms of well volumetric rate and fluid density,
(2.56)
qm~j,k = ( a c p q ) i j , ~
Substitution of Eq. 2.54 into Eq. 2.53 yields a puA
W r Ir :
(2.57a)
Wo ]o = a cpuoAo
(2.57b)
w~l: = a,:puzA z
(2.57c)
Substitution of Eq. 2.57 into Eqs. 2.49 and 2.50 yields tn~I
m,l~_~,~,=, ~j" ac(PUrAr)]~,,~,,,dt
(2.58a)
tn
tn,l
milo,., ..... :
f a (puoAo)lo,, ..... dt
(2.58b)
tn tn~t
m,I. ' ..... :
~a(puAplz., .......dt
(2.58c)
tn tn~l
C~c(pUrAr)l~+,/z,,dt
(2.59a)
molo,, .... = f ac(puoAo)lo,, ...... el,
(2.59b)
mol
Q+l/2,j,k
= f
I
tn
, ,
tn+l
in tn41
mo[,2t,j ,k+] / 2 =
f ac(puAz) I
Zi,j ,k t 112
tn
d,
(2.59c)
Substitution of Eq. 2.56 into Eq. 2.51 yields tn+l
m
s~,j,k
= f (cccpq)id,kdt tn
(2.60)
2.7 Multidimensional Flow in Radial-Cylindrical Coordinates 33 Substitution of Eq. 2.55 into Eq. 2.52 yields m
=Vb.j~[(~)p) i,,
ai,j,k
n+l
(2.61)
~]
n
, ' j.~ - ( ¢ > P ) , ' i '
Substitution of Eqs. 2.58 through 2.61 into Eq. 2.48 results in tn+l
t n*l
I cQ(PUrar)[~_,/~j,kdt-f tn
t n~l
a~(pu'Ar)l~,,,2.~.~dt+I a~(puoa°)lo,,, ..... dt
tn tn+,
tn t n~l
- I aApuoAo)lo,,
......
t n+l
dt+ I aApuzA=)lz,, ....... dr- I Ctc(PUzAz)[<,...... dt
tn
tn
tn
tn+l
+ I (a~Pq)'o,~dt -- V,b,,,~[(~P)~~,+~ j k -- (q~P)~o,kl"
(2.62)
tn
Substitution of Eq. 2.7a into Eq. 2.62, dividing by a~p,~, and noting that q~ = q ! B yields
i x`'ar,
dt- [
r dt+!(
-I(~) tn
tn
(urAr)
Oi,j÷ll2,k
.
dt+ I (
A
'"~ )
n
)
dtZi,j,k
dt
A K (
dt
n
1/2
(2.63)
Zi. ' +
L\n/i,j,k
Fluid volumetric velocities in the r, 0, and z directions are given by the algebraic an'dogs of Eq. 2.8; i.e.,
kr Ix....... [ (~ i-l,j,k --lff~ i,j,k ).] Url,. ,,'-.,.,~: tic ~lr~.,,~,,,,,
Ar/-l/2,J, k
kr[~.~/2.[j(d~bi,j,k , --di)i+],j,k).]. Urlri,ll2,j/:
= ~c
~]rit/2,j, k
(2.64a)
Ari+l/2,j,
(2.64b)
k
Likewise,
u.I • Zi,j,k t/2
k~]-, .... (~,j, 1--1ff~ijk). J .....
~
Zi,J,k
-1/2
-
~Zi'j'k-l/2
-
(2.65a)
34
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
kz [z,.j...... [ (~i,j,k -- ~i j k+l ) ]
(2.65b)
Similarly, k°[o
.....
[ (~)i j lk --{~i jk)
t~lo,,j......
(2.66a)
i,j,k Oi,s-ll2,k
(2.66b)
i,j,k Oi,j+ll2,k
Substitution of Eqs. 2.64 through 2.66 into Eq. 2.63 and grouping terms results in '"+' k Ar I '"~' f [ (fl< ~-----BA~r) n ,,o , ( ~ '-l,,,k -- + g,S,k) ]dt +
krAr I f [(tic ~---B~r)[
.....
s k ( fIii+l'j'k - lrili'j'k ) ldt
(Oi s-I k - Oi s k) ldt
t n ri,j,k
+'i' [ 1
_ koAo I
,o
' ......
'"+'
kzA z ]
+ f [(fl< ~)=,,
'"+'
_ kzA z ]
..... (~'"#'k-' - ~'"/'k )]dt + ! [(~ ~)z,,j
...... (~'"'k+l -- +'"'k)]dt
tn+i
+ S q'<,kdt = Vb'~ ffcPV+l -- (B)i¢" i,, t"
"'
ac
t~B/i'j'k
'j,k 1.
(2.67)
Eq. 2.67 can be rewritten as t n-I
tml
f [Ti,j ...... (lff~i,J, k-1 --lff~i,j,k)]dt -jr- f [Told ...... (lff~i,j-l, k --lff~i,j,k)Jdt tn tn t n+l tntl + ~ [Tri-tszd,k (l~Ji-l,j,k--f~Ji,j,k)]dt in t ntl -t-S [Toi,j ...... (l~Ji'j+l'k tn tn*l s. ,
C~c
qbij,k)]dt
-dP'Jk)]dt+ S ITZi,j,ktl[2 (O i,j,k +1 -Oi,j,k)]dt ,,
+ J qsc.dt= vb,,, t\-B1i,j,k tn
+ f [Tri+,zaa,k (lff~i+l.j,ktn lair tn
1,
\OJijk, , j
(2.68)
2.7 Multidimensional F l o w in Radial-Cylindrical Coordinates
35
where krA r
I
_ krA r
1
1 )
T?'ia-ll2,j,k = (tic B----ff~r)lr,~,,=,j,, = (tic ---~r)~,,:,,,~ (~-~)r,:,,~j,, = G~+,,~,~,,(~--B r,~,,~j,, (2.69a)
To,~......
=
G
1 -koAo I =(flc~)O,,j,,,=~(__~B)% = ri,j, k ([~c ~ - ~ ) Oi,J...... i,j,k 1
% ...... (-~)o,~
.......
(2.69b)
,
......
_ kA [ kA 1 1) ~ ~ )1 = (tic z = (-~ z,,~,~+,,=(2.69c) /[~BI~Z IZi,j,k4.1,2 -~ )zi'j'*~l'2 (--~)zi'j'k3"l'2 Gzi'j ......
T ...... = (tic
~i,,
Expressions for geometric factors G for irregular grids in heterogeneous reservoirs are presented in Chapters 4 and 5.
2.7.3
Approximation
of Time Integrals
Using Eq. 2.30 to approximate integrals in Eq. 2.68 and dividing by At, the flow equation in radial-cylindrical coordinates becomes m Tz, j ......
m [(lff~i,j'k-1
__~m
i,j,k)] +
reWj_,,=~,[(¢lPi,~-l_,_k( ~ i m, j , k ) ]
m 0" i3,k)]+ T ~.,,~.,,, m [ (Oi'~,,j,k +T~,,,2,j,,l(Oi-l,j,k--
+To~, ...... [(~,,m
-- oimj,k)]
,~--,I,,,%)l+~,~ ...... [(~',%,--~',,%k)]
+qsmqa,~ = acAtt~BJi,j,k
(2.70)
~BJi,j,k j"
Using the definition of potential difference, Eq. 2.70 becomes L .i,j,k..ll2 . . .l(Pi,j,k-1 _ p mj~) _ 7,,%,~-,,~ (Z,,j,~_, -- Z, ' j~)] , , ' --}-T,o,a_~,2,k . . l(Pi,j-l,k . . . --. Pi,j,l~ ) -- ~'i,j-1/2,k ( Z i,j-l,k - Zi,j, k ) ]
"}-Tr_m/2j,k [(pm-l,j,k -- pi,mj,k ) -- ~] im_ll2,j,k (Zi-l,j,k -- Zi,j, k )] m m m -- m Z -- Zi,j, k)] + T~+l,~.,j,k [ (Pi+l,j,k -- Pi,j,k ) ~]i+ll2,j,k ( i+l,j,k "[-T.m Oi,j~ll2,k [ ( P ~ j, + l ,k -- om) ~i,j,r
-- ym ,Jq-llZ,g ..... (Zi J.+1 k -- Z ,d,; k )]"
+L?,, ...... [(p?,j,~+l - p,?j,~) - r,,%,~+~,~(z,,j,~+~ - z,,j,~)] 4- m
q*,,j~
=
i,i,~ i - ( ' / ' ~ 1
ot Att~ B~i,J, k
~ BJi,J, ~ '"
(2.71)
36
Chapter 2
Single-Phase Fluid Flow Equations in Multidimensional Domain
Eq. 2.38, the flow equation in Cartesian coordinates (x-y-z), is used for field simulation, whereas Eq. 2.71, the flow equation in radial-cylindrical coordinates (r-O-z), is used for single-well simulation. These two equations are similar in form. The RHS of both equations represents fluid accumulation in block ( i , j , k ) . On the LHS, both equations have a source term represented by well production or injection and six flow terms representing interblock flow between block (i,j,k) and its six neighboring blocks: blocks ( i - 1 , j , k ) and (i + 1,j,k) in the x direction (or r direction), blocks (i,j - 1,k) and (i,j + 1,k) in the y direction (or 0direction), and blocks (i,j,k - 1 ) and (i,j,k + 1) in the z direction. The coefficients of potential differences are transmissibilities T~, ~ , and ~ in the x-y-z space and T , TO , and T in the r-O-z space. Eqs. 2.39 and 2.69 define these transmissibilities. The geometric factors in these equations are presented in Chapter 4 for the block-centered grid and in Chapter 5 for the point-distributed grid.
2.8
Summary
This chapter has reviewed various engineering steps involved in rendering governing equations into algebraic equations. Governing equations, involving both the rock and fluid properties, are discretized without conventional finite-difference or finite element manipulation of PDEs. Fluid properties such as density, FVF, and viscosity are, in general, functions of pressure. Reservoir porosity depends on pressure and has heterogeneous distribution, and reservoir permeability is usually anisotropic. The basic knowledge of material balance, FVF, potential difference, and Darcy's Law are necessary for deriving flow equations in petroleum reservoirs. Rectangular coordinates and radial coordinates are two ways of describing reservoirs in space. Although it is common to study reservoirs using rectangular coordinates, there are a few applications that require using radial-cylindrical coordinates. Using the engineering approach, the single-phase flow equation can be derived in any coordinate system. In this approach, the reservoir first is discretized into blocks, which are identified using the engineering notation or any block ordering scheme. The second step involves writing the fluid material balance for a general reservoir block in a multidimensional reservoir over the time interval t" < t < t "+1 and combining it with Darcy's Law and the formation volume factor. The third step provides for an evaluation method of the time integrals in the flow equation that was obtained in the second step. The result is a flow equation in algebraic form with all functions evaluated at time t m , where t" < t m < t "~1 • In Chapter 7, we demonstrate how the choice of time t m as the old time level t " , new time level t n+l , or intermediate time level t n+1/2 gives rise to the explicit formulation, implicit formulation, or the Crank-Nicolson formulation of the flow equation.
2.9
Exercises
2-1
List the physical properties of rock and fluid necessary for the derivation of a single-phase flow equation.
2-2
Enumerate the three basic engineering concepts or equations used in the derivation of a flow equation.
2.9 Exercises
2-3
Eq. 2.33 has four major terms, three on the LHS and one on the RHS. What is the physical meaning of each major term? What are units of each major term in the three systems of units? Using customary units, state the units of each variable or function that appears in Eq. 2.33.
2-4
Compare Eq. 2.33 with Eq. 2.37; i.e., identify the similar major terms and the extra major terms in Eq. 2.37. What is the physical meaning of each of these extra terms and to which direction do they belong?
2-5
Compare Eq. 2.33 with Eq. 2.38; i.e., identify the similar major terms and the extra major terms in Eq. 2.38. What is the physical meaning of each of these extra terms? Group the extra terms according to the direction they belong.
2-6
Compare the 3D flow equation in rectangular coordinates (x-y-z) in Eq. 2.38, with the 3D flow equation in radial-cylindrical coordinates (r-O-z) in Eq. 2.71. Elaborate on the similarities and differences in these two equations. Note the differences in the definition of geometric factors.
2-7
Consider the 2D reservoir shown in Figure 2-21. This reservoir is discretized using 5x5 blocks but has irregular boundaries, as shown in the figure.
p~,,y ~JP:~
F~
Active block
Ay
,uFP4~s~
Inactive block
j=l i:1 .~x Figure2-21
i=2
i=3
i=4
i=5
2D reservoir representation in Exercise 2-7.
Use the following schemes to identify and order the blocks in this reservoir: • • • • •
engineering notation natural ordering by rows natural ordering by columns diagonal (D2) ordering alternating diagonal (D4) ordering
37
38
Chapter 2
• • • 2-8
S i n g l e - P h a s e F l u i d F l o w E q u a t i o n s in M u l t i d i m e n s i o n a l D o m a i n
zebra ordering cyclic ordering cyclic-2 ordering
Consider single-phase flow in a 1D inclined reservoir. The flow equation for block i in this reservoir is expressed as Eq. 2.33. (a) Write Eq. 2.33 for block i assuming t m = t " . The resulting equation is the explicit formulation of the flow equation for block i . (b) Write Eq. 2.33 for block i assuming t m = t "+1 . T h e resulting equation is the implicit formulation of the flow equation for block i . (c) Write Eq. 2.33 for block i assuming t " = t " 4 1 / 2 . T h e resulting equation is the Crank-Nicolson formulation of the flow equation for block i.
2-9
Consider single-phase flow of oil in a 1D horizontal reservoir. The reservoir is discretized using six blocks as shown in Figure 2-22. A well that is located in block 4 produces at a rate of 600 STB/D. All blocks have kx = 220 ft, Ay = 1000 ft, h = 90 ft, and k x = 120 md. The oil FVF, viscosity, and compressibility are 1.0 RB/STB, 3.5 cp, and 1.5x10 -5 psi -z, respectively. (a) Identify the interior and boundary blocks in this reservoir. (b) Write the flow equation for every interior block. Leave the RHS of the flow equation without substitution of values. (c) Write the flow equation for every interior block assuming incompressible fluid and porous medium. 600 STB/D
z
¼y
1
2
3
4
:
5
~-x
L r
Figure 2-22 2-10
"!
10 reservoir representation in Exercise 2-9.
Consider single-phase flow of water in a 2D horizontal reservoir. The reservoir is discretized using 4x4 blocks as shown in Figure 2-23. Two wells are located in blocks (2,2) and (3,3), and each produces at a rate of 200 STB/D. All blocks have kx = 200 ft, Ay = 200 ft, h = 50 ft, and k = k = 180 md. The oil FVF, viscosity, and compressibility are 1.0 RB/STB, 0.5 cp, and 1x l 0 -6 psi -z, respectively. (a) Identify the interior and boundary blocks in this reservoir. (b) Write the flow equation for every interior block. Leave the RHS of flow equation without substitution of values.
2.9 Exercises
(c) Write the flow equation for every interior block assuming incompressible fluid and porous medium.
Figure 2-23
2D reservoir representation in Exercise 2-10.
2-11
Consider the 2D horizontal reservoir presented in Figure 2-21. All blocks have same dimensions ( Ax = 300 ft, Ay = 300 ft, and h = 20 ft) and rock properties ( k x = 140 md, ky = 140 md, and ~ = 0.13 ). The oil FVF and viscosity are 1.0 RB/STB and 3 cp, respectively. Write the flow equations for the interior blocks in this reservoir assuming incompressible fluid flow in an incompressible porous medium.
2-12
Consider the 1D radial reservoir presented in Figure 2-19. Write the flow equations for the interior blocks in this reservoir. Do not estimate interblock radial transmissibility. Leave the RHS of flow equations without substitution.
2-13
Consider the 2D radial reservoir presented in Figure 2-20b. Write the flow equations for the interior blocks in this reservoir. Do not estimate interblock radial or vertical transmissibilities. Leave the RHS of the flow equations without substitution. 600 S T B / D
z
¼y rX 375ft ;
Figure 2-24
1D reservoir representation in Exercise 2-14.
39
40
Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain
2-14
A single-phase oil reservoir is described by five equal blocks as shown in Figure 2-24. The reservoir is horizontal and has homogeneous and isotropic rock properties, k = 210 m d and q~ = 0.21. Block dimensions are Ax = 375 ft, Ay = 450 ft, and h = 55 ft. Oil properties are B = 1 RB/STB and /t = 1.5 cp. The pressure o f blocks 1 and 5 is 3725 psia and 1200 psia, respectively. Block 4 hosts a well that produces oil at a rate of 600 STB/D. Find the pressure distribution in the reservoir assuming that the reservoir rock and oil are incompressible. Estimate the rates of oil loss or gain across the right boundary of block 5 and that across the left boundary of block 1.
2-15
A single-phase water reservoir is described by five equal blocks as shown in Figure 2-25. The reservoir is horizontal and has k = 178 md and ~0 = 0.17 . Block dimensions are Ax = 275 ft, Ay = 650 ft, and h = 30 ft. Water properties are B = 1 RB/B and/~ = 0.7 cp. The pressure of blocks 1 and 5 is maintained at 3000 psia and 1000 psia, respectively. Block 3 hosts a well that produces water at a rate of 240 B/D. Find the pressure distribution in the reservoir assuming that the reservoir water and rock are incompressible. 240 B/D
Z
3000 psia I
i i
1000 psia
30 ft
"~ 275ft ;~ Figure 2-25
1D reservoir representation in Exercise 2-15.
2-16
Consider the reservoir presented in Figure 2 - 1 4 and the flow problem described in Example 2.5. Assuming that both the reservoir fluid and rock are incompressible and given that a strong aquifer keeps the pressure of all boundary blocks at 3200 psia, estimate the pressure of blocks (2,2) and (3,2).
2-17
Consider single-phase flow of water in a 2D horizontal reservoir. The reservoir is discretized using 4x4 equal blocks as shown in Figure 2-26. Block 7 hosts a well that produces 500 B/D of water. All blocks have Ax = Ay = 230 ft, h = 80 ft, and k x = ky = 65 md. The water F V F and viscosity are 1.0 RB/B and 0.5 cp, respectively. The pressure of reservoir boundary blocks is specified as P2 = P3 = P 4 = P8 = P12 = 2500 psia, Pl = Ps = P9 = P ] 3 = 4000 psia, and P14 = P 1 5 = P 1 6 = 3500 psia. Assuming that the reservoir water and rock are incompressible, calculate the pressure of blocks 6, 7, 10, and 11.
2.9 Exercises
Figure 2-26
2D reservoir representation in Exercise 2-17.
41
Chapter 3
Flow Equations Using CVFD Terminology 3.1
Introduction
The importance of the Control Volume Finite Difference (CVFD) method lies in its capacity to use the same form of flow equation for 1D, 2D, and 3D flow problems regardless of the ordering scheme of blocks. The only difference among 1D, 2D, and 3D flow equations is the definition of the elements for the set of neighboring blocks. The CVFD method is mainly used to write flow equations in a compact form that is independent of the dimensionality of flow, the coordinate system used, or the block ordering scheme. This chapter introduces the terminology used in the CVFD method and the relationship between this method and the traditional way of writing finite-difference equations presented in Chapter 2.
3.2
Flow Equations Using CVFD Terminology
In petroleum engineering, Aziz (1993) was the first author to refer to the CVFD method. However, the method had been developed and used by others without giving it a name (Abou-Kassem 1981, Lutchmansingh 1987, Abou-Kassem and Farouq Ali 1987). The terminology presented in this section is based on a 2001 work published by Ertekin, AbouKassem, and King. With this terminology, we can write the equations for ID, 2D, and 3D flow in compact form, using Cartesian or radial-cylindrical coordinates. For the flow equation in Cartesian space, we define ~Pxo ~[]yn , and ~Pz. as the sets whose members are the neighboring blocks of block n in the directions of the x axis, y axis, and z axis, respectively. Then we define ~p, as the set that contains the neighboring blocks in all flow directions as its members; i.e., ,
~P. = ~xo u ~y. w ~p~
(3.1a)
If there is no flow in a given direction, then the set for that direction is the empty set, { }. For the flow equation in radial-cylindrical space, the equation that corresponds to Eq. 3.1a is ~ . = ~,. u ~0° u ~z.
(3.1b)
where ~Pro , ~0o, and ~z. are the sets whose members are the neighboring blocks of block n in the r direction, 0 direction, and z axis, respectively.
43
44 Chapter 3 Flow Equations Using CVFD Terminology
The following sections present the flow equations for blocks identified by engineering notation or by block ordering using the natural ordering scheme.
3.2.1 Flow Equations Using CVFD Terminology and Engineering Notation For 1D flow in the direction of the x axis, block n is termed in engineering notation as block i (i.e., n - i ) as shown in Figure 3-1a. In this case, (3.2a)
~ 0 = { (i - I),(i + I)} ~0y n = { }
(3.2b)
~Pz° ={}
(3.2c)
Substitution of Eq. 3.2 into Eq. 3. la results in q', = ~Pi = { ( i - 1 ) , ( i + l ) } u { it j { }
(3.3)
= { ( i - 1 ) , ( i + 1)}. The flow equation for block i expressed as Eq. 2.33, m -m Tmxi l/z [ ( P i - 1 P ? ) - ~],_ il2 ( Z i - 1
- Z i )1 "~- T~.m+,/2, [(piml
m)
-- Pi
--
m
Y ..... (Zi+l --
Z i )]
(3.4a)
+q~ = Vb, r,~P,,+, _ (~)7 ]'
which can be written in CVFD form as T~,~[(P:~ - P i ) - Y u ( Z I - Z i ) ] + q m, = ac A~--
(3.4b)
l~lP i
where ~F m : T m T m i~-l,i i,i~-i ~ xlz~l/2
(3.5)
and transmissibilities TXimt ll2 are defined by Eq. 2.39a. In addition, ~pm ~ ~m m i:gl,i i,i~:l ~-~ 7 i T 1 / 2
(3.6)
For 2D flow in the x-y plane, block n is termed in engineering notation as block (i, j ) , that is, n - ( i , j ) , as shown in Figure 3 - l b . In this case,
~x. = {(i-l,j),(i+l,j)}
(3.7a)
~y° ={(i,j-1),(i,j+l)}
(3.7b)
~0 = { }
(3.7c)
3.2 Flow Equations Using CVFD Terminology
[i,j+l ,k)
(i,j+ 1 ) ,j)
:: ~i~:
N
Y
TAx i
(i+l,j)
45
i[~! I (i+1,j,k)
I
l,x (a) R¢i = {(i-1),(i+1)}
(i,j-1 ,k)
(i,j-1) (b) ~i,j = {(i,j-1),(i-l,j),(i+l,j),(i,j+l)}
(c) Vi,j,k = {(i,j,k-1),(i,j-1 ,i),(i-l,j,k),(i* 1,j,k),(i,j+l,k),(i,j,k+l)}
Figure 3-1 A block and its neighboring blocks in 1D, 2D, and 3D flow using engineering notation. Substitution of Eq. 3.7 into Eq. 3.1a results in g) = ga,.j = { ( i - l , j ) , ( i + l , j ) } u { ( i , j - 1 ) , ( i , j +
l)}u{}
(3.8)
= {(i,j-1),(i-l,j),(i+l,j),(i,j+l)}. Eq. 2.37 expresses the flow equation for block (i, j ) as
m
m\
m
/a
T yt,j m . t/2 [ ( P i j._ l - - P. i j ) - - Y. i j _ l l. 2 ~ . ij_l-Zij)] m m m Z +T,7_,,,_,,[(Pi-14 - Pi4 ) - Yi-1/2,j ( i-l,j - Zi,j )1 + T x,,,,2,j . . . . . ttPi+ld _ P i. , j ). - -.~ i.+ l.l 2 , j
~Z i+l,j - Z i ,j
)1
- t - r .~. j,,21-tPij~l . . .. _ _ m. Y i , j.+ l l 2 ( Z. i j ~ - l - .Z i j . _ _ .p mi.j)
)]+qmi,J
~'~ % A t
)nj],
~B')n;l _( ~B '
(3.9a) which can be written in CVFD form as Z T '. . . . . ) m (Z, lewiO 1,(i,j)[~,Pl - - P i , j --~ll,(i,j) -Zi,j)]"t-
qm
Wbi,j
r.~)xn+l
,c,., = acktlt-~)i.j
~) n
-(~)i,j]
(3.9b)
where T~m :T m T m (iT-l,j),(i,j) (i,j),(iTl,j) ~ XiTII2,j
(3.10a)
Tm
(3.10b)
(i,jTl),(i,j)
= T~
(i,j),(i,jg-1)
= Tm -
-
Yi,j~:l/2
Transmissibilities, Txi4112,j m and TYi,j~:ll2 m have been defined by Eqs. 2.39a and 2.39b, respectively. In addition,
46
Chapter 3
Flow Equations Using CVFD Terminology
~m ~ m m (i~-l,j),(i,j) ~](i,j),(iT-l,j) ::" ~ i T l / 2 , j
(3.11a)
m ~(i,jgl),(i,j)
(3.11b)
= ~ m(~,j),(~,j;~) = --
Y~,j~/2 m
For 3D flow in the x-y-z space, block n is termed in engineering notation as block (i, j, k ) , that is, n = ( i , j , k ) , as shown in Figure 3-1c. In this case, y2x. = { (i - 1, j, k), (i + 1, j, k) }
(3.12a)
{ (i, j -- 1, k ), (i, j + 1, k) }
(3.12b)
~Pz, = { (i, j , k - 1 ) , ( i , j , k + l) }
(3.12e)
~t.)yn =
Substitution of Eq. 3.12 into Eq. 3.1a results in
= {(i-l,j,k),(i+l,j,k)}u{(i,j-l,k),(i,j+l,k)}u{(i,j,k-1),(i,j,k+l)}
(3.13)
= {(i,j,k-l),(i,j-l,k),(i-l,j,k),(i+l,j,k),(i,j+l,k),(i,j,k+l)}. The flow equation for block (i, j, k) expressed as Eq. 2.38, L . . . . . .
m,,
ij ...... [l'Pi,j,k-1 -- Pi,j,k ) -- Yi j
k-l/2
Z,,
( i j k-1 -- Zi,j,k )]
+Tymj...... [(P,,~j-,.k - p,.mj.~) -- el.j_,, 2,t (Zi,j--1,k
-- Zi,j,k
)]
+Txm_,nj, , [(pim-l,j,k -- Pi,~,k ) -- 7im-ll 2.j,k ( Z i - 1 , j , k -- Zi,j,k )] +Txl,n,,, , [(piml ,jk m , -- pmi,j,k ) -- 7i+l/2,j,k (Zi+l,j,k -- Zi,j,k )]
...... +LT.+ ....
i,j,k ) -- ~]i,j+ll2,k (Zi,j+l,k -- Zi,j,k "
)]
. m m \ m iz --~T?j ...... [(Pi,j,k+l -- Pi,j,k ) -- ~]i,j,k*ll2 [ i,j,k*l -- Z i . j . k
)]
Vb,,,k r(_%+1 --
B ]i,j,k
-- ( - n ) i , j , k
(3.14a)
]'
which can be written in CVFD form as
E T,. le~Pi,j,k
t,(i,j,k) . . I .L P l
Vb,,
-
m m Pi,j,k ) - ~l,(i,j,~) (Z_Zij,k)]+qm
k = a c'A t
B ''j'k -- (~)/,j,k ]' (3.145)
where T, m -T~ m ~T m (iTl,j,k),(i,j,k) -- (i,j,k),(iTl,j,k) Xi~:ll2,j,k
(3.15a)
T, m =T, m T m (i,jT-l,k),(i,j,k) (i,j,k),(i,j~l,k) ~ Yi,j~t/2,k
(3.15b)
3.2 F l o w E q u a t i o n s U s i n g C V F D T e r m i n o l o g y
Tm
=T m T" (i,j,k),(i,j,k~l) -- ~i,j,k~l/2
(i,j,k~-l),(i,j,k)
As mentioned earlier, transmissibilities T Xi~l/2,j,k m in Eq. 2.39. Also, ~]tn (iT-l,j,k),(i,j,k)
~/m (i,jT-l,k),(i,j,k)
'
47
(3.15C)
T Yi,jzll2,k m and TZi,j,kzll2 m have been defined '
__
m
:
~/'(ni,j,k),(iq:l,j,lc)= 7i~:l/2,j,lc
(3.16a)
~-
m Y(i,j,k),(i,jTl,k)
m -~ Y i , j T l / 2 , k
(3.16b)
~ 7 i ,m j,k~-l/2
(3.16C)
7m (i,j,k-T-1),(i,j,k) = 7m (i,j,k),(i,j,k+l)
Eq. 3.4b for ID flow, Eq. 3.9b for 2D flow, and Eq. 3.14b for 3D flow reduce to m m Z qm Vb. q5,+1 q~ ~ , T~"~,[(p~' - p, ) - y,,, ( , - Z, )] + sco - ~ t [ ( ~ ) " - (B)~ ]'
(3.17)
o
where, as mentioned before, n - i for I D flow, n - (i, j ) for 2 D flow, and n -= (i, j, k) for 3D flow, and the elements o f set ~0 are defined accordingly (Eq. 3.3, 3.8, or 3.13).
Note that the elements of the sets that contain the neighboring blocks given by Eqs. 3.3, 3.8, and 3.13 for ID, 2D, and 3D, respectively, are ordered as shown in Figure 3-2. The following examples demonstrate the use of CVFD terminology to write the flow equations for an interior block identified by engineering notation in ID and 2D reservoirs.
Figure3-2
The sequence of neighboring blocks in the set
~i,j,k
or ~ . .
Example 3.1 Consider the reservoir described in Example 2.4. Write the flow equation for interior block 3 using CVFD terminology. Solution We make use of Figure 2-12, which gives block representation of this reservoir. For block 3, %0x3 = { 2 , 4 } , ~0r3 = { } , and ~z3 = { } • Substitution into Eq. 3.1a gives ~03 = {2, 4} u { } u { } = {2, 4}. The application of Eq. 3.17 for n = 3 produces
48
Chapter 3
Flow Equations Using CVFD Terminology
. . ET/.3[(P/
"~+ q,c, " = -. P 3 . ) - T i . 3 ( Z t - Z 3 )1
IEW3
(3.18) acAt
which can be expanded as
z2m3 [(pm- -- pm3 ) ,
+m
m
m
-- 'Y2,3 ( Z 2 - Z3 )l "~ T4m3 [ ( P 4 - P 7 ) - "~4,3 ( Z 4 - Z3 )l
(3.19)
v~ l(~_)~+,_ (~_)~
q"~ - a At For this flow problem, m m T2.3 =T4.3 =fl~ k . A, = 0 . 0 0 1 1 2 7 x /~BAx Z 2 = Z 3 . = Z4
270 x (900 x 100) 2x1×250
= 54.7722 STB/D-psi
(3.20)
for a horizontal reservoir, and q sc " 3 = -400 STB/D.
Substitution into Eq. 3.19 yields
(54"7722)(p~-P;)+(54"7722)(P4-P3)-400=
V~,
a At
[(~)3+1 __(_~)3 ]"
(3.21)
Eq. 3.21 is identical to Eq. 2.36, obtained in Example 2.4.
~::..:::.::.. : : . . : : ~
Example 3.2 Consider the reservoir described in Example 2.5. Write the flow equation for interior block (3,2) using CVFD terminology. Solution We make use of Figure 2-14, which gives block representation of this reservoir. For
block (3,2), ~0.... = {(2,2),(4,2)},
"~y3,2 =
{(3,1),(3,3)}, and ~0.... = {} •
Substitution into Eq. 3.1a gives ~03.2 = {(2,2),(4,2)} w{(3,1),(3,3)} u { } = {(3,1),(2,2),(4,2),(3,3)}. The application of Eq. 3.17 for n = (3, 2) produces E Tl m3 r z (~ xn+l - (~)3.2 (J~ n ], ,~0,.2 '(. 2).[(P~' . . - P'~2 ) -- ~m,,(3,2)(Zl _ Z3,z )] + q~,~. - ~V~,~ Lt~)3,2
which can be expanded as
T(~,1),(3,2) [(P~,I --
P~,,2) -- }/(3,1),(3,2) (Z3,1
"t-7(22) • , (32, , [(Pzm,2 -- pm 3,2
- Z3,2 )1
m ) - 7~2,2~,(3,2) (Z2,2
- Z3,2
)1
(3.22)
3.2 Flow Equations Using CVFD Terminology 49
'1-T(4'2) m . .(32) . .[(P72 - p m 3,2 ) -- ~(4,2),(3,2) (Z4,2 - Z3,2 )] m
+T(3m3),(3,2)[(P3~3 - P3~2) - )'(3,3),(3,2)(Z3,3 - Z3,2)] qsc3 2 - •
o:At
t ~ ~]3
/~
2
'
(3.23)
-- (B)3,2 ].
For this flow problem,
kxA~ /~BAx
- 0 . 0 0 1 1 2 7 x 270 x (300 x 100) - 18.2574 2xlx250 (3.24)
m m T(3,l),(3,2) = T(3,3),(3,2) = ~c
kyAy
/~BAy
0 001127 X 220 x (250 x 100) 2 X 1 X 300
10.3308 (3.25)
• a nd Z3,1 = Z2, 2 = Z3, 2 = Z4, 2 = Z3, 3 for a horizontal reservoir,
m qsc32
- 4 0 0 STB/D.
Substitution into Eq. 3.23 yields (10.3308)(p~, m • - p3m2) + (18.2574)(p2m2 -- pm 3,2) + (18.2574)(P4,2
--
m ) P3,2
(3.26) ~\tl+l __ (~)3,2 ]..B +(10"3308)(P~,3 - P3';2) - 400 = ~V b . . . . .[1,B)3,2
Eq. 3.26 is identical to Eq. 2.42, obtained in Example 2.5•
3.2.2
Flow Equations Using CVFD Terminology and the Natural Ordering Scheme
The flow equation in this case has one generalized form that is given by Eq. 3.17 with the corresponding definition of ~0n for 1D, 2D, or 3D flow. Blocks in natural ordering can be ordered along rows or along columns. In this book, we adopt natural ordering along rows (with rows being parallel to the x axis) and refer to it, for short, as natural ordering. From this point on, all related discussions will use only natural ordering. Figure 3-3a shows block n for 1D flow in the direction of the x axis. In this case, ~
= {(n-1),(n+l)}
(3.27a)
~y° = { }
(3.27b)
~z,, ={}
(3.27c)
Substitution of Eq. 3.27 into Eq. 3.1a results in
50
Chapter 3
Flow Equations Using CVFD Terminology
[ °+'nI, 1 )x
(a) Vn={(n-1),(n+1)}
n'.l I n;'
i!iiiiii'i!iii
[:!ii',i~i~ii)~)J~iln?l
In'-I
I n'lnx I
(b) gn = {(n'nx),(n-1),(n÷l),(n÷nx)}
(c)
Figure 3-3
Vn= {(n-nxny),(n-nx),(n-1),(n÷1),(n+nx),(n+nxny)}
A block and its neighboring blocks in 1D, 2D, and 3D flow using natural ordering. ~0 = { ( n - 1 ) , ( n + l ) } w { } u { }
(3.28)
= { ( n - 1 ) , ( n + 1)}. Figure 3-3b shows block n for 2D flow in the x-y plane. In this case, ~0x. = { ( n - l ) , ( n + l ) }
(3.29a)
~y. ={(n-nx),(n+n~,)}
(3.29b) (3.29c)
Substitution of Eq. 3.29 into Eq. 3. la results in
lp, = { ( n - 1 ) , ( n + l ) } w { ( n - n x ) , ( n + n x ) } u { }
(3.30)
= {(n-nx),(n-1),(n+l),(n+nx) }. Figure 3-3c shows block n for 3D flow in the x-y-z space. In this case, ~Px,, = { ( n - 1 ) , ( n + l ) }
(3.31a)
lpy,, = {(n-nx),(n+nx) }
(3.31b)
lp~. = {(n-nx ny),(n+nxny) }
(3.31c)
Substitution of Eq. 3.31 into Eq. 3.1a results in
lp, = { ( n - 1 ) , ( n + l ) } u { ( n - n x ) , ( n + n x ) } U { ( n - n x n y ) , ( n + n x n y ) } = {(n-nxny),(n-nx),(n-1),(n+l),(n+nx),(n+nxny)}.
(3.32)
Note that the elements of the sets containing the neighboring blocks given by Eqs. 3.28, 3.30, and 3.32 for 1D, 2D, and 3D are ordered as shown in Figure 3-2. Now the flow equation for block n in 1D, 2D, or 3D can be written in CVFD form again as Eq. 3.17,
3.2 F l o w E q u a t i o n s U s i n g C V F D T e r m i n o l o g y
,-Zn)]+q,~
,,,KP,-Pn)-r,,,(
[( )~+'-( )~],
51
(3.17)
leap.
where transmissibility T~,m is defined as m
m
T':r~,,, = T,~,.¢_~ - TXi=l/2,j,k m Tnm
Tnx,n
Tm
n~-nxny ,n
=
T m
n,nT-nx
= Zm
-
(3.33a)
T m
(3.33b)
Yi,i~l/2,k
-
-
n,nTnxny
(3.33c)
Tm
Zi,j,k ~ ll2
m In addition, fluid gravity Yl,, is defined as m
~nm,nT-1 -~ ~]nT-l,n --~ ~mi4-1/2,j,k
(3.34a)
~nmnT_n, : ~mnT-n,,n __ m = Xi,j~l/2,k
(3.34b)
7~n,nTnxny = y mnT.nrny,n _: ~Xi,j,k~:l[2
(3.34c)
We should mention here that, throughout this book, we use subscript n to refer to block order, while superscripts n and n + 1 refer to old and new time levels, respectively. The following examples demonstrate the use of CVFD terminology to write the flow equations for an interior block identified by natural ordering in 2D and 3D reservoirs.
Example 3.3 As we did in Example 2.5, write the flow equations for interior block (3,2) using CVFD terminology, but this time use natural ordering of blocks as shown in Figure 3-4.
zT/__
f4oosTB,o
x /
/,/./4j,., 1°°~I
/ i=1
Figure 3-4
i=2
I i=3
L/j=l i=4
2D reservoir description in Example 3.3
52
Chapter3 Flow Equations Using CVFD Terminology Solution Block (3,2) in Figure 2 - 1 4 corresponds to block 7 in Figure 3-4. Therefore, n = 7 . For n = 7 , g'=, = {6, 8} , ~'y, = {3,11}, and g'~ = { } . Substitution into Eq. 3 . 1 a results in ~07 = { 6 , 8 } u { 3 , 1 1 } u {
} = {3,6,8,11}.
The application of Eq. 3.17 produces (3.35)
~ , T~,~[(p~' - P7 ) - 7,.7 (Z, - Z 7 )1 + q2, = acAt IEIP 7
which can be expanded as T3,~ [(P7 - P? ) - "y3m7(Z3 - Z7 )] -]- T6m7[(P6 - P7 ) - 'Y~,7 (Z6 - Z7 )] -}-T£,~ [(P8 - p~n ) _ ~78m7(Z 8 _ Z7 )] .,~ Tl~7 [(Pl~ -..]_ m
Vb7 [ ( ~) ]n+l
P7') -- }/11,7 (Zll
- Z7 )]
(3.36)
~) n
Here again,
kxA" = 0 . 0 0 1 1 2 7 x 270 x (300 x 1 0 0 ) = 18.2574 STB/D-psi
m
m
7"3.7 = T~,.7 = f l ~
kyAy ttBAy
(3.37)
2 x I x 250
/~BAx
- 0.001127x
220 x ( 2 5 0 x 100)
- 10.3308 STB/D-psi
(3.38)
2x1×300
Z 3 = Z 6 = Z 7 = Z 8 = ZI! for a horizontal reservoir, a n d
q,~c7=
- 4 0 0 STB/D.
Substitution into Eq. 3.36 gives (10.3308)(P3 - P 7 ) + ( 1 8 . 2 5 7 4 ) ( p 6 - P7 ) + ( 1 8 . 2 5 7 4 ) ( p 8 - P7 ) (3.39) +(10.3308)(p1' ] - P 7 ) - 4 0 0 = ----TV~tt~)7r/(~\n+l- - ('-~)7 ]" /5 a c a t /~ Eq. 3.39 corresponds to Eq. 2.42 in Example 2.5, which uses engineering notation.
Example 3.4 Consider single-phase fluid flow in the 3D horizontal reservoir in Example 2.6. Write the flow equation for interior block (3,2,2) using CVFD terminology, but this time use natural ordering of blocks as shown in Figure 3-5. Solution Block (3,2,2) in Figure 2-15 is block 19 in Figure 3-5. Therefore, n = 19. For n = 19 , ~Px19 = {18,20}
, "~0y19
:
{15,23} , a n d ~ 0
= {7,31} .
3.2 Flow Equations Using CVFD Terminology 53
k=3
33
34
35
36
j=3
29
30
31
32
j=2
25
26
27
28
j=l
21
22
23
24 j=3 133.3 STB/D
j ,
k=2
17
18
1~9 20 j=2
13
14
15
16 j=l
9
10
11
12
=3
5
6
7
8
=2
1
2
3
4
=1
i=1 i=2 i=3 i=4 (a) Reservoir representation.
k=l
i=1 i=2 i=3 i=4 (b) Natural ordering of blocks.
Figure 3-5
3D reservoir described in Example 3.4.
Substitution into Eq. 3. l a gives ~019 = {18,20} u { 1 5 , 2 3 } u { 7 , 3 1 } = {7,15,18,20,23,31}.
The application of Eq. 3.17 produces V b ....
Z T/.19 [ ( P ? -- Pl9 ) - yt.m19(Z, - Z,9 )l + q,";,~ - ~
(~ xn+]
I_t~),9
(~1 n
- (B)19 ]"
(3.40)
This equation can be expanded as T m
r/
m
m
m
m
-
m
m
m
7,19 liP7 -- PI9 ) -- ~7,a9 (Z7 - Z19 )] + T]5,19 I(PI5 - P19 ) - ~'15,i9 (Z15 - Z19 )] m
m
m
m
+T~'8,19[(P18 - P19 ) - 718,19 (Z18 - Z~9 )] + T2'0,19[(P20 - P19 ) - e20.19 (Z20 - Z~9 )] m)
m
m
m --
"t-T23,19[ ( P ~ - el9 - '~23,19(Z23 - Z19 )l "1-T31,19[(P31
vb, ,.¢...1 -t-qs"~t9 -- - - t t " ~ - ) 1 9 acAt /5
P19 ) - ~/31,19(Z31 - Z19 )]
¢. -(n)19].
For block 19, Z15 = Z~8 = Z,9 = Z2o = Z23, Z 7 - Z~9 = 33.33 ft, Z31 " = - 1 3 3 . 3 STB/D. Since . -Z19 = - 3 3 . 3 3 ft, q SCl9 Ax18,19
=
AX2o,19
=
Ax
=
250
ft,
(3.41)
Chapter 3
54
Flow Equations Using CVFD Terminology
AYl5,19 : Ay23,19 :
Ay = 300
It,
Z~Z7,19 ~--- /~31,19 :
AZ : 33.33
if, a n d
kt
,
p
, and
B
are constants, then
m
31,19 7 c p g = 0 . 2 1 5 8 4 X 1 0 -3 X 5 5 X 3 2 . 1 7 4 = 0 . 3 8 1 9 psi/It,
m m 270 x (300 x 33.33) T18,19 = T20,19 = #c kxax - 0.001127x
6.0857 STB/D-psi
(3.42)
2 2 0 x ( 2 5 0 x 3 3 . 3 3 ) = 3.4436 STB/D-psi 2 x 1 x 300
(3.43)
MBAx
kyAy ~BAy
m m T15,19 : T23,19 : # c
2 x I x 250
-- 0 . 0 0 1 1 2 7 X
kz Az T7,~9 : T3r~,19 = # c
ktBkz
-
0.001127
50 x (250 x 300) x
= 63.3944 STB/D-psi
(3.44)
2xlx33.33
Substitution into Eq. 3.41 gives m
m
m
(63-3944)[(P7 - P19 ) -- 12.7287] + (3.4436)(p~ s - P,9 ) + (6.0857)(p~8 - P19 ) m
m
m
m
m
+(6-0857)(P20 - P19 ) + (3-4436)(p~3 - Pl9 ) ÷ (63.3944)[(P31 - Pl9 ) + 12.7287] (3.45) - 1 3 3 . 3 = Vt~9 a cAt
[(£'ln+l -- (~)19 ]" t~B~19
Eq. 3.45 corresponds to Eq. 2.47 in Example 2.6, which uses engineering notation.
33
Flow Equations in Radial-Cylindrical Coordinates Using CVFD Terminology
The equations presented in Secs. 3.2.1 and 3.2.2 use Cartesian coordinates. The same equations can be made specific to radial-cylindrical coordinates by replacing the directions (and subscripts) x and y with the directions (and subscripts) r and O, respectively. Table 3-1 lists the corresponding functions for the two coordinate systems. As such, we can obtain the generalized 3D flow equation in the r-O-z space for block n - - t e r m e d block (i, j, k ) i n engineering notation, m e a n i n g n =-(i, j, k ) - - f r o m those in the x-y-z space, Eqs. 3.12 through 3.16. Keep in mind that i, j, and k are counting indices in the r direction, 0 direction, and z axis, respectively. Therefore, Eq. 3.12 becomes
~Oro = { ( i - l , j , k ) , ( i + l , j , k ) }
(3.46a)
~Oo. = { ( i , j - l , k ) , ( i , j + l,k)}
(3.46b)
Wz,, = { ( i , j , k - l ) , ( i , j , k + l)}
(3.46c)
Substitution of Eq. 3.46 into Eq. 3.1 b produces
3.3 F l o w E q u a t i o n s in R a d i a l - C y l i n d r i c a l
55
C o o r d i n a t e s Using C V F D T e r m i n o l o g y
~)n = ~) i,j,k
(3.47)
= {(i-l,j,k),(i+l,j,k)}u{(i,j-l,k),(i,j+l,k)}u{(i,j,k-1),(i,j,k+l)} = {(i,j,k-1),(i,j-l,k),(i-l,j,k),(i+l,j,k),(i,j+l,k),(i,j,k+l)},
which is identical to Eq. 3.13. T a b l e 3-1
Functions in C a r t e s i a n and Radial-Cylindrical C o o r d i n a t e s
Coordinate
Transmissibility
Set of neighboring blocks along a direction
Number of blocks along a direction
Function in Cartesian Coordinates
Function in RadialCylindrical Coordinates
X
r
y
8
Z
Z
Tx
T
L
To
Tz
T
~x
~r
~/Jy
~0
~z
Wz
nx
nr
ny
n0
nz
nz
The flow equation for block (i, j, k), represented by Eq. 3.14a, becomes .,, ...... .
. . . ) -. 7~,:,k-1 . ttPi,:,k-1 - . Pij,~ / 2 t z i,j,k-1 - Zi,:,k )1
+To,~i,j ...... [ ( p i,mj_l,k __ p mi,j,k ) -- ~i,jm 1/2,k ( Z i,j-l,k -- Zi,j,k )]
56
Chapter
i-
3
Flow Equations
,j,
m
-I-TIn . . . . [(Pi-l,j,k
--
m
Pi,j,k
)
Using CVFD
Terminology
rn
- "~i-1/2,j,k (Zi-l,j,k -- Zi,j,l: )]
(3.48a)
+T~t,:,j,, [(p,"~,j,k - p mi.j.k ) -- ~i+1/2,j,k m (Zi+l,j.k -- Zi,j,k )] +Tin
oi,j t l12,k
[(P~,j+l,k
Pi,j,k
-- Yi,j4-1/2,k
(Zi,j+l,k
, ,
+ T Tz , j . .+. . ..|[Pi mj k+l -- Pi,j,k m ) -- Yi7 j/¢+1/2 , ( Z ,i j ,k+l -- Zi,j,k )]
v~ qs~,j~
a At t"B/i'j'k
-(~),,J,~]"
Eq. 3.14b, the flow equation in CVFD terminology, retains its form: E
T,m
r~ m
i,,,j,k) l(Pt
m
m
~,,
.1+
- Pi,j,k ) - Yt,(i,j,k) (Zt - Li j k )1
m
q,c j k
----
"'
O~cA t t \ B/i'J'k
- (~),,j.k ]. (3.48b)
Eq. 3.15, which defines transmissibilities, becomes T(iT-l,j,k),(i,j,k) m
= T(i,j,k),(iTl,j,k) m
-~
(3.49a)
Tri~]/2,Lk m
T(i,jTl,k),(i,j,k) m --- T,(i,j,k),(i,jTl,k) m T,m ~- 0i4~1/2,k
(3.49b)
T "(i,j,kT-1),(i,j,k)
(3.49c)
= T m(i,j,k),(i,j,kTl) = T m Zi,j,k~.ll2
Transmissibilities in radial-cylindrical coordinates, Trm 2,j,k
,
T l'nOi,j4.1/2, k , and T mz~,j,k,t/2are
defined by Eq. 2.69. Note that gravity terms, as described by Eq. 3.16, remain intact for both coordinate systems. m
~(i~-l,j,k),(i,j,k) m
= Y ~(i,j,k),(i~l,j,k)
m
= Yi~Z/2,j,~
m
m
(3.50a)
~(i,j~-l,k),(i,j,k) : ~(i,j,k),(i,j-Tl,k) ~ ~i,jT-1/2,k
(3.50b)
~m m m (i,j,k-[-1),(i,j,k) = ~(i,j,k),(i,j,kT-1) -~ ~i,j,k~l/2
(3,50c)
For 3D flow in the r-O-z space, if we desire to obtain the equations in CVFD terminology for block n with the blocks being ordered using natural ordering, we must write the equations that correspond to Eqs. 3.31 through 3.34 with the aid of Table 3-1 and then use Eq. 3.17. The resulting equations are listed below. ~Pr. = {(n--1),(n+l)} IPO,' = { ( n - n r ) , ( n +
~Pzo = { ( n - n r n o ) , ( n +
(3.51a)
nr)}
(3.51b)
nrno)}
(3.51c)
3.4 F l o w E q u a t i o n s Using C V F D T e r m i n o l o g y in a n y B l o c k O r d e r i n g S c h e m e
57
Substitution of Eq. 3.51 into Eq. 3.1 b results in ~P" = { ( n - 1 ) ' ( n +
l)}u{(n-nr)'(n+nr)}U{(n-nrn°)'(n+nrn°)}
(3.52)
= {(n-nno),(n-nr),(n-l),(n+l),(n+n~),(n+n~no)}.
Now the flow equation for block n in 3D flow can be written again as Eq. 3.17, Z T ._. . . . _ p IclPn l.n l(Pt
m
m Z . ) - ~]l,n (
q
I -- Z n
m
V
b
.
~
~
)] "1- scn -- --c~t 1( ):+1 -- ( ): ],
(3.17)
where transmissibility T~I,~is defined as Tm 7:l,n Tnm
~-nr ,n
Tm
=
Tn.nT-1 'n = Tm
n,nT-nr
~
T" rlz.1/2j,k
=_ T , m
=T m
Oi.jxll2,k
(3.53a) (3.53b)
Tm gi,j,k~ll2
In addition, fluid gravity y~., is defined as m ~n,nT1 ~" Yn+l,n m m =- Yi~-l/2,j,k
n,nTn,
(3.54a)
nT-nr,n ~ ~i,j~-ll2,k
(3.54b)
n:gnrno,n --
(3.54c)
i,j,k T-I12
There are two distinct differences, however, between the flow equations in Cartesian (x-y-z) coordinates and radial-cylindrical (r-0-z) coordinates. First, while reservoir external boundaries exist along the y axis at j = 1 and j --- n y , there are no external boundaries in the O direction because the blocks in this direction form a ring of blocks; i.e., block (i, l, k) is preceded by block (i, n o , k) and block (i, n o , k) is followed by block (i, 1, k) • Second, any block in Cartesian coordinates is a candidate to host (or contribute to) a well, whereas in radial-cylindrical coordinates only one well penetrates the inner circle of blocks parallel to the z direction and only blocks (1, j, k) are candidates to contribute to this well.
3.4
Flow Equations Using CVFD Terminology in any Block Ordering Scheme
The flow equation using CFVD terminology for block n in any block ordering scheme is given by Eq. 3.17, where ~0 is expressed by Eq. 3.1. The elements contained in sets ~P~o , ~Pyo , and ~Pz. are respectively the neighboring blocks of block n along the x axis, y axis, and z axis for Cartesian coordinates, and the elements contained in sets ~0r,, , ~00.,
58
Chapter 3 Flow Equations Using CVFD Terminology
and ~z° are respectively the neighboring blocks of block n in the r direction, 0direction, and z axis for radial-cylindrical coordinates. The only difference between one ordering scheme and another is that the blocks in each scheme have different orders. Once reservoir blocks are ordered, the neighboring blocks are defined for each block in the reservoir, and finally the flow equation for any reservoir block can be written. This is in relation to writing the flow equations in a given reservoir; the method of solving the resulting set of equations is however another matter.
3.5
Summary
A flow equation in CVFD terminology has the same form regardless of the dimensionality of the flow problem or the coordinate system; hence, the objective of CVFD terminology is to write flow equations in compact form only. In CVFD terminology the flow equation for block n can be made to describe flow in 1D, 2D, or 3D reservoirs by defining the appropriate set of neighboring blocks ( ~0 ). In Cartesian coordinates, Eqs. 3.3, 3.8, and 3.13 define the elements of ~p, for 1D, 2D, and 3D reservoirs, respectively. Eq. 3.17 gives the flow equation, and transmissibilities and gravities are defined by Eqs. 3.15 and 3.16. Equivalent equations can be written for radial-cylindrical coordinates if subscript x is replaced with subscript r and subscript y is replaced with subscript
3.6
Exercises
3-1
Is 0 the same as { }? If not, how does it differ?
3-2
Write the answers for 2 + 3 and {2} u {3}.
3-3
Using your own words, give the physical meanings conveyed by Eqs. 3.2a and 3.2b.
3-4
Consider the 1D reservoir representation in Figure 2-6b. Find ~p~, ~P2, ~03 , and ~04 .
3-5
Consider the 2D reservoir representation in Figure 3-4. Find ~p, for n = 1,2,3,...12.
3-6
Consider the 3D reservoir representation in Figure 2-8c. Find ~0 for n = 1, 2, 3,...36.
3-7
Consider the 3D reservoir representation in Figure 2-8b. Find ~0(~,~,~), ~0(2,a,1), ~0(3,2,2) , 1ff(4,3,2) , ~(4,1,3), ~3(3,2,3), and ~0(1,3,3) .
3-8
Using the definitions of ~ n , ~0x,, , ~0y. , and ~Pz. along with the aid of Figure 3-3c, prove that ~0 = ~Pxo u ~y. U
3-9
~Zn "
Consider fluid flow in a 1D horizontal reservoir along the x axis. The reservoir left and right boundaries are closed to fluid flow. The reservoir consists of three blocks as shown in Figure 3-6.
3.6 Exercises
(a) Write the appropriate flow equation for a general block n in this reservoir. (b) Write the flow equation for block 1 by finding ~pl and then using it to expand the equation in (a). (c) Write the flow equation for block 2 by finding ~f12and then using it to expand the equation in (a). (d) Write the flow equation for block 3 by finding ~P3 and then using it to expand the equation in (a).
7 flow boundary
No-flow t
Figure 3-6
3-10
1D reservoir for Exercise 3-9.
Consider fluid flow in a 2D, horizontal, closed reservoir. The reservoir consists of nine blocks as shown in Figure 3-7. (a) Write the appropriate flow equation for a general block n in this reservoir. (b) Write the flow equation for block 1 by finding ~01 and then using it to expand the equation in (a). (c) Write the flow equation for block 2 by finding ~2 and then using it to expand the equation in (a). (d) Write the flow equation for block 4 by finding ~4 and then using it to expand the equation in (a). (e) Write the flow equation for block 5 by finding ~05 and then using it to expand the equation in (a). 7
8
•
®
4
5
6
1
2
•
y
y
®
•
9
3
•
~-x Figure 3-7
3-11
2D reservoir for Exercise 3-10.
A 2D oil reservoir is discretized into 4x4 blocks. (a) Order the blocks in this reservoir using the natural ordering scheme, letting block 1 be the lower left corner block.
59
60
Chapter3 Flow Equations Using CVFD Terminology
(b) Write the flow equation for each interior block in this reservoir. 3-12
A 2D oil reservoir is discretized into 4x4 blocks. (a) Order the blocks in this reservoir using the D4 ordering scheme, letting block 1 be the lower left comer block. (b) Write the flow equation for each interior block in this reservoir.
3-13
A single-phase oil reservoir is described by four equal blocks as shown in Figure 3-8. The reservoir is horizontal and has homogeneous and isotropic rock properties, k = 150 md and q~ = 0.21 . Block dimensions are Ax = 400 ft, Ay = 600 ft, and h = 25 ft. Oil properties are B = 1 RB/STB and H = 5 cp. The pressures o f blocks 1 and 4 are 2200 psia and 900 psia, respectively. Block 3 hosts a well that produces oil at a rate of 100 STB/D. Find the pressure distribution in the reservoir assuming that the reservoir rock and oil are incompressible.
3-14
A single-phase oil reservoir is described by five equal blocks as shown in Figure 3-9. The reservoir is horizontal and has k = 90 m d and q0 = 0 . 1 7 . Block dimensions are Ax = 500 ft, Ay = 900 ft, and h = 45 ft. Oil properties are B = 1 RB/STB and H = 3 cp. The pressures of blocks 1 and 5 are maintained at 2700 psia and 1200 psia, respectively. Gridblock 4 hosts a well that produces oil at a rate of 325 STB/D. Find the pressure distribution in the reservoir assuming that the reservoir oil and rock are incompressible.
100 STB/D
J
z
¼y
J
J
I 2200psia I 1
2
]
~x
900psia 3
4 400
Figure 3-8
5ft
ff
"1
1D reservoir representation in Exercise 3-13.
325 STB/D
270~psia
Yx
I I I 2
Figure 3-9
3 I~
500ft
~-I
1D reservoir representation in Exercise 3-14.
3.6 Exercises
3-15
Consider single-phase flow of oil in a 2D horizontal reservoir. The reservoir is discretized using 4×4 equal blocks as shown in Figure 3-10. Block (2,3) hosts a well that produces 500 STB/D of oil. All blocks have Ax = Ay = 330 ft, h = 50 fl, and k x = ky = 210 md. The oil FVF and viscosity are 1.0 RB/B and 2 cp, respectively. The pressures of reservoir boundary blocks are specified in Figure 3-10. Assuming that the reservoir oil and rock are incompressible, calculate the pressures of blocks (2,2), (3,2), (2,3), and (3,3).
3-16
Consider single-phase flow of oil in a 2D horizontal reservoir. The reservoir is discretized using 4x4 equal blocks as shown in Figure 3-11. Both blocks 6 and 11 host a well that produces oil at the rate shown in the figure. All blocks have Ax = 200 ft, Ay = 250 ft, h = 60 ft, k x = 80 md, and ky = 65 md. The oil FVF and viscosity are 1.0 RB/STB and 2 cp, respectively. The pressures of reservoir boundary blocks are specified in Figure 3-11. Assuming that the reservoir oil and rock are incompressible, calculate the pressures of blocks 6, 7, 10, and 11.
I, 330. ,I Figure 3-10
I, 200 Figure 3-11
2D reservoir representation in Exercise 3-15.
,I 2D reservoir representation in Exercise 3-16.
61
Chapter 4
S i m u l a t i o n with a B l o c k - C e n t e r e d G r i d
4.1
Introduction
This chapter presents discretization of 1D, 2D, and 3D reservoirs using block-centered grids in Cartesian and radial-cylindrical coordinate systems. As the name implies, the gridblock dimensions are selected first, followed by the placement of points in central locations of the blocks. In this, the distance between block boundaries is the defining variable in space. In contrast, the gridpoints (or nodes) are selected first in the point-distributed grid, which is discussed in Chapter 5. Chapter 2 introduced the terminology for reservoir discretization into blocks. This chapter describes the construction of a block-centered grid for a reservoir and the relationships between block sizes, block boundaries, and distances between points representing blocks. The resulting gridblocks can be classified into interior and boundary gridblocks. Chapter 2 also derived the flow equations for interior gridblocks. However, the boundary gridblocks are subject to boundary conditions and thus require special treatment. This chapter presents the treatment of various boundary conditions and introduces a general flow equation that is applicable for interior blocks as well as boundary blocks. This chapter also presents the equations for directional transmissibilities in both Cartesian and radial-cylindrical coordinate systems and discusses the use of symmetry in reservoir simulation.
4.2
Reservoir Discretization
Reservoir discretization means that the reservoir is described by a set of gridblocks whose properties, dimensions, boundaries, and locations in the reservoir are welldefined. Figure 4-1 shows a block-centered grid for a ID reservoir in the direction of the x axis. The grid is constructed by choosing n x gridblocks that span the entire reservoir length in the x direction. The gridblocks are assigned predetermined dimensions ( A x z , i = 1, 2, 3 . . . nx) that are not necessarily equal. Then the point that represents each gridblock is subsequently located at the center of that gridblock. Figure 4-2 focuses on gridblock i and its neighboring gridblocks in the x direction. It shows how the gridblocks are related to each other, gridblock dimensions ( Axi_1 , Axi , Axi.1 ), gridblock boundaries ( x~_l/2 , xi.l/2 ), distances between the point that represents gridblock i and gridblock boundaries ( 6x i , bx÷ ), and distances between the points representing these gridblocks ( Axi 1/2 ' ~i+1/2 )"
63
64
Chapter 4
I, I
S i m u l a t i o n with a B l o c k - C e n t e r e d G r i d
Ax 1
,I,
2
1
LeftBoundary Figure 4-1
3
nx-1
nxl Right Boundary
Discretization of a 1D reservoir using a block-centered grid.
'( z~i. -1/2.8xi11"~ - . ~[~' . 8xi+AXi+l/2~,.ll F~I
I
• I+1
Xi.1 Axi_1
xi
Xi+l
AXi
r
Axi+l
r
xi-1/2 Figure 4-2
I
p-i
xi+1/2
Gridblock i and its neighboring gridblocks in the xdirection.
Gridblock dimensions, boundaries, and locations satisfy the following relationships: nx
Z Ax i = L x , i=1
t3x i- = 6xi. - 1/2Axi , i = 1,2,3...n x , -
1
l ~ i - 1 1 2 = d X i- "~- 6Xi_l+ "~" 1/2 ( ~
i "~- /~kXi_ 1) , i = 2 , 3 . . . n x ,
/~k3Ci+l/2 = 6Xi+ -I-~Xi+ 1- = 1/2(~k)C i -1-~K)Ci+I) , i = 1 , 2 , 3 . . . n
Xi+ 1 = X i "1- AXi+I/2 , i = 1 , 2 , 3 . . . n
x -1,
Xi-l/2 = X i - - 6 X i- = X i -- 1 / 2 / ~ i ,
x -1
x 1 =//21~
(4.1)
1
i = 1,2,3...n
Xi+ll 2 = X i Jr 6Xi+ = X i ~- 1/2 z ~ i , i = 1 , 2 , 3 . . . n
x
Figure 4 - 3 shows the discretization of a 2D reservoir into a 5x4 irregular grid. A n irregular grid implies that block sizes in the direction of the x axis ( Axi ) and the y axis ( Ayj ) are neither equal nor constant. Discretization using a regular grid means that block sizes in the x and y directions are constants but not necessarily equal. The discretization in the x direction uses the procedure just mentioned and the relationships presented in Eq. 4.1. The discretization in the y direction uses a procedure and relationships similar to those for the x direction, and the same can be said for the z direction for a 3D reservoir. Inspection of Figure 4-1 and
4.2 Reservoir Discretization
AY4
•
•
O "¢
AY3
n
I~3)n
/"Y2
O
•
i ~
•
Figure 4-3
~~
Ax2
n
~ n
•
~.
•
•
•
•
•
•
•
|
o
• AXl
•
65
Ax3
~ . Ax4
Ax5
Discretization of a 2D reservoir using a block-centered grid.
Figure 4--3 shows that the point that represents a gridblock falls in the center of that block and that all points representing gridblocks fall inside reservoir boundaries. Example 4.1 A 5000 ftx1200 ftx75 ft horizontal reservoir contains oil that flows along its length. The reservoir rock porosity and permeability are O. 18 and 15 md, respectively. The oil FVF and viscosity are 1 RB/STB and 10 cp, respectively. The reservoir has a well located at 3500 ft from the reservoir left boundary and produces oil at a rate of 150 STB/D. Discretize the reservoir into five equal blocks using a block-centered grid and assign properties to the gridblocks comprising this reservoir. 150 STB/D z
~ Figure 4-4
~
'
7'5 ft
DiscreUzed 1D reservoir in Example 4.1,
Solution Using a block-centered grid, the reservoir is divided along its length into five equal blocks. Each block is represented by a point at its center. Therefore, n x = 5 and
Ax = L x / n = 5000/5 = 1000 ft. Gridblocks are numbered from 1 to 5 as shown in Figure 4-4. Now the reservoir is described through assigning properties to its five gridblocks ( i = 1,2,3,4,5 ). All the gridblocks (or the points that represent them) have the same elevation because the reservoir is horizontal. Each gridblock
66
Chapter 4
Simulation with a B l o c k - C e n t e r e d Grid
has the dimensions of A x = 1000 ft, A y = 1200 ft, and Az = 75 ft and properties of k x = 15 md and $ = 0 . 1 8 . The points representing gridblocks are equally spaced; i.e., Axi,1/2 = A x = 1000 ft and
Ax,....
= A x = Ay × Az = 1200 x 75 = 90000 ft 2. Gridblock 1 falls on the reser-
voir left boundary and gridblock 5 falls on the reservoir right boundary. Gridblocks 2, 3, and 4 are interior gridblocks. In addition, gridblock 4 hosts a well with q,.c, = - 1 5 0 STB/D. Fluid properties are B = 1 RB/STB a n d / * = 10 cp.
4.3
Flow Equation for Boundary Gridblocks
In this section, we present a form of the flow equation that applies to interior blocks as well as boundary blocks. This means that the proposed flow equation reduces to the flow equations presented in Chapters 2 and 3 for interior blocks, but it also includes the effects of boundary conditions for boundary blocks. Figure 4-1 shows a discretized 1D reservoir in the direction of the x axis. Gridblocks 2, 3 .... nx-1 are interior blocks, whereas gridblocks 1 and n x are boundary blocks, each of which falls on one reservoir boundary. Figure 4-3 shows a discretized 2D reservoir. This figure highlights an interior gridblock, gridblock (3,3), two boundary gridblocks, each of which falls on one reservoir boundary, gridblocks (1,3) and (3,1), and a gridblock that falls on two reservoir boundaries, gridblock (1,1). In 3D reservoirs, there are interior gridblocks and boundary gridblocks. Boundary gridblocks may fall on one, two, or three reservoir boundaries. Figure 4-5 demonstrates the terminology used in this book for the reservoir boundaries in the negative and positive directions of the x, y, and z axes. Reservoir boundaries along the x axis are termed the reservoir west ( bw ) and the reservoir east boundary ( b~: ), and those along the y axis are termed the reservoir south boundary ( bs ) and the reservoir north boundary ( bN ). Reservoir boundaries along the z axis are termed the reservoir lower boundary ( bL ) and the reservoir upper boundary ( bU ). The characteristic forms of the difference equations for interior and boundary gridblocks differ in the terms dealing with space variables, i.e., the flow terms. The production (injection) term and the accumulation term are the same for both interior and boundary gridblocks. The engineering approach involves replacing the boundary condition with a noflow boundary plus a fictitious well having a flow rate qm that reflects fluid transfer SCb,bB between the reservoir boundary itself (b) and the boundary block (bB). In other words, a
fictitious well having flow rate of qm.... replaces the flow term that represents fluid transfer across a reservoir boundary between a boundary block and a block exterior to the reservoir. The number of flow terms in the flow equation for an interior gridblock equals the number of neighboring gridblocks (two, four, or six terms for 1D, 2D, or 3D reservoir, respectively). For the flow equation for a boundary gridblock, the number of flow terms
4.3 Flow Equation for Boundary Gridblocks
67
equals the number of existing neighboring gridblocks in the reservoir and the number of fictitious wells equals the number of reservoir boundaries adjacent to the boundary gridblock.
bN
z¢ .._."
"•>
W
sJ Figure 4-5
X
f
i I
E bw
di. j ~ . ~ / ,-
bL
Definition of left and right boundaries in 3D reservoirs.
A general form of the flow equation that applies to boundary gridblocks as well as interior gridblocks in 1D, 2D, or 3D flow in both Cartesian and radial-cylindrical coordinates can be expressed best using CVFD terminology. The use of summation operators in CVFD terminology makes it flexible and suitable for describing flow terms in the equation of any gridblock sharing none or any number of boundaries with the reservoir. The general form for gridblock n can be written as
Z T,? m ra m, m qm m Vb. ,.~0..+1 , ~ . . ] ,, [(P, - P, ) - 7,. (Z, - Z m)] + ~ ,<,,. + qsc. - a--~Ati t s ) . - t ~ ) ,
(4.2a)
or, in terms of potentials, as ra m ~TI,.(aP,-
feW.
"~ m,n j¢_ m Vbn r i ~ x n + l .) ~2.,qsc, q.<.-a--~tttT).
~mxj¢
__(~):]
(4.2b)
le~.
where ~ . = the set whose elements are the existing neighboring gridblocks in the reservoir, ~. = the set whose elements are the reservoir boundaries ( bi.bs,bw,be,bN,b U ) that are shared by gridblock n , a n d q~c, mn
flow rate of the fictitious well representing fluid
transfer between reservoir boundary l and gridblock n as a result of a boundary condition. For a 3D reservoir, ~. is either an empty set for interior gridblocks or a set that contains one element for gridblocks that fall on one reservoir boundary, two elements for gridblocks that fall on two reservoir boundaries, or three elements for gridblocks that fall on three reservoir boundaries. An empty set implies that the gridblock does not fall on any
68
Chapter 4
Simulation with a Block-Centered Grid
reservoir boundary; i.e., gridblock n is an interior gridblock, and hence __ ~ q m ° = 0 . In engineering notation, n =- ( i , j , k ) and Eq. 4.2a becomes Z T t.(i4.k)i~.Pl . . . . . --Pi4.k)--Yt.(i4.k)( . . . . Z t--Zi.j.k)] + Z q.,s~.,.j.,~+ qm ~¢,.:.~ lEq)i,j,k la-~i,j,k
[(~nql
(4.2c)
-- Vbi,j,k __(~.~,ln ] ~ A t ' ~B :i.j.k \ B ,i.).~ J" It must be mentioned that reservoir blocks have a three-dimensional shape whether fluid flow is 1D, 2D, or 3D. The number of existing neighboring gridblocks and the number of reservoir boundaries shared by a reservoir gridblock add up to six as is the case in 3D flow. Existing neighboring gridblocks contribute to flow to or from the gridblock, whereas reservoir boundaries may or may not contribute to flow depending on the dimensionality of flow and the prevailing boundary conditions. The dimensionality of flow implicitly defines those reservoir boundaries that do not contribute to flow at all. In 1D flow problems, all reservoir gridblocks have four reservoir boundaries that do not contribute to flow. In 1D flow in the x direction, the reservoir south, north, lower, and upper boundaries do not contribute to flow to any reservoir gridblock, including boundary gridblocks. These four reservoir boundaries ( bL,bs,bN,b v ) are discarded as if they did not exist. As a result, an interior reservoir gridblock has two neighboring gridblocks and no reservoir boundaries, whereas a boundary reservoir gridblock has one neighboring gridblock and one reservoir boundary. In 2D flow problems, all reservoir gridblocks have two reservoir boundaries that do not contribute to flow at all. For example, in 2D flow in the x-y plane the reservoir lower and upper boundaries do not contribute to flow to any reservoir gridblock, including boundary gridblocks. These two reservoir boundaries ( bL,b U ) are discarded as if they did not exist. As a result, an interior reservoir gridblock has four neighboring gridblocks and no reservoir boundaries, a reservoir gridblock that falls on one reservoir boundary has three neighboring gridblocks and one reservoir boundary, and a reservoir gridblock that falls on two reservoir boundaries has two neighboring gridblocks and two reservoir boundaries. In 3D flow problems, any of the six reservoir boundaries may contribute to flow depending on the specified boundary condition. An interior gridblock has six neighboring gridblocks. It does not share any of its boundaries with any of the reservoir boundaries. A boundary gridblock may fall on one, two, or three of the reservoir boundaries. Therefore, a boundary gridblock that falls on one, two, or three reservoir boundaries has five, four, or three neighboring gridblocks, repectively. The above discussion leads to a few conclusions related to the number of elements contained in sets ~P and ~ .
(l) For an interior reservoir gridblock, set ~P contains two, four, or six elements for a 1D, 2D, or 3D flow problem, respectively, and set ~ contains no elements or, in other words, is empty.
4.3 Flow Equation f o r Boundary Gridblocks
69
(2) For a boundary reservoir gridblock, set ~0 contains less than two, four, or six elements for a 1D, 2D, or 3D flow problem, respectively, and set ~ is not empty. (3) The sum of the number of elements in sets ~P and ~ for any reservoir gridblock is a constant that depends on the dimensionality of flow. This sum is two, four, or six for a 1D, 2D, or 3D flow problem, respectively. For 1D reservoirs, the flow equation for interior gridblock i is given by Eq. 2.32 or 2.33, m
Tmx, ,,2
m
((I)i-1 - ( I ) i ) ' ~
T ~
t~"
3;+1/2 (t
i+1-
Iff~mx-[ i )
m
Vbi
q,c, = a At
l@)n+a_(0B)T]
(4.3)
The above flow equation can be obtained from Eq. 4.2b for n = i , ~p~ = { i - 1 , i + 1 } , ~ = { }, and by observing that ~.. qm~c,,,= 0 for an interior gridblock and T"~I.~=
Zxi:ii 2m
.
I~
The flow equation for boundary gridblock 1, which falls on the reservoir west boundary in Figure 4-6, can be written as T m
(~m
Xl_I/2\
0
-¢bm'l+T
m
=1 "
t O m _ o r ~ ) + q , , = E~ [(~p)l. 1 _(.~)~q~.] 2 scI a At g
(1/2) AX 1 ~_1
(1/2) ~ n x
I.a
~..;. .... I"
-...o....I" o
I
I
I
•
~
,,._1
//
I...o...j
•
~
I.,~
"l .... ;....
~
nx
Left Boundary Figure 4-6
(4.4a)
x>t/2 \
I nx+~
Right Boundary
Boundary gridblocks at the left and right boundaries of a 1D reservoir (dashed lines represent fictitious reflective blocks).
The first term on the LHS of Eq. 4.4a represents the rate of fluid flow across the reservoir west boundary ( b w ). This term can be replaced with the flow rate of a fictitious well ( q~s%., ) that transfers fluid across the reservoir west boundary to gridblock 1', i.e., qm
s%, : r2.2 ( % - o l m )
(4.5a)
Substitution of Eq. 4.5a into Eq. 4.4a yields
q"sc~,v ,1 +L~
~a
( o °2' - o T ) + q "
sc1
q~ ] = v~, i(~)71 _ (=),n • a At
15
B
(4.4b)
70
Chapter 4
Simulation with a Block-Centered Grid
The above flow equation can be obtained from Eq. 4.2b for n = 1 , ~11 : {2}, ~1 : and by observing that ~ q ' ~
{bw}
,
= qS.~ and T2,~ = T ~ , .
The flow equation for boundary gridblock n x , which falls on the reservoir east boundary in Figure 4-6, can be written as T ~
x._,:2
iff~m _lff~m _1_ m m m n -1 n~ ) T~ .~.,12 (lff~n x+.1 -- I ~ n x) "~ ~ .
qm sc.~
--
Vb
~) n+l
(~)"l
nx acAt [(--~)nx - - . ~ . , , .
(4.5a)
The second term on the LHS of Eq. 4.6a represents the rate of fluid flow across the reservoir east boundary ( b~. ). This term can be replaced with the flow rate of a fictitious well ( q~s%..x ) that transfers fluid across the reservoir east boundary to gridblock n ," i.e., ,, .... = T z ( Cmn~+l -- (1)m~) Xnx+ll2
(4.6a)
qs%~
Substitution of Eq. 4.7a into Eq. 4.6a yields
T m
(lff~m
lff~mx.jt_
m
...... ,--,~-~-
. )
q .....
nx..}_
mnx
q,~
gbnx
~ n+l
- ~t[(~).~
(4.6b)
~
-(
):]
The above flow equation can also be obtained from Eq. 4.2b for n = n x , ~,x = {nx - 1}, ~, x = {bE} "~ and by observing that ~ q m ,nx = qm and Tnm = Txnmx --1/2 ° SCbE,nx x -1,n~ For 2D reservoirs, the flow equation for interior gridblock (i,j) is given by Eq. 2.37, T m m Yid-t/2 ( ~ i , j - I
_t~j)+T m ,
xi 1/24
(~mi_l,j --Iff~m " ~ + T m (fbm m i,j :" xi+l/2,j \ - - i+l,j -- lff~i,j )
+r~.., 2(o,mj+. _ ~,mj) + qm -- Vbi,j [(~))n41 -- (~))n 1 ~": acAt ~'B'i'J "B'i'J ~"
(4.8a)
The above flow equation can be obtained from Eq. 4.2b for n = (i,j),
~ , j = { ( i , j - 1),(i - 1,j),(i + 1,j),(i,j + 1)},
qm sc,.j, = 0 for an interior gridblock, T m
and by observing that le~i,j m T(iTl,j),(i,j) =
Tm XiTl/2,j
~i,j = { }
(i,j~-l),(i,j)
= Tm
Yi,jzt/2 '
and
*
For a gridblock that falls on one reservoir boundary, like gridblock (3,1), which falls on the reservoir south boundary in Figure 4-3, the flow equation can be written as
4.3 F l o w Equation f o r Boundary Gridblocks
71
(4.9a) ~m
e(1)m32i iff~m \ +
+Iv ..... 1'
m
Vb~l ,,'~xn+l
~ n
31) qs~3~:""':~.lt--Z)31--(~)3,1]"
The first term on the LHS of Eq. 4.9a represents the rate of fluid flow across the reservoir south boundary ( b s ). This term can be replaced with the flow rate of a fictitious well (qm
......~,1~ ) that transfers fluid across the reservoir south boundary to gridblock (3,1); i.e.,
(4.10)
q'~ =T~7., ...... ((I)~3~0-- (1)3ml) sCt,s,(3,ll Substitution of Eq. 4.10 into Eq. 4.9a yields m
m
m
m
T m
m
m
q SCbs,(3,I) + T X3_1/2,1( O 2,1 - O3,1) -l- X3t1/2,1((1) 4,1 - O3,1) jf_T m
(~m
Y3,1+1/2\ 3,2
- ~ m 3\ _, l)
....
m q .....
(4.9b)
Vb3,1[(~ )3~ 1 -(-~)31]. e n
=
acAt
~
,
The above flow equation can be obtained from Eq. 4.2b for n-- (3,1), and b y o b s e r v i n g t h a t
Z
~03,1= {(2,1),(4,1),(3,2)}, qm ....<3., = qm.....~ , ' , '
~3,1= {bs}
m = Tx3m...... T(2,1),(3,1)
,
m T(4,1),(3,1 ) = Txm ........ , and
m T(3,2),(3,1) = T my3,1÷1/2
For a gridblock that falls on two reservoir boundaries, like boundary gridblock (1,1), which falls on the reservoir south and west boundaries in Figure 4-3, the flow equation can be written as . "I--TX71,21 . \ .1,0 --y(I)~1) T...... cop r ((ID. ~,1 - .(I)lo 1) "l-. T~...... ((I)2'1 -- (I)l'l)
,n _
. ,
+T~'2,+1, (dX:liT:-@li')+q,q,
W blt
.
acAt
(4.11a)
~ n+l -(3),,1. ~ n
The first term on the LHS of Eq. 4.1 la represents fluid flow rate across the reservoir south boundary ( b s ). This term can be replaced with the flow rate of a fictitious well (q~"~bs.,,1) ) that transfers fluid across the reservoir south boundary to gridblock (1,1); i.e.,
qm SCbs,(I,1 )
((])m _ (i)1,%) YI,I 1/2 \ 1,0
= T m
(4.12)
72
Chapter 4
Simulation with a Block-Centered Grid
The second term on the LHS of Eq. 4.11 a represents fluid flow rate across the reservoir west boundary ( b w ). This term can also be replaced with the flow rate of another fictitious well qm ( ,c~..,,~ ) that transfers fluid across the reservoir west boundary to gridblock (1,1); i.e., qm
(~,n
_ T m
SCbw,(I,I) - -
Xl 1/2,| \
m
(4.13)
0,1 - - ( I ) l , 1 )
Substitution of Eqs. 4.12 and 4.13 into Eq. 4.11 a yields "1- q2~,(l,b
........
.jeT m
(ibm
"Y ....... \--1,2 --
....
i~rn\_}_ 11) '
((~2'1--¢lm])
r(£V+, (£3. 11 ,B/l,1
gbLl
m
a c
(4.11b)
_
q ' q ' - ~ - A t .... t
/~
]•
'
The a b o v e f l o w e q u a t i o n can a l s o be o b t a i n e d f r o m Eq. 4 . 2 b f o r n - ( 1 , 1 ) , ~P1,1= {(2,1),(1,2)}
'
~11 = {bs,bw} ,
,
and by observing that ~ qms % u
m....(11) + q.%,,,,. m ,
> = qs%
1~1,1 m
T" and Xl+I/2*I '
T(2,1),(1,1 ) =
m
T(1,2),(1,1 ) =
TYl,l+I/2 m
"
The following example demonstrates the use of the general equation, Eq. 4.2b, to write the flow equations for interior gridblocks in a 1D reservoir.
Example 4.2 For the 1D reservoir described in Example 4.1, write the flow equations for interior gridblocks 2,3, and 4. Solution The flow equation for gridblock n, in a 1D horizontal reservoir, is obtained by neglecting the gravity term in Eq. 4.2a, yielding
,p,,,+,
,.
,nL,P, --Pn )
2~q,c,,,+ q 2 ° - ,.,,_,It,_,),
For interior gridblocks n, ~p, = { n - l , n + l }
(4.14)
--(~),l
and ~, = { } . Therefore, ~qs~,° = 0
The gridblocks in this problem are equally spaced; therefore, T m = T m l,n
XnTll 2
= T" X
'
where k~Ax
-
0.001127 x 15 x (1200 x 75) = 0.1521 STB/D-psi
T~ = tic/~BAx For gridblock 2, n = 2
10 x 1 x 1000 ,
~,9 2 =
Therefore, Eq. 4.14 becomes
{1,3}
,
~2 = { }
,
~
q m...... =
0 , and
q~',c2 = 0 .
(4.15)
4.4 Treatment o f Boundary Conditions
Vb2 1"((~]n+l -- ((~) n ] B 2•
(4.16)
(0.1521)(p~' -p~")+(0.1521)(p 3 -p~')= a~-~L,~,2 For gridblock 3, n
3 , W3={2,4}, ~3={}
~
~q~,.3=0
1
and q" = 0 sc 3
73
•
IE~ 3
Therefore, Eq. 4.14 becomes m
m +
m
V~ [(q~);÷l
(0.1521)(P2 -P3 ) (0"1521)(P4 - P 3 ) = a------~ B
For gridblock 4, n = 4 ,
"
q~.
- ( ' n )3]"
(4.17)
q-'4 = {3,5}, ~, = { } , ~---~q,'~,4 = 0 ,
and qm = -150 STB/D. Therefore, Eq. 4.14 becomes sc 4
m m -t(0.1521)(P3-P4) ( 0 . 1 521) ( P 5m- P 2 ) -
44
150---~ acAt Vb: [(~')4+1-(~B)4 ]. t~
(4.18)
Treatment of Boundary Conditions
A reservoir boundary can be subject to one of four conditions: 1) no-flow boundary, 2) constant flow boundary, 3) constant pressure gradient boundary, and 4) constant pressure boundary. In fact, the first three boundary conditions reduce to the specified pressure gradient condition (the Neumann boundary condition) and the fourth boundary condition is the Dirichlet boundary condition (constant pressure value). This section presents in detail the treatment of boundary conditions for ID flow in the x direction, followed by generalizations for the treatment of boundary conditions in multidimensional reservoirs. In this section, we refer to reservoir boundaries as left and right boundaries because the lower, south, and west boundaries can be considered left boundaries, while the east, north, and upper boundaries can be considered fight boundaries in 3D reservoirs. The flow rate of the fictitious well ( qm scb.b~ ) reflects fluid transfer between the boundary block (bB) (e.g., gridblock 1 for the reservoir left boundary and gridblock n x for the reservoir right boundary in Figure 4-1) and the reservoir boundary itself (b), or between the boundary block and the block next to the reservoir boundary that falls outside the reservoir (bB**) (e.g., gridblock 0 for the reservoir left boundary and gridblock n x + 1 for the reservoir right boundary in Figure 4-6). Eq. 4.4b expresses the flow equation for boundary gridblock 1, which falls on the reservoir left boundary, and Eq. 4.6b expresses the equation for boundary gridblock n x which falls on the reservoir right boundary. For boundary gridblock 1, which falls on the reservoir left boundary, the rate of fictitious well is expressed by Eq. 4.5a, which states qm
,c~, = T~m ( ~ o - ~ )
(4.5a)
74
Chapter 4
Simulation with a Block-Centered Grid
Since there is no geologic control for areas outside the reservoir, including aquifers, it is not uncommon to assign reservoir rock properties to those areas in the neighborhood of the reservoir under consideration. Therefore, we use the reflection technique at left boundary of the reservoir, shown in Figure 4-6, with regards to transmissibility only (i.e., T.'o,~ = T~,~ ) and evaluate T~Xl_l/2in terms of the transmissibilities between gridblock 0 and the reservoir west boundary bw and between gridblock 1 and the reservoir west boundary bw . The result is T"
-
kxAx
= [/Jc fibril/2
"
kxA
m
kxAx
= [tic" fl-----~l ]1 =
m
T m
|
m
/~B(--~/2)], - ~ b~,~= ~T0,~
1/2[flc
(4.19a) or
To,~ = T~,1 = 2T~'2
(4.19b)
Substitution of Eq. 4.19b into Eq. 4.5a gives qm
sc~.,1
= 1~Tin ({~)m__ /2"~,1~
o
(4.5b)
01)
Similarly, for boundary gridblock n x , which falls on the reservoir right boundary, qm SCbE,nt
: Zm
(~i)m
-- ~pm ~
~ Xnx+ll2 ~ n x + l
n, :
(4.7a)
and qm
$CbE,n~
= L/Tm /'2
(~.}m
bE,rtx \
nx+l
(4.7b)
-- ~)m ) nx
In other words, the flow term between a boundary gridblock and the gridblock located immediately on the other side of the reservoir boundary can be replaced by a fictitious well having a flow rate qm . The general form for q"$Cb,bB is SCb,bB qm SCb,hB
= Tm
d~rn
bB,bB~* (
--
bB**
m ~)bB)
(4.20a)
or
qm SCb,b,
=~TY
b,bB
(¢Dm
bB**--
~m
(4.20b)
bB),
where, as shown in Figure 4-7, q~"~bbB= flOW rate of a fictitious well representing flow across reservoir boundary (b) between boundary block (bB) and the block that is exterior to the reservoir and located immediately next to reservoir boundary (bB**), Tbm,,b,**= transmissibility between boundary gridblock bB and gridblock bB**, and sibility between reservoir boundary (b) and boundary gridblock bB.
TbmbB
=
transmis-
75
4.4 Treatment o f Boundary Conditions
(1/2)ALbB b (1/2)ALbB
...........
...... J: ........... :' b,,.%cb,b8 j
.............................
tbB
.3 Direction L
Boundary
Definition of terminology used in Eq. 4.20.
Figure4-7
In the following sections, we derive expressions for q~SCb,bB under various boundary conditions for a block-centered grid in Cartesian coordinates. We stress that this rate must produce the same effects as the specified boundary condition. In Cartesian coordinates, real wells have radial flow and fictitious wells have linear flow, whereas in radial-cylindrical coordinates in single-well simulation both real wells and fictitious wells have radial flow. Therefore, in single-well simulation, 1) the equations for the flow rate of real wells presented in Sections 6.2.2 and 6.3.2 can be used to estimate the flow rate of fictitious wells representing boundary conditions in the radial direction only, 2) the flow rate equations of fictitious wells in the z-direction are similar to those presented next in this section because flow in the vertical direction is linear, and 3) there are no reservoir boundaries and hence no fictitious wells in the 8direction. The flow rate of a fictitious well is positive for fluid gain (injection) or negative for fluid loss (production) across a reservoir boundary.
Specified Pressure Gradient Boundary Condition
4.4.1
For boundary gridblock 1 shown in Figure 4-8, which falls on the left boundary of the reservoir, Eq. 4.20a reduces to Eq. 4.5a that can be rewritten as k A qmsc~j - z mx.2 - ,(~"~ --- -~B" )- ~=- ]lltic /2(qboo .
- kxAx m
~
m
A
.
k A
.
kxAx]m ( ~ o - # ° ? )
.
-~")= ,, ~
m
-=[~c--~-],,2[-~,~ ~= -~/Jc-~ll,2 ~,~
[fl,--~-1/2
~Cl/2
kxAx m ~dp m
= -[,8c---~-], ~
•
dp dx bw
dp dx bE
• Left Boundary Figure 4-8
(4.21)
I
3
nx-1
I • I"" nx I Right Boundary
Specified pressure gradient condition at reservoir boundaries in a block-centered grid.
76
Chapter 4
Simulation with a B l o c k - C e n t e r e d Grid
Note that in arriving at the above equation, we used the reflection technique shown in Figure 4-6 with respect to transmissibility and used the central-difference approximation of first order derivative of potential. Similarly for gridblock n x , which falls on the reservoir right boundary, Eq. 4.20a reduces to Eq. 4.7a that can be rewritten as
qm SCbE,nx
=
T m Xnx+l/2
_ k Ax ~
(~m
( n~.l •
__l~m
-
?Ix
(~m
kxAx
m
f~)m
) = [~c ----'B~]n • +1/2( ntl-v
dom~
A
(i)m
m
= [#c - - ~ - ] , +,2" °,+l - - , , , - k. . . . OOI x ~nx+l/2 ~ [#c -~]n x~-1,2[~-X bE.] __k~Ax m
Ot~ ~ =[fl~--k A
t,~B ]n•+l/20X IbE
nx )
(4.22)
m ~
~uB In" Ox Ibe "
Here again, we used the reflection technique shown in Figure 4-6 with respect to transmissibility and used the central-difference approximation of first order derivative of potential. In general, for specified pressure gradient at the reservoir left (lower, south, or west) boundary, klA I m 0(I) lm q,;.... = -[flc ~-]b,
-Eb
(4.23a)
or, after combining with Eq. 2. l 0, klAl m
OpIm
O-~ll~
(4.23b)
and at the reservoir right (east, north, or upper) boundary, klAz-m 3 0 ~
(4.24a)
or, after combining with Eq. 2.10, k;A; m 3P Im
m OZ
q m =[flc__~.ff]bB[_~b _~,b_.~b]
(4.24b)
where l is the direction normal to the boundary.
4.4.2
Specified Flow R a t e B o u n d a r y Condition
The specified flow rate boundary condition arises when the reservoir near the boundary has higher or lower potential than that of a neighboring reservoir or aquifer. In this case, fluids move across the reservoir boundary. Methods such as water influx calculations and
4.4 Treatment of Boundary Conditions
77
classical material balance in reservoir engineering can be used to estimate fluid flow rate, which we term here as specified ( qsesc ). Therefore, Eq. 4.5a for boundary gridblock 1 becomes
qm = T m (¢bm SObW,1 XI/2 \ ~ 0
-- ¢~Pl ) : qsp,,'c
(4.25)
and Eq. 4.7a for boundary gridblock n becomes qm
SQ,E,,,"
_ T m (¢b,n -
.......
-
"~--n.+l
--
¢~ .
) =
q.p.,"
(4.26)
In general, for a specified flow rate boundary condition, Eq. 4.20a becomes q~......
(4.27)
= qspsc
In multidimensional flow with qspsc specified for the whole reservoir boundary, qm for $Cb,bB each boundary gridblock is obtained by prorating q~e~c among all boundary gridblocks that share that boundary; i.e., qm
.......
_
T~ m
b,bB
~ T;,~q,e,,~
(4.28)
I~Pb
where ~0b is the set that contains all boundary gridblocks that share the reservoir boundary in question, Tbj = transmissibility between the reservoir boundary and boundary gridblock l, which is a member of the set ~Pb ' and Tbmb~is defined as T~ = [tic flB--~/2)']bB ktAl b,bB m
(4.29)
The length l and subscript l in Eq. 4.29 are replaced with x, y, or z depending on the boundary face of boundary block. It should be mentioned that Eq. 4.28 incorporates the assumption that the potential drops across the reservoir boundary for all gridblocks sharing that boundary are equal.
4.4.3
No-flow Boundary Condition
The no-flow boundary condition results from vanishing permeability at a reservoir boundary (e.g., Tx~,2= 0 for the left boundary of gridblock I, and T:, .... = 0 for the right boundary of gridblock n x ) or because of symmetry about the reservoir boundary (e.g., ¢0m = ¢~rn for gridblock I and ap"n x = apm for gridblock n x ). In either case, Eq. 4.5a ny+l for boundary gridblock 1 reduces to
qm = T"XII2 (~o -~'~) = 0(~o -~'~) = ~m~ (O) = 0 '~CbW ,1 and Eq. 4.7a for boundary gridblock n x reduces to
(4.30)
78
Chapter 4
Simulation with a Block-Centered
qm SCbE,nx
_ --
T m ( di)m 3~nx+1 / 2 \ n x +1
--
(bin ~ _ Or (~m ~n x " -", n ~ + l
Grid
~m --
~ = Tx7 .... (0) nx
= 0
n x ,"
(4.31)
In general, for a reservoir no-flow boundary, Eq. 4.20a becomes qm
=0
(4.32)
SCb,bB
For multidimensional flow, qmsCb,bO is set to zero, as Eq. 4.32 implies, for each boundary gridblock that falls on a no-flow boundary in the x , y, or z direction. 4.4.4
Specified Boundary Pressure Condition
This condition arises when the reservoir is in communication with a strong water aquifer, or when wells on the other side of the reservoir boundary operate to maintain voidage replacement and as a result keep boundary pressure ( Pb ) constant. Figure 4-9 shows this boundary condition at the reservoir left and right boundaries. Eq. 4.5a for boundary gridblock 1 can be rewritten as q~•%, = T mx,,2, (qbm_qb?) = Tx,,2[Oo-O~ "~ 0 +o~
o71
(4.33)
= L,~21(o~n - o ~ ) + ( o ~ - o 7 ) ] = L'~,2(°o - o,~ ) + L~, (o~ - • 7).
Combining the above equation and Eq. 4.19b yields qm sc~,,-__ )~2Tm 2 0,~ (¢~mo-¢/~)+)'~2T~,I(([D~-O7)"
(4.34)
In order to keep the potential at the left boundary of gridblock 1 constant, the fluid leaving the reservoir boundary to one side (point 1) has to be equal to the fluid entering the reservoir boundary from the other side (point 0); see Figure 4-6. That is, T,0,~ m ( O 0m- O ~ ) = T~,~( O ~ - • 7).
(4.35)
Substitution of Eq. 4.35 into Eq. 4.34 and making use of Eq. 4.19b yields qmsc~v ,t
=
Tb~ ~(O~ -- • 7).
(4.36)
Keeping the potential at any point constant implies the pressure is kept constant because potential minus pressure is constant as required by Eq. 2.11. In general, for a specified pressure boundary, Eq. 4.20a becomes qm m • - • m~ s~,bB = Tb,bB( b b~"
(4.37a)
Eq. 4.37a can be rewritten in terms of pressure as qm $Cb,bB
m
ra
m
Z
= T~•bB[(Pb -- Pbe) -- )16 bR ( b -- ZbB)]
(4.37b)
4.4 Treatment o f Boundary Conditions
79
where 7bmbR is nothing but fluid gravity in boundary block bB and T" b ,bB = transmissibility between the reservoir boundary and the point representing the boundary gridblock and is given by Eq. 4.29, klAl
TbTb, = [tic # B - ~ /
]m
2 ) b,
(4.29)
Combining Eqs. 4.29 and 4.37b gives qmSCb'bB = [tic
pbw
"'1"1
B~--~/~/ I~[(P~ -- PbB)-. . . 7b,bBt . Z b -- Zb~)] 2)
•
I
•
//
I'1"1
Left Boundary Figure 4-9
(4.37e)
'pbE Right Boundary
Specified pressure condition at reservoir boundaries in a block-centered grid.
Substitution of Eq. 4.37c in the flow equation for boundary gridblock bB maintains a second-order correct finite-difference flow equation in the mathematical approach (see Exercise 4-7). Abou-Kassem, Osman, and Islam (2006) have recently proved that such a treatment of this boundary condition is second-order correct. In multidimensional flow, qm sobs, for a boundary gridblock falling on a specified pressure boundary in the x, y, or z direction is estimated using Eq. 4.37c with the corresponding x, y, or z replacing 1.
4.4.5
Specified Boundary Block Pressure
This condition arises if one makes the mathematical assumption that the boundary pressure is displaced half a block to coincide with the center of the boundary gridblock; i.e., Pl ~ Pb~ or P,x -~ PbE " This approximation is first-order correct and produces results that are less accurate than the treatment that uses Eq. 4.37c. Currently available books on reservoir simulation use this treatment to deal with the specified boundary pressure condition. Following this treatment, the problem reduces to finding the pressure of other gridblocks in the reservoir as demonstrated in Example 7.2. The following examples demonstrate the use of the general equation, Eq. 4.2a, and the appropriate expressions for q~'.... to write the flow equations for boundary gridblocks in 1D and 2D reservoirs that are subject to various boundary conditions.
80
Chapter 4
Simulation with a Block-Centered Grid
Example 4.3 For the 1D reservoir described in Example 4.1, the reservoir left boundary is kept at a constant pressure of 5000 psia, and the reservoir right boundary is a no-flow (sealed) boundary as shown in Figure 4-10. Write the flow equations for boundary gridblocks 1 and 5. z
150 STB/D
rI........... " . q............ [I...., r ..... II..... ,]=? li........... ~ •
!-" ~000. ,! Figure 4 - 1 0
No-flowboundary
!, ~000, ,!'7
Discretlzed 1D reservoir in Example 4,3.
Solution The flow equation for gridblock n in a 1D horizontal reservoir is obtained from Eq. 4.2a by neglecting the gravity term, resulting in ,L.a T ~ ,l
.
( PI
.-
"~-"~ m P.m x) jl_ 2..,q.c,
.
.
.
.+
q,~m
gb
~ n+l [(~).
(4.14)
(~ n
(~)"]
o
From Example 4.2, Tl,n~ = T x~ = 0.1521 STB/D-psi. For boundary gridblock 1, n = 1 , ~0~ = { 2 } , ~1 = {bw }
J
~, qm
l~
..~.qm and SCbw,1 '
qm = 0 SOl
Therefore, Eq. 4.14 becomes O.1521(p~'-p~)+
" . =--L,--,IV~ r(q~V+l - (~)1 ~b, ] q'% ' acAt B
(4.38)
whore the rate of flow across the reservoir loft boundary is given by Eq. 4.37c, q""%; =[flc #B-(--~/2) kxAx 1"[ 1 ( P ~ - Pl ) - 7~.,1 ( Z ~ - Z1 )] m
(4.39)
15x (1200×75) . . . . . . = 0.001127 × 10 x i ~ tt~t~u - p;') - 7~,,,, x O] or m
qs%,, = (0.3043)(5000 - p~").
(4.40)
4.4 Treatment of Boundary Conditions
81
Substitution of Eq. 4.40 into Eq. 4.38 results in the flow equation for boundary gridblock 1,
K ~ +1 ~P, (0.152 l)(p~' - p~ ) + (0.3043)(5000 - p;" ) = ~'acAt [(-~)~'B - ( ~. ) ' ]
For boundary gridbloek 5, n = 5 , ~'5 = {4}, ~5 = {bE}, qm =0 sc 5
Z
(4.41)
m
q~,~ =qsc~,~ , and
Therefore, Eq. 4.14 becomes
(O.1521)(p4 - p~') + q ~
•
= Vb' [(q~):*' _ (q~):] B acAt B
(4.42)
where the flow rate across the reservoir right boundary (no-flow boundary) is given by Eq. 4.32. For the reservoir right boundary, b - bE , bB -- .5, and m
q,~..~ = 0
(4.43)
Substitution into Eq. 4.42 results in the flow equation for boundary gridblock 5, (0.1521)(p4' - P ~ ' ) = - -vb' - ~ l t [/¢,n+l - ~ ) 5 - (~)5 (~ n ] /:¢ acAt /5
(4.44)
Example 4.4 For the 1D reservoir described in Example 4.1, the reservoir left boundary is kept at a constant pressure gradient of -O. 1 psi/ft and the reservoir right boundary is supplied with fluid at a rate of 50 STB/D as shown in Figure 4-11. Write the flow equations for boundary gridblocks 1 and 5. 150 STB/D
b:°l ps,,. ...
Figure 4-11
~. _asc~ = 50 STB/D
Discr~ized 1D rm~oir in Examle 4.4.
Solution The flow equation for gridblock n in a 1 D horizontal reservoir is obtained from Eq. 4.2a by neglecting the gravity term, resulting in ~,tP, - P , )
~ q .....
q,c
t-[(
(4.14)
82
Chapter 4 Simulation with a Block-Centered Grid
From Example 4.2, T." = Tx" = 0.1521 STB/D-psi. l,n For boundary gridblock 1, n = 1 , ~ = { 2 } , ~, = {b w } ,
q,~ E lc~t
...~.qm
.....
,~W,1 '
and
qm = 0 Therefore, Eq. 4.14 becomes sc I 1
~
mx..~
m
(0. 521)(p2 - P l ) q,%, -
Wb, [ / (~ \n+l
--IL--)I
a ~At B
¢
n
-(~)1 ]
(4.38)
where the flow rate of a fictitious well for the specified pressure gradient at the reservoir left boundary is estimated using Eq. 4.23b,
q'~,c~.,= = -[0.001127 x
-[fl~ -kxAx -~15 ~-]1
"m'["~"lbw ~PIoxI
1 5 x (1 2OO ×
10×1
-- ~ ?
O~XXbw]
(4.45)
75).] [-0.1 - O] = -152.145 × (-4). 1)
or
q"SCbw,1 = 15.2145.
(4.46)
Substitution of Eq. 4.46 into Eq. 4.38 results in the flow equation for boundary gridblock 1, (0.152 l)(p~' - p~' ) + 15.2145 = ~ ,Vbl , ~ , , re ~b.j,+l - ,( ~~, 1~,, ]
(4.47)
For boundary gridblock 5, n = 5 , ~5 = {4} , ~5 = {bE}, .~, qm ..... =qm ,c,,.5 , and le~ 5
qm Therefore, Eq. 4.14 becomes sc 5 = 0
(O.1521)(p4__p~)+qm•cb~,
-
aV__~t[(~)~+1 -(~)51 ¢ n
(4.42)
where the flow rate of a fictitious well for a specified rate boundary is estimated using Eq. 4.27; i.e., qm = 50 STB/D SCbE ,5
(4.48)
Substitution of Eq. 4.48 into Eq. 4.42 results in the flow equation for boundary gridblock 5, (0.1521)(p4 - p~") + 50 = ~
Vb5
r/•xn+l
tt~)5
/ (J~ xn 1
- t~)5 ]
(4.49)
4.4 Treatment of Boundary Conditions
83
Example 4.5 Consider single-phase fluid flow in the 2D horizontal reservoir shown in Figure 4-12. A well located in gridblock 7 produces at a rate of 4000 STB/D. AIIgridblocks have Ax = 250 ft, Ay = 300 ft, h = 100 ft, k, = 270 md, and ky = 220 md. The FVF and viscosity of the flowing fluid are 1.0 RB/STB and 2 cp, respectively. The reservoir south boundary is maintained at 3000 psia, the reservoir west boundary is sealed off to flow, the reservoir east boundary is kept at a constant pressure gradient of O. 1 psi/ft, and the reservoir loses fluid across its north boundary at a rate of 500 STB/D. Write the flow equations for boundary gridblocks 2, 5, 8, and 11.
qscb, = -500
9
•
10
11
•
12
•
No-flow boundary
I
o.1 psi/ft
J
5 y
b
•
f8
6
4000 STB/D
300 ft ]
1
2
3
4
•
•
•
•
ft
,x Pbs = 3000 psia
Figure 4-12
DlscreUzed 2D reservoir in Examples 4.5 and 4.6.
Solution
The general flow equation for a 2D horizontal reservoir is obtained from Eq. 4.2a by neglecting the gravity term, resulting in E T, ? . . . . m,, Wbn ~) n, l ~) n ,,tP, - P , ) +'~Lq.,c,..m + q,c -- a-~t [ ( ~ ) , -- ('B)n ] le~n
(4.14)
lelpn
Note that Axz,, = Ax = 250 ft,
Ayl, n = m y =
300 ft, and k x, ky, /.t, and B are con-
stant. Therefore, kxAx = 0.001127 × 270 x (300 x 100) = 18.2574 STB/D-psi T m = tic/~BAx 2xlx250
(4.50)
Tm = tic kyAv = 0.001127x 220 x (250 × 100) - 10.3308 STB/D-psi
(4.51)
Y
~Bmy
2xlx300
84
Chapter 4
Simulation with a Block-Centered Grid
For boundary gridblock 2, n = 2 ~ , q m =qm , where SCbs ,2
qm SCbS ,2
)
~'P2 =
{1,3,6}
~2 = {bs.} and q"sc2 = 0 , )
)
"
is obtained from Eq. 4.37c after discarding the gravity
term, resulting in
q" = [fl~ k y A y ] . s%, ItB(Ay / 2) 2
= [0.001127 X
.
.
.
tPb s --
P2
(4.52)
)
220 X (250 X 100)]( 3000 -- P2) 2 x l X (300/2)
or q"SObS ,2 = (20.6617)(3000 - P2)
(4.53)
Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 2, (18.2574)(p~' - pro) + (18.2574)(p3 - p~") + (10.3308)(P6 - p~') (4.54) +(20.6617)(3000- P 2 ) = a~At [('~)~ 'I - (q~)" B 2"] For boundary gridblock 5, n = 5, ~5 = {1,6,9}, ~5 = {bw} , and q,~5 = 0 . ~,q~,.5 =qm where q~' is obtained from Eq. 4.32 for a no-flow boundary; SCbw,5 ) SCbw,5
i.e., q"SCbw ,5 = 0 Substitution into Eq. 4.14 results in the flow equation for boundary gridbloek 5, (10.3308)(p~" - p~") + (18.2574)(P6 - p~") + (10.3308)(P9 - p~') (4.55)
_ vb, [(~)71_(~)~] o:At For boundary gridblock 8, n = 8
)
~8 = {4,7,12}
)
~8 = {be} , and q"sc8 = 0
.
~,qm., =qm , where qm is estimated using Eq. 4.24b for the reservoir east scbE 8 scbg ,8 le~ s
boundary, kxAx m O P [m m OZ 270x(300xlO0)][O.l-O] q~-." = [flc--~B--]8 [~x b~ --78 -~-Xb~l=lO'O01127x, 2xl
= 4564.35 X (0.1) = 456.435. (4.56)
4.4 Treatment o f Boundary Conditions
85
Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 8, m
m
m
m
m
(10.3308)(p4 - P8 ) + (18.2574)(p7 - P8 ) + (10.3308)(P12 - P8 ) (4.57) +456.435=
Vb` [(--~)8÷I
t:zAt
B
For boundary gridblock11 ~ , qm,.,1 =q"'~,~.,1 ' where
(~ n -(~)8]"
n=11
qscbtq,11 "
,
Wn={7,10,12}
i
2~ll={bN}
,
and q~ SCll = 0
•
is estimated using Eq. 4.28 because
q,p,,~ = -500 STB/D is specified for the whole reservoir north boundary. This rate has to be prorated among all gridblocks sharing that boundary. Therefore, T m bt~ ,l 1 q~ _ ~%v,n ~'~ r/~ qspsc z.., b,v,l
(4.58)
where ~Pb~ = {9,10,11,12}. Using Eq. 4.29, T, m
bN.~ =
,. "~'" = [fl~ p B -kyAv ~ y / 2 ) ]11 = 10.001127 X 2202X(1X 3(250 0 0 / 2X ) X100)] = 20.6616
T, m
(4.59) for all values of l ~ ~PoN• Substitution of Eq. 4.59 into Eq. 4.58 yields qm _ 20.6616 x (-500) = -125 STB/D ,cb.... 4 x 20.6616
(4.60)
Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 11, m
m
m
m
m
(10.3308)(p~ - Pu) + (18.2574)(pm - Pn) + (18.2574)(p u - P . ) (4.61) -125=
- ,,~,11 -,-E,11," a At /J /~
Example 4.6 Consider single-phase fluid flow in the 2D horizontal reservoir described in Example 4.5. Write the flow equations for gridblocks 1, 4, 9, and 12, where each gridblock falls on two reservoir boundaries. Solution The general flow equation for a 2D horizontal reservoir is obtained from Eq. 4.2a by neglecting the gravity term, resulting in Eq. 4.14,
86
Chapter 4
Simulation with a Block-Centered Grid
Z T '. . . . . ,,ntPt--Pn) l~,e.
.q_ ~ m m 2~qsc, +qsc, = l~,, "
WbrI
a At
1(
~) B
)~+1_( ~)B )".1
(4.14)
The data necessary to write flow equations for any boundary gridblock were calculated in Example 4.5. The following is a summary: Tx" = 18.2574 STB/D-psi;
(4.62a)
T " = ] 0.3308 STB/D-psi; Y
(4.62b)
q~s,~, = (20.6617)(3000 - PbR) STB/D
(4.62c)
for bB = 1,2,3,4 ; q ~ , ~ , = 0 STB/D for bB = 1,5,9 ;
(4.62d)
q~SCbE,bB = 4 5 6 . 4 3 5 STB/Dfor b B = 4 , 8 , 1 2 " J
(4.62e)
and
qsm..... = - 1 2 5 STB/D for bB = 9,10,11,12.
(4.62t3
For b o u n d a r y gridblock 1, n = 1 , ~p~ = {2,5}, ~j = {bs,bw} , q~, = 0 , a n d m q m =q~,., + q,~,., = (20.6617)(3000 -- Pl') + 0 = (20.6617)(3000 -- p~') STB/D.
Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 1, (18.2574)(p~' - p~') + (10.3308)(p~' - p~') + (20.6617)(3000 - P l )
(4.63) =
_ (3),
].
For boundary gridblock 4, n = 4 , ~4 = {3,8}, ~4 = {bs,bE} ' q,~, = 0 , and
~qm
~ISCbsm.,+ qs%",4 = ( 2 0 " 6 6 1 7 ) ( 3 0 0 0 - P 4 ) + 456"435 STB/D.
IE~4
Substitution into Eq. 4.14 results in the flow equation for b o u n d a r y gridblock 4, (18.2574)(p~' - p~') + (10.3308)(p~' - P 4 ) + (20.6617)(3000 - P4') + 456.435 Vb4 rz~xtz+l -
/ ~j~~,t/] •
(4.64) For boundary gridblock 9, n = 9 , ~9 = {5,10} , ~9 = {bw,bu} ' qs"~9= 0 , and
4.5 Calculation of Transmissibilities
qm m 9 =0--125=--125 sc,.9 =qms%,, +qscb~
87
STB/D.
16~ 9
Substitution into Eq. 4.14 results in the flow equation for boundary gddblock 9,
Vb~ ,, q~,.+l -- t~)9 , q~.:,] B z~
(4.65)
(10.3308)(p~' -- P9) + (18.2574)(pm -- Pg" ) - 125 = - ~ : - - I t ~ ) 9
acAt
For boundary gridblock 12, n = 12 , ga~2= {8,11}, ~12 = {bu,bN}, q,~ = 0 , and
qm
£ ....... IE~L.
=
m-, q$cb£
12
Jc
m , q'veb N 12
= 4 5 6 . 4 3 5 - 1 2 5 = 3 3 1 . 4 3 5 STB/D.
Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 12,
(lO.3308)(p~_p~2)+(18.2574)(p~_p~;)+331.435=
4.5
Vbl~ i(q~.+~
acAt t'.n.,12
q~.
- (B)12]. (4.66)
Calculation of Transmissibilities
Eq. 2.39 in Chapter 2 defines the transmissibilities in the flow equations in Cartesian coordinates. The definitions of transmissibility in the x, y, and z directions are expressed as
1
1
(4.67a)
L e,j:l/2,k = ~y ~j:t/2,k ( ~/,t/:~) ~'j" ..... '
(4.67b)
1 .... (-~). ~i, ,....2
(4.67c)
r ~L..... , 2
= G.
~i, , "t
where the geometric factors G for anisotropic porous media and irregular gridblock distribution are given in Table 4-1 (Ertekin, Abou-Kassem, and King 2001). The treatment of the pressure dependent term (fiB) in Eq. 4.67 is discussed in detail under linearization in Chapter 8 (Section 8.4.1).
Example 4.7 Derive the equation for the geometric factor of transmissibility in the x direction between gridblocks i and i + 1 in 1D flow using (a) Table 4-1 and (b) Darcy's Law
Solution (a) The geometric factor of transmissibility in the x direction is given as
88
Chapter 4
T a b l e 4-1
Simulation with a Block-Centered
Grid
G e o m e t r i c F a c t o r s in R e c t a n g u l a r Grids ( t r t e k i n ot al. 2 0 0 1 )
Direction
Geometric Factor
G ........."
:
AXi , j , k/(Ax i,j,k k
i,j,k
) -]- Axi~-i, j • k/(Ax i~
Gy,,i ...... = Ayi,j, k/(Ay, j,, ky, j,k ) +
,j,k
k
i4-I,j,k
)
Ayi,jT 1,k /(Ay,,~r,,k ky, jT,,, )
G j ...... = Azi , j , ~/(Az i,j,k kzi,j,k ) J¢- A z i
- k~-i/(A
'J""
Zi,j,k~:l
k Zi,j,k~l )
(4.68)
2tic
G ......." = Axi , j , k/(Ax i,j,k kxi,j,k ) + AXial 'J'•k/(Ax i~:l,j,k k
"i~:l,j,k
)
For flow b e t w e e n gridblocks i a n d i + 1 in a 1D reservoir, j = 1 a n d k = 1. Dis-
carding these subscripts and the negative sign in Eq. 4.68 yields the sought geometric factor, G
2tic
= xi+l/2
Ax~/(A k ) +
Axi+1/(Ak,,)
(4.69)
(b) Consider the steady-state flow of incompressible fluid ( B = 1 and/~ = constant) in incompressible porous media between gridblocks i and i + 1. Gridblock i has cross-sectional area Ax, and permeability kx,, and gridblock i + 1 has cross-sectional area A.,,,, and permeability kx,,, . Boundary i + 1/2 between the two blocks is c~x, away from point i and bxi+ 1_ away from point i + l as shown in Figure 4-13. Fluid flows from gridblock i to block boundary i+Y2 and then from block boundary/+½ to gridblock i + l . The rate of fluid flow from the center of gridblock i to block boundary i+V2 is given by Darcy's Law as
fl ckx A~
' ' (Pi qi,i+l/2- Bfl~xi+
- P~,~/2)
(4.70)
4.5 Calculation of Transmissibilities
Actual layer boundary
89
Discretized block boundary
/
qi,i+l/2] qi+l/2,i~ ~
]
j
i:,j
J
Figure 4-13
Transmissibility between two adjacent blocks.
Similarly, the rate of fluid flow from block boundary i+½ to the center of gridblock i + 1 is given by Darcy's Law as
qi+l/2,i+l-
flckx"~Ax"' (Pi+l/2--Pi+l) Bpf~Xi+l -
(4.71)
In this flow system, there is neither fluid accumulation nor fluid depletion. Therefore, the rate of fluid leaving gridblock i ( qi,i+l/2 ) has to be equal to the rate of fluid entering gridblock i + 1 ( qi+l/2,i+l ); i.e.,
(4.72)
qi,i+l/2 =qi+l/2,i+l =qi,i+l
The rate of fluid flow between the centers of gridblocks i and i + 1 is given by Darcy's Law as
qi,i~,l-
Gx' .... (Pi BI~
(4.73)
-- Pi+l )
The pressure drop between the centers of gridblocks i and i + 1 is equal to the sum of the pressure drops between the block centers and the block boundary between them; i.e.,
(Pi -
el+l) -- (Pi - Pi+l/2 ) + (Pi
~1/2
-
Pi+l )
(4.74)
Substituting for pressure drops in Eq. 4.74 using Eqs. 4.70, 4.71, and 4.73 yields
qi'i+lBP -
qi'i*l/2B/xf~xi* 4 qi÷l/2'i+lBJA(~Xi+l
(4.75)
90
Chapter 4
Simulation with a Block-Centered Grid
Combining Eqs. 4.75 and 4.72 and dividing by flow rate, FVF, and viscosity yields l
_
Gx,....
--~6xe fl~k, a
6xi+ 1 fl~kx, A ....
(4.76)
Eq. 4.76 can be solved for Gx,.... . The resulting equation is
G
-
tic
......
(4.77)
f~xi, /(Axkx,)+f~xi÷ 1 /(A ÷k ÷,)
1 Observing that (~x i, = l~2~k)(i and &x~+v --- ~Ax~+~ for a block-centered grid,
Eq. 4.77 becomes G
= Xi~ll2
2tic l~i /( Ax, k x, ) +/~i+1/(Ax,,,k,,,,
(4.78)
)
Eqs. 4.69 and 4.78 are identical.
Eq. 2.69 in Chapter 2 defines the transmissibilities in the flow equations in radial-cylindrical coordinates. The definitions of transmissibility in the r, 0, and z directions are expressed as 1
(4.79a) 1
T% ...... = Go,J...... (-~-~)%.......
__1 /
(4.79b)
(4.79c)
where the geometric factors G for anisotropic porous media and irregular gridblock distribution are given in Table 4 - 2 (Farouq Ali 1986). Note that in this table, r~ and r~l/: depend on the value of subscript i only for j = 1,2,3...n 0 and k = 1,2,3...n ; A0j and A0j~,2 depend on the value of subscriptj only for i-- 1,2,3...n r and k = 1,2,3...n ; and Azk and Az~/2 depend on the value of subscript k only for i=1,2,3...n r and j = 1,2,3...n 0 . The treatment of the pressure dependent term (fiB) in Eq. 4.79 is discussed in detail under linearization in Chapter 8 (Section 8.4.1). Table 4-2 uses gridblock dimensions and block boundaries in the z direction as in Eq. 4.1, with z replacing x. Those in the 0 direction are defined in a similar way. Specifically, no
~A0j =2~, j=l
A0j,/2 = ~ ( A 0 j , I + A 0 j ) , j = 1,2, 3... n o - 1 ,
4.5 C a l c u l a t i o n o f T r a n s m i s s i b i l i t i e s
Table 4 - 2
91
Geometric Factors in Cylindrical Grids (Farouq Ali 1986)
Direction
Geometric Factor fl~AO s
G m,~,j,~= log e(r~ ! r/'~/2) I(Az, s kk~ ~ ) + loge (r~1/2 ! ri-~)/(Az~-I J kk~ ~)
G +,,~.j., = l
0
fl AOj ..... .. , .. og e (ri+u2 / ri ) ] ( A z i j kk%, ) + log e(r~+l / r~u2) ](Az,+~ j kk +~,, ) 1.
2 f l c lOge (riL+u2 ] ri~u2 ) Go ......... = AO j /(Azi,j,kko,,j,, ) + AO j+1/(Azi.m,kk%,, ' )
G
= z,.j......
2fl, ( ~ AOj)(r2+uz - re2u2) AZij.k /kz,.j. ~ + ~Zi.j,kT_1 /kz,. j ....
Oj41 = Oj + AOj+I/2 , j = 1,2,3... n o - 1 , 01 =/1~2A01
0j;u2=0j-T-~A0j,
(4.80)
i =1,2,3...n o.
In the r direction, however, the points representing gridblocks are spaced such that the pressure drops between neighboring points are equal (see Example 4.8). Block boundaries for transmissibility calculations are spaced logarithmically in r to warrant that the radial flow rates between neighboring points using the integrated continuous and discretized forms of Darcy's Law are identical (see Example 4.9). Block boundaries for bulk volume calculations are spaced logarithmically in r 2 to warrant that the actual and discretized bulk volumes of gridblocks are equal. Therefore, the radii for the pressure points ( rm ), transmissibility calculations ( r,~1/2 ), and bulk-volume calculations ( ri~u: ) are as follows (Aziz and Settari 1979, Ertekin et al. 2001): r~+~= atgr~
(4.81)
for i=1,2,3...n - 1 ; rL
_
i+1/2
r/+ 1 - r/
(4.82a)
lOge (r/+1/r/)
for i = 1 , 2 , 3 . . . n r - 1 ; rL
i-1/2
for i = 2 , 3 . . . n r ;
_
r-r/_
1
lOge( ~/r/_ 1)
(4.83a)
92
Chapter 4
Simulation with a Block-Centered Grid
r 2 _ r2 r2
-
i~-i
i+1/2
i
(4.84a)
log e(r/e+1/ r/2)
for i = 1 , 2 , 3 . . . n - 1 ; /~2
r 2 -- 172
--
i-112
i
i-1
(4.85a)
l O g e (r/2 / F//21)
for i = 2,3...n r ; where =
I
re
)lln r
(4.86)
r1 = [ a~g log e(a~g)/(atg -- l ) ] r
(4.87)
Note that the reservoir internal boundary ( r ) and the reservoir external boundary ( re ) through which fluid may enter or leave the reservoir are respectively the internal boundary of gridblock 1 and the external boundary of gridblock n r that are used to calculate transmissibility. That is to say,
r~ 2 = rw and ~+1/2 = re by definition for a block-centered grid
(Ertekin, Abou-Kassem, and King 2001). The bulk volume of gridblock (i, j, k) is calculated from
Vbi.j,, = for i = l , 2 , 3 . . . n r - 1 ,
(Fi2+1/2 -- f/!.l/2
j=l,2,3...no,
)(1/22mOj )z~Zi,j,k
(4.88a)
k=l,2,3...n ;and
Vb...,., = ( ~ -- ~-,/2 )(~ A0)Az,, j,,
(4.88c)
for j = 1,2,3...n 0 , k = 1,2,3...n z . Example 4.8 Prove that the grid spacing in the radial direction defined by Eqs. 4.81 and 4.86 satisfies the condition of constant and equal pressure drops between successive points in steady-state radial flow of incompressible fluid. Solution The stead-state flow of incompressible fluid towards a well with radius r w in a horizontal reservoir with an external radius re is expressed by Darcy's Law,
-2Jrfl~ kHh
q--- ~
B/~ log~(
(Pe--Pw)" )
The pressure drop across the reservoir is obtained from Eq. 4.89 as
(4.89)
4.5 Calculation of Transmissibilities 93
-qB,uloge( -r-e-)
(P~-Pw) Let the reservoir be divided into
-
or
(4.90)
r
2~rfl k.h radial segments that are represented by
points i = 1,2,3...n, placed at r],r2,r3,...r~_l,rJi+] ..... r
. The location of these
points will be determined later (Eq. 4.81). For steady-state radial flow between points i + 1 and i ,
-2Xfl ckHh
q= - (Pi+I - Pi)" B/~ log~ ( -F/-+l) r~
(4.91)
The pressure drop between points i + 1 and i is obtained from Eq. 4.91 as
-qBlt log~ (~+a) r,.
( P i + I -- Pi ) =
(4.92)
2xfl ck~h
If the pressure drop over each of the radial distances (r,.1 -r~) for i = 1,2,3...n, - ] is chosen to be constant and equal, then
(Pe --Pw)
(Pi+l - Pi ) - -
-
(4.93)
nr
for i = 1,2,3...n,-1 . Substituting Eqs. 4.90 and 4.92 into Eq. 4.93 yields
1 r lOge( r"~ ) = - - l o g , ( - - ) r. n r
(4.94)
or
(r"--~l)= (re)"", r~
r
(4.95a)
for i = 1,2,3...n r - 1. For the convenience of manipulation, define ~lln~
(4.86) then Eq. 4.95a becomes
94
Chapter 4
Simulation
with a Block-Centered
Grid
(r,,,) % =
(4.95b)
ri or
(4.81)
ri+1 = algr' for i = 1,2,3...n r - 1 . Eq. 4.81 defines the locations of the points in the rdirection that result in equal pressure drops between any two successive points.
Example 4.9 Show that the block boundaries defined by Eq. 4.82a ensure that the flow rate across a block boundary is identical to that obtained from Darcy's Law. Solution
From Example 4.8, for steady-state radial flow of incompressible fluid between points i + ] and i , - 2 ~ f l ckHh - -
q=
B ~ l o g ~ ( G1 ) r.
(4.91)
(Pi+l-Pi)"
The steady-state fluid flow rate across a block boundary is also expressed by the differential form of Darcy's Law at block boundary ri+1/2 L
'
(4.96)
- 2 a r f l ¢knhri+l/2 q'~'~ln----
d I(+w"
B/~
The pressure gradient at a block boundary can be approximated, using central differencing, as _~F r/iln = Pi+l -- Pi
(4.97)
r.1 - r i
Substitution of Eq. 4.97 into Eq. 4.96 results in L
-27gfi,kHhri+l/2 Pi+l - Pi q (; "~ =
B t~
(4.98)
r . 1 - ri
If the flow rate calculated from Darcy's Law (Eq. 4.91) is identical to the flow rate calculated from the discretized Darcy's Law (Eq. 4.98), then - 2 X f l c k"H__h
B/~ log e (rs+l-) r
(p,+l - P i ) = -2~fl¢kl4hriLl/2 Pi-1 - Pi
(4.99)
4.5 Calculation
95
of Transmissibilities
which simplifies to give rL
_
i~112
r/. 1 - r/ log~ ri
(~+1)
(4.82a)
Eqs. 4.82a, 4.83a, 4.84a, 4.85a, 4 . 8 8 a and 4.88c can b e e x p r e s s e d in t e r m s o f r i and atg as r ,+112 L =
for i = 1 , 2 , 3 . . . n , - 1
{ ( a/g - 1)/[log~ (a~g)] }r~
(4.82b)
; r i-1/2 L = { ((~/g -- 1 ) / [ a Z g
log e
(a/g)] }r, -- ()/%)r/L1/2
(4.83b)
for i = 2, 3 . . . n ;
52÷112= {(a~g - l)/[log e (a~g)] }52
(4.84b)
for i = l,2,3...nr - 1 ; /.2
2
~-1/2 = {(a~g -
1) / [ a / g2 l o g e ( a , )2l }r~2
=
(/~/a/g)r/2+l/2
(4.85b)
for i = 2 , 3 . . . n ; Vb,/,, = {(a~g -- 1) 2 ][ t2~g log e (a~g)] }ri2 (1//2AOj )Az,,j, k
(4.88b)
for i = 1,2,3,...nr_ 1 ; and V b,,..,~ --
{ l - [log~ ( a / g ) / ( O : , g
- 1 )] 2 (a/g2
--1)/[a~g
loge(CC~g)]}re2(l/2AOj)AZ,,,,j,k
(4.88d)
for i = n r .
Example 4.10 Prove that Eqs. 4.82b, 4.83b, 4.84b, 4.85b, and 4.88b are equivalent to Eqs. 4.82a, 4.83a, 4.84a, 4.85a, and 4.88a, respectively. In addition, express the arguments of the log terms that appear in Table 4 - 2 and the gridblock bulk volume in terms of atg . Solution
Using Eq. 4.81, we obtain r,+~ - r~ = a~gr, - r~ = (alg - l)r~
(4.100)
r~+1/r, = a/g
(4.101)
Substitution of Eqs. 4.100 and 4.101 into Eq. 4.82a yields
96
Chapter 4
S i m u l a t i o n with a B l o c k - C e n t e r e d G r i d
r t" : r/+1 - r i i+1/2 lOge(r m / r )
(azg - 1)r/ loge(alg)i
= {(alg - l ) / l o g e ( a t g ) } r /
(4.102)
Eq. 4.102 can be rearranged to give
(4.103)
riLl/2 /F/ = (a/g -- l ) / l o g ~ ( a l g )
from which
(4.104)
lOge (r/Ll/2/r/) = loge[(alg - l)/lOge(al¢)] ) Eqs. 4.101 and 4.102 can be combined by eliminating r~, yielding
1 ,+~/2 - 1)(r+, / atg) = { (atg - 1)/[alg loge r1" log~ (alg) (at~
(OSlg)]}r/+ 1
(4.105)
Eq. 4.105 can be rearranged to give (4.106)
r,1 / r,~1/2 = [ % log, ( % ) ] / ( % - l) from which log~ (r,.+l / r/Ll/2) ~-~log~ { I% lOge ( a , ) ] / ( a l g Using Eq. 4.81 and replacing subscript i with i - I
-- 1) }
(4.107)
yields
r/ = 0:lgr._l
(4.108)
r~/r.1 = a1~
(4.109)
Substitution of Eqs. 4.108 and 4.109 into Eq. 4.83a yields r 1.
_
ri-r~-i
i-1/2
r~-ri/alg _{(atg_l)/[alglog~(atg)l}r ~
loge(r~/ri_l)
(4.110)
loge(atg )
Eq. 4.110 can be rearranged to give r. /
r.~/= = I% lOge (alg)]/(alg
- 1)
(4.111)
from which lOge (r i / riLl/2) = log A [ct~ lOge(atg)l/(alg - 1)}
(4.112)
Eqs. 4.108 and 4.110 can be combined by eliminating r , yielding r/Ll / 2 -- -
[(alg - 1) / alg ] (gig r,._, ) = [(atg - l) / log~ (alg)Jr,._ 1 log~ (alg)
Eq. 4.113 can be rearranged to give
(4.113)
4.5 Calculation
97
of Transmissibilities
(4.114)
r/L_u2/r~_~ = ( a , - 1)/loge(alg) from which L
(4.115)
C~
log~ (r~._u2 / re-1) = log~ [( tg - 1) / log e (alg)] Eqs. 4.102 and 4.110 are combined to get rL
,
{(alg-1)/l°g~(at~)}r~
~.
(4.116)
~+u2/r~-~/2 = {(a~ - 1 ) / [ c % loge (C% )] }r~ = c% from which
lOge (r/~1/2 / r/L_l/2) = loge(alg )
(4.117)
Substitution of Eqs. 4.81 and 4.101 into Eq. 4.84a yields r2
2i+1 _r2 (a~ -1)~ 2 2 2 ~ - 1) / log e (atg)]r lOge (r/2+1/ri2) |Oge(a~) , [(a2g
-
i+,/2
(4.118)
Substitution of Eqs. 4.108 and 4.109 into Eq. 4.85a yields /.~2
r2 - r 2 i ~-, log, (r/2 / r/2_1)
--
i--1/2
(1 - l/a~g)r/2 10 g,(a/g)2
2 - {(a~g - 1 ) / [ c %
lOge(a~g)] }r/2
(4.119)
Subtraction of Eq. 4.119 from Eq. 4.118 yields _r 2
r 2 i+1/2 --
-
(a~g
(Ct~g-1)
r2
i-1/2 -- lOge(a~g ) --
1
[(a~g - 1)/a~g ] 2 lOge(a~g )
i
(4.120)
ri
2
1)(l- /a,g)r2 ~ 2l 2 r2 log~(a~g) i = {(a;g - 1 ) 2/[0:ig Oge(alg)]} i •
Combining Eqs. 4.88a and 4.120 yields Vbi,j, k ~ ,~ta ( \ 2lg -- 1V ]
(4.121)
/ l a ~ loge(a~g)l}r~Z(1/zAO~)Azij,k
Eq. 4.121 can be used to calculate bulk volumes of gridblocks other than those that fall on the reservoir external boundary in the r direction. For blocks with i = nr ,
Eq. 4.88d is used and the proof is left as an exercise (Exercise 4-13).
E x a m p l e 4.10 demonstrates that quotients r I"
i+1/2"
/r L
i-1/2
r~/ ri~"l/2 , rli-1/2 / r - l ,
r I" rL+.2/r/ , r+l/i~u2
and
are functions of the logarithmic spacing constant Ct/g only as expressed in the
following equations: Fi /TiiLl/2 ~" [ a l g
loge(a~g)l/(alg - 1 )
(4.111)
98
Chapter 4
S i m u l a t i o n with a B l o c k - C e n t e r e d G r i d
r~Ll/2 I r~_1 = ( a~g - l) l log~ ( alg )
(4.114)
r~l/2 /rg = (a~g - 1)llog~(alg)
(4.103)
~+1 / r/L1/2 =
[alg 1Oge(alg)]/(alg
--l)
~+L,/2/r/~1/2 = alg
(4.106) (4.116)
By substituting the above five equations into the equations in Table 4 - 2 and observing that (~A0j)(r2~/2 -ri2_~/2) = Vb,,j.~/AZij,k using Eq. 4.88a, Table 4-3 is obtained. Now, the calculation of geometric factors and pore volumes can be simplified using the following algorithm. ( r -]1/,,, (1) Define atg ={~-w)
(2) Let r~
=
(4.86)
[alg loge(Cttg)/(alg - 1)]rw
(4.87) (4.122)
(3) Set r = ai-lr, tg 1 where i = 1,2,3,...n r . (4) For j = 1,2,3,...n 0 and k = 1,2,3,...n z set Vb,.j.k = {(C~g -- 1)2/1 a~g log e(a]g)] }r/2()~2AOj )ZXZi,j,k
(4.88b)
for i = 1,2,3,...n r - 1 ; and Vb,,,..,k --- { 1 - [ l o g e ( a ~ , ) / ( a t g - l'02(cz ,j , ,2-
1) / [ a ¢2g l o g e ( a ~ g ) ] } ~ ( ~ A_O j ) A z , , , .j~
(4.88d)
for i = n r . (5) Estimate the geometric factors using the equations in Table 4-3. Note that in the calculation of Gz,,2.j.~ , G~.......J., , G j ..... or Gz,,j.,,:.... , terms that describe properties of blocks that fall outside the reservoir i i = 0 , i = n r + 1, k = 0 , and k = n + 1 ) are discarded. Examples 4.11 and 4.12 show that reservoir discretization in the radial direction can be accomplished using either the traditional equations reported in the previous literature (Eqs. 4.81, 4.82a, 4.83a, 4.84a, 4.85a, 4.86, 4.87, 4.88a, and 4.88c) or those reported in this book (Eqs. 4.81, 4.82b, 4.83b, 4.84b, 4.85b, 4.86, 4.87, 4.88b, and 4.88d) that led to Table 4-3. The equations reported in this book, however, are easier and less confusing because they only use r~ and a~g. In Example 4.13, we demonstrate how to use Eq. 4.2a
4.5 Calculation of Transmissibilities
Table 4-3
99
G e o m e t r i c Factors in Cylindrical Grids
Direction
Geometric Factor
G
l/2,j,k
=
3~AOj {log.latg log.(alg)/(a~g _ 1)]l(Azio,kk~,.,.~) + log. I(% - 1) / log e(alg)]/(Azi<,j,kkr~_,.s.~) }
3cAOj G~'"2J'~ = {log. [(atg - 1) / log e(alg)]/(Azi,j,kk,.j,~ ) + log e[ al ~ log e(alg)/((Ztg - 1)]/(AZ.i+l,j,kk~t,,,,) } 2tic lOge (atg)
0 Goi,j ......
G
moj/(z~kZ
=
<J'~'~
i j kko ,~ ) + m o j 4 _ l / ( z ~ Z • , i,,-
i jT-1 kko , , i,j~:l,k
)
2tic (VbiJ'k ] l~lzi'j'k )
AZi,s, ~ I kz, o.~ + Azi4,~z_1 I kz,.i ......
and the appropriate expressions for q.,m...., along with Table 4-3, to write the flow equations for boundary and interior gridblocks in a 2D single-well simulation problem. Example 4.11 Consider the simulation of a single-well in 40-acre spacing. Wellbore diameter is 0.5 ft. The reservoir thickness is 100 ft. The reservoir can be simulated using a single layer discretized into five gridblocks in the radial direction.
(a) Find the gridblock spacing in the rdirection. (b) Find the gridblock boundaries in the rdirection for transmissibility calculations. (c) Calculate the arguments of the log e terms in Table 4-2. (d) Find the gridblock boundaries in the rdirection for bulk volume calculations and calculate bulk volumes. Solution
(a) The reservoir external radius can be estimated from well spacing, r = x / 4 3 , 5 6 0 x 4 0 / ~ = 744.73 ft, and well radius is given as r = 0.25 ft. e
First, estimate %g using Eq. 4.86,
__(744 73) ''5 a1~=[~.'J
~ 0.25 J =4.9524.
100
Chapter 4
Simulation with a Block-Centered Grid
Second, let r1 = [(4.9524) 1Oge(4.9524)/(4.9524-- 1)](0.25) = 0.5012 ft according to Eq. 4.87. Third, calculate the location of the gridblocks in the r direction using Eq. 4.122, r = Ctlglr~. As for example, for i = 2 , r2 = (4.9524) 2-1 x 0 . 5 0 1 2 = 2.4819 ft. Table 4 - 4 shows the location of the other gridblocks along the r-direction. (b) Block b o u n d a r i e s for transmissibility calculations ( rf_~/2,r~l/2 ) are estimated using Eqs. 4.82a a n d 4.83a.
For i = 2
, r3 - r 2 +1/2 =
12.2914-2.4819
(4.123)
= 6 . 1 3 1 5 ft.
loge(r3/r2) - 1Oge(12.2914/2.4819 )
r~,_1/2_
r 2 - - r1 l°ge(rz/5)
=
2.4819--0.5012 = 1 . 2 3 8 1 ft. ]Oge(2"4819/0"5012)
(4.124)
Table 4-4 shows the boundaries for transmissibility calculations for other gridblocks. (c) Table 4-4 shows the calculated values for r//r~m_l/2 , r,l/r/,'l/2 , r/_~l/2/r/_~, r/L+l/~/r/ , and ri,1/2 L /5!1/2 ' which appear in the argument of log, terms in .
Table 4-2. (d) The block boundaries for bulk volume calculations ( r/_~/2,r~+]/2 ) are estimated using Eqs. 4.84a and 4.85a.
Table 4-4
r. ,
r i~l/= I"
and log e Arguments
L ~+1/2
L i+1/2
0.5012
0.25 a
1.2381
2.005
2.005
2.47
2.47
4.9528
2.4819
1.2381
6.1315
2.005
2.005
2.47
2.47
4.9524
2.005
2.47
2.47
4.9524 4.9524
12.2914
6.1315
30.3651
2.005
60.8715
30.3651
150.379
2.005
2.005
2.47
2.47
301.457
150.379
744.73 b
2.005
2.005
2.47
2.47
a rl[~l/2 _- Fw = 0 . 2 5 L
ri+l
i-1/2
r L
b
in T a b l e 4 - 2 f o r E x a m p l e 4.11
r5~1/2 = r = 744.73
4.5 Calculation o f Transmissibilities
Table 4-5
a
101
G r i d b l o c k B o u n d a r i e s a n d B u l k V o l u m e s for G r i d b l o c k s in E x a m p l e 4.1 1
i
ri
ri_~/z
ri~]/2
Vb,
1
0.5012
0.2744
1.3589
556.4939
2
2.4819
1.3589
6.7299
13648.47
3
12.2914
6.7299
33.3287
334739.9
4
60.8715
33.3287
165.056
8209770
5
301.4573
165.056
744.73 a
165681140
rs~m = re = 744.73 For i = 2 ,
r~ r~-r2 (12"2914)z-(2"4819)2 = 45.2906 ft 2 ~1/2 log~(r~/r~) 10ge1(12.2914) 2/(2.4819) 2]
(4.125)
r~_1/2=
(4.126)
r~-r12 loge(r ~/r/2)
(2"4819)2-(0"5012)2 = 1 . 8 4 6 7 ft 2. loge[(2.4819) 2/(0.5012) 2]
Therefore, the gridblock boundaries for bulk volume calculations are
~+l/-~ = ~ r2_1/2 = ~
= 6.7298 ft ---- 1.3589
ft.
The bulk volume for the gridblocks can be calculated using Eqs. 4.88a and 4.880. For i = 2 ,
Vb~ = (r~+l/~- -- r~_l/2) ( ~
A0)Az 2
(4.127)
= [(6.7299) 2 - (1.3589) 2] ( ~ x 2~r) x 100 = 13648.47 ft3. For i = 5 ,
V~, = ( ~ - r~_l/2)(1/2 AO)A%
(4.128)
= [(744.73) 2 - (165.056) 21(72 x 2er) x 1130 = 165.68114 x 106 ft3. Table 4 - 5 shows the gridblock boundaries and the bulk volumes for other gridblocks.
102
Chapter 4
S i m u l a t i o n with a B l o c k - C e n t e r e d G r i d
Example 4.12
Solve Example 4.11 again, this time using Eqs. 4.82b, 4.83b,
4.84b, 4.85b, 4.88d, which make use of r~ and atg , and Eq. 4.88d. Solution
(a) From Example4.11, r =744.73 ft, r =0.25 ft, r~ =0.5012 ft, and al, = 4.9524. In addition, Table 4-4 reports radii of points representing gridblocks ( ri ) calculated using Eq. 4.122. (b) Block boundaries for transmissibilitycalculations ( ri-1/2 I" ~ri+1/2 I" ) are estimated using Eqs. 4.82b and 4.83b, yielding rL
i+1/2
= { ( ( z t g - l ) / [ l o g e (a~g)] }ri = { ( 4 . 9 5 2 4 - l ) / [ l o g e (4.9524)] }r~
(4.129)
= 2.47045r, r i-1/2 L = { (atg - l ) ][alg l o g e (a~g)] }ri = { ( 4 . 9 5 2 4 -- l ) / [ 4 . 9 5 2 4
l o g e ( 4 . 9 5 2 4 ) ] }ri (4.130)
= 0.49884r r
Substitution of the values of ~ into Eqs. 4.129 and 4.130 produces the results reported in Table 4-4. (c) T h e ratios r~/~Ll/2 ' ri+l/riLl/9_ ' rLi-1/2 /ri l ' rLil-1/2 It: , a n d r~]/2/ri('l/2 a s functions of alg w e r e derived in E x a m p l e 4.10 a s Eqs. 4 . 1 1 1 , 4 . 1 0 6 , 4.114, 4.103, a n d 4.116, respectively. Substitution of alg = 4 . 9 5 2 4 in t h e s e e q u a tions, we obtain: r//r.L_l/2 = [(ztg log e (alg)]/(~lg - l) = [4.9524 log e ( 4 . 9 5 2 4 ) ] / ( 4 . 9 5 2 4 - 1) = 2 . 0 0 5 , (4.131) f/_._1 /~LI/2
=
Ic~lg lOge(¢Zlg)]/(~Zlg-l)
= 2.005
r~'i-~/2/ri-1 = (alg - 1)/log~(~z~g) 2 .= ( 4 .49 5 2 4 -71 ) / l o g0~ (4.9524) • =
(4.132) (4.133)
r+Ll/2/r, = ( a , - 1 ) / l o g , ( a l g ) = 2.470
(4.134)
ri+1/2 L / ri-1/2 I" = I~'lg = 4 . 9 5 2 4
(4.135)
Note that the values of the above ratios are the same as those reported in Table 4-4. (d) Block boundaries for bulk volume calculations ( ~ .1/2,r+~/2 ) are estimated using Eqs. 4.84b and 4.85b.
4.5 Calculation of Transmissibilities
t.2 i+~2 ~
2 {(a~,~-l)/[l°ge(a~g)]}52
{((4"9524)2-1)/[l°ge((4.9524)2)l}r~2
103
(4.136)
= (7.3525)r 2 r21/2 = {(a~g - l)/[a~, loge(a~,)]}52 = {7.3525/(4.9524)2}52 = (0.29978)52
(4.137)
Therefore, 541/2 = ~J(7"3525)52 = (2.7116) 5
(4.138)
5-1/2 = ~J(O'29978)r/2 = (0.54752)r,
(4.139)
The bulk volume associated with each gridblock can be calculated using Eqs. 4.88b and 4.88d. For i = 1,2,3,4; Vb, = {(a~g - 1)2/[ct~g log, (a~g)] }ri 21/1~2(2~)12~
= {[(4.9524)2 -- 1]2 /[(4.952 4 ) 2 ]og~(4.9524) 2] }52[ ~ ( 2 = ) ] × 100 = 2215.752.
(4.140) For i = 5; Vb, = { 1- [log e (4.9524)/(4.9524-1)]2
x
[(4.9524) 2 - 11
/[(4.9524) 2 x log e ((4.9524) 2 )] } x (744.73) 2 ( ~ × 2ar) × 1 O0 = 165.681284 × 106. (4.141) Note that the values of estimated bulk volumes slightly differ from those reported in Table 4-5 due to round-off errors resulting from approximations in the various stages of calculations.
Example 4.13 A 0.5-ft diameter water well is located in 20-acre spacing. The reservoir thickness, horizontal permeability, and porosity are 30 ft, 150 md, and 0.23, respectively. The ( k v / k , ) for this reservoir is estimated from core data as 0.30. The flowing fluid has a density, FVF, and viscosity of 62.4 Ibm/fla, 1 RB/B, and 0.5 cp, respectively. The reservoir external boundary in the radial direction is a noflow boundary, and the well is completed in the top 20 ft only and produces at a rate of 2000 B/D. The reservoir bottom boundary is subject to influx such that the boundary is kept at 4000 psia. The reservoir top boundary is sealed to flow. Assuming the reservoir can be simulated using three equal gridblocks in the vertical direction and four gridblocks in the radial direction, as shown in Figure 4-14, write the flow equations for gridblocks 1, 3, 5, 7, and 11.
104
Chapter 4
Simulation with a Block-Centered Grid
Solution In order to write the flow equations, the gridblocks are first ordered using natural ordering ( n = 1,2,3,...10,11,12 ) as shown in Figure 4-14, in addition to being identified using the engineering notation along the radial direction ( i = 1,2,3,4 ) and the vertical direction ( k = 1,2,3 ). This is followed by the estimation of reservoir rock and fluid property data, the determination of the location of points representing gridblocks in the radial direction, and the calculation of gridblock sizes and elevation in the vertical direction. Next, bulk volumes and transmissibilities in the r and zdirections are calculated. We demonstrate in this example that block boundaries for transmissibility calculations and for bulk volume calculations are not needed if we use Eqs. 4.88b and 4.88d for bulk volume calculations and Table 4-3 for transmissibility calculations. Making use of the above information, we estimate the contributions of the gridblocks to well rates and fictitious well rates resulting from reservoir boundary conditions. Reservoir rock and fluid data are restated as follows: h = 30 if, ~ = 0.23,
k,=kH=]50
rod, kz=k,,(kv/kH)=150xO.30=45
md, B = ]
RB/B,
# = 0.5 cp, 7 = 7cPg = 0.21584x]0-3(62.4)(32.]74) = 0.4333 psi/if, r = 0.25 if, and the reservoir external radius is estimated from well spacing as r = (20 x 43560/~) 1/2 = 526.60 ft. The reservoir east (external) and upper (top) boundaries are no-flow boundaries, the reservoir lower (bottom) boundary has
Pb,. = 4000 psia, and the reservoir west (internal) boundary has q,ps~= -2000 B/D to reflect the effect of the production well (i.e., the well is treated as a boundary condition). 2000 STB/D 3oundary
No-flow boundary )ft
PbL=OUUUpsia T Figure 4-14
~r
Discretized 2D radial-cylindrical reservoir in Example 4.13.
4.5 Calculation o f Transmissibilities
For the block-centered grid shown in Figure 4-14, n r = 4 , =30/3=
Az k = h / n
105
nz = 3 ,
10 ft for k = 1,2,3 ; hence, Az, = 1 0 ft for
n = 1,2,3,4,5,6,7,8,9,10,11,12
and Azk+l/2 = 10 ft for k = 1,2. Assuming the top
of the reservoir as the reference level for elevation, Z = 5 ft for n = 9,10,11,12 ; Zn=15ftfor
n=5,6,7,8 ; Z =25ftfor
n = 1 , 2 , 3 , 4 ; a n d Zb, = 3 0 ft.
The locations of gridblocks in the radial direction are calculated using Eqs. 4.86, 4.87, and 4.122; i.e., alg = (526.60/0.25)
TM
= 6.7746 ,
r~ = [(6.7746) log~ (6.7746)/(6.7746 - 1)] x 0.25 = 0.56112 ft, r = (6.7746) "-1) (0.56112) for i = 2 , 3 , 4
or r2 = 3 . 8 0 1 4 ft, (3 = 2 5 . 7 5 3 ft, and r4 = 1 7 4 . 4 6 ft.
Eq. 4.88b is used to calculate bulk volume for gridblocks that have i = 1,2,3, V~,~ - { (O:~g - 1) 2/[O:~g log e(a~g)] }ri 2( ~ AO)Az,.k = { [(6.7746) 2 - 1] 2/[(6.7746) 2 log e ((6.7746) 2)]}r 2 (1/2 x 2zr)Az, = (36.0576)r.2Az~ and Eq. 4.88d for gridblocks that have i = n r = 4 ,
Vb,,,,~ = {1-[loge(c:le)/(alg -1)] 2 (alg2 _l)/[a]g
9}rf(1/2AOj)Z~nr,k loge(aTg)]
= { 1- [log e (6.7746)/(6.7746 - 1)]2 [(6.7746)2 _ 1]/[ (6.7746) 2 loge ((6.7746) 2)]} x(526.60) 2( ~ × 2~)Az k = (0.846740 × 106)Azk. Eq. 4.79c defines the transmissibility in the vertical direction, resulting in
T ~i,-.... 2 = G ........ ( ~ B ) = G: ......... ( 0 . 5 ~ )
= (2)G-~i,kTll2
(4.142)
where Go~i,kTll2 is defined in Table 4-3 as 2tic (Vb,.,/AZk) =
G .........
AZ k / k_< + AZk~ J / k ......
For this problem, gridblock spacing, thickness, and permeability in the vertical direction are constants. Therefore, Eq. 4.143 reduces to
(4.143)
106
Chapter 4
Simulation with a Block-Centered Grid
G.~i,k:tl2
_ 'Sck,(V~,.k/~)
Az~
or after substitution for values it becomes
G.~ i , k : l l 2
= (1.127 x 10 -3)(45)(36.0576 x r~2)
= (0.182866)ri 2
(4.144a)
10
for i=1,2,3 and k = ] , 2 , 3 and
G.~i,kzll2 for i = 4
= (1.127 × 10 -3)(45)(0.846740 x 106)
= 4294.242
(4.144b)
10
and k = 1 , 2 , 3 .
Substituting Eq. 4.144 into Eq. 4.142 results in
(4.145a)
T ........ = 2(0.182866)r/2 = (0.365732)r/2
for i=1,2,3 and k =1,2,3 and
(4.145b)
Tzi ,k¢ 1/ 2 = 2(4294.242) = 8588.484
for i = 4
and k = 1 , 2 , 3 .
Eq. 4.79a defines the transmissibility in the r direction, yielding ) = C .........( , ,-.-.~, ^) , = (2)G ........ T ,. . .... . =. . .Q. . . . ( !/~B
(4.146)
where G~........ is defined in Table 4-3. With A8 = 2Jr and constant radial permeability, the equation for the geometric factor reduces to 2~flckrz~lZk
G~....... = log e { [ aZg log e (alg) I(alg - 1)1 × [(a~g - 1) / log e
(lS(,lg)l}
(4.147)
_ 2grflckrAZ k _ 27g(0.001 ] 27)(150)Az k _ (0.5551868)Az~. log e (os~g) log e (6.7746)
Therefore, transmissibility in the radial direction can be estimated by substituting Eq. 4.147 into Eq. 4.146, T ....... = (2)Gr ...... = (2)(0.5551868)AZ k = (1.1103736)AZ k
(4.148)
Table 4-6 lists the estimated transmissibilities in the radial and vertical directions and bulk volumes. Before writing the flow equation, the well production rate (the specified rate for the reservoir west boundary) must be prorated between gridblocks 5 and 9 using Eq. 4.28,
4.5 Calcu~tion of Transmissibilities Table 4-6
107
Gridblock Location, Bulk V o l u m e , and Radial and V e ~ i c a l Transmissibilities for E x a m p l e 4 . 1 3
n
Az.
Zn
(R)
(R)
(R)
(R3)
(B/D-psi)
(B/D-psi)
.......
L .......
1
1
1
0.56112
10
25
113.5318
11.10374
0.115155
2
2
1
3.8014
10
25
5210.583
11.10374
5.285098
3
3
1
25.753
10
25
239123.0
11.10374
242.5426
4
4
1
174.46
10
25
8467440.
11.10374
8588.532
5
1
2
0.56112
10
15
113.5318
11.10374
0.115155
6
2
2
3.8014
10
15
5210.583
11.10374
5.285098
7
3
2
25.753
10
15
239123.0
11.10374
242.5426
8
4
2
174.46
10
15
8467440.
11.10374
8588.532
9
1
3
0.56112
10
5
113.5318
11.10374
0.115155
10
2
3
3.8014
10
5
5210.583
11.10374
5.285098
11
3
3
25.753
10
5
239123.0
11.10374
242.5426
12
4
3
174.46
10
5
8467440.
11.10374
8588.532
m
m
qsc~,b. ~ Tb,]qspsc
(4.28)
I(-~Yb
where
Tb~'bB= transmissibility in the radial direction between reservoir boundary b
and gridblock bBwith the well being the reservoir internal boundary and y2b = y2w = {5,9}. Note that gridblock 1 has a no-flow boundary because it is not penetrated by the well; i.e., q m
=0
From Table 4-6, Tb~,5 = T r5,6 m = l 1.10374
B/D-psi
Z m = T 'n = 1 1 . 1 0 3 7 4
B/D-psi.
b w ,9
r9,1o
108
Chapter 4
Simulation with a B l o c k - C e n t e r e d Grid
The application of Eq. 4.28 results in qm
=
11.10374
×(-2000)=-1000
B/D
11.10374 qm = x (-2000) = -1000 s%,, 11.10374+11.10374
B/D.
~':~~ 11.10374+11.10374
With this treatment of the production well, qm = 0 for each gridblock (including scn gridblocks 1,5, and 9). For the reservoir lower boundary, Pb,. = 4000 psia. The flow rates of the fictitious wells in gridblocks 1, 2, 3, and 4 are estimated using Eq. 4.37c, yielding q",%,, = TY b,,,n[(4000--P,)--(0"4333)(30-- 25)] B/D
(4.149)
where T." bL ,n is estimated using Eq. 4.29 and A zn = Vb./Az,, TbL,n m
kA :
~c
Zn Zn
/zB(Az,/2)
45 × (Vb,' / A z , ) = 0.001127 x 0 . 5 x 1 x (10 / 2)
(4.150)
= (0.0020286)Vb, ,.
For the reservoir east and upper (no-flow) boundaries, qm
=
SObE,n
and qm SCb~,,n = 0 for n=9,10,11,12
0 for n = 4,8,12
Yable 4-7 summarizes the contributions of
gridblocks to well rates and fictitious well rates. The general form of the flow equation for gridblock n is obtained from Eq. 4.2a, ZT,
. . . . . . . . .
lnll'Pt, - P , ) - T t , ( .
zm
Vbn
l," (~ \n+l
z - Z ~ ' ) ] + Z q . ~ , , ° +qm _ ----7 " l t - z ) n
(~ n
--('~')n]
(4.2a)
For gridblock 1, n = l , i = 1, k = 1 , ~1 = {1,5}, ~'1 = {b.,.,bw}, and
Z q.~,., = qm,%, + q~, , where from Table 4-7, m
qs%,"" = (0.23031)[(4000-p~")-(0.4333)(30-25)]
B/D and q"SCbw,1 = 0 I and
q,~c, = 0 . Therefore, substitution into Eq. 4.2a yields (11.10374)1(p 2 - p~") - (0.4333)(25 - 25)] + m m) (0.115155)[ (P5 -- Pl -- (0.4333)(15 -- 2 5 ) ] + ( 0 . 2 3 0 3 1 ) [ ( 4 0 0 0 - p~') - (0.4333)(30 - 25)] + 0 + 0 =
113.5318 l~q~,+l ~P , ¢~cm t t','B-'l -- ('B)I ]" (4.151)
4.5 Calculation o f Transmissibilities
Table 4-7
C o n t r i b u t i o n of G r i d b l o c k s t o W e l l R a t e s a n d F i c t i t i o u s W e l l Rates
i
k
q,,
qm
qm
n
109
qm
q,,
SfbL ,n
scbw ,n
SCbE ,n
SCLL, ,n
(B/D)
(B/D)
(B/D)
(B/D)
(B/D)
'~.
1
1 1
0
( 0 . 2 3 0 3 1 ) [ ( 4 0 0 0 - p~") - ( 0 . 4 3 3 3 ) ( 3 0 - 25)1
2
2
1
0
( 1 0 . 5 7 0 2 ) [ ( 4 0 0 0 - P2') - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]
3
3
1
0
( 4 8 5 . 0 8 5 ) [ ( 4 0 0 0 - P 3 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]
4
4
1
0
(17177.1) [ ( 4 0 0 0 - P 4 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]
5
1 2
0
6
2 2
0
7
3 2
0
8
4 2
0
9
1 3
0
10
2 3
0
0
11
3 3
0
0
12
4 3
0
-1000
-1000
0
0
0
For gridblock 3, n = 3 , i = 3
, k = 1 , ~'3 = {2,4,7} , ~3 = {b/.} , and
~ q m$Cl,3 = q,,~CbL,3 ' where from Table 4-7, q"
SObL ,3
= (485.085)[(4000-p~')-(0.4333)(30-25)]
B/D, and q,~, = 0
(no
wells). T h e r e f o r e , s u b s t i t u t i o n into Eq. 4 . 2 a y i e l d s ( 1 1 . 1 0 3 7 )4[ ( P 2 m _ P 3 ) -- ( 0 . 4 3 3 3 ) ( 2 5 -- 25)] + ( 1 1 . 1 0 3 7 4 ) [ ( p 4 -- P 3 ) -- ( 0 . 4 3 3 3 ) ( 2 5 -- 25)1 + ( 2 4 2 " 5 4 2 6 ) [ ( P 7 -- P3') -- ( 0 . 4 3 3 3 ) ( 1 5 -- 25)]
+(485.0852)[(4000- p~")- (0.4333)(30- 25)]+ 0 -
239123.0 [ ( ~ + 1 tp , ~ ,,3,3 - (3)3 ](4.152)
For gridblock5, Y--,q,~,.5 = q "sCl,w , 5
le~5
n= 5 , i= 1, k = 2,
'
~P5 = {1,6,9}, ~5 = {bw} ' a n d
w h e r e from T a b l e 4--7, q "scbw,5 = - 1 0 0 0
B/D, a n d q,'~5 = 0 (the
I 10
Chapter 4
Simulation with a Block-Centered Grid
well is treated as a boundary condition). Therefore, substitution into Eq. 4.2a yields
(0.I 15155)1(p~' - p~") - (0.4333)(25 - 15)] +(11.10374)[(p6 - p~') - (0.4333)(15 - 15)] +(0.115155)[(p9' - P~") - (0.4333)(5 - 15)] - 1000 + 0 =
113.5318 i(~b~,,+l ~ , ~ ,,~,5 - (~)5 ]. (4.153)
For gridblock 7, n = 7 ,
i=3,
k=2,
~p7={3,6,8,11}, ~ 7 = { } , ~ q m : , = 0 IE~7
(interior gridblock), and q.~, = 0 (no wells). Therefore, substitution into Eq. 4.2a yields (242.5426)[(p~' - p~') - (0.4333)(25 - 15)]
+(11.10374)1(p~ - P7') - (0.4333)(15 - 15)] +(11.10374)[(p 8 - P7) - (0.4333)(15 - 15)] i
+(242.5426)I(p~ - P~") - (0.4333)(5 - 15)] + 0 + 0 = 23912____33.0[(~)~+1 _ (~)7 ]. acAt (4.154) For gridblock11, n = l l , m = m ~_~ q ....... qs%.,,
,
i=3,
k=3,
~p~={7,10,12}, ~11={bv},
,,,
qs%.l, = 0 (no-flow boundary), and qm,c,, = 0 (no wells). There-
/~11
fore, substitution into Eq. 4.2a yields (242.5426)[(p7 - p ~ ) - (0.4333)0 5 - 5)] m
m
+(11.10374)I(Plo - p,,) - (0.4333)(5 - 5)]
+(ll.10374)[(p~-p~)-(0.4333)(5-5)]+0+0=
239123.0 q~ ,+l_(~b~, ] ~ I(~)H ,B,11,. (4.155)
4.6
Symmetry and Its Use in Solving Practical Problems
Reservoir rock properties are heterogeneous, and reservoir fluids as well as fluid-rock properties vary from one region to another within the same reservoir. In other words, it is rare to find a petroleum reservoir that has constant properties. The literature, however, is rich in study cases in which homogeneous reservoirs were modeled to study flood patterns such as five-spot and nine-spot patterns. In teaching reservoir simulation, educators as
4.6 Symmetry and Its Use in Solving Practical Problems
111
well as textbooks in this area make use of homogeneous reservoirs most of the time. If reservoir properties vary spatially region-wise, then symmetry may exist. The use of symmetry reduces the efforts to solve a problem by solving a modified problem for one element of symmetry in the reservoir, usually the smallest element of symmetry (AbouKassem, Ertekin, and Lutchmansingh 1991). The smallest element of symmetry is a segment of the reservoir that is a mirror image of the rest of reservoir segments. Before solving the modified problem for one element of symmetry, however, symmetry must first be established. For symmetry to exist about a plane, there must be symmetry with regard to (1) the number of gridblocks and gridblock dimensions, (2) reservoir rock properties, (3) physical wells, (4) reservoir boundaries, and (5) initial conditions. Gridblock dimensions deal with gridblock size ( Ax, Ay, Az ) and gridblock elevation (Z). Reservoir rock properties deal with gridblock porosity ( ~b ) and permeability in the various directions ( k x , k y , k ). Wells deal with well location, well type (injection or production), and well operating condition. Reservoir boundaries deal with the geometry of boundaries and boundary conditions. Initial conditions deal with initial pressure and fluid saturation distributions in the reservoir. Failing to satisfy symmetry with respect to any of the items mentioned above means there is no symmetry about that plane. The formulation of the modified problem for the smallest element of symmetry involves replacing each plane of symmetry with a no-flow boundary and determining the new interblock geometric factors, bulk volume, wellblock rate, and wellblock geometric factor for those gridblocks that share their boundaries with the planes of symmetry. To elaborate on this point, we present a few possible cases. In the following discussion, we use bold numbers to identify the gridblocks in the element of symmetry which require determining new values for their bulk volume, wellblock rate, wellblock geometric factor, and interblock geometric factors. The first two examples show planes of symmetry that coincide with the boundaries between gridblocks. Figure 4-15a presents a 1D flow problem in which the plane of symmetry A-A, which is normal to the flow direction (x direction) and coincides with the boundary between gridblocks 3 and 4, divides the reservoir into two symmetrical elements. Consequently, Pl = P6 ' P: = P5, and P3 = P 4 • The modified problem is represented by the element of symmetry shown in Figure 4-15b, with the plane of symmetry being replaced with a no-flow boundary. Figure 4-16a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane of symmetry A-A is normal to the x direction and coincides with the boundaries between gridblocks 2, 6, 10, and 14 on one side and gridblocks 3, 7, 11, and 15 on the other side. Plane of symmetry B-B is normal to the y direction and coincides with the boundaries between gridblocks 5, 6, 7, and 8 on one side and gridblocks 9, 10, 11, and 12 on the other side. The two planes of symmetry divide the reservoir into four symmetrical elements. Consequently, Pl = P4 "=-P13 = P16 ' P2 = P3 = P14 = P15 ' P5 = P8 = P9 = P12 ' and ,06 = P7 = Plo = Pll • The modified problem is represented by the smallest element of symmetry shown in Figure 4-16b, with each plane of symmetry being replaced with a no-flow boundary.
112
Chapter 4
Simulation with a Block-Centered Grid
.11 1.3:
i. l ~x
I A (a) Whole reservoir and plane of symmetry
~x
A (a) Whole reservoir and plane of symmetry A
A
I
3
I
I,N°-fowb°undary
I 1 I
2
3}(No-flowbeundary )X
A (b) Smallest element of symmetry
Figure 4-15 Figure 4-17
I
A (b) Smallest element of symmetry
Reservoir with even gridblocks exhibiting a vertical plane of symmetry (left). Reservoir with odd gridblocks exhibHing a vertical plane of symmetry (right). A I I
B --_
13
14
115
16
•9
•1(3
• 11
•12
•5
•6
.7
•8
1
2
3
4
8i --B
B --_
),x
No-flow boundary "~
I Y
T
. . . . .
4
51
1
2I
I _B
•5 1
• 6 I No-flowboundary 2 I(
)x A (b) Smallest element of symmetry
,m
B
3
I I
A (a) Whole reservoir and planes of symmetry
A i
I--m
6
I
}~x
(a) Whole reservoir and planes of symmetry B-
°
I I
No-flow boundary B_
Y
T
A
~
I---B
;!
5'
1
2
( No-flowboundary
'
)x A (b) Smallest element of symmetry
Figure 4-16 Reservoir with even gridblocks in the xand ydirections exhibiting two vertical planes of symmetry (left). Figure 4-18 Reservoir with odd gridblocks in the xand ydirections exhibiting two vertical planes of symmetry (right). The second two examples show planes of symmetry that pass through the centers of gridblocks. Figure 4-17a presents a ID flow problem where the plane of symmetry A-A, which is normal to the flow direction (x direction) and passes through the center of grid-
4.6 Symmetry and Its Use in Solving Practical Problems
block 3, divides the reservoir into two symmetrical elements. Consequently, Pl
=
113
P5 and
P2 = P4 - The modified problem is represented by the element of symmetry shown in Figure 4-17b, with the plane of symmetry being replaced with a no-flow boundary. This plane of symmetry bisects the gridblock bulk volume, wellblock rate, and wellblock geometric factor for gridblock 3 in Figure 4-17a. Therefore, for gridblock 3, V~ =½Vb3 ,
qsc, -2-1qsc~, and Gw3 =!2G,,,,~. Note that the interblock geometric factor in the direction normal to the plane of symmetry ( Gx2.~ ) is not affected. Figure 4-18a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane A-A is a vertical plane of symmetry that is parallel to the y-z plane (normal to the x direction) and passes through the centers of gridblocks 2, 5, and 8. Note that gridblocks 1, 4, and 7 are mirror images of gridblocks 3, 6, and 9. Plane B-B is a vertical plane of symmetry that is parallel to the x-z plane (normal to the y direction) and passes through the centers of gridblocks 4, 5, and 6. Note that gridblocks 1, 2, and 3 are mirror images of gridblocks 7, 8, and 9. The two planes of symmetry divide the reservoir into four symmetrical elements. Consequently, Pl = P3 = P7
=
P9
'
P4 = P6, and P2 = P8 • The modified problem is repre-
sented by the smallest element of symmetry shown in Figure 4-18b, with each plane of symmetry being replaced with a no-flow boundary. Each plane of symmetry bisects the block bulk volume, wellblock rate, and wellblock geometric factor of the gridblock it passes through and bisects the interblock geometric factors in the directions that are parallel to the plane of symmetry. Therefore, Vb2 =I V~ , qsc~ =½qsc2 , Gw2 =½Gw~ ; Vb, =½Vb4 '
q~c=½qsc., Gw=½Gw4 ; Vbs=lVb5 ' q~c=¼qs~, ax4, 5
G s=¼G
; G.=½Gy~.~; a n d
= ±G Because gridblocks 2, 4, and 5 fall on the boundaries of the element of 2 x4, 5 •
symmetry, they can be looked at as if they were gridpoints as in Chapter 5, and the same bulk volumes, wellblock rates, wellblock geometric factors, and interblock geometric factors will be calculated as those reported above. Note also that a plane of symmetry passing through the center of a gridblock results in a factor of ½, as in gridblocks 2 and 4. Two planes of symmetry passing through the center of a gridblock result in a factor of
½~1__ ~: - ¼, as in gridblock 5. The third example presents two planes of symmetry, one coinciding with the boundaries between the gridblocks and the other passing through the centers of the gridblocks. Figure 4-19a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane A-A is a vertical plane of symmetry that is parallel to the y-z plane (normal to the x direction) and passes through the centers of gridblocks 2, 5, 8, and 11. Note that gridblocks 1, 4, 7, and 10 are mirror images of gridblocks 3, 6, 9, and 12. Plane B-B is a vertical plane of symmetry that is parallel to the x-z plane (normal to the y direction) and
114 Chapter 4 Simulationwith a Block-Centered Grid coincides with the boundaries between gridblocks 4, 5, and 6 on one side and gridblocks 7, 8, and 9 on the other side. Note that gridblocks 1, 2, and 3 are mirror images of gridblocks 10, 11, and 12. Addionally, gridblocks 4, 5, and 6 are mirror images of gridblocks 7, 8, and 9. The two planes of symmetry divide the reservoir into four symmetrical elements. Consequently, P l = P 3 = PlO = Pl~- ' P 4 = P 6 = P 7 = P 9 ' P2 = Pll, and P5 = P8 • The modified problem is represented by the smallest element of symmetry shown in Figure 4-19b, with each plane of symmetry being replaced with a no-flow boundary. Plane of symmetry A-A bisects the block bulk volume, wellblock rate, and wellblock geometric factor of the gridblocks it passes through and bisects the interblock geometric factors in the directions that are parallel to the plane of symmetry (y direction in this case). Therefore, Vb2 =xV, 2 b2
,
qsc2:½qsc2, Gw2=½Gw2; Vb,:½Vbs, qsc~:½q~,c~, Gw~=½G~; Vb,=½Vb~, qs,.,=¼q,cs, Gw,=±G 4 w8 , •
a v811
Vbll =±V" 2 bll,
qs~,, = ±4 q sclt ,
_1 Gw,-TGwl, ;
Gyz, s = ± 2Gyz,5 ; Gys, 8 = ± 2G
y5,8
; and
= ±G Because gridblocks 2, 5, 8, and 11 fall on the boundaries of the element of 2 Y8,11 "
symmetry, they can be looked at as if they were gridpoints as in Chapter 5, and the same bulk volumes, wellblock rates, wellblock geometric factors, and interblock geometric factors will be calculated as those reported above. Note also that a plane of symmetry passing through the center of a gridblock results in a factor of ½, as in gridblocks 2, 5, 8, and 11 in Figure 4-19a. The fourth set of examples show oblique planes of symmetry. Figure 4-20a shows a reservoir similar to that depicted in Figure 4-16a, but the present reservoir has two additional planes of symmetry C-C and D-D. The four planes of symmetry divide the reservoir into eight symmetrical elements, each with a triangular shape as shown in Figure 4-20b. Consequently, P l = P 4 = P13 = P16 '
P6 = P7 =
Pl0 = Pll , and P2
= P 3 = P14
=
P15 = P5 = P8
= P 9 = P12 "
The modified problem is represented by the smallest element of symmetry shown in Figure 4-20b, with each plane of symmetry being replaced with a no-flow boundary. Figure 4-21a shows a reservoir similar to that depicted in Figure 4-18a, but the present reservoir has two additional planes of symmetry C-C and D-D. The four planes of symmetry divide the reservoir into eight symmetrical elements, each with a triangular shape as shown in Figure 4-21b. Consequently, pl = P3 =
P7 =
P9 and P4 = P6 = P2 = P8 • The modified
problem is represented by the smallest element of symmetry shown in Figure 4-21b, with each plane of symmetry being replaced with a no-flow boundary. A vertical plane of symmetry C-C or D-D that passes through the center of a gridblock but is neither parallel to the x axis nor the y axis (oblique plane), as shown in Figure 4-20a and Figure 4-21a, bisects the gridblock bulk volume, wellblock rate, and wellblock geometric factor of the gridblock it passes through. An oblique plane does not affect the interblock geometric factors in the x axis or the y axis. In reference to gridblocks 1, 6, and 5 in Figure 4-20 and Figure 4-21,
Vb,=½V~, qsc,=½qs~, Q.=½G,,,; Vb=½Vb~, qsc=½q~,~, Gwo=½G~; Vb=½Vb, ,
4.7 S u m m a r y
10
11
12 No-flow boundary
7 4 1
8
9
B mm B
5
~
A
I -B
4
6
2
3
Y
No-flow boundary y
T ,x )x
(a) Whole reservoir and planes of symmetry
Figure 4-19
115
1 •
2 ~ I A
(b) Smallest element of symmetry
Reservoir with even gridblocks in the y direction and odd gridblocks in the x direction exhibiting two vertical planes of symmetry.
qsc~ =~ q,cs , G,,, =is G,,,' ; G,~2,, = ½ G y.: ; and Gx~,, = Gx2.6 . Note that the four planes of symmetry (A-A, B-B, C-C, and D-D) passing through the center of gridblock 5 in Figure 4-21a result in the factor of 7 x 71- ~ 11 used to calculate the actual bulk volume, wellblock rate, _
_
and wellblock geometric factor for gridblock 5 in Figure 4-21b. That is to say, the modil_J_ > 1_
fying factor equals ,,~,, ~, where n,p is the number of vertical planes of symmetry passing through the center of a gridblock. It should be mentioned that set ~,, for gridblocks in the modified problem might include new elements such as bsw,bNw,bsE,bNL that reflect oblique boundaries such as plane C-C or D-D. The flow rates across such boundaries ( qm ) are set to zero because these boundaries represent no-flow boundaries.
4.7
Summary
This chapter presents reservoir discretization in Cartesian and radial-cylindrical coordinates using a block-centered grid. For the Cartesian coordinate system, equations similar to those represented by Eq. 4.1 define gridblock locations and the relationships between gridblock sizes, gridblock boundaries, and distances between points representing gridblocks in the x, y, and z directions, and Table 4-1 presents equations for the calculation of the transmissibility geometric factors in the three directions. For the radial-cylindrical coordinate system used for single-well simulation, the equations that define block locations and the relationships between gridblock sizes, gridblock boundaries, and distances between points representing blocks in the r direction are given by Eqs. 4.81 through 4.88, Eq. 4.80 in the 0direction, and an equation similar to Eq. 4.1 for the z direction. The equations in either Table 4-2 or Table 4-3 can be used to calculate transmissibility geometric
116
Simulation with a Block-Centered Grid
Chapter 4
D
\~13
14
15•
/
~. \ % \
/
X
4
8 %
i
I / "/ I Z I / I_ / --B
B -
,--.B \7
2"
"/IX //5i
\
/
Y
,/ ,/
6 \\
I
\
I
%
3
2
,/ C A (a) Whole reservoir and Y
I
12 •
N / / % /
C /
t
11// ,o
%
A I
1~¢," /
B --
D \
/ C
A
N
A
% "D planes
of symmetry
I
C
A
(a) Whole reservoir
A
T x/' Y
C
N o _ f l o w ~T - ~ x No-flowboundary
/ A
(b) Smallest element of symmetry
No-flow~
/ C
D
and planes
of symmetry
C
2 q No-flowboundary
/ (b) Smallest element of symmetry
Figure 4-20 Reservoir with even gridblocks in the xand y directions exhibiting four vertical planes of symmetry (left). Figure 4-21 Reservoir with odd gridblocks in the xand ydirecUons exhibiting four vertical planes of symmetry (right). factors in the r, 8, and z directions. Eq. 4.2 expresses the general form of the flow equation that applies to boundary gridblocks as well as interior gridblocks in 1D, 2D, or 3D flow in both Cartesian and radial-cylindrical coordinates. The flow equation for any gridblock has flow terms equal to the number of existing neighboring gridblocks and fictitious wells equal to the number of boundary conditions. Each fictitious well represents a boundary condition. The flow rate of a fictitious well is given by Eq. 4.24, 4.27, 4.32, or 4.37 for a specified pressure gradient, specified flow rate, no-flow, or specified pressure boundary condition, respectively. If reservoir symmetry exists, it can be exploited to define the smallest element of symmetry. Planes of symmetry may pass "along block boundaries or through block centers. To simulate the smallest element of symmetry, planes of symmetry are replaced with no-flow boundaries and new interblock geometric factors, bulk volume, wellblock rate, and wellblock geometric factors for boundary blocks, in the element of symmetry, are calculated prior to simulation.
4.8 Exercises
4.8
Exercises
4-1
What is the meaning of reservoir discretization into gridblocks?
4-2
Using your own words, describe how you discretize a reservoir of length Lx along the x direction using n gridblocks.
4-3
Figure 4-5 shows a reservoir with regular boundaries. (a) How many boundaries does this reservoir have Identify and name these boundaries. (b) How many boundaries does this reservoir have Identify and name these boundaries. (c) How many boundaries does this reservoir have Identify and name these boundaries. (d) How many boundaries does this reservoir have
4-4
along the x direction? along the y direction? along the z direction? along all directions?
Consider the 2D reservoir described in Example 4.5 and shown in Figure 4-12. (a) Identify the interior and boundary gridblocks in the reservoir. (b) Write the set of neighboring gridblocks ( ~0 ) for each gridblock in the reservoir. (c) Write the set of boundaries ( ~, ) for each gridblock in the reservoir. (d) How many boundary conditions does each boundary gridblock have? How many fictitious wells does each boundary gridblock have? Write the terminology for the flow rate of each fictitious well. (e) How many flow terms does each boundary gridblock have? (f) Add the number of flow terms and number of fictitious wells for each boundary gridblock. Do they add up to four for each boundary gridblock? (g) How many flow terms does each interior gridblock have? (h) What can you conclude from your results of (f) and (g) above?
4-5
Consider fluid flow in the 1D horizontal reservoir shown in Figure 4-22. (a) Write the appropriate flow equation for gridblock n in this reservoir. (b) Write the flow equation for gridblock 1 by finding ~Pl and ~1 and then using them to expand the equation in (a). (c) Write the flow equation for gridblock 2 by finding ~P2 and ~2 and then using them to expand the equation in (a). (d) Write the flow equation for gridblock 3 by finding ~P3 and ~3 and then using them to expand the equation in (a).
Pbw= 2000 psia
% % = -100 STB/D
~,,
Figure 4-22
1D reservoir in Exercise 4-5.
117
118
4-6
Chapter 4
Simulation with a Block-Centered Grid
Consider fluid flow in the 2D horizontal reservoir shown in Figure 4-23. No-flow boundary y
~(9
,.x '-
5
• 10
6
No-flow bour
7
®8
Pb~ -- 3000 psia
--~'bE -2 psi/ft 1
2
3
4
" Pbs = 3 0 0 0 p s i a
Figure 4-23
2D reservoir for Exercise 4-6,
(a) Write the appropriate flow equation for gridblock n in (b) Write the flow equation for gridblock 1 by finding ~1 using them to expand the equation in (a). (c) Write the flow equation for gridblock 3 by finding ~O3 using them to expand the equation in (a). (d) Write the flow equation for gridblock 5 by finding ~5 using them to expand the equation in (a). (e) Write the flow equation for gridblock 9 by finding ~9 using them to expand the equation in (a).
this reservoir. and ~1 and then and ~3 and then and ~5 and then and ~9 and then
4-7
Consider single-phase flow in a homogeneous, 1D reservoir with constant pressure specification at the reservoir left boundary. The reservoir is discretized using a regular grid. Write the flow equation for gridblock 1, which shares its left boundary with the reservoir, and prove that Pb = ~ (3Pl - P 2 ) • Aziz and Settari (1979) claim that the above equation represents a second-order correct approximation for boundary pressure.
4-8
A single-phase oil reservoir is described by four equal gridblocks as shown in Figure 4-24. The reservoir is horizontal and has k = 25 md. Gridblock dimensions are Ax = 500 ft, Ay = 700 ft, and h = 60 ft. Oil properties are B = 1 RB/STB and p = 0.5 cp. The reservoir left boundary is maintained at constant pressure of 2500 psia, and the reservoir right boundary is sealed off to flow. A well in gridblock 3 produces 80 STB/D of oil. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir.
4-9
A 1D horizontal oil reservoir shown in Figure 4-25 is described by four equal gridblocks. Reservoir blocks have k = 90 md, Ax = 300 ft,
4.8 Exercises
119
80 STB/D
Z
pb w = 2501
'low b o u n d a r y
Figure 4-24
Discretized 1D reservoir in Exercise 4-8.
Ay = 250 ft, and h = 45 ft. Oil FVF and viscosity are 1 RB/STB and 2 cp, respectively. The reservoir left boundary is maintained at constant pressure of 2000 psia, and the reservoir right boundary has a constant influx of oil at a rate of 80 STB/D. A well in gridblock 3 produces 175 STB/D of oil. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. 175 STB/D
z
pbw = 200
;b. = 80 S T B / D
Figure 4-25
Discretized 1D reservoir in Exercise 4-9.
4-10
A 1D horizontal oil reservoir shown in Figure 4-26 is described by four equal gridblocks. Reservoir blocks have k = 120 md, Ax = 500 ft, Ay = 450 ft, and h = 30 ft. Oil FVF and viscosity are 1 RB/STB and 3.7 cp, respectively. The reservoir left boundary is subject to a constant pressure gradient o f - 0 . 2 psi/ft, and the reservoir fight boundary is a no-flow boundary. A well in gridblock 3 produces oil at a rate such that the pressure of gridblock 3 is maintained at 1500 psia. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. Then estimate the well production rate.
4-11
A 1D horizontal oil reservoir shown in Figure 4-27 is described by four equal gridblocks. Reservoir blocks have k = 70 md, Ax = 400 ft, Ay = 660 ft, and h = 10 ft. Oil FVF and viscosity are 1 RB/STB and 1.5 cp, respectively. The reservoir left boundary is maintained at constant pressure of 2700, while the boundary condition at the reservoir right boundary is not known but the pressure of gridblock 4 is maintained at 1900 psia. A well in gridblock 3 produces 150 STB/D of oil. Assuming that
Chapter 4
120
Simulation with a Block-Centered Grid
qsc3 = ? STB/D p~ = 1500 psia
Z
l....j
boundary
d-~- bw -0.
Figure 4-26
Discretized 1D reservoir in Exercise 4-10.
the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. Estimate the rate of oil that crosses the reservoir right boundary.
150 STB/D
Z
= 1900 psia pbw = 2701
Figure 4-27
Discretized 1D reservoir in Exercise 4-11.
4-12
Consider the 2D horizontal oil reservoir shown in Figure 4-28. The reservoir is described using a regular grid. Reservoir gridblocks have Ax = 350 ft, Ay = 300 ft, h = 35 ft, k x = 160 md, a n d ky --- 190 md. Oil FVF and viscosity are 1 RB/STB and 4.0 cp, respectively. Boundary conditions are specified as shown in the figure. A well in gridblock 5 produces oil at a rate of 2000 STB/D. Assume that the reservoir rock and oil are incompressible. Write the flow equations for all gridblocks. Do not solve the equations.
4-13
Starting with Eq. 4.88c, which expresses the bulk volume of gridblock
(nr,j,k) in terms of re and r~r_l/2, derive Eq. 4.88d, which expresses the bulk volume in terms of a~g and re. 4-14
A 6-inch vertical well producing 500 STB/D of oil is located in 16-acre spacing. The reservoir is 30 ft thick and has horizontal permeability of 50 md. The oil FVF and viscosity are 1 RB/B and 3.5 cp, respectively. The reservoir external boundaries are no-flow boundaries. The reservoir is simulated using four gridblocks in the radial direction as shown in Figure 4-29. Write the flow equations for "all gridblocks. Do not substitute for values on the RHS of equations.
4.8 Exercises
Influx = 0.02 STB/D-ft 2 No-flow boundary
dp
7
8
9
•4
5~
•6
1
2
3
0.10 psi/ft
b~
~
lY
%% = -2000 STB/D
~
>x
I"
0 ff
"[
Pbs = 3200 psia
Figure 4-28
Discretized 2D reservoir in Exercise 4-12.
500 STB/D 'boundary
i0 ft o-flow boundary
T
No-flow boundary ~r
Figure 4-29
4-15
Discretized reservoir in Exercise 4.14.
A 9 ~ -inch vertical well is located in 12-acre spacing. The reservoir thickness is 50 ft. Horizontal and vertical reservoir permeabilities are 70 md and 40 md, respectively. The flowing fluid has a density, FVF, and viscosity of 62.4 lbm/ft 3, 1 RB/B, and 0.7 cp, respectively. The reservoir external boundary in the radial direction is a no-flow boundary, and the well is completed in the top 20 ft only and produces at a rate of 1000 B/D. The reservoir bottom boundary is subject to influx such that the boundary is maintained at 3000 psia. The reservoir top boundary is sealed off to flow. Assuming the reservoir can be simulated using two gridblocks in the vertical direction and four gridblocks in the radial direction as shown in Figure 4-30, write the flow equations for all gridblocks in this reservoir.
121
122
Chapter 4
Simulation with a Block-Centered Grid
1000 STB/D
)undary
T
PbL=3000psia ~r
Figure 4-30 Discretized 2D radial-cylindrical reservoir in Exercise 4-15.
Chapter 5
Simulation with a Point-Distributed Grid
5.1
Introduction
This chapter presents discretization of 1D, 2D, and 3D reservoirs using point-distributed grids in Cartesian and radial-cylindrical coordinate systems. This chapter describes the construction of a point-distributed grid for a reservoir and the relationships between the distances separating gridpoints, block boundaries, and sizes of the blocks represented by the gridpoints. The resulting gridpoints can be classified into interior and boundary gridpoints. While Chapter 2 derives the flow equations for interior gridpoints, the boundary gridpoints are subject to boundary conditions and thus require special treatment. This chapter presents the treatment of various boundary conditions and introduces a general flow equation that is applicable to interior gridpoints as well as boundary gridpoints. This chapter also presents the equations for directional transmissibilities in both Cartesian and radial-cylindrical coordinate systems and discusses the use of symmetry in reservoir simulation. There are three important differences between the block-centered grid discussed in Chapter 4 and the point-distributed grid discussed in this chapter. First, the boundary gridpoints for a point-distributed grid fall on reservoir boundaries, not inside reservoir boundaries as in the case of a block-centered grid. Second, the actual bulk volume and actual well rate of boundary gridpoints are a half, a quarter, or an eighth of those of whole blocks if they fall on one, two, or three reservoir boundaries, respectively. Third, the transmissibility parallel to the reservoir boundary for a boundary gridpoint has half of that of the whole block. These points are taken into consideration in developing the general flow equation for a point-distributed grid.
5.2
Reservoir Discretization
As described in Chapter 4, reservoir discretization involves assigning a set of gridpoints that represent blocks that are well defined in terms of properties, dimensions, boundaries, and locations in the reservoir. Figure 5-1 shows a point-distributed grid for a 1D reservoir in the direction of the x axis. The point-distributed grid is constructed by choosing n x gridpoints that span the entire reservoir length in the x direction. In other words, the first gridpoint is placed at one reservoir boundary and the last gridpoint is placed at the other reservoir boundary. The distances between gridpoints are assigned predetermined values ( &xi+l/2 , i = 1, 2, 3... n x - 1 ) that are not necessarily equal. Each gridpoint represents a block whose boundaries are placed halfway between the gridpoint and its neighboring gridpoints.
123
124
Chapter 5
Simulation with a Point-Distributed Grid
~1" AX1+1/21
~1"
AX2+1/2
;r
12
~
"1 "~ Axnx-l/2
onx-1 I
13
J
Left Boundary Figure 5-1
;
nx,)
I
Right Boundary
Oiscretization of a 1D reservoir using a point-distributed grid.
Figure 5 - 2 focuses on gridpoint i and its neighboring gridpoints. It shows h o w these gridpoints are related to each other. In addition, the figure shows block dimensions ( Axi_ ~ , /~kXi ' /~i+1 )' block boundaries ( Xi_l/2 , Xi+x/2 ), distances between gridpoint i and block b o u n d a r i e s ( dx i , dx i. ), and distances b e t w e e n gridpoints ( AXi_l/2 , Axi.~/2 ). B l o c k dimensions, block boundaries, and gridpoint locations satisfy the following relationships: x1 =0,
x
=L~,(i.e.,
x-x
I =L),
d X i = ~ l~fi-l12 , i = 2, 3 . . . G (}xi+ ~- 1/2/~i+1/2 , i = 1,2,3... G -1 Xi+ 1 = X i "~-l~it_l/2 , i = 1 , 2 , 3 . . . n x - 1
(5.1)
Xi-1/2 = X i - - t i N i = xi - - ~ Axi-l/2 , i = 2 , 3 . . . n Xi+ll2 = Xi "{-~X i, ~- X i "~ 1/22z~i+l/2 , i = 1,2,3...n x - 1 ,
Axi = dx i- +dxi, = ~(Ax/_I/2 + Ax/+I/2) , i = 2,3...n x - 1 ,
Axl = & , . = ~ ~1+.~- , d~n~
I...,'
AXi'l/2
-~"
~..I..,,
I~, 8xi- ~ ~ I. . . .
I ~, ,-~
dX n
=
~2 d ~ n x _ l l 2
AXi+I/2 8xi+
~.1
,~n I
Xi'l AXi'l
~ ~1~ xi-1/2
Figure 5-2
Xi
> Axi
q(
Xi+l AXi+l
xi+1/2
Gridpoint i and its neighboring gridpolnts In the xdirecUon.
I
.,~ r,
5.2 Reservoir Discretization
125
Figure 5-3 shows the discretization of a 2D reservoir into a 5x4 irregular grid. An irregular grid implies that the distances between the gridpoints in the direction of the x axis ( Axi~l/: ) and the y axis ( Ayj~l/2 ) are neither equal nor constant. Discretization using a regular grid means that distances between gridpoints in the x direction and those in the y direction are constant but not necessarily equal in both directions. The discretization in the x direction uses the procedure just mentioned and the relationships presented in Eq. 5. l. Discretization in the y direction uses a procedure and relationships similar to those for the x direction, and the same can be said of the z direction for a 3D reservoir. Inspection of Figure 5-1 and Figure 5-3 shows that the boundary gridpoints fall on the boundaries of the reservoir. In addition, they are not completely enclosed by the blocks they represent.
AY31
d
I
I
]
I
•
•
AY21/
4
)
•
} :
•
•
AYl 1/2_I "
'~
i!~i"
'
A
I. AXlv2
Figure 5-3
~1~
'
t~i
AX21/2 ~1~
'
AX31/2
A
~1. AX41/2 ~1
Discretizatlon of a 2D reservoir using a point-distributed grid.
Example 5.1 A 5000 ftx1200 ftx75 ft horizontal reservoir contains oil that flows along its length. The reservoir rock porosity and permeability are O. 18 and 15 md, respectively. The oil FVF and viscosity are 1 RB/STB and 10 cp, respectively. The reservoir has a well located at 4000 ft from the reservoir left boundary and produces oil at a rate of 150 STB/D. Discretize the reservoir into six equally spaced gridpoints using a point-distributed grid and assign properties to the gridpoints comprising this reservoir. Solution Using a point-distributed grid, the reservoir is divided along its length into six equally spaced gridpoints with gridpoints 1 and 6 being placed on the reservoir left and right boundaries, respectively. Each gridpoint represents a block whose
boundaries are placed half way between gridpoints. Therefore, n, = 6 and
AXis_l/2
=
L/(n
- 1 ) = 5000/5 = 1000 ft. Gridpoints are numbered from 1 to
6 as shown in Figure 5-4. Now the reservoir is described through assigning properties to its six gridpoints ( i = l, 2, 3, 4, 5, 6 ). All gridpoints have the same elevation because the reservoir is horizontal. The blocks that are represented by the
126
Chapter 5
Simulation with a Point-Distributed Grid
gridpoints have the dimensions of Ay = 1200 ft and Az = 75 ft and properties of k x = 15 md and ~p = 0.18. The blocks for gridpoints 2, 3, 4, and 5 have ~c -- 1000 ft, whereas those for gridpoints 1 and 6 have Ax = 500 ft. The distances between neighboring gridpoints are equal; i.e., z~ci~l/2 = 1000 ft and A Xl;l/2 = A = Ay x z~. = 1200 x 75 = 90000 ft 2. Gridpoint 1 falls on the reservoir west boundary, gridpoint 6 falls on the reservoir east boundary, and gridpoints 2, 3, 4, and 5 are interior gridpoints. In addition, the block enclosing gridpoint 5 hosts a well with qsc5 = - ] 5 0 STB/D. Fluid properties are B = 1 RB/STB and/~ = 10 cp. 150 STB/D
~
Y ~x /1
2
r
"1"
Figure 5-4
5.3
I
3
I
4
"
I
5
I
6]
I175ft
!4
Discretized 1D reservoir in Example 5.1.
Flow Equation for Boundary Gridpoints
In this section, we present a form of the flow equation that applies to interior gridpoints as well as boundary gridpoints. That is to say, the proposed flow equation reduces to the flow equations presented in Chapters 2 and 3 for interior gridpoints, but it also includes the effects of boundary conditions for boundary gridpoints. Figure 5-1 shows a discretized 1D reservoir in the direction of the x axis. Gridpoints 2, 3 . . . . nx-1 are interior gridpoints, whereas gridpoints 1 and n x are boundary gridpoints that each fall on one reservoir boundary. Figure 5-3 shows a discretized 2D reservoir. The figure highlights an interior gridpoint, gridpoint (3,3), two boundary gridpoints that each fall on one reservoir boundary, gridpoints (1,3) and (3,1), and a gridpoint that falls at the intersection of two reservoir boundaries, gridpoint (1,1). Therefore, one can conclude that not all gridpoints fall inside reservoir boundaries and the boundary gridpoints have incomplete blocks. As discussed in the previous chapter, there are interior gridpoints and boundary gridpoints, which may fall on one, two, or three reservoir boundaries. The terminology in this discussion has been presented in Chapter 4. This terminology is repeated in Figure 5-5. Reservoir boundaries along the x axis are termed the reservoir west boundary ( b w ) and the reservoir east boundary ( be ), and those along the y axis are termed the reservoir south boundary ( b s )
5.3 Flow Equation for Boundary Gridpoints
127
and the reservoir north boundary ( bu ). Reservoir boundaries along the z axis are termed the reservoir lower boundary ( bL ) and the reserwfir upper boundary ( b U ).
k ~ bN U
bU
z~
S
N I
W
Figure 5-5
, ~ m mI s-
f
E x
bw
,, / / -
~
bL
°Y
/
Definition of reservoir left and right boundaries in 3D reservoirs.
The flow equations for both interior and boundary gridpoints have a production (injection) term and an accumulation term. The treatment of a boundary condition by the engineering approach involves replacing the boundary condition with a no-flow boundary plus a fictitious well having a flow rate of qs,:,,.~that reflects fluid transfer between the gridpoint that is exterior to the reservoir and the reservoir boundary itself (b) or the boundary gridpoint (bP). The flow equation for an interior gridpoint has a number of flow terms that equals the number of neighboring gridpoints (two, four, or six terms for a 1D, 2D, or 3D reservoir, respectively). The flow equation for a boundary gridpoint has a number of flow terms that equals the number of existing neighboring gridpoints in the reservoir and a number of fictitious wells that equals the number of reservoir boundaries the boundary gridpoint falls on. A general form of the flow equation that applies to boundary gridpoints as well as interior gridpoints in 1D, 2D, or 3D flow in both Cartesian and radial-cylindrical coordinates can be expressed best using CVFD terminology. The use of summation operators in CVFD terminology makes it flexible and suitable for describing flow terms in the equation of any gridpoint that may or may not be on a reservoir boundary. The general form of the flow equation for gridpoint n can be written as
v~ Z
T, . . . . -P ...... l,n [[Pl n ) - 7z,,, t Z ,m - Z ; ? )] + ~
qm
m ...... .~_qs~ -
¢
th
° [ ( 3 ) .n÷l - ( n )." ]
(5.2a)
or, in terms of potentials, as " ~ T m((l)m __ o m ,. . . . . ,
leg:,,
qm
o)+Z
+ qm -,,
gbn
~/) n ÷l
__(.~)n 1~n
(5.2b)
I~,,
where q : = the set whose elements are the existing neighboring gridpoints in the reservoir, ~. = the set whose elements are the reservoir boundaries ( bL, bs, bw. be, bN, bv ) that
128
Chapter 5
Simulation with a Point-Distributed Grid
are shared by gridpoint n , and q~,,, = flow rate of the fictitious well representing fluid transfer between reservoir boundary l and gridpoint n as a result of a boundary condition. For a 3D reservoir, ~, is either an empty set for interior gridpoints or a set that contains one element for boundary gridpoints that fall on one reservoir boundary, two elements for boundary gridpoints that fall on two reservoir boundaries, or three elements for boundary gridpoints that fall on three reservoir boundaries. An empty set implies that the gridpoint does not fall on any reservoir boundary; i.e., gridpoint n is an interior gridpoint, and hence q,":,., = 0 . In engineering notation, n - (i, j, k) and Eq. 5.2a becomes
Z T,t,(i,j,k)l(Pl . . . --Pi,j,k)--Y~,~i.j.k)( . . Z ~-Zij,~)]+ Y~ qm m ,.....(,,j,k) _1_q"::k [E~Pi,j,k IE~i,j,k
Vb,,k r ~ ° + ,
(5.2e)
q~
It is important to recognize that the flow equations for interior gridpoints in a point-distributed grid and those for interior gridblocks in a block-centered grid are the same because interior gridpoints represent whole blocks. The flow equations for boundary blocks and boundary gridpoints, however, are different because of the way the two grids are constructed. To incorporate boundary conditions appropriately in the flow equation of a boundary gridpoint, we must write the flow equation for the whole block, that completely encloses the boundary gridpoint, in terms of the properties of the actual block and note that the whole block and the actual block are represented by the same boundary gridpoint. It must be mentioned that reservoir blocks have a three-dimensional shape whether fluid flow is 1D, 2D, or 3D. The number of existing neighboring gridpoints and the number of reservoir boundaries shared by a reservoir gridpoint add up to six as the case in 3D flow. Existing neighboring gridpoints contribute to flow to or from the gridpoint, whereas reservoir boundaries may or may not contribute to flow depending on the dimensionality of flow and the prevailing boundary conditions. The dimensionality of flow implicitly defines those reservoir boundaries that do not contribute to flow at all. In 1D flow problems, all reservoir gridpoints have four reservoir boundaries that do not contribute to flow. In 1D flow in the x-direction, the reservoir south, north, lower, and upper boundaries do not contribute to flow to any reservoir gridpoint, including boundary gridpoints. These four reservoir boundaries ( bL, bs, bu, b U ) are discarded as if they did not exist. As a result, an interior reservoir gridpoint has two neighboring gridpoints and no reservoir boundaries, whereas a boundary reservoir gridpoint has one neighboring gridpoint and one reservoir boundary. In 2D flow problems, all reservoir gridpoints have two reservoir boundaries that do not contribute to flow. For example, in 2D flow in the x-y plane the reservoir lower and upper boundaries do not contribute to flow to any reservoir gridpoint, including boundary gridpoints. These two reservoir boundaries ( b~, b~: ) are discarded as if they did not exist. As a result, an interior reservoir gridpoint has tbur neighboring gridpoints and
5.3 Flow Equation for Boundary Gridpoints
129
no reservoir boundaries, a reservoir gridpoint that falls on one reservoir boundary has three neighboring gridpoints and one reservoir boundary, and a reservoir gridpoint that falls on two reservoir boundaries has two neighboring gridpoints and two reservoir boundaries. In 3D flow problems, any of the six reservoir boundaries may contribute to flow depending on the specified boundary condition. An interior gridpoint has six neighboring gridpoints. It does not fall on any of the reservoir boundaries. A boundary gridpoint may fall on one, two, or three of the reservoir boundaries. Therefore, a boundary gridpoint that falls on one, two, or three reservoir boundaries has five, four, or three neighboring gridpoints, repectively. The above discussion leads to a few conclusions related to the number of elements contained in sets ~P and ~ . •
For an interior reservoir gridpoint, set ~ contains two, four, or six elements for a 1D, 2D, or 3D flow problem, respectively, and set ~ contains no elements or, in other words, is empty.
•
For a boundary reservoir gridpoint, set ~P contains less than two, four, or six elements for a 1D, 2D, or 3D flow problem, respectively, and set ~ is not empty.
•
The sum of the number of elements in sets ~ and ~ for any reservoir gridpoint is a constant that depends on the dimensionality of flow. This sum is two, four, or six for a 1D, 2D, or 3D flow problem, respectively.
For 1D reservoirs, the flow equation for interior gridpoint i in Figure 5 - 6 is given by Eq. 2.32, m (qbi_~-qb~)+T "
T m Xi
1/2
i
Xi+ll2
m (dO~+~-~m)+qs m = Vb'. .IAt s~ ), .,+ ' _ ( q ~ ) T ] '
a cat
1~
(5.3)
a
The above flow equation can be obtained from Eq. 5.2b for n = i , ~Pi = { i - 1 , i + 1 } , ~i = { } , and by observing that ~ qm = 0 for an interior gridpoint and 7~i41,i = = Txm sct, i i:~l/2
"
To write the flow equation for boundary gridpoint 1, which falls on the reservoir west boundary in Figure 5-6, we write the flow equation for the whole block of boundary gridpoint 1,
Vmx~~,2 (dido
- - ~ml ,~+ Tmx,~,,2(d#~
- ~'(' ) + 2q< -
2V~ ~ t
qb ,+1 q~ , [(n)l - (~)11
(5.4)
Note that the properties of the whole block in Eq. 5.4 are expressed in terms of those of the a c t u a l b l o c k ; i.e., Vb =2Vb~ a n d
q~ = 2%, . A d d i n g a n d s u b t r a c t i n g the f l o w
t erm T ~~.... .t~ 2 - q b m ) to the LHS of above equation gives
T".... ¢(I)m-cI)?)-T , 0 *~,m.... t, ~ m 2 -~l)+2T
m (cI)~' ........ _ - ~m 1 )' + 2 q <m = ~ t2Vb~ t ~ ) l ./P,,+I - ( ) ~ 1 ( 5 " 5 )
130
Chapter 5
Simulation with a Point-Distributed Grid
AX1+1/2
AX1+1/2
n Axnx-l/2
//
d "''"
....
I
o0
......m.
i Z~nx-l/2
on x .1 I•
....
I
: nx+l o
m . . . . . d . . . . . . . .
I
Left Boundary Figure 5-6
nxl
Right Boundary
Boundary gridpoints at the left and right boundaries of a 1D reservoir.
Dividing Eq. 5.5 by two results in the flow equation for the actual block represented by boundary gridpoint 1, ~ [T~,,2 . .( ~. o . - .O .7 ) . - T. ~ Vb,
-
,--2c~"- 0 lm)]+ Tmxl,l/2( O n ' q
-2- O 1?
2) "~
~b .+l _ (O)IB
a
(5.6a)
]"
The first term on the LHS of Eq. 5.6a represents the rate of fluid flow across the reservoir west boundary ( bw ). This term can be replaced with the flow rate of a fictitious well m ( q,%.~ ) that transfers fluid through the reservoir west boundary to gridpoint 1 ; i.e.,
q,nscbW ,1
m ~ (O 0. -.- I .~ l . ) -.-
---- 1/2 .IT ...... -
T~ .... ÷
(5.7)
(Cl) 2 - - ~ 0 7 )1
Substitution of Eq. 5.7 into Eq. 5.6a yields q,,"?CbW ,1 +Tm ( 0 r _ . , ~ ) + q m $Cl XI+I/2
_
~'~'°+~-(~)11 ( Va Z ~ ltB)l
(5.6b)
The above flow equation can be obtained from Eq. 5.2b for n = 1, ~Pl = {2}, and by observing that
2;
qsm,,, = q~% " ° ,, and T~,~ = TXhl/2
~l = { h w
} ,
°
To write the flow equation for boundary gridpoint n x , which falls on the reservoir east boundary in Figure 5-6, we write the flow equation for the whole block of boundary gridpoint n , r m
(~m
_ i~m
) .~ ~,rn
i~m - - ~ m ) ~_ n +1 n~
2q~
-
[(~_),+ln
d~ (B)'~ ]
(5.8)
Here again, note that the properties of the whole block in Eq. 5.8 are expressed in terms of those of the actual block; i.e., Vh = 2V% and q,c = 2q ...... . The above equation can be manipulated as was done for gridpoint 1 to obtain the flow equation for the actual block represented by boundary gridpoint % ,
5.3 Flow Equation for Boundary
T:gnzx
¢qb"nx--I - qb n,m ) + ~ [T~nx ....((~mn x +I _¢~mnx rn
1/2 \
)--
T xm
V~,,~
(t~,n
n,-
-
[(~_):[I _(~_):].
......
~
x
l --
Gridpoints
131
f~mn )] t
(5.9a)
+ q m -- ~ t The second term on the LHS of Eq. 5.9a represents the rate of fluid flow across the reservoir east boundary ( b~.: ). This term can be replaced with the flow rate of a fictitious well qm
( sc~.... ) that transfers fluid through the reservoir east boundary to gridpoint n x ; i.e., IT"
q'~ SObE ,nx
= 1~2 ...... nx ~ • (
~ zn
-- (I)m nx ) -
x +1
T"
Xnx -1/2 (
(5.10)
qbm n - 1 -,~"~ n~ )1 x
Substitution of Eq. 5.10 into Eq. 5.9a yields Z m _]_m . . xn,_l/2 (lff~nmx-1 - - ~ n n t . ) . . q .....
..~m .
Wb
qsc
.
~flntl
ct "A t
-
-(
(5.9b)
)7,J
The above flow equation can be obtained from Eq. 5.2b for n = n x , ~,x - {nx - 1}, ~nx = {bE } ' and by observing that ~
q',~,,nx = q "SCbE,n x a n d T nx--l,nx m = T xnmx-t/2
"
For 2D reservoirs, the flow equation for interior gridpoint (i, j) is given by Eq. 2.37, Tm
(t~ 'n
yi,j.l/2 \
i,j--I
-OSj)+T ,
. . . .
Xi. 1/2,j (tff~i-l,j
~t,
"[-Lmj .... ((I)i,j+I --CD,':) +
_(~m,
Vbi,j r/(/)....1
q':,,:-- ~
Tm
(~,,
i j) "[- Xt,ll2,j \
i~'l j
--(~mi,j)
(5.11) ~)
n
tt-~)i,: --(-~)i,:1"
The above flow equation can be obtained from Eq. 5.2b for n - (i,j), ~0~,: = {(i,j-1),(i-l,j),(i +l,j),(i,j +1)},
and by observing that ~ Tm (i;1,j),(i,j)
= Tm
qm
sq,(i,j )
~/,: = { }
= 0 for an interior gridpoint, T (i,jq:l),(i,j) m
=
Tm
Yi,jill2
~
and
t~,.j
Ni=ll2, j °
For a gridpoint that falls on one reservoir boundary, like gfidpoint (3,1), which falls on the reservoir south boundary in Figure 5-3, the bulk volume, well rate, and transmissibility in the x direction for the whole block are twice the bulk volume, well rate, and transmissibility in the x direction for the actual block represented by gridpoint (3,1). However, the transmissibility in the y direction is the same for the whole and actual blocks. Therefore, the flow equation for the whole block expressed in terms of the properties of the actual block can be written as
132
Chapter 5
S i m u l a t i o n with a P o i n t - D i s t r i b u t e d G r i d
m
m
T~...... (t~3,o -
iff~m
m
m
m
m -,
m
m
3,1 ) + 2T~ ...... (~:.l - ~3,, ) + 2 ~ . . . . . . (lff~4,1 -- 1~3,1 )
2Vb~, rC~b.l.+l
(5.12)
~b .
Adding and subtracting the flow term Ty~..... (O~2 - qb~l ) to the LHS of the above equation gives T m
¢¢brn m T m (fI) . y ....... \ ~ 3 , 0 - (ID3,1) - - y ....... \~3,2
+2T m
, ((~m
.
.
.
.
.
.
.
-- ~3.1)] + 2T~...... (q~2,1 -- qb3,1)
m,
2Vb31 [-(.~]n+l
(5.13)
__((t~]n
Dividing Eq. 5.13 by two results in the flow equation for the actual block represented by boundary gridpoint (3,1),
(5.14a) -I"Tx3m. .... ((i) 4ml ( I ) 3 1 ) + Z m + .... -, Y........ (lff~3m2 --1~3m'l)
q .m. . .
--
wb~ . . . . ¢~ xn+l a + A t [ ( B )3'1
@ n -(~)3,11.
The first term on the LHS of Eq. 5.14a represents the rate of fluid flow across the reservoir south boundary ( bs ). This term can be replaced with the flow rate of a fictitious well (qm +,.
> ) that transfers fluid through the reservoir south boundary to boundary gridpoint
(3,1); i.e., 1/fT m rthm _ ty~m ~__ T m m m y....... ~,"1"3,0 3,1; y....... ((I)3,2 - 1 ~ 3 , 1 ) 1
(5.15)
q ....... , = / 2 1
Substitution of Eq. 5.15 into Eq. 5.14a yields m m qmSCbs,(3,11 + T x3-1/2,1 m (qb21 _di)3,1)+T ,
+Tin
Y3A41/2
(qbm~-
(~mx..]_
-'. . . .
31)
m
q .... ,
m m m (lff~)4 1 _lff~3,1) x3t 1/2,1 •
Vb3,1 [ ( ~ n ÷ l (xcA t
~) n
(5.14b)
t,B,3,1-(~)31]'
The above flow equation can be obtained from Eq. 5.2b for
n - (3,1), q~3,1 = {(2,1),(4,1),(3,2)}, and b y o b s e r v i n g that m T(3,2),(3,1) ~ Tm Y3,1+1/2
E
~3,1 = {bs},
m m qm = qm , T~2,1~,(3,1 ~ = TX3-112,1 m ' T~4,1),0.1~ = T X3~1/2,1 m $cI,(3,1) SC'bS,(3,D
'
and
1~'1
Another example is gridpoint (1,3), which falls on the reservoir west boundary in the 2D reservoir shown in Figure 5-3. In this case, the bulk volume, well rate, and transmissi-
133
5.3 F l o w Equation f o r B o u n d a r y Gridpoints
bility in the y direction for the whole block are twice the bulk volume, well rate, and transmissibility in the y direction for the actual block represented by gridpoint (1,3). However, the transmissibility in the x direction is the same for the whole and actual blocks. Similarly, the flow equation for the actual b l o c k r e p r e s e n t e d by gridpoint (1,3) can be expressed as O . . . . i. + m " 1,2 r ....... yc~, , - - q ) l 3 ) q*%~, 3) +
--m
+r m
E~.3 ff ~b.l. +l _ ( ~b~,,1
11~. . . . .
~ . m
("
..
2,3
O1,3 )
(5.16) ( ¢~m
....
\
.
1 4 - - (I)lm3)-t-
qm
.
m.3
- - -
a.At
t'.-'~"l 3
B '
~B ~1'3''
where q,% ......
m m m xl ,/2,3 ( ( I ) o 3,- - 1 ~ 1 . 3 ) -
=~[T_
m ~7~...,
m m ((I)2,3 - 1 ~ 1 , 3 ) ]
(5.17)
The flow equation given by Eq. 5.16b can be obtained f r o m Eq. 5.2b for n = (1,3), ~Pl,3 ={(1,2),(2,3),(1,4)} T(~'2),(1, 3) = r}i~ . . . .
~13,- ={bw}
,
' r(7'4),fl, 3) = r~i~ ...... ,
,
and by o b s e r v i n g that
and T(2,3),(1,3)
---~ ~
.....
~
qZSCI,(I,3) =qmSCbW ,(1,3)
"
Now consider a gridpoint that falls on two reservoir boundaries, like boundary gridpoint (1,1), which falls on the reservoir south and west boundaries in Figure 5-3. In this case, the bulk volume and well rate for the whole block are four times the bulk volume and well rate for the actual block represented by gridpoint (1,1). However, the transmissibilities in the x and y directions for the whole block are only twice the transmissibilities in the x and y directions for the actual block represented by gridpoint (3,1). Therefore, the flow equation for the whole block in terms of the properties of the actual block can be written as m
m
m
in
m
m
i~m
m
2T"Yl.I 1/2 (O1, o - O1,1) + 2T~..... (~o,1 - O1,1 ) + 2T~..... ( 2,1 - O11' ) + -, - +,
+2gI.....
4 " ((1)1P/2--1~)1~21) -}-
4Vb,,,
qsct, 1 - - ~ c ~ t
(5.18)
~ n.-1 ~ n [(B)l,1 -(B)1.1]"
~ - O1,1 m ) + 2 T...... . . . . . .(01 . = - O1,1) to the LHS of the above Adding and subtracting 2T~m ...... (02,1 equation gives m
m
" - O " ll ~. . -. T ' 2, i (~I)01' --~I~)11)--r; 21r,~, . . ..±,. . . . _ (O1,2 -(I)~1)]+21r~7, . . . . ...... . . (~I)2,1 --~I)1,1)] - , ! ,2 (O1,0 , " +4T~1, ~(O2,-O'lnl)+4T~ 7..... (O1~2-O'1~l)+4q~,~ = ~ ,
,
o,
",
4Vb Ab .... 1 ( q ~ , , , ,' It--)11 - 3)111. a cat B
'
(5.19)
'
Dividing the above equation by four results in the flow equation for the actual block represented by boundary gridpoint (1,1),
134
Chapter 5
~[T
m
Simulation with a Point-Distributed
_ ¢ ~ L 1" ) _ T "¢m m ..... ((I)1'2
[chin
l Y...... \"~"1.0
-1-~* ...., ('21, -- *In,; ) -{- Ty~,..... ((~1m2
--~'1;~1
1
.
.
Grid
.
.
.
) - Z
)]q- Y22[T£ ..... ((~01 -- I~1,1"
.
.
.
.
.
~1 .... (1~2"1 --1~1"1)]
--OPll)+ qm' SCl'l -- a~tV~'lt'B"]'l|(-~ntl _(B)I,I .(/) n ] (5.20a)
The above equation can be rewritten as q Sgb . .s ,(1,1 . .
~-
Vb ..... -
qs%,(I,l) (~ ,n+l
-~-l~-z),,
acAt
B '
+ 77~ " 4l, 2,1 ((I)21" - ([DI]) -]- Tv~i'l , .... ((~lDln,Z2-- (~lml) -]- q"SCI,I
(5.20b)
(J~ n -(~),,,1,
where
qs%.(.... =
1
m
m
m
m
m
l~2[ry ....... ((I~1,0 -I~ll)-T~
qs%.,1,,.= ~
[Tx'.',112,, ((I)0,1 --O13)--
m
m
m
.i
m
....... ((I)l, 2 -(I)1,1)]
Tm
x ..... ~ -,. (O2,1 --O1.1)1
(5.21) (5.22)
Eq. 5.20b can be obtained from Eq. 5.2b h)r n = ( l , l ) , ~01a = {(2,1),(1,2)}, ~.l ={bs,bw}, and
by
observing
that
E
q,~,,,., =qs~'~bs,o,1)+q2,,(t,,, . . . .
,
m T(2,1),(1,1) = Z taxI,I/2,, , and
/E~I,I m T(1,2),(1,1 ) =
T m
YI,1~1/2
.
The following example demonstrates the use of the general equation, Eq. 5.2a, to write the flow equations for interior gridpoints in a 1D reservoir. Example 5.2 For the 1D reservoir described in Example 5.1, write the flow equations for interior gridpoints 2, 3, 4, and 5. Solution The flow equation for gridpoint n in a 1D horizontal reservoir is obtained from Eq. 5.2a by discarding the gravity term, yielding
E T,tm" m --pm ) + E qm",n ' , n ~Pl n
l~q,.
I~
+q~" - a,~At[(B~--),~H-(~),~]. n
For interior gridpoints, g ) = { n - l,n + ]} and ~" = { } . Therefore, ~ , qr,scl, n = 0 The gridpoints in this problem are equally spaced ( kxi+l/2 = Ax = 1000 ft) and have the same cross-sectional area ( Ay × h = 1200 × ?5 ft2), permeability
(5.23)
5.4 Treatment of Boundary Conditions
135
( k x = 15 md), and constants/~ and B. Therefore,
T,~" =fl~
k A~ ktBAx
- 0.001127x
15 x ( 1 2 0 0 x 7 5 )
= 0.1521 STB/D-psi.
10 x 1 x 1000
~ T3'.4 = T4.5= T~".6 = Tx" = 0.1521 STB/D-psi In addition, T~".z= T~,3= =0,and
For gridpoint 2, n = 2 , ~2 = {1, 3} , ~2 = { } . . .~. .q.".
qm ,~_ = 0 '
Therefore, substitution into Eq. 5.23 yields (o . 1 5 2 1 )(p r
) + (o.1521)(
-
For gridpoint 3, n = 3
i
F3={2,4}
;. - , ¢ ) = , , . , , , o
~
~:3={}
~
~q"
-(-p,
SCl, 3
=0
and
~
(5.24)
l.
qs~3=0
•
Ic~3
Therefore, substitution into Eq. 5.23 yields m (0.1521)(p2
- p~" ) + ( 0 . 1 5 2 1 ) ( p ~ "
vb~
- P3 ) = ~
O:cAt
-
..,~.,., _(_~£]. It-~)3 /~
S ' q sc/,4 m =0
For gridpoint 4, n = 4 , F4 = {3,5},
~4 = { } , ~
(5.25)
B
-
,
and qs'~, = 0 .
l~4
Therefore, substitution into Eq. 5.23 yields (0.1521)(P3 - P4' ) + (0. ] 521)(p~ - P4 ) = ~
.,, ~1) .... 1 __(~)nl
a~,At
-
For gridpoint 5, n = 5
Vb4
~5={4,6}
~
~ .s = { }
,
~~~)4 t~
]"
(5.26)
B
~.~q" = 0 scl, 5
and qm sc5 = - 1 5 0 STB/D. Therefore, substitution into Eq. 5.23 yields
Vb5 r/q .... 1 ~) a,, zxt" lt--z)st~ - (~)5 ]. n
(O.1521)(P4-Pm)+(O.1521)(P6'-P~)
5.4
(5.27)
Treatment of Boundary Conditions
A reservoir boundary can be subject to one of four conditions: 1) no-flow boundary, 2) constant flow boundary, 3) constant pressure gradient boundary, and 4) constant pressure boundary. They have been discussed in Chapter 4. The general form for the flow rate of the fictitious wells presented by Eqs. 5.7, 5.10, 5.15, 5.17, 5.21, and 5.22 can be expressed as
136
Chapter 5
Simulation with a Point-Distributed Grid
q2bb. • =
get2,...
"( , I , "bP*" - O " bP"
m ( q,mbe* -- aPbP ,. )1 b,bV*
(5.28a)
where, as shown in Figure 5-7, qm.... = flOW rate of a fictitious well representing flow across reservoir boundary (b) into the actual block represented by boundary gridpoint bP, Tb,be., = transmissibility between reservoir boundary b (or boundary gridpoint bP) and the gridpoint that is exterior to the reservoir and located immediately next to the reservoir boundary (gridpoint bP** ), and Tb,b,. = transmissibility between reservoir boundary b (or boundary gridpoint bP) and the gridpoint that is in the reservoir and located immediately next to the reservoir boundary (gridpoint bP* ). Since there is no geologic control for areas outside the reservoir (e.g. aquifers), it is not u n c o m m o n to assign reservoir rock properties to those areas in the neighborhood of the reservoir under consideration. Similar to Chapter 4, we use the reflection technique about the reservoir boundary, shown in Figure 5-7, with regards to transmissibility only (i.e., Tb,~bV,, = Tb"bp, ), T"
= [tic kzAt "
b,bP*"
"~]bP,bP**
m T" =[/~c ~kIAt l b P . b p * = b,bP*
(5.29a)
where l is the direction normal to reservoir b o u n d a r y b. Substituting Eq. 5.29a into Eq. 5.28a results in q ....... "
= ~ -T "b.b,*"(d9bP'" . . .-- .dPb'* )
(5.28b)
In the following sections, we derive expressions for q,"$..... under various boundary conditions for a point-distributed grid in Cartesian coordinates and stress that this rate must produce the same effects as the specified boundary condition. In Cartesian coordinates, real wells have radial flow and fictitious wells have linear flow, whereas in radial-cylindrical coordinates in single-well simulation, both real wells and fictitious wells have radial flow. Therefore, in single-well simulation, 1) the equations for the flow rate of real wells presented in Sections 6.2.2 and 6.3.2 can be used to estimate the flow rate of fictitious wells representing boundary conditions in the radial direction only, 2) the flow rate equations of fictitious wells in the z-direction are similar to those presented next in this section because flow in the vertical direction is linear, and 3) there are no reservoir boundaries and hence fictitious wells in the 8 direction. The flow rate of a fictitious well is positive for fluid gain (injection) or negative for fluid loss (production) across a reservoir boundary.
5.4.1 Specified Pressure Gradient Boundary Condition For the reservoir left (lower, south, or west) boundary, like boundary gridpoint l shown in Figure 5-8, Eq. 5.28b becomes
5.4 Treatment of Boundary Conditions
137
ALbP,bp. b ALbP,bp*
L; "r obP. ~?bP |I ...====..=1:..====.1 I
"1 ,bP
Direction L
I
}b
Boundary Figure 5-7
q~,~.,
_- ~'/'T",.~,.,,~
Definition of the terminology used in Eq. 5.28.
kx Ax m
,,
(0o' - 0;')] = ~[(#~ ~ ] , + . ~
(0o - 0~')1
(5.30) k~ax " (0° - 07 ) ~--"[#c --'~]1÷1/2 2AX1H/2
kxA~ m 3 0 m kxA x ,. ~ 0 " [tic --~1~+]/2 ~ ~ = -[fl~ --~]L2 -~x
dp
Cdx
dp b~
1
I
12
I
O
"nx-ll
I Left Boundary Figure 5-8
nx
Right Boundary
Specified pressure gradient condition at reservoir boundaries In a point-dis~ribated grid.
Note that to arrive at the above equation, the first order derivative of potential was approximated by its central difference; i.e., ~O ~ =- (0° - O 2 ) (see Figure 5-6). Substituting 3x ,~ 2 - ~ , ~-~_ Eq. 2.10, which relates potential gradient to pressure gradient, into Eq. 5.30 gives k A ~ --~X30b,,m : -[tic --~],,2[~x k A m 3pJ"ew_7~z ~xxew ]. qs:~., = -[tic --~],,2
(5.31)
Similar steps can be carried out for the reservoir right (east, north, or upper) boundary. For example, Eq. 5.28b for boundary gridpoint n on the east boundary becomes
qmscb~.:,[,x# c
~kxAx l . . , . ~m- 1
3P Im __Tin -~B-lnx,nr-l[~Xb~ ....... -1 Ox3-Zb~.' ].
~O lb~. :[/~c kxA~ m
(5.32)
In general, for a specified pressure gradient at the reservoir left (lower, south, or west) boundary, kiAl ,,
~p 1"
q: ..... =-l#c ~]b~bp*[~,, -~b%*
0_~/b
1
(5.33a)
138
Chapter 5
Simulation with a Point-Distributed
Grid
and at the reservoir right (east, north, or upper) boundary, q"SCb'bP = [tic ~kIZl ] b P , b,.p * [~1 bm -- 7b'~,'bP* ~ll b ]
(5.33b)
where l is the direction normal to the reservoir boundary.
5.4.2
Specified Flow Rate Boundary Condition
This condition arises when the reservoir near the boundary has higher or lower potential than that of a neighboring reservoir or aquifer. In this case, fluids move across the reservoir boundary. Methods such as water influx calculations and classical material balance in reservoir engineering can be used to estimate fluid flow rate, which we term here as specified flow rate ( q, psc ). Therefore, for boundary gridpoint 1, q,, ~,~ , = qsp~c
(5.34)
and for boundary gridpoint n x , qm
s% ,x = qspsc
(5.35)
In general, for a specified flow rate boundary condition, Eq. 5.28b becomes q ........ = q,~es,:
(5.36)
In multidimensional flow with qses¢ specified for the whole reservoir boundary, qmb~ for each boundary gridpoint that falls on that boundary is obtained by prorating q.,p~c among all boundary gridpoints that fall on that boundary; i.e.,
qm
s~b....
-
-
Tbp,bp ~
~ lE~Jb
T m qsps~
(5.37)
l,l*
where ~ b ~-~the set that contains all boundary gridpoints that fall on the reservoir boundary in question and Tl,l* m = transmissibility between boundary gridpoint l (or reservoir boundary b) and gridpoint l* , which falls inside the reservoir and is located immediately next to the reservoir boundary in a direction normal to the boundary (see Figure 5-7). Tb'p,bp,is defined as given in Eq. 5.29a, kl AI m T"b,,,j = [tic ~ ] b e , b p "
(5.29b)
Subscript l in Eq. 4.29b is replaced with x, y, or z depending on the boundary face of boundary block, it should be mentioned that Eq. 5.37 incorporates the assumption that the
5.4 Treatment o f Boundary Conditions
139
potential drops across the boundary for all gridpoints falling on the reservoir boundary are equal.
5.4.3
No-FlowBoundary Condition
The no-flow boundary condition results from vanishing permeability at a reservoir boundary (e.g., ~m = 0 for the left boundary of gridpoint 1, and T~m.... = 0 for the right boundary of gridpoint n x ) or because of symmetry about the reservoir boundary in Figure 5-6 ( O0m
om. for gridpoint 1 and O"n ~ - i
=
=
( I ) ~ nn ~1
for gridpoint n~ ). In either case,
Eq. 5.28b for boundary gridpoint 1 reduces to q.,
1
SCbw ,I
m
m
m
m
m
= ~ T~,2 ((I) 0 - tI)~~ ) = ~ (0)((I) 0 - (I) 2 ) = ~ ~ T xm (0) = 0 t/2
(5.38)
and for boundary gridpoint n x it reduces to q "........
~ / T ". . . . . . . ( O m nx+l
= /2
O"n - 1
) = 1/~2( 0 ) (
O~n - I
--
qb~ n -1)
m (0) = 0 -- - /~2 T ........
(5.39)
In general, for a reservoir no-flow boundary, Eq. 5.28b becomes qm..... = 0
(5.40)
For multidimensional flow, q.~ .... for each boundary gridpoint that falls on a no-flow boundary in the x , y , or z direction is set to zero as Eq. 5.40 implies.
5.4.4
Specified Boundary Pressure Condition
The specified boundary pressure condition arises when the reservoir is in communication with a strong water aquifer or when wells on the other side of the reservoir boundary operate to maintain voidage replacement and as a result keep the reservoir boundary pressure ( Pb ) constant. Figure 5-9 shows this boundary condition at the reservoir left and right boundaries. For a point-distributed grid, boundary gridpoint 1 falls on the reservoir left boundary ( b w ); therefore, Pl = P~ and Pnx = Pb~: for gridpoint n x , which falls on the reservoir right boundary. The specified boundary pressure is used in the flow equation for gridpoint bP* (for example, gridpoint 2 and gridpoint n x - l in Figure 5-9). The flow equation for gridpoint 2 can be written as Tx m
m ~ m ..... [ ( p ~ - p :m ) - 7~+.. (Z, - Z 2 )l + T~. ~,.- l(p~ - P2m ) - 72+.2 (Z3
--
Z2 )]
(5.41a) =
+qs~2
v~2 [ ( ~ ) ~ ' - ( ~ ) ~ l .
a CAt
Similarly, the flow equation for gridpoint n x - 1 can be written as
140
Chapter 5
Simulation with a Point-Distributed
Txm [ ( P 2x_ 2 - - p m _x I ) - - ~ " m nx - 3 / 2 +T~~ "x
,/2
[(PbE -- P2-1)-- ~ .
x
3/2(Z~ x --~ - - Z °
x
n.-1/2
(Z
x
- Z
x "
Grid
2)1
v<
(5.42a)
l)] + q~SCnx , = acAt' ~,B,n~ rcCPV*l1 - (~):, 1]. x-
The condition that is responsible for maintaining the pressure of boundary gridpoint 1 constant at Pb~ can be obtained from Eq. 5.7, q'~ = ~ ~ [ r Xml - , / 2 ( 0 0 -- 0 7 ) -- T Xl'n+ 112 (0'~ - • 7 )] SCbw ,'
I
I
(5.7)
"
I
I
Left Boundary Figure 5-9
Right Boundary
Specified pressure condition at reservoir boundaries for a point-distributed grid,
In order to keep the pressure at the reservoir west boundary constant, the rate of fluid e n t e r i n g the b o u n d a r y , T Xlm 1/2 ( 0 0 - 0 ' ~ ' ) boundary, TX"l + ] / 2 (O~ - O~ ) • i.e.,
m u s t equal the rate of fluid l e a v i n g the
T Xm, - I / 2 ( 0 0 - 0 ? ) = T Xm, + I / 2 ( 0 1 m - 0 m2 ).
(5.43)
Substituting Eq. 5.43 into Eq. 5.7 gives qm
= 1/2 [ - - T x : i/2 ( 0 2 l
- Om'~ -- zm
(d)m
m
_Tm
(0 2 -- 01
)
(5.44a)
-- Tx~+.~,--1 ~ (cb m - O 2 ) ,, or
qm =Tm [(P~ -P~)-Y~"+~/2(Z~ -Z2)] scl~ ,I
x I +I / 2
(5.44b)
with p~ = Pb~" Note that Eq. 5.44b can be derived from Eq. 5.2a for n = 1, ~0~ = {2}, ~1 = {bw }, and by observing that ~-" qms,,, = qms%., , /~
Tz,,lm =
T mx,,,2 ' and the RHS of Eq. 5.2a vanishes because
1
P~ = P~, at all times. Similarly, for boundary gridpoint n x , qm = T m. . . . .[(0," - O m-1 ) • cb..... . . . .
(5.45a)
5.4 Treatment of Boundary Conditions
141
or
q~SdbE,n x
-~
T"
Xnx
m
1/2
m
m
rZ
[(P,,-P,,-~)-7.-.2t •
x
x
.-Z •
x-
(5.45b)
1)]
with p,, = Po~:" The general equation becomes qm scb,bv
Tm
=
b,bP*
(
~m~,, d~m )1 bP *
(5.46a)
m
(5.46b)
or
q"SCb,bP
m
m
Z
=T"b,bP* [(pbp--pbp*)--~/b,bP*(
bP--Zbp*)]
where m
-
kiAl
(5.29b)
m
Tb,,b,,~: [/~<7B-ZT]b~j
7b.bp" = fluid gravity between boundary gridpoint bP and gridpoint bP*, and PbP = Pb " Combining Eqs. 5.46b and 5.29b gives q,,
[^
SC~,bp = tic ~
ktA1 ] . . . . . . . . ~,P*e*[ ( P b P --
PbP") -
}lb,bP* t
Z
bP -- Zbp* )]
"
(5.46,:)
In multidimensional flow, q ....... for a boundary gridpoint that falls on a specified pressure boundary in the x, y, or z direction is estimated using Eq. 5.46c with the corresponding x, y, or z replacing l.
5.4.5
Specified Boundary Gridpoint Pressure
The specification of pressure at a reservoir boundary in a point-distributed grid results in the specification of the pressure of the boundary gfidpoints that fall on that boundary as discussed in Section 5.4.4. This results in p~ -= p~, for gridpoint 1 and P,x = Pb~: for gridpoint nx for the reservoir presented in Figure 5-9. One way to implement this boundary condition is to write the flow equation for gridpoint bP* (i.e., gridpoint 2 and gridpoint nx - l in Figure 5-9) and substitute for the pressure of boundary gridpoint bP (i.e., p~ ~ p~ and P.x = Phi: ) as has been mentioned in Section 5.4.4. The resulting flow equation is given for gridpoint 2 as Tmx~.l,2[(P~-P~)-Y~%~,2(Z1 -Z~)]+Tm-
+q:: • 2
v~A (~c
t
l(~)~+l_r¢'~,,~ -
~B x2j
x>~,~[ ( P ~ - P ~ ) - ~ % ~- l m-( Z 3 - Z 2
(5.41a)
142
Chapter 5
Simulation with a Point-Distributed Grid
and that for gridpoint n x - l as
Tm Xn~
3/2
m
tn
x
x
[(P,,-2-P,
\
nl
1)--7n-3/o( x
-
~Z
n_2-Zn 1)] x
x
Wb I [ ( ~ n l l
+T'," ,,~[(Pb~ -P,',"-1)-7'."<1/2(Z. - Z _ l ) l + q " - °'-' . . . . . . . . " ~ (x At "'B ,"'-]
-- (~_)n x 1]"
(5.42a)
Another way to implement this boundary condition is to assume that the block boundary between gridpoints bP* and bP is a reservoir boundary with gridpoint bP falling outside the new reservoir description. Therefore, Eq. 5.41a for gridpoint 2 becomes Tx..... . . . . . ) m + . ttP3. - P 2 - 7 2 , 1 / 2 ( 2 3 - z 2 ) ] + q " ,~.,~:_ + q ~m _
•
where q~SObw ,2 = qm Tx..... . . . SCt~w ,1 = + . [(Ptw - P 2 n x - 1 becomes
Tm Xn~
3/2
Vb2 , r (J~xn+l __ (~_)n ],
)-~/1+1/2(21 --22)]
m
m
m
x
x
x
(5.41b)
---7 Its)2 g~cAt B
and Eq. 5.42b for gridpoint
Z
[(P. -2 - P . - l ) - - ~ n -3/2( nx -2 -Zn -1 )]
v~
q,%
-{- m ..... - , + qs~':.= 1
where qm = qm =TmXnx SObE ,n~ -1 NCbE ,nx
-1/'2
--
(5.42b)
,,h
~ ..... [['-B)n= 1 _ (B)n
_1],
[(Pb. --P,'~'<)--Y,~' 1/2( Z. - Z x
x
x
x
-1)1
"
The following examples demonstrate the use of the general equation, Eq. 5.2a, and the appropriate expressions for q"$Cb,b P to write the flow equations for boundary gridpoints in 1D and 2D reservoirs that are subject to various boundary conditions. Example 5.3 For the 1D reservoir described in Example 5.1, the reservoir left boundary is kept at a constant pressure of 5000 psia, and the right boundary is a no-flow (sealed) boundary as shown in Figure 5-10. Write the flow equations for boundary gridpoints 1 and 6. Solution The flow equation for gridpoint n in a 1D horizontal reservoir is obtained from Eq. 5.2a by discarding the gravity term, yielding
ZZ z~.
........
,,.~p, - p . )
+X"q,,, +qm 2. .......... . t~¢°
Vb ~ ~ ° [( ) ; 7 1 - ( )."] ct cAt
For boundary gridpoint 1, n = ] and p] = p ~ = 5000 psia because this gridpoint falls on the reservoir left boundary. Therefore, there is no need to write the flow equation for gridpoint 1. However, for sake of generalization, let us proceed and write the flow equation. For n = l , ~0, = {2} , ~, = {bw } , y~ q~" =qm "%., , and
(5.23)
5.4 Treatment of Boundary Conditions 143
qm = 0 In addition, T~.2 = 0.1521 STB/D-psi from Example 5.2. Therefore, subxc I m
stitution into Eq. 5.23 yields (0.1521)(p~"-p~')
+ q,c~, m
vb, _~, +l_(~);ld,
(5.47)
- ~z-~U.~)l
Furthermore, the RHS of Eq. 5.47 vanishes, resulting in
Vb, "'~'"+' -(~)7]
(5.48)
n
because p~,+l = Pl = P~ = 5000 psia. 150 STB/D
7
r
No-flow boundary
Pbw = 500
Figure 5-10
Discretized 1D reservoir in Example5.3.
Combining Eqs. 5.47 and 5.48 and solving for qm yields ~CbW ,1 m q,c,,~, = (0.1521)(5000 - p~' )
(5.49)
Note that Eq. 5.46c also gives an estimate for qm SCbw ,I
m ~ qsc~l =[tic ~ u ~ ] ~ ' 2 ( P l
15 X (1200 × 75)
-P~_)=O.OOl127×lO×lx(lOOO/2)(5000-p~')
(5.50)
= (0.1521)(5000 - pm ). Eqs. 5.49 and 5.50 give identical estimates for the flow rate of a fictitious well resulting from constant pressure boundary specification. Therefore, Eq. 5.46c produces a result consistent with that obtained using the general flow equation for a boundary gridpoint. ,, =qm For boundary gridpoint 6, n = 6 , ~6 = {5} , ~'6 = {be} , ~ , q ....... s...... ' and 1¢~ 6
q"sc6 = 0 In addition, Ts,6 = 0.1521 STB/D-psi from Example 5.2. Therefore, substitution into Eq. 5.23 yields
144
Chapter 5
Simulation with a Point-Distributed Grid
~,.+1
(0.1521)(p~• - P 6 ' ). + q ..... m _ a At [(B)6
o~
- ( B )6 ]
(5.51)
where the flow rate of a fictitious well for a no-flow boundary is given by Eq. 5.40. For the reservoir east boundary, reservoir boundary b - b~:, gridpoint bP - 6 , and qm =0 scbE,6
Substitution into Eq. 5.51 results in the flow equation for boundary gridpoint 6,
(O.1521)(p~_p6)+O=
(5.52)
Vb6 [ ( ~ ) 6 , 1 _ ( ~ ) 6 ]
a At
Example 5.4 For the 1D reservoir described in Example 5.1, the reservoir left boundary is kept at a constant pressure gradient of -O. 1 psi/ft, and the reservoir right boundary is supplied with fluid at a rate of 50 STB/D as shown in Figure 5-11. Write the flow equations for boundary gridpoints 1 and 6.
150 STB/D
Z
0 01 ps,/
qS%E= 50 STB/D
Figure 5-11
DiscreUzed 1D reservoir in Example 5.4
Solution
The flow equation for gridpoint n in a 1D horizontal reservoir is obtained from Eq. 5.2a by discarding the gravity term, yielding Z
. +q., = Vb" [(~_),,,+l_ (~)~ ] tntP~ . --P,. )+,~_,q ...........
T,? .
~e~o.
Z,t.
(5.23)
a,At
For boundary gridpoint 1, n = 1 , ~'1 = {2} , ~'1 = {bw }, Z qm ..... =qm ,%., , and qs'~, = 0 . In addition, T~.m 2 = 0.1521 STB/D-psi from Example 5.2. Therefore, substitution into Eq. 5.23 yields
(0.1521)(p~ -p~') + m q,%, - a - ~ t
5.4 Treatment of Boundary Conditions
145
where the flow rate of a fictitious well for specified pressure gradient at the reservoir left boundary is estimated using Eq. 5.33a,
q',%., = -l~c -~],,2 kxAx m [~xx ~P Imbw- ~';','2 ~-~Xbw]
(5.54)
= - [ 0 . 0 0 1 1 2 7 x 15 x (1200 x 75)] [-0.1 - 0] = - 1 5 2 . 1 5 x ( - 0 . 1 ) = 15.215. 10x1
Substitution into Eq. 5.53 results in the flow equation for boundary gridpoint 1,
r,~P,,.1 (0.1521)(p~ n - p~' ) + 15.215 = - vb, - l~.--)1 acAt B For boundary gridpoint 6, n = 6
,
~6
=
{5}
,
_ (~P)~ l
{bE } ' Z
~'~6 =
(5.55)
B qm,c,.6 =q,'~b~., , and
l~6
qm ~ = 0.1521 STB/D-psi from Example 5.2. Therefore, subsc6 = 0 " In addition, T.5,6 stitution into Eq. 5.23 yields (0.1521)(p~'
ttl
--
p6'n'+) qSCbl~6 ~'
Vb6 --
- -
a c At
i1¢..-}1 _(~)n6] IA-'E)6
(5.56)
B
/~
where the flow rate of fictitious well for a specified rate boundary is estimated using Eq. 5.36; i.e., qm
SObE,6
= 50 STB/D.
Substitution into Eq. 5.56 results in the flow equation for boundary gddpoint 6,
(0.1521)(/,; - p : ) + 5 0 =
vbo acAt
1
(5.57)
Example 5.5 Consider single-phase fluid flow in the 2D horizontal reservoir shown in Figure 5-12. A well located in gridpoint 9 produces at a rate of 4000 STB/D. All gridpoints have AXirlZ2 = 250 if, Ayj~_l/2 =
300 if, h = 100 ft, k x =
270
md, and ky
= 220
md.
The FVF and viscosity of the flowing fluid are 1.0 RB/STB and 2 cp, respectively. The reservoir south boundary is maintained at 3000 psia, the reservoir west boundary is sealed off to flow, the reservoir east boundary is kept at constant pressure gradient of O. 1 psi~if, and the reservoir loses fluid across its north
146
Chapter 5
Simulation with a Point-Distributed
Grid
qs%, = -500 STB/D | 16
No-flow boundary
11
Y T
I
17
18
19
12
13
14
•
•
•
9
300 ft
7
8
6
•
•
x
1
2
3
20 d'~- bE 0.1 psi/ft
15,
10 q--
~~
Pbs = 3000 psia
Figure 5-12
5
;00 ft No-flow boundary
STB/D
Discretized 2D reservoir in Examples 5.5 and 5.6.
boundary at a rate of 500 STB/D. Write the flow equations for gridpoints 2, 6, 10, and 18, that fall on one reservoir boundary. Solution The general flow equation for gridpoint n, in a 2D horizontal reservoir, is obtained from Eq. 5.2a by discarding the gravity term, yielding
Z Tin"tP, -- p,,m) + ,~, qm. . . . . .
0~"+1-- ( ~_)~ ] -- C~cL~Vb" " - ' ' t [(~)"
(5.23)
Before writing any flow equation, we calculate the transmissibilities in the x and y directions. The gridpoints in the x direction are equally spaced ( AxiT1/zj = Ax = 250 ft) and have the same cross-sectional area
( A x = Ay×h = 3 0 0 x ]00 ft 2) and permeability in the xdirection ( k x = 270 md), and /~ = 2 cp and B = ] RB/STB. Therefore,
T m = fl,, k ' A x
,uBAx
- 0.001127x 270×(300×100) = 18.2574 STB/D-psi.
2 x 1 × 250
The gridpoints in the y direction are also equally spaced (i.e., Ayi4~l/2 = Ay = 300 ft) and have the same cross-sectional area of Ay = ~ × h = 250 × 100 ft 2 and permeability k v = 220 md, constant viscosity of 2 cp, and FVF of 1 RB/STB. Therefore,
5.4 Treatment of Boundary Conditions
T " = fl~
kyAy ,uBAy
= 0.001127x
220 x (250 x 100)
147
= 10.3308 STB/D-psi.
2 x I x 300
In addition, T6",7 =T7 ,8~ =T~~' =T9",10 =T]m1,12 =T]"2,13 =TI"3,14 =T~"4,15 =Tm =18 ' 2574 STB/D-psi ,9 .~: because the gridpoints in the second and third rows have Ax = Ayxh
= 300x 100 ft2. However,
T~m = T~~,3 ,2
T~",4
=
=
Tj",5
=
T~"6,17
=
T~"7,18
=
T~m 8,19
=
T~" 9,2(/
=
1/22T xm ~--" 9 " 1287 STB/D psi
because the gridpoints in the first and last rows have = 150x100 ft 2. Similarly,
Ax = (Ay/2)xh
T2,7 n = T ; ,12 't =T1 m = r 3 n.8 --~-T8,13 n =T1 m =T4",9 = r 9 ,14 n =T1 m = T ym 2,17 3,18 4.19
=10.3308
STB/D-psi because the gridpoints in the second, third, and fourth columns have Ay = A x x h = 250x100 ft2, but T~" =T~",11 =T1m =T5~,10 =T~m =T~"5,20 =1/2T"=51654STB/D-psi ,6 1,16 0,15 y " because the gridpoints in the first and last columns have Ay = ( A x / 2 ) x h = 1 2 5 x 1 0 0 ft 2. For boundary gridpoint 2, n = 2 , ~P2 = {1,3,7}, ~2 = {bs }, and q ~ = 0 .
qm ..~.qm sc~S,2
Z scl,2 le~2
'
where
qm sobS,2
is obtained using Eq. 5.46c by discarding the
gravity term, resulting in k .Ay m m 220 x (250 x 100) 1(3000 - PT' ) qsm.... = [tic ~ ] 2 , 7 (Pb,. -- P7 ) = [0.001127 X 2 x I x (300)
(5.58)
m
= ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - P7 ).
In addition," T1,2m = T~.3,,,= /2~Tmx = 9.1287 STB/D-psi, T2,m7 = T my = 10.3308 STB/D-psi, and Vb~ = 250 X (300 / 2) X 100 ft 3. Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 2, (9.1287)(p~" - p~' ) + (9.1287(p~" - p~ ) + (10.3308)(p 7' - P2 )
(5.59) +(10.3308)(3000-P7)+0=
Vh l(~)~+l_(~)~]. a~. At
148
Chapter 5
Simulation with a Point-Distributed Grid
The above equation reduces to an identity equation because Plm -- P2m -- pm = 3000 psia, and the RHS vanishes 3 because p~' = p2 ÷1 = Pb, = 3000 psia. In other words, Eq. 5.59 does not introduce new information, but it confirms that Eq. 5.46c produces the correct fluid flow rate estimate across the constant pressure south boundary of gridpoint 2. For boundary gridpoint 6, n = 6 ~ , q,,SCI.6
=qm
SCbw,6
9
qm SCbw.6
where
i
~6={1,7,11}
~6={bw}
,
,
and q"sc 6 = 0
•
is obtained using Eq. 5.40 for the no-flow boundary;
1¢-~6
i.e., qm =0 SC&w ,6 m
m
71,6 = Tll,6 -
"
In addition, T~.m6 = T mx = 1 8 . 2 5 7 4 STB/D-psi,
1/~2Tm
Y
= 5.1654
STB/D-psi,
and
Vb6
=
(250 / 2) x 300 x100 ft3.
Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 6, m
m
m
in
( 5 . 1 6 5 4 ) ( p ? - p,, ) + ( 1 8 . 2 5 7 4 ) ( p 7 - p6 ) + ( 5 . 1 6 5 4 ) ( p , - p6 )
(5.6o)
+o+o= v~o [(~_)6+1_(~)61 a cAt
ForboundarygridpointlO,
Z
qm SCI,IO
.7_qm , SCbE ,tO
n=10
,
~lo ={5,9,15}
,
~'~o ={b~:}
+
and
qm SClO
=0
•
where q"SObE .t0 is estimated using Eq. 5.33b for the reservoir east
l~O
boundary, qm
........
=[tic k+A. . . . .
Opl ~
--~"I10'9[~X'X
m ~ igZ bE
,m
b~ --~]10,9
(5.61)
,]
= 10.001127 X 270 × (300 X 100) ] [0.1 - 0] = 4564.35 × (0.1) = 456.435 STB/D. 2×1 In addition, T f,10 = Txm = 18.2574 STB/D-psi, Z~~' ,10
= TI m 0.15 ~-
~ T "y = 5.1654
STB/D-psi, and Vb,° = (250 / 2) x 300 x 100 ft 3. Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 10, m
m
m
(5.1654)(p~' - P~o ) + (18.2574)(p9 - Plo ) + (5.1654)(pi ~ - Plo ) +456.435+0=
VblO
(5.62) I ( (J~)tt+l
a At ,,~,1o
,~) ....
- t~)lol.
5.4 Treatment of Boundary Conditions
For boundary gridpoint 18, n = 18 , ~'~ = {13,17,19} , ~'~8 = {bN qm,q8 = 0 "
} ,
149
and
Z qsm,,," =qs"%,, 8 , where qs'~..... is estimated using Eq. 5.37 because
qsp,~ = - 5 0 0 STB/D is specified for the whole reservoir north boundary. This rate has to be prorated a m o n g all gridpoints falling on that boundary. Therefore using Eq. 5.37, ,13
m
q":~.....
Z
(5.63)
Tl,';" q,psc
IE~,ObN
where ~Ob~ = {16,17,18,19,20}. Note that, using Eq. 5.29b,
ky Ay ..,
T~'8",13= [tic ~ y ] 1 8 , 1 3 = [0.001127 × m
Also, T~7.12 =
m T18,13 =
m 719,14 ~--
220 x (250 x 100) ] 2xlx300 = 10.3308 STB/D-psi m
(5.64)
m
10.3308 STB/D-psi, and T~6,11 = T~'o,15 = 5.1654
STB/D-psi. Substitution into Eq. 5.37 yields m
q~"~""
10.3308
× (-500) = -125 STB/D
(5.65)
5.1654 + 3 x 10.3308 + 5.1654
m m = /2 l / T "x = 9.1287 STB/D-psi, In addition, TI7.18 = Tin8
m
713,18 ~---
Tym
=
10.3308 ,
and V~, = 250 x (300 / 2) x 100 ft 3. Substitution into Eq. 5.23 results in the flow
equation for boundary gridpoint 18, (10.3308)(PL ~ -- p~'~) + (9.1287)(p~ 7 -- pl°~) + (9.1287)(Pl 9 -- pl"~)
-125+0=
Vb'' r ( £ v " q~" a A t " B "is -(-~)18l"
(5.66)
Example 5.6 Consider single-phase fluid flow in the 2D horizontal reservoir described in Example 5.5. Write the flow equations for gridpoints 1, 5, 16, and 20, which fall on two reservoir boundaries. Solution The general flow equation for gridpoint n in a 2D horizontal reservoir is obtained from Eq. 5.2a by discarding the gravity term, yielding
150
Chapter 5
Simulation with a Point-Distributed
Grid
(5.23) t~v.
l~,,
a c At
The data necessary to write flow equations for any boundary gridpoint were calculated in Example 5.5. The following is a summary: ~ " = 18.2574 STB/D-psi Tym = 10.3308 STB/D-psi T 6,7 = T7",8 = Ts",9 = T9,10 ~ = T1m1,12
TL~ = T2m~= T3"4 = T4~5 = T2 ,7n
= T7 n
,12
= TI m
2,17
= T3 m =
,8
~-
TIm 2,13
~-
T1m 3,14
~
T1m 4,15
~
T xz
T16117 = TI7,18 = T18,19 = T191,2o = ~
T8m ,13
~
Zl m 3,18
~
~
18 "2 5 7 4 S T B / D psi
Txm = 9.1287
T ~,9 = T 9,14 = Tl z4,19 = T ym
T~,6 = T6.~1 = T1z1,16 _- T~.I° = Tin,,,15 =
z T15,20
~
STB/D-psi
10 "3 3 0 8 S T B / D psi
= ~ Ty = 5.1654 STB/D-psi
qms%.,,p = ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 -- pb"p. ) S T B / D for b P = 2, 3, 4 , w h e r e 2* = 7 , 3* = 8 ,
and 4 ~ = 9 ; or more explicitly, qm
SObS ,2
=
(10.3308)(3000 - PT)
q~,,, = ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - p~" ) qm =(10.3308)(3000--P9') SCb~,4 q~)~.~ = 0 S T B / D for b P = 6,11 q m .... = 4 5 6 . 4 3 5
q,'~...... = - 1 2 5
S T B / D for b P = 1 0 , 1 5
S T B / D for b P = 1 7 , 1 8 , 1 9
For corner gridpoints, the areas open to flow in the x and y directions are half the size of those of the other gridpoints that fall on the same reservoir boundary; thus
qm =(5.1654)(3000--p~,.) STB/Dfor bP=l,5 SCbF,bP
wherel* =6
a n d 5* = 10 or m o r e explicitly, m
q,%., = ( 5 . 1 6 5 4 ) ( 3 0 0 0 - P6" ) m
qZSObS ,5 = ( 5 . 1 6 5 4 ) ( 3 0 0 0 - P m )
5.4 Treatmentof Boundary Conditions
151
q"SObW,bP = 0 STB/D for b P = 1,16 q~,,~,~ = 0 S T B / D q "SObE ,20 = 2 2 8 . 2 1 7 5
q"SCbN ,bP =
STB/D
bP =
- 6 2 . 5 S T B / D for
For boundary gridpoint 1, n = 1 ,
m + m q%., Z qm"c,., =q,%.,
'~l
=
=
{2,6}
, ~l
=
{bs,bw},
q,~, = 0 , and
m
(5.1654)(3000--P6)+0 STB/D.
a . = 9.1287 . . . . In addition, T~.m2 = ~T~ STB/D-psi, T1.6 =
and Vb, = (250 / 2) X (300 / 2) X100
16, 2 0
~
T m =
~
5.1654 STB/D-psi,
ft 3 .
Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 1, ( 9 . 1 2 8 7 ) ( p m - p[" ) + ( 5 . 1 6 5 4 ) ( p 6
- p~' ) + ( 5 . 1 6 5 4 ) ( 3 0 0 0 - P6' ) + 0 + 0
(5.67)
_ v~, [(~)1+1_(~)~]. For boundary gridpoint 5, n = 5 , ~'5 = {4,10} , ~5 = {bs,bF.} ' q ~ = 0 , and
,, + qs%, m = ~q~,5 =q'%5
( 5 " 1 6 5 4 ) ( 3 0 0 0 - - p , 0 )m+ 0
= ( 5 . 1 6 5 4 ) ( 3 0 0 0 - - P l mo) S T B / D .
m In addition, T4.m5 = ~ T x m = 9.1287 STB/D-psi, T~0.s = ~ T " y = 5.1654 STB/D-psi, a n d Vb, = ( 2 5 0 / 2) × ( 3 0 0 / 2) x ] O0 ft 3 .
Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 5, m
( 9 . 1 2 8 7 ) ( p 4 - Ps") + ( 5 . 1 6 5 4 ) ( p , o - p~' ) + ( 5 . 1 6 5 4 1 ( 3 0 0 0 - P~o ) + 0
-
Vb5
~
n+l _(~B):]"
(5.68)
152
Chapter 5
Simulation with a Point-Distributed Grid
For boundary gddpoint 167 n = 16
~16 = {11,17}
,
~
~6 = {bw,bN }
qm =0 SOl6
~
J
and ~z~ q"SCl,16 = q,% " ,16 +q~ .... = 0 - 6 2 . 5 STB/D. /~16
ttt
ttl
In addition, TI7,16 = ~ T xm = 9.1287 STB/D-psi, T~I,~6 = ~ T ym = 5.1654
STB/D-psi,
and
Vbl 6 =
(250 / 2) x (300 / 2) x 100 ft 3.
Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 16,
(5.1654)(p~1 -
-
m,..1_ P16 ) (9.1287)(p~ 7 -- P~6 ) + 0 -- 62.5 + 0 = ~gbl6 r,(Pxn+l ttB)16
For boundary gridpoint 20, n = 20 and ~
p
~'2o = {15,19}
~
~:2o = {bE,bN } .
-
~
(P n ]" ('n')16
qm = SC20
(5.~9)
0
q"SOl,20 = qm +q" = 228.2175--62.5 STB/D. SObE ,20 --S£'bN ,20
l~zO
m m In addition, T~9.z ~ = ~1 T"m = 9.1287 STB/D-psi, T~5.2 o = ~ T~" = 5.1654 STB/D-psi,
and Vb~° = ( 2 5 0 / 2 ) × ( 3 0 0 / 2 ) × 1 0 0
ft3
Substitution into Eq. 5.23 results in the flow equation for boundary gridpoint 20, (5.1654)(p~ -P_~o) " + (9.1287)(P~9. . .-. P2o) + 2 2 8 . 2 1 7 5 - 6 2 . 5 + 0 -
5.5
(5.70)
vb~0 I t-L-) ,~,~+1o _ (~)~o 1.
~
a cat
1t -
Calculation of Transmissibilities
The flow equations in Cartesian coordinates have transmissibilities in the x, y, and z directions that are defined by Eq. 2.39 in Chapter 2, 1
1
T ........ = Gy,.,~,,~.~(--~)y,,, ........ 1
~,.; ........ = G ........ (~-):~,,j ......
(5.71a)
(5.71b)
(5.71c)
5.5 Calculation o f Transmissibilities
153
where the geometric factors G for anisotropic porous media and irregular gridpoint distribution are given in Table 5-1 (Ertekin, Abou-Kassem, and King 2001). The treatment of the pressure dependent term (fiB) in Eq. 5.71 is discussed in detail under linearization in Chapter 8 (Section 8.4.1).The equations for geometric factors in Table 5-1 can be derived using the procedure followed in Example 4.7. For example, the derivation of G Xi+l/2 for ID flow in the x d i r e c t i o n is the same as that p r e s e n t e d in E x a m p l e 4.7 e x c e p t that 6 x i, = 6xi+ v = ~ AX~+l/2for a point-distributed grid. The flow equations in radial-cylindrical coordinates have transmissibility in the r, 0, and z directions that are defined by Eq. 2.69 in Chapter 2, T
T0,
1
j,~ = G~,~.j,, (~-~)r~,~.j.~
(5.72a)
1 ........
:
Goi,j ......
T j....... = G
(fl~o)Oi,]--
(5.72b) .......
1
( - - ~ ) . ....
(5.72e)
where the geometric factors G for anisotropic porous media and irregular gridpoint distribution are given in Table 5-2 (Pedrosa and Aziz 1986). Note that for gridpoint ( i , j , k ) , r~ and ri+~/2 depend on the value of subscript i only, A0j and A0j;z/2 depend on the value of subscript j only, and Azk and Azk,,,~ depend on the value of subscript k only. The treatment of the pressure dependent term (fiB) in Eq. 5.72 is discussed in detail under linearization in Chapter 8 (Section 8.4.1). Table 5-1
G e o m e t r i c Factors in Rectangular Grids (Ertekin el al. 20011
Direction
X
Geometric Factor
G
2flc ....... J'~
AxiT1/2j ~ I(Axj k jk)+AxiT1/=j k I(A~
kx
)
2flc Gyi,j ...... = AYi,j+l/z. ~ /(Ayi,j, k ky,.~.~ ) + Ayi,jTll2. k/(Ayi,~,], k kyi4;1,k )
G
= Zl,j ........
2E Z~,,ijkT_l/2 /(A.~z, j ,kk ~l, j , ~ )+AZ/jk~I/2/(A k zi,j, ~T ~) ' , , , gi,j,k;I
154
Chapter 5
Table 5-2
Simulation with a Point-Distributed Grid
G e o m e t r i c Factors in Cylindrical Grids (Pedrosa and Aziz 1986)
Direction
Geometric Factor tic AO j Azk
Gr_u2.j.k = 1Oge(ri Iril'l/2)lkr, o., +]Oge(r/t_'l/2 /r/_l)/k~_,.j~
fl ~AO j Az~ Gr.... ' ...... = log~ (r L +,,2 I r ) l kr,.,., +lOge(r~+l I r~L+u2) l k~,.,.,.,
21~c lOge (r/Ll/2 / ~1/2 )~kZk G%........ - AO j~:112 / ko,4,~ + AO J~-112 /ko,,i .....
216, ( ~ A0j )(r/] 1/,~. --/~2i_1/2) G<j ......
-
AZkTll 2 [ k j.~ + Azkz_u 2 / kz,.j.....
In Table 5-2, gridpoint spacing and block boundaries in the z direction are defined as in Eq. 5.1, with z replacing x. Those in the 0 direction are defined in a similar way. Specifically,
0 l=0,
0, ° =2:r,(i.e.,
Oj+1 = O j +AOj+I/2
0,,o-01 = 2 : r )
,j= l, 2, 3...
no -1
0j2 = 0 j + 1/zA0j+l/z , j = 1, 2, 3... n o - 1
(5.73)
A0j = 0j+l/2 - 0 j _ u 2 , j = 1, 2, 3... n o 0u2 = 01 , and 0,o+1/2 = 0, o In the r direction, however, gridpoints are spaced such that pressure drops between neighb o r i n g g r i d p o i n t s are e q u a l (see E x a m p l e 4.8 and n o t e that in this c a s e t h e r e are n r - 1 spacings separating the n r gridpoints). Additionally, block boundaries for transmissibility calculations are spaced logarithmically in r to warrant that the radial flow rates between neighboring gridpoints using the continuous and discretized forms of D a r c y ' s Law are identical (see Example 4.9), and block boundaries for bulk volume calculations are spaced logarithmically in r 2 to warrant that the actual and discretized bulk volumes of gridblocks are equal. Therefore, the radii for the pressure points ( r~,l ), transmissibility calculations ( ri~1/2 L ), and bulk-volume calculations ( r~T1/2 ) that appear in Table 5-2, are as follows ( A z I z and Settari 1979, Ertekin et al. 2001): r~+1 = alg r
(5.74)
5.5 Calculation o f Transmissibilities
rL
_
rL
-
i~1/2
i-1/2
r/+1 - r log e (r/. 1 ] r/) ri
- r/-i
155
(5.75a)
(5.76a)
log e ( r / / r _ 1)
r2 _ i+1/2
r/+l - r i2 log, (~2+1 //r/2 )
(5.77a)
r2
/.2 2 i - r-1 log e (r~2 / r//2_l)
(5.78a)
i- 1/2
_
where (5.79) C~lg - k r ~ )
and
r~ =
rw .
(5.80)
Note that gridpoint l falls on the reservoir internal boundary ( r ) and gridpoint n r falls on the reservoir external boundary ( re ); therefore, r~ = r and r,,, = r e by definition for a pointdistributed grid. F u r t h e r m o r e , r~ 1/2 = r
and r,,r+l/2 -- re define the internal b o u n d a r y for
gridpoint 1 and the external boundary for gridpoint n r that are used to calculate b l o c k bulk volumes. The b u l k v o l u m e of gridpoint (i, j , k) is calculated from Vbi,',,k = ( /~2 i+1/2 -- ~2-1/2 )(1/~2 m o j )z~kZ,k
(5.81a)
Note t h a t Fi2_1/2 = r ,,2 for i = 1 and r/+l/2 : = r e- for i = n r • It should be m e n t i o n e d that the geometric factors in the r direction given in Table 4 - 2 and 5-2,
G~,,,2.j,k , d i f f e r o n l y in the h a n d l i n g of b l o c k t h i c k n e s s . T h e b l o c k t h i c k n e s s in
Table 5 - 2 is constant for all gridpoints in layer k, whereas in Table 4 - 2 it m a y a s s u m e different values for the gridblocks in l a y e r k. This difference is a result o f grid construction in b l o c k - c e n t e r e d and point-distributed grids. Eqs. 5.75 t h r o u g h 5.78 a n d Eq. 5 . 8 1 a c a n b e e x p r e s s e d in t e r m s o f r a n d alg ( s e e E x a m p l e 4.10), resulting in r~,/: = { (a,g - 1 ) / [ l o g ~ ( a ~ ) 1 }r pL
~-]/2 = { (atg - 1 ) / [ a ~ log e ( a ~ ) ] }ri = (~[~)r~L+~/2
(5.75b)
(5.76b)
156
Chapter 5
S i m u l a t i o n with a P o i n t - D i s t r i b u t e d G r i d
r~2+1/2: {(a~ - 1)/[log e ( a ~ ) ] }r]
(5.77b)
2 iF 2 = (~a~g)F/2+l/2 , ~-1/2 = {(O~g -- 1 )ttlr~lg2 l O g e ,( a 2, g ,~] ',,i
(5.78b)
i., ~ = {(a~g - 1)2 / [a,g2 log, (a,g)] 2 }r/(1/2 A0j )Az k Vb,
(5.81b)
for i = 2, 3,...nr_ 1 . Example 4.10 demonstrates that quotients r~/r iI"- l l 2
~
ri.-ll2 L I ri_ ~ ~ ri÷ll2 L / r~ ' r~+~ / ri+1/2 L ~
and re+~z2 t- / r,L-a~2are functions of the logarithmic spacing constant Cqg only as given by Eqs. 4.111, 4.114, 4.103, 4.106, and 4.116, respectively. By substituting these equations, or Eqs. 5.82, 5.75b, 5.76b, 5.77b, and 5.78b, into T a b l e 5 - 2 and o b s e r v i n g that ( ~ AO j )(r2+1/2 - r]-l/2 ) = Vb~,~ I Azk using Eq. 5.81 a, we obtain Table 5-3.
Now, the calculation of geometric factors and pore volumes can be simplified using the following algorithm: (1) Define
fret
(5.79)
% -~,r ) (2) Let r, = r
(5.80)
r : a i -l~l E i
(5.82)
(3) Set
where i = 1, 2, 3,...n r (4) For j = 1, 2, 3, ...n o and k = 1, 2, 3,...n:, set Vb,,.~ = {(a~g - 1)2 / [ a ~ log e (a~g)]
}r~2 (1/2 A0j
)Az k
(5.81b)
for i = 2,3,...nr_ 1 VbLj,k = {1 (a~g - l) / l o g e (O~g)l - l}Tw2 (~2 A O j ) n z k
(5.81c)
Vb, .... = {1 - (a~g - 1)/[a~ log e ( a ~ ) ] }~ ( ~ a0j )Azk
(5.81d)
for i = 1 and
for i = n r . Note that Eq. 5.81b is used to calculate bulk volumes of gridpoints other than those falling on the reservoir internal and external boundaries in the r direction (see Example 5.7). For i = 1 and i = n r , Eqs. 5.81c and 5.81d are used.
5.5 Calculation of Transmissibilities
157
(5) Estimate the geometric factors using the equations in Table 5-3. Note that in the calculation of Go, ~2 or G ~i,j,nz ~ l l 2 ' terms that describe properties of blocks that fall ~i outside the reservoir ( k = 0 and k = n + 1 ) are discarded. Examples 5.7 and 5.8 show that reservoir discretization in the radial direction can be accomplished using either the traditional equations reported in the previous literature (Eqs. 5.74, 5.75a, 5.76a, 5.77a, 5.78a, 5.79, 5.80, and 5.81a ) or those reported in this book (Eqs. 7.74, 5.75b, 5.76b, 5.77b, 5.78b, 5.79, 5.80, 5.81b, 5.81c, and 5.81d) that led to Table 5-3. The equations reported in this book, however, are easier and less confusing because they use r~ and atg only. In Example 5.9, we demonstrate how to use Eq. 5.2a and the appropriate expressions for qm along with Table 5-3, to write the flow equations S(b,bp ' for boundary and interior gridpoints m a 2D single-well simulation problem. Table 5-3
G e o m e t r i c Factors in Cylindrical Grids
Direction
Geometric Factor
fl~ aO j Az k G~,........ = log. I % log~ (a~g)/(a~g - 1)] / k.j., + log. [(atg - 1) / log~(a~g)] / k_,.~,k
fl,,aO j ~ k Gr, ,2.j~ = loge[(alg -1) lloge(alg)l/k~j~ +lOge[atg lOge(alg)l(alg -1)l/kr,.,.,,
0
2tic lOge(alg)zSZk
Go,.~=.~.~ = mo jz_ll2 / koi,j,k q- mo jz_l/2 / ko,.,...... 2fi~ (Vb,.,., / ~ G zi,j ......
Z~kT_l/2
)
I k<j.k "l- z~Zk:gl/2 I k.,. .,~,
Example 5. 7 Consider the simulation of a single-well in 40-acre spacing. Wellbore diameter is 0.5 ft, and the reservoir thickness is 100 ft. The reservoir can be simulated using a single layer discretized into six gridpoints in the radial direction. (a) Find gridpoint spacing in the rdirection (b) Find the gridpoint block boundaries in the r direction for transmissibility calculations. (c) Calculate the arguments of the log e terms in Table 5-2. (d) Find the gridpoint block boundaries in the rdirection for bulk volume calculations and calculate the bulk volumes.
158
Chapter 5
Simulation with a Point-Distributed Grid
Solution
(a) The external reservoir radius can be estimated from well spacing, r = / 4 3 , 560 × 40//~ = 744.73 ft, and well radius, rw = 0.25 ft. First, estimate a~ using Eq. 5.79, = ( 7 4 4 7 3 ] '/~6-n
S e c o n d , according to Eq. 5.80, let r~ = r = 0.25 It. Third, calculate the Iocation of t h e g r i d p o i n t s in t h e r d i r e c t i o n u s i n g Fq. 5.82,
~ = a i~- l r~. F o r
example, for i = 2 , r2 = (4.9524) 2-~ x 0 . 2 5 = 1.2381 ft. Table 5 - 4 s h o w s the location of the other gddpoints along the r direction. Table 5-4
L
r~, ri~l/~- , a n d
i 1 2 3 4 5 6
r L
r L i+1/2
i-l/2
0.25 1.2381 6.1316 30.366 150.38 744.73
log. A r g u m e n t s
0.6176 3.0587 15.148 75.018 371.51
0.6176 3.0587 15.148 75.016 371.51
2.005 2.005 2.005 2.005 2.005
in T a b l e 5 - 2 f o r E x a m p l e
r'~; m
~!'l"yr,'
d:,,S,
2.005 2.005 2.005 2.005 2.005 2.005
2.470 2.470 2.470 2.470 2.470
2.470 2.470 2.470 2.470 2.470
(b) Block boundaries for transmissibility calculations
( rL
i-1/2~
5.7
4.9524 4.9524 4.9524 4.9524
i+1/2 ) are estimated
r 1"
using Eqs. 5.75a and 5.76a. For
i=2
r 2L+ l / 2
r~ - r 2
6.1316-1.2381
l o g e ( r 3 / r 2)
1oge(6.1316/1.2381)
= 3.0587 ft
_
r~.l/2 _
r2-r~ _ 1.2381-0.25 =0.6176 l o g e ( r2 / r l ) loge (1.2381/ 0.25)
ft
Table 5-4 shows the boundaries for transmissibility calculations for the other gridpoints.
(c) Table 5 - 4 s h o w s the calculated values for r / rLi-l/2 riL. 1 / 2 /r~ ' and Table 5-2.
rL
i+1/2
/ r I"
i-112
'
~+1
/ rLi+l/2 ' rLi-1/2 / fi. 1
which appear in the argument of log e terms in
'
5.5 Calculation of Transmissibilities
159
(d) The block boundaries for bulk volume calculations ( r/_1/2, r~, 1 / 2 ) are estimated using Eqs. 5.77a and 5.78a. For i = 2 , r2 - r2 t112
lOge (r~
( 6 . 1 3 1 6 ) 2 - (1.2381) 2
/rf)
ft2
-11.2707
10ge[(6.1316) 2 / ( 1 . 2 3 8 1 ) 2 ]
and r~ -r~ 2 (1"2381)2 - ( 0 " 2 5 ) 2 = 0.4595 r2_1,2 - loge(r22/r~ 2) loge [(1.2381) 2 / ( 0 . 2 5 ) z ]
ft2.
Therefore, the block boundaries for bulk volume calculations are r2+1/2 = ~
= 3.3572 ft. and 5+1/2 = ~
= 0.6779 ft.
The bulk volume for gridpoints can be calculated using Eq. 5.81a. For i = 2 , Vb2 = [(3.3572) 2 - ( 0 . 6 7 7 9 ) 2 ] ( ~ x 2 ~ ) x l O 0
= 3396.45 ft3.
For i = 1 , Vb, = l(1.3558) 2 - (0.25) 2 ](Y2 x 2 ~ ) x 100 = 124.73 ft 3.
For i = 6 , Vb0 = [(744.73) 2 - ( 4 0 7 . 7 7 ) 2 ] ( ~ × 2 ~ ) x l O 0
= 122.003x106
ft 3.
Table 5 - 5 shows the gridpoint boundaries and bulk volumes of blocks for the other gridpoints.
Table 5 - 5
Gridpoint Boundaries and Bulk Volumes for Gridpoints in Example 5.7
i
ri
rill2
ri,1/2
V~
1
0.25
0.25 a
0.6779
124.73
2
1.2381
0.6779
3.3572
3396.5
3
6.1316
3.3572
16.626
83300.3
4
30.366
16.626
82.337
2.04 x 106
5
150.38
82.337
407.77
50.1 x 106
6
744.73
407.77
744.73 b
122 x 106
a rl_l/2
b
=
rw =
r6+1/2 = r
0.25
= 744.73
160
Chapter 5
Example 5.8
S i m u l a t i o n with a P o i n t - D i s t r i b u t e d G r i d
Solve Example 5. 7 again, this time using Eqs. 5. 75b, 5. 76b, 5. 77b,
5.78b, 5.81b, which make use of re and atg , and Eqs. 5.81c and 5.81d. Solution (a) From Example 5.7, r = 744.73 ft, r1 = r = 0.25 ft, and a~g = 4.9524. In i-lF, addition, the radii of gridpoints are calculated using Eq. 5.82, re = a~g 1, as
shown in Example 5.7. (b) The block boundaries for transmissibility calculations ( ri L- l l 2
rL
~ i+1/2
) are esti-
mated using Eqs. 5.75b and 5.76b, yielding L
r,+1/2 = { (~lg - 1)/[log e (O~tsr )] }re = { (4.9524 -- 1)/[log e (4.9524)] }re
(5.83)
= 2.47045r, r L
i-1/2 = {(alg --l)/[alg lOge((-tlg)]}re = { ( 4 " 9 5 2 4 - 1 ) / I 4 " 9 5 2 4 loge (4"9524)] }re
(5.84)
= 0.49884r/. Substitution of values of re into Eqs. 5.83 and 5.84 produces the results reported in Table 5-4.
rL (c) Example 4.10 derives the ratios re~i-i~2'
re+l/
rLi + 1 / 2
'
rLi-ll2 / re-1 ' rLi + 1 / 2 / re '
and r i,L1/2 / re~/2 as functions of c~g as Eqs. 4.111,4.106, 4.114, 4.103, and 4.116, respectively. Substituting c~g = 4.9524 in these equations, we obtain re / r/~/2 = [ctt~ ]Oge (atg)l/(a~g -- ]) = [4.9524 log e(4.9524)]/(4.9524 -- 1) = 2.005
(5.85)
re,1 / re~l/2 = [alg log, (crag)] I(crlg - 1) = 2.005
(5.86)
reL-l/2 /re-1 = (alg
-l)]loge(O~tg)
=
( 4 . 9 5 2 4 - l) / lOge (4"9524) = 2.470
(5.87)
rl'i+~/ 2 / re = (alg -- l) / log e (alg) = 2.470
(5.88)
rLi+l/2 / reL_a/2 ~-~alg = 4.9524
(5.89)
Note that the values of the above ratios are the same as those reported in Table 5-4.
(d) The block boundaries for bulk volume calculations ( re_l/2, re+l/2 ) are estimated using Eqs. 5.77b and 5.78b, yielding
5.5 Calculation of Transmissibilities
(aZg)]}r~2 =
r,2.1,2 = {(a~g - 1)/[loge
161
{((4.9524) 2 - 1 ) / [ l o g e ( ( 4 . 9 5 2 4 ) 2 )] }r~2 = (7.3525)r~ 2
(5.90) r,21/2 = {(a~g - 1)/[
a~g log e (CC~g)]}r~2
= {7.3525/(4.9524) 2 }r~2 = (0.29978)r/2
(5.91)
Therefore, r.l/2 = 4(7.3525)r/2
(5.92)
= (2.7116)r/
r~_~/2 = 4(0.29978)r~ 2 = (0.54752)ri
(5.93)
The bulk volume associated with each gridpoint can be calculated using Eq. 5.81b, 5.81c, 5.81d, yielding Vb, = {(a~g - 1)2/[ a~g log e(a~,)] }52 [ ~ (2~)]z~
(5.94) = {((4.9524) 2 - 1) 2/[(4.9524) 2 log e ( ( 4 . 9 5 2 4 ) 2 )] }r~2 [1/2 (2:r)] x lO0 = 2215.7r~ 2 for i = 2,3,4,5. Vb, = { [(a~g - l) / l o g e (a2g)] - l}rw2 (1/~2 A0)Z~ (5.95) = {[((4.9524) 2 - 1) / log e ((4.9524) z )] - 1}(0.25) 2 [ ~ (2~)] x 100 = 124.73t~ 3 Vb0 = {l -- (C%z - 1)/[a~. = {l - ( ( 4 . 9 5 2 4 )
log e (aZg)1 }~ ( ~ A0)AZ
2 - l ) /[(4.9524) 2 1Oge((4.9524)2)1}(744.73)2
[~ (2zc)lxl00
(5.96)
= 122.006 X 106 ft 3" Note that the values of the estimated bulk volumes slightly differ from those reported in Table 5-5 because of round-off errors resulting from approximations in the various stages of calculations.
Example 5.9 A 0.5-ft diameter water well is located in 20-acre spacing. The reservoir thickness, horizontal permeability, and porosity are 30 ft, 150 md, and 0.23, respectively. The ( k v / k H ) for this reservoir is estimated from core data as 0.30. The flowing fluid has a clensity, FVF, and viscosity of 62.4 Ibm/ft 3, 1 RB/B, and 0.5 cp, respectively. The reservoir extemal boundary in the radial direction is a no-flow boundary, and the well is completed in the top 22.5 ft only and produces at a rate of 2000 B/D. The reservoir bottom boundary is subject to influx such that the boundary is kept at 4000 psia. The reservoir top boundary is sealed to flow. Assuming the reservoir can be simulated using three equi-spaced gridpoints in the vertical direction and four gridpoints in the radial direction, as shown in Figure 5-13, write the flow equations for gridpoints 1, 3, 5, 7, and 11.
162
Chapter 5
Simulation with a Point-Distributed Grid
2000 STB/D )w boundary
No-flow boundary 30 ft
psia T
Figure 5-13
~r
'uL
Discretized 2D radial-cylindrical reservoir in Example 5.9.
Solution In order to write flow equations, the gridpoints are first ordered using natural ordering ( n = 1, 2, 3,... ]0, ] 1, ] 2 ), as shown in Figure 5-13, in addition to being identified using the engineering notation along the radial direction ( i = 1, 2, 3, 4 ) and the vertical direction ( k = 1, 2, 3 ). This step is followed by the determination of the location of the gridpoints in the radial direction and the calculation of the gridpoints separation and elevation in the vertical direction. Next, the bulk volumes and transmissibilities in the rand z directions are calculated. We demonstrate in this example that block boundaries for transmissibility calculations and block boundaries for bulk volume calculations are not needed if we use Eqs. 5.81 b, 5.81c, and 5.81d for bulk volume calculations and Table 5-3 for transmissibility calculations. Making use of the above information, we estimate the contributions of the gridpoints to the well rates and the fictitious well rates resulting from reservoir boundary conditions. The reservoir rock and fluid data are restated as follows: h = 30ft, q~ = 0.23, k r =
k n = 150 md, k z = kn(k v / k , )
= 1 5 0 x 0 . 3 0 = 45 md, B = l RB/B,
= 0.5 cp, 7 = 7cPg = 0 - 2 1 5 8 4 × 1 0 - 3 ( 6 2 . 4 ) ( 3 2 . 1 7 4 ) = 0.4333 psi/ft, r = 0.25 ft, and the r e s e r v o i r external radius is e s t i m a t e d from well s p a c i n g a s = (20 × 43560 / zr) 1/2 = 526.60 ft. The reservoir e a s t (external) and u p p e r (top) b o u n d a r i e s a r e no-flow b o u n d a r i e s , the reservoir lower (bottom) b o u n d a r y h a s Ph,. = 4 0 0 0 psia, and the r e s e r v o i r w e s t (internal) b o u n d a r y h a s
qspsc = - 2 0 0 0 B/D to reflect the effect of the production well (i.e., the well is t r e a t e d a s a b o u n d a r y condition).
5.5 Calculation of Transmissibilities
For the point-distributed grid shown in Figure 5-13, and Azk+l/: = h / ( n Az, = 1 5 / 2 = 7 . 5
n r
4,
=
163
nz = 3,
- 1 ) = 3 0 / ( 3 - 1 ) = 15 ftfor k = 1,2 ; hence, ftfor n = 1 , 2 , 3 , 4 ;
Az, = 1 5 ftfor n = 5 , 6 , 7 , 8 ;
and
Az n = 15 / 2 = 7.5 ft for n = 9,10,11,12. Assuming the top of the reservoir as the reference level for elevation, Z n = 0 ft for n = 9,10,11,12 ; Z = 15 ft for n = 5, 6, 7, 8 ; Z, = 30 ft for n = 1, 2, 3, 4 ; and ZbL = 30 ft. The locations of the gridpoints in the radial direction are calculated using Eqs. 5.79, 5.80, and 5.82, y i e l d i n g alg = ( 5 2 6 . 6 0 / 0 . 2 5 )
1/~4-1~ = 1 2 . 8 1 8 8
a n d r~ = ( 1 2 . 8 1 8 8 ) ~ i - 1 ~ ( 0 . 2 5 )
for i = 2 , 3 , 4
r4 = 5 2 6 . 6 0
Table 5 - 6
n
i
; r~ = r
: 0 . 2 5 ft;
o r r2 = 3 . 2 0 4 7
ft, r 3 = 4 1 . 0 8 0
ft, a n d
ft.
Gridpoint Locations, Bulk Volumes, and Radial and Vertical Transmissibilities for Example 5.9
k
(ft)
(ft)
(ft)
\ (fP)
r
Z n
ris-l/2,k
TZi,k 41/2
(B/D-psi)
(B/D-psi)
1
1
1
0.25
7.5
30
45.66941
6.245838
0.041176
2
2
1
3.2047
7.5
30
7699.337
6.245838
6.941719
3
3
1
41.080
7.5
30
1265140.
6.245838
1140.650
4
4
1
526.60
7.5
30
5261005.
6.245838
4743.320
5
1
2
0.25
15
15
91.33882
12.49168
0.041176
6
2
2
3.2047
15
15
15398.67
12.49168
6.941719
7
3
2
41.080
15
15
2530280.
12.49168
1140.650
8
4
2
526.60
15
15
10522011
12.49168
4743.320
9
1
3
0.25
7.5
45.66941
6.245838
0.041176
10
2
3
3.2047
7.5
7699.337
6.245838
6.941719
11
3
3
41.080
7.5
1265140.
6.245838
1140.650
12
4
3
526.60
7.5
5261005.
6.245838
4743.320
164
Chapter 5
Simulation with a Point-Distributed Grid
The bulk volumes associated with the gridpoints are listed in Table 5-6. They are calculated using Eqs. 5.81 b, 5.81c, and 5.81d. Note that subscript j is discarded and A0 = 2 ~ . Vb,,k = { [(a~g -- 1) / log e (a~g )1-1}1-.2, ( ~ AO)Az k
= {[((12.8188) 2 - 1 ) / log e ((12.8188) 2 )1 - 1}(0.25) 2 (1/2 X 2zr)Az k = (6.0892685)kzk, i, = {(a~g Vbk
--
2 1 A0)A,?.k 1) 2/[atg2 l og e (alg)1 }ri2 ()~2
= {((12.8188) 2 - 1) 2/[(12.8188)
2
log, ((12.8188) 2 )]
}ri 2 (1/2 X
2~)Az k
= (99.957858)r/2Azk, for i = 2 , 3 and
vb,.,
= { 1 - (a~ - 1)/la~, log e (a~g)1 }re2 (/~2 A0)AZk
= {1 - ((12.8188) 2 - l ) / [ ( 1 2 . 8 1 8 8 )
2 log, ((12.8188) 2 )1}(526.60) 2 ( ~ x 2o~)Az k
= (701466.65)Az k . The transmissibility in the r direction is defined by Eq. 5.72a, yielding ........ =Gr, ........ ( - - ~ ) = G, ...... ( 0 . 5 ~ )
(5.97)
= (2)G~, ......
where Gr,........ is defined in Table 5-3. With A0 = 2~ and constant radial permeability, the equations for the geometric factor reduce to
2:r/~/,,~k G~,........ = l o g e [t2lg l o g e ( a t g ) / ( a l g
-
1)] + log~ [(atg - 1) / log e (O:tg)]
_ 2JrflckrAz k _ 2er(0.001127)(150)Azk log e (atg)
loge (12.8188)
(5.98)
- (0.4163892)Az k.
Therefore, the transmissibility in the radial direction can be estimated by substituting Eq. 5.98 into Eq. 5.97, resulting in ........ = (2)Gr, ...... = (2)(0.4163892)Az~
= (0.8327784)Az k
(5.99)
The transmissibility in the vertical direction is defined by Eq. 5.72c, yielding TZ........
=
O .......... (
) = G .......... ( ~ )
where G ~hk=l/2 is defined in Table 5-3 as
= (2)G z.........
(5.100)
5.5 Calculation o f Transmissibilities
2fie (Vb"* / AZk )
165
(5.101)
G ........ = l ~ k T l / 2 I kz,.~ + I~ZkT_I/2 / k ......
For this problem, gridpoint spacing and vertical permeability are constants; therefore, the equation for the geometric factor reduces to
z.......
2AZk~:I/2
AZkT1/2
(5.102)
(0.001127)(45)(Vb~,~ / AZ k ) = ( 0 . 0 0 3 3 8 1 ) ( V b , / AZ k). "
15
Substituting Eq. 5.102 into Eq. 5.100 results in (5.103)
T z....... = (2)Gz.~'~''~ = ( 2 ) ( 0 . 0 0 3 3 8 1 ) ( V b ,,, / AZ~ ) = ( 0 . 0 0 6 7 6 2 ) ( V b ,,, / AZ k ).
The estimated transmissibilities in the radial and vertical directions are listed in Table 5-6. Before writing the flow equations, the well production rate (specified rate for the reservoir west boundary) must be prorated between gridpoints 5 and 9 using Eq. 5.37, m
qm
'cbbp
TbP,bP*
(5.37)
~Z__, ' Tl,l* " q,p,c
l~Ob
where Tb,bP* m
=
transmissibility in the radial direction between gridpoints bP and
bP*with the well being the reservoir internal boundary and
'~)b = '~Ow = {5,
9}.
Note that gridpoint 1 has a no-flow boundary because it is not penetrated by the m
well; i.e., q,c~., = 0 . Note also that 5* = 6 and 9* = 10 according to the terminology in Figure 5-7. From Table 5-6, TY = T ~,6 m = 12.49168 bw ,6
B/D-psi a n d TY = T rgj mo = 6 . 2 4 5 8 3 8 B/D-psi. bw ,10
The application of Eq. 5.37 results in 6.245838 qm = × (-2000) = -666.67 sc~.9 6.245838 + 12.49168 12.49168 qm = •c~., 6.245838+12.49168
× (-2000) = -1333.33
B/D
B/D.
With this treatment of the production well, q"scn = 0 for each gridpoint (including 1, 5, and 9).
Chapter 5
166
Table 5-7
S i m u l a t i o n with a P o i n t - D i s t r i b u t e d G r i d
Contribution of Gridpoints to Well R a t e s and Fictitious Well R a t e s for E x a m p l e 5.9
qm
m n
i
k
q,c°
(B/D)
qm
SCbL ,n
SCbw ,n
(B/D)
(B/D)
qm
qm
scbE ,n
SCbU ,n
(B/D) (B/D)
1
1
1
0
(0.041176)[(4000
- p~ ) - (0.4333)(30
- 15)]
2
2
1
0
(6.941719)[(4000
- P6 ) - (0.4333)(30
- 15)]
3
3
1
0
(1140.650)[(4000
- P7 ) - (0.4333)(30
- 15)]
4
4
1
0
(4743.320)[(4000
- p~ ) - (0.4333)(30
- 15)]
5
1
2
0
6
2
2
0
7
3
2
0
8
4
2
0
9
1
3
0
10
2
3
0
0
11
3
3
0
0
12
4
3
0
0
5
-1333.33
0 -666.67
0
0
0
For the reservoir lower boundary, Plm = P2m = P 3" = P4m = PbL = 4000 psia. The flow rates of the fictitious wells in boundary gridpoints 1,2, 3, and 4 are estimated using Eq. 5.46c, yielding q,n = T Zi,k+l/2 " [ ( 4 0 0 0 - Pb,o" ) - ( 0 . 4 3 3 3 ) ( 3 0 - 1 5 ) ] SCbL ,bP
B/D
(5.104)
where according to Figure 5 - 1 3 and our terminology in Figure 5-7, 1' = 5 , 2* = 6 ,
3* = 7 , and 4* = 8 • For the reservoir east and upper (no-flow) bound-
a r i e s ' q m,c~," = 0 for n = 4, 8,12 and q ~
=0for
n=9,10,11,12.Thecontribu-
tions of gridpoints to the well rates and the fictitious well rates are summarized in Table 5-7. The general form of the flow equation for gridpoint n is obtained from Eq. 5.2a,
Z T/~ [(p?
-
p . . . . .
Z m_ Zm
, ) - Y,,, t ~
)] + ~ '
qm
......
.~_
m
q'c -
Wb
~ n+l - (B)n ]
" [(B)"
(5.2a)
5.5 Calculation of Transmissibilities
167
For gridpoint 1, p~' = 4000 psia because gridpoint 1 falls on the constant pressure boundary. Let us write the flow equation for this gridpoint. For gridpoint 1, n=l
i=l
k=l
~={bL,b W}
~01={2,5}
and
q. . . . . . .
~L., +qs%,,
where from Table 5-7, q m.... = (0.041176)[(4000 -- p~' ) -- (0.4333)(30 -- 15)] B/D, q"s c b w ,l = 0 , and q,'~, = 0 . Therefore, substitution into Eq. 5.2a yields (6.245838)[(p~' - p~' ) - ( 0 . 4 3 3 3 ) ( 3 0 - 30)] +(0.041176)[(p~' - p~' ) - (0.4333)(15 - 30)] (5.105)
+(0.041176)[(4000 - p~' ) - ( 0 . 4 3 3 3 ) ( 3 0 - 1 5 ) ] + 0 + 0 _ 45.66941~ [(~)~q~.+1 _ (_~)~
where
p~" = 4000
],
psia. Note that the accumulation term vanishes because the
gridpoint pressure is constant. Therefore, Eq. 5.105 after simplification becomes (6.245838)[(p~' - p~" ) - (0.4333)(30 - 30)] = 0
(5.106)
or m
(5.107)
Pl = pm 2
Eq. 5.107 does not introduce new knowledge b e c a u s e both gridpoints fall on the constant pressure bottom boundary, but it confirms that the flow equation for gridpoint 1, as expressed by Eq. 5.105, is correct. For gridpoint 3, P3 = 4000 psia b e c a u s e gridpoint 3 falls on the constant pressure boundary. Again, let us write the flow equation for this gridpoint. For gridpoint3, n = 3
i=3, k=l
'
~'3={2,4,7},
~3={bL},and
~,q,m, 3 = q " ,
$£bL ,3
'
l~ 3
where from Table 5-7, q,'~.... = ( 1 1 4 0 . 6 5 0 ) [ ( 4 0 0 0 - P 7 ) - (0.4333)(30 - 15)] B/D and qsm = 0 (no wells). Therefore, substitution into Eq. 5.2a yields (6.245838)[(p~' - P3 ) - (0.4333)(30 - 30)] +(6.245838)[(p 4 - p~' ) - (0.4333)(30 - 30)] +(1140.650)[(p 7 - p m3 )-- (0.4333)(15-- 30)] t~ ~p "+1 - ( ~ )3]' +(1140.650)[(4000 - P7 ) - (0.4333)(30 - 15)] + 0 = 1265140~ [(~)3
(5.108)
168
Chapter 5
Simulation with a Point-Distributed Grid
where P3 = 4000 psia. Note that the accumulation term vanishes because the gridpoint pressure is constant. Therefore, Eq. 5.108 after simplification becomes (6.245838)[(p~' - p~' ) - ( 0 . 4 3 3 3 ) ( 3 0 - 30)]
(5.1o9)
+(6.245838)[(p~' - p~ ) - (0.4333)(30 - 30)] = 0 or
(5.110)
pm3 = '/2 (P7 + P7 )
Eq. 5.110 does not introduce new knowledge because gridpoints 2, 3, and 4 fall on the constant pressure bottom boundary, but it confirms that the flow equation for gridpoint 3, as expressed by Eq. 5.108, is correct. For gridpoint 5, n = 5 ,
i=l,
Z qsc, " .~= q~,%.~ = -1333.33
k=2,
~05={1,6,9}, ~ 5 = { b w } ,
B/D, and q ~ = 0 (the well is treated as a boundary
condition). Therefore, substitution into Eq. 5.2a yields (0.041176)[(p~' - p~" ) - (0.4333)(30 - 15)] +(12.49168) [(p~' - p~' ) - (0.4333)(15 - 15)] (5.111)
+(0.041176)[(p~' - pm~) _ (0.4333)(0 -- 15)] -- 1333.33 + 0 _ 91.33882 [(~)~+1 _ ( ~ ) : ]. a At
In Eq. 5.111, the well is treated as a fictitious well. This treatment (or the substitution of well by a fictitious well and vice versa) is valid only in single-well simulation because, contrary to the situation in Cartesian coordinates, in cylindrical coordinates both the well and the fictitious well have radial flow. For gridpoint 7, n = 7 , i = 3
i
k=2
~
~p7={3,6,8,11}
'
~7={}
~
~q"
sct,7
=0
l~ 7
(interior gridpoint), and qm = 0 (no wells). Therefore, substitution into Eq. 5.2a sc7 yields (1140.650)[(p 3 - P7 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 1 5 ) ] +(12.49168)[(p 6 - p~' ) - (0.4333)(15 - 15)] +(12.49168)[(p~' - p~" ) - (0.4333)(15 - 15)] + ( 1 1 4 0 " 6 5 0 ) [ ( P l,,l - P 7 m ) - ( 0 . 4 3 3 3 ) ( 0 - 1 5 ) ] + 0 + 0 -
2 5a3-0~2 8 0 [(~)7 ~p " + ' - ( ~ ) 7 ] "
(5.112)
169
5.6 Symmetry and Its Use in Solving Practical P r o b l e m s
Forgridpoint 11, n = l l ,
i=3,
k=3,
~.Pll ={7,10,12}, ~:11={by},
Z q"SCl,I 1 = q"SCbU ,11 and q"SObU ,11 = 0 (no-flow boundary), and q"SOl I = 0 (no wells). /E~ll
Therefore, substitution into Eq. 8.2a yields (1140.650)[(p 7 - p~ ) - (0.4333)(15 - 0)] +(6.245838)[(pm - p,~ ) - (0.4333)(0 - 0)]
(5.113)
1265140 r(q~V+l +(6.245838)[(P12 - P~I ) - (0.4333)(0 - 0)] + 0 + 0 - - m
m
a ck t
5.6
L, B , n
q~ .
-('B)ll ].
Symmetry and Its Use in Solving Practical Problems
The use of symmetry in solving practical problems has been discussed in Chapter 4. In most cases, the use of symmetry is justified if a pattern is found in the reservoir properties. The use of symmetry reduces the efforts to solve a problem by considering solving a modified problem for one element of symmetry in the reservoir, usually the smallest element of symmetry (Abou-Kassem, Ertekin, and Lutchmansingh 1991). The smallest element of symmetry is a segment of the reservoir that is a mirror image of the rest of reservoir segments. Before solving the modified problem for one element of symmetry, however, symmetry must first be established. For symmetry to exist about a plane, there must be symmetry with regard to (1) the number of gridpoints and gridpoints spacings, (2) reservoir rock properties, (3) physical wells, (4) reservoir boundaries, and (5) initial conditions. Gridpoints spacing deal with separation between gridpoints ( ~iT-1/2 , AYjT-1/2 , AZk-T-1/2) and gridpoint elevation (Z). Reservoir rock properties deal with gridpomt porosity ( q~ ) and permeability in the various directions ( kx , ky, k ). Wells deal with well location, well type (injection or production), and well operating condition. Reservoir boundaries deal with the geometry of boundaries and boundary conditions. Initial conditions deal with initial pressure and fluid saturation distributions in the reservoir. Failing to satisfy symmetry with respect to any of the items mentioned above means there is no symmetry about that plane. The formulation of the modified problem for the smallest element of symmetry involves replacing each plane of symmetry with a no-flow boundary and determining the new interblock geometric factors, bulk volume, wellblock rate, and wellblock geometric factor for those gridpoints that share their boundaries with the planes of symmetry. To elaborate on this point, we present a few possible cases. In the following discussion, we use bold numbers to identify the gridpoints, in the element of symmetry, that require determining new values for their bulk volume, wellblock rate, wellblock geometric factor, and interblock geometric factors. The first two examples show planes of symmetry that coincide with the boundaries between gridpoints. Figure 5-14a presents a 1D flow problem in which the plane of symmetry A-A, which is normal to the flow direction (x direction) and coincides with the block boundary halfway between gridpoints 3 and 4, divides the reservoir into two
170
Chapter 5
Simulation with a Point-Distributed Grid
symmetrical elements. Consequently, Pl = P6, P2 = P5, and P3 = P4 " The modified problem is represented by the element of symmetry shown in Figure 5-14b, with the plane of symmetry being replaced with a no-flow boundary. Figure 5-16a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane of symmetry A-A is normal to the x direction and coincides with the block boundaries halfway between gridpoints 2, 6, 10, and 14 on one side and gridpoints 3, 7, 11, and 15 on the other side. Plane of symmetry B-B is normal to the y direction and coincides with the block boundaries halfway between gridpoints 5, 6, 7, and 8 on one side and gridpoints 9, 10, 11, and 12 on the other side. The two planes of symmetry divide the reservoir into four symmetrical elements. Consequently, p~ = P4 = P ] 3 = P16 , P 2 = P 3 = P14 = P15 , P5 = P8 = P 9 = P12 , and P6 = P7 = P l 0 ---- Pll " The modified problem is represented by the smallest element of symmetry shown in Figure 5-16b, with each plane of symmetry being replaced with a noflow boundary. The second two examples show planes of s y m m e t r y that pass through gridpoints. Figure 5-15a presents a 1D flow problem in which the plane of symmetry A-A, which is normal to the flow direction (x direction) and passes through gridpoint 3, divides the reservoir into two symmetrical elements. Consequently, p] = P5 and P2 = P4 - The modified problem is represented by the element of symmetry shown in Figure 5-15b, with the plane of symmetry being replaced with a no-flow boundary. This plane of symmetry bisects the gridpoint bulk volume, wellblock rate, and wellblock geometric factor for gridpoint 3 in Figure 5-16a. Therefore, for gridpoint 3, Vb, _1 --T Vb3 ' q'c3 =±q 2 'c3' and Gw3 =±2 G w3 " Note that the interblock geometric factor in the direction normal to the plane of symmetry ( Gx2,, ) is not affected. Figure 5-17a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane A-A is a vertical plane of symmetry that is parA
I
)X
I
A (a) Whole reservoir and plane of symmetry
f
l
2
3
A
I
I
~ No-flowboundary
A (b) Smallest element of symmetry
Figure 5-14
Figure 5-16
I
A (a) Whole reservoir and plane of symmetry
A
I )X
)x
i t, o-0ooun0a )×
t
A
(b) Smallest element of symmetry
1D reservoir with even gridpoints exhibiting a vertical plane of symmetry (left). 1D reservoir with odd gridpoints exhibiting a vertical plane of symmetry (right).
5.6 Symmetry and Its Use in Solving Practical Problems
171
allel to the y-z plane (normal to the x direction) and passes through gridpoints 2, 5, and 8. Note that gridpoints 1, 4, and 7 are mirror images of gridpoints 3, 6, and 9. Plane B-B is vertical plane of symmetry that is parallel to the x-z plane (normal to the y direction) and passes through gridpoints 4, 5, and 6. Note that gridpoints 1, 2, and 3 are mirror images of gridpoints 7, 8, and 9. The two planes of symmetry divide the reservoir into four symmeta
rical elements. Consequently, Pl = P3 = P7 = P9 '
P4
-= P 6
'
and P2
---- P 8 "
The modified
problem is represented by the smallest element of symmetry shown in Figure 5-17b, with each plane of symmetry being replaced with a no-flow boundary. Each plane of symmetry bisects the gridpoint bulk volume, wellblock rate, and wellblock geometric factor of the gridpoint it passes through and bisects the interblock geometric factors in the directions that are p a r a l l e l to the plane of s y m m e t r y . T h e r e f o r e , Vb2 _7Vb2,_1 qsc~ =±q2scz ,
Gw~ =½Gw2 ; Vb, Gyz,s
1 = "~ Gy2, 5 ;
=lVb 4 '
qsc, = l q ~ , ,
Gw' =½Gw,; Vb~ =lVb~, qsc, = l q ~ , ,
Gw~ =¼Gw,;
and Gx,.~ = 71 Gx,, • Note that a plane of symmetry passing through a grid-
point results in a factor of ½ as in gridpoints 2 and 4. Two planes of symmetry passing through a gridpoint result in a factor of ~ x ½- Z as in gridpoint 5. -
A
A I
13
16
9
10
5
6 •
1
2
11
7
12
g m,
..
y
L.x
•7
8
3
4
B . . . . . . . 4 Y
T
(a) Whole reservoir and planes of symmetry No-flow B --
B
boundary A
~
I_
1
8 I I I I
9
5 I I I 2 I
6
,--
"
I A
)
(a) Whole reservoir and planes of symmetry
B ~
No-flow boundary
B
3
,4
I--B
A 5
No-flow boundary
!
~x
A
(b) Smallest element of symmetry
Figure 5-15
Y T
1
)x
2
A
(b) Smallest element of symmetry
20 reservoir with even gridpoints exhibiting two vertical planes of symmetry in the x and y directions (left), Figure 5-17 2D reservoir with odd gridpoints exhibiting two vertical planes of symmetry in the x and y directions (right).
B
172
Chapter 5 Simulation with a Point-Distributed Grid
The third example presents two vertical planes of symmetry, one coinciding with the boundaries between gridpoints and the other passing through the gridpoints. Figure 5-18a presents a 2D horizontal reservoir with two vertical planes of symmetry A-A and B-B. Plane A-A is a vertical plane of symmetry that is parallel to the y-z plane (normal to the x direction) and passes through gridpoints 2, 5, 8, and 11. Note that gridpoints 1, 4, 7, and 10 are mirror images of gridpoints 3, 6, 9, and 12. Plane B-B is a vertical plane of symmetry that is parallel to the x-z plane (normal to the y direction) and coincides with the boundaries between gridpoints 4, 5, and 6 on one side and gridpoints 7, 8, and 9 on the other side• Note that gridpoints 1, 2, and 3 are mirror images of gridpoints 10, 11, and 12 and gridpoints 4, 5, and 6 are mirror images of gridpoints 7, 8, and 9. The two planes of symm e t r y d i v i d e the r e s e r v o i r into f o u r s y m m e t r i c a l e l e m e n t s • C o n s e q u e n t l y , Pl = P3 = Pl0 = Pl2, P4 = P 6 = P 7 ---- P 9 ' P 2 = Pl~ , and P5 = P8 • The modified problem is represented by the smallest element of symmetry shown in Figure 5-18b, with each plane of symmetry being replaced with a no-flow boundary• Plane of symmetry A-A bisects the block bulk volume, wellblock rate, and wellblock geometric factor of the gridpoints it passes through and bisects the interblock geometric factors in the directions that are parallel to the plane of symmetry (y direction in this case)• Therefore, lib2 =±2 V.bz
,
q,c2:½qsc~, Gw2 :lGw 2 ; Vo, :lVb~, qsc5 :lq,cs, Gw, :½Gw, ; Vb, =lVo, , q,c, =¼qsc~ , G~. =lGw~ ,• Vb,' Gya, lI
z ~,, q,c,, = ±4q .... , G
=±E
= ±4G
W l l '•
Gy2, ,
= ± G2
y 2 , 5 '•
- 7Gy,,~ ;and Gy,.,-
__ 1G 2 YS,II . Note also a plane of symmetry passing through a gridpoint results in a
factor of ½ as in gridpoints 2, 5, 8, and 11 in Figure 5-18a. The fourth two examples show oblique planes of symmetry. Figure 5-19a shows a reservoir similar to that depicted in Figure 5-15a, but the present reservoir has two additional planes of symmetry C-C and D-D. The four planes of symmetry divide the reservoir into eight symmetrical elements, each with a triangular shape as shown in Figure 5-19b. Consequently,
Pl
= P4 =
P13 =
Pl6 ,
P 2 = P3 = P14 -- P15 =
P5 = P8
= P 9 = P12 ,
P 6 = P 7 = P l o = Pll ' a n d P2 = P3 = P14 = P15 --- P5 = P8 = P 9 = P l Z " T h e m o d i f i e d problem is represented by the smallest element of symmetry shown in Figure 5-19b, with each plane of symmetry being replaced with a no-flow boundary. Figure 5-20a shows a reservoir similar to that depicted in Figure 5-17a, but the present reservoir has two additional planes of symmetry C-C and D-D. The four planes of symmetry divide the reservoir into eight symmetrical elements, each with a triangular shape as shown in Figure 5-20b.
Consequently, p~ = P3
=
P7 = P9 and P4 = P6 = P2 = P8 • The modified problem is repre-
sented by the smallest element of symmetry shown in Figure 5-20b, with each plane of symmetry being replaced with a no-flow boundary. A vertical plane of symmetry C-C or D-D that passes through a gridpoint but is neither parallel to the x axis nor the y axis (oblique plane), as shown in Figure 5-19a and Figure 5-20a, bisects the gridpoint bulk volume, wellblock rate, and wellblock geometric factor of the gridpoint it passes through•
5.7 S u m m a r y
173
A I "10
11T
I I
8~
7
B ----
12
9
B~ ~
4
51
Y
T
1
2I
- ~S No-flow boundary
6
y 3
2
I A
1,x
I A (a) Whole reservoir and planes of symmetry Figure 5-18
I
~
I: I ' I , T
g
T I I
A
No-flow boundary
(b) Smallest element of symmetry
Reservoir with even gridpoints in the ydirection and odd gridpoints in the x direction exhibiting two vertical planes of symmetry.
An oblique plane does not affect the interblock geometric factors in the x axis or the y axis. In reference to gridpoints 1, 6, and 5 in Figure 5-19b and Figure 5-20b, Vb, -T _1 Vbl ,
q,c, =±2q,q , Gw, -- '7 Gw, ," vb, -- '7 Vb, , q,c, =7, qsc6
,
' Gw, _1 - 7 Gwo ," Vb, ---8
Vb5
-~ qsc5 ' , q,c5 _1
Gw, _1 - g Gw, ; Gy,,~ =-Gyl, 2 ; Gy2,5 = ±2 G Y2,5 ; and Gx,,, = Gx2~, " Note that the four planes of symmetry (A-A, B-B, C-C and D-D) passing through gridblock 5 in Figure 5-20a result in the factor of ¼x ½ - gl used to calculate the actual gridpoint bulk volume, wellblock rate, and wellblock geometric factor for gridblock 5 in Figure 5-20b. That is to say, the modifying factor equals 1,~., X 71 where n sp is the number of vertical planes of symmetry passing through a gridpoint. It should be mentioned that set ~. for gridblocks in the modified problem might include new elements such as bsw, bNw, bsE, bNe that reflect oblique boundaries such as plane C-C or D-D. The flow rates across such boundaries ( qm-,, ) are set to zero because these boundaries represent no-flow boundaries.
5.7
Summary
This chapter presents reservoir discretization in Cartesian and radial-cylindrical coordinates using point-distributed grids. For the Cartesian coordinate system, equations similar to those represented by Eq. 5.1 define gridpoint locations and the relationships between the distances separating gridpoints, block boundaries, and sizes of the blocks represented by the gridpoints in the x, y, and z directions. Table 5-1 presents equations for the calculation of the transmissibility geometric factors in the three directions. For the radial-cylindrical coordinate system used for single-well simulation, the equations that define gridpoint locations and the relationships between the distances separating gridpoints,
Chapter 5
174
D
Simulation with a Point-Distributed
D
/C
\
t
%%13
15
14
% \ ,
/ \~10 %
9
B_
/
5 / /
/
\
g ..... 4
\ % %
Y
% %
T
4% %
2
A
/ C
/ / )x
//1
"
/
/
/
y T
No-flow~_
A }Dx
/
--B 6
%% \
I [ I I I
X \ 3%\
I
\D
A
(a) W h o l e reservoir and
Y
C
No-flow boundary
/ /
5 I
2
9// /
/
/ /IX
C
planes of symmetry. A /
T_,x
. // ,(
¢
I I % I
/ ~D
(a) Whole reservoir and planes of symmetry.
No-flow ~
.
/
C
No-flow boundary
/
/ C
I \ %
--. B
J
~x / / 1
%\7 %
12 ,
% / / "%
/'6
I 8 TI
f
11 11/ /
/ C
A
\
16// / ¢-
%,,
Grid
A
(b) Smallest element of symmetry,
C
A
(b) Smallest element of symmetry.
Figure 5-19 Reservoir with even gridpoints in the xand ydirections exhibiting four vertical planes of symmetry (left). Figure 5-20 Reservoir with odd gridpoints in the xand ydirections exhibiting four vertical planes of symmetry (right). block boundaries, and sizes of the blocks represented by the gridpoints in the r direction are given by Eqs. 5.74 through 5.81, Eq. 5.73 in the 0 direction, and an equation similar to Eq. 5.1 for the z direction. The equations in either Table 5-2 or Table 5-3 can be used to calculate the transmissibility geometric factors in the r, 0 , and z directions. Eq. 5.2 expresses the general form of the flow equation that applies to boundary gridpoints as well as interior gridpoints in 1D, 2D, or 3D flow in both Cartesian and radial-cylindrical coordinates. The flow equation for any gridpoint has flow terms equal to the number of existing neighboring gridpoints and fictitious wells equal to the number of boundary conditions. Each fictitious well represents a boundary condition. The flow rate of a fictitious well is given by Eq. 5.33, 5.36, 5.40, or 5.46 for a specified pressure gradient, specified flow rate, no-flow, or specified pressure boundary condition, respectively. If reservoir symmetry exists, it can be exploited to define the smallest element of symmetry. Planes of symmetry may pass through gridpoints or along block boundaries. To simulate the smallest element of symmetry, planes of symmetry are replaced with no-flow
5.8 Exercises
175
boundaries and new interblock geometric factors, bulk volume, wellblock rate, and wellblock geometric factors for boundary gridpoints are calculated prior to simulation.
5.8
Exercises
5-1
What is the meaning of reservoir discretization into gridpoints?
5-2
Using your own words, describe how you discretize a reservoir of length L x along the x direction using n gridpoints.
5-3
Figure 5-5 shows a reservoir with regular boundaries. (a) How many boundaries does this reservoir have Identify and name these boundaries. (b) How many boundaries does this reservoir have Identify and name these boundaries. (c) How many boundaries does this reservoir have Identify and name these boundaries. (d) How many boundaries does this reservoir have
5-4
along the x direction? along the y direction? along the z direction? along all directions?
Consider the 2D reservoir described in Example 5.5 and shown in Figure 5-12. (a) Identify the interior and boundary gridpoints in the reservoir. (b) Write the set of neighboring gridpoints ( ~0n ) for each gridpoint in the reservoir. (c) Write the set of reservoir boundaries ( ~, ) for each gridpoint in the reservoir. (d) How many boundary conditions does each boundary gridpoint have? How many fictitious wells does each boundary gridpoint have? Write the terminology for the flow rate of each fictitious well. (e) How many flow terms does each boundary gridpoint have? (f) Add the number of flow terms and number of fictitious wells for each boundary gridpoint. Do they add up to four for each boundary gridpoint? (g) How many flow terms does each interior gridpoint have? (h) What can you conclude from your results of (f) and (g) above?
5-5
Consider fluid flow in the 1D horizontal reservoir shown in Figure 5-21. (a) Write the appropriate flow equation for gridblock n in this reservoir. (b) Write the flow equation for gridpoint 1 by finding ~Pl and ~ and then using them to expand the equation in (a). (c) Write the flow equation for gridpoint 2 by finding q)2 and ~2 and then using them to expand the equation in (a). (d) Write the flow equation for gridpoint 3 by finding ~P3 and ~3 and then using them to expand the equation in (a).
176
Chapter 5
Simulation with a Point-Distributed Grid
%% = -100 STB/D
Pbw= 2000 psia ~X
Figure 5-21
5-6
1D reservoir in Exercise 5-5.
Consider fluid flow in the 2D horizontal reservoir shown in Figure 5-22. (a) Write the appropriate flow equation for gridpoint n in this reservoir. (b) Write the flow equation for gridpoint 1 by finding ~01 and ~1 and then using them to expand the equation in (a). (c) Write the flow equation for gridpoint 7 by finding ~07 and ~7 and then using them to expand the equation in (a). (d) Write the flow equation for gridpoint 15 by finding ~P15and ~15 and then using them to expand the equation in (a). (e) Write the flow equation for gridpoint 19 by finding ~P19and ~19 and then using them to expand the equation in (a). y
i x Pbw
= 3000 psia - -
19
-20
' 16
(~17
11
• 12
16
1
• 7
2 A
21"~
"13 •8
3
No-flow boL ~. .................... -14 15 dp _ ~ b--E-2 psi/ft
(~) 9 10
4
5
A
Pbs = 3000 psia
Figure 5-22
2D reservoir for Exercise 5-6.
5-7
A single-phase oil reservoir is described by four equally spaced gridpoints as shown in Figure 5-23. The reservoir is horizontal and has k = 25 md. Gridpoint spacings are Ax = 500 ft, Ay = 700 ft, and h = 60 ft. Oil properties are B = 1 RB/STB and kt = 0.5 cp. The reservoir left boundary is kept at constant pressure of 2500 psia, and the reservoir right boundary is sealed off to flow. A well in gridpoint 3 produces 80 STB/D of oil. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir.
5-8
The 1D horizontal oil reservoir shown in Figure 5-24 is described by four equally spaced gridpoints. Reservoir gridpoints have k = 90 md, Ax = 300 ft, Ay = 250 ft, and h --- 45 ft. Oil FVF and
5.8 Exercises
Z
80 STB/D
v
No-flow boundary
Pbw = 250q
Figure 5-23
Discretlzed 1D reservoir in Exercise 5-7.
viscosity are 1 RB/STB and 2 cp, respectively. The reservoir left boundary is maintained at constant pressure of 2000 psia, and the reservoir right boundary has constant influx of oil at a rate of 80 STB/D. A well in gridpoint 3 produces 175 STB/D of oil. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. Z
175 STB/D
Pbw = 2 5 0 "bE
Figure 5-24
= 80 STB/D
Discretized 1D reservoir in Exercise 5-8.
5-9
The 1D horizontal oil reservoir shown in Figure 5-25 is described by four equally spaced gridpoints. Reservoir gridpoints have k = 120 md, Ax = 500 ft, Ay = 450 ft, and h = 30 ft. Oil FVF and viscosity are 1 RB/STB and 3.7 cp, respectively. The reservoir left boundary is subject to constant pressure gradient o f - 0 . 2 psi/ft, and the reservoir right boundary is a no-flow boundary. A well in gridpoint 3 produces oil at a rate such that the pressure of gridpoint 3 is maintained at 1500 psia. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. Then estimate well production rate.
5-10
The 1D horizontal oil reservoir shown in Figure 5-26 is described by four equally spaced gridpoints. Reservoir gridpoints have k = 70 md, Ax = 400 ft, Ay = 660 ft, and h = 10 ft. Oil FVF and viscosity are 1 RB/ STB and 1.5 cp, respectively. The reservoir left boundary is maintained at constant pressure of 2700, and while the reservoir fight boundary condition is unknown, the pressure of gridpoint 4 is maintained at 1900 psia. A well in gridpoint 3 produces 150 STB/D of oil. Assuming that the reservoir rock and oil are incompressible, calculate the pressure distribution in the reservoir. Estimate the rate of oil that crosses the reservoir right boundary.
177
178
Chapter 5
Simulation with a Point-Distributed Grid
Z
qsc3 = ? STB/D P3 = 1500 psia
v
No-flow boundary,
d~bw -0
Figure 5-25
Discretized 1D reservoir in Exercise 5-9.
Z
150 STB/D
L Pbw = 270
: 1900 psia
Figure 5-26 5-11
Discretized 1D reservoir in Exercise 5-10.
Consider the 2D horizontal oil reservoir shown in Figure 5-27. The reservoir is described using regular grid. Reservoir gridpoints have Ax = 350 ft, Ay = 300 ft, h = 35 ft, k~ = 160 rod, and ky = 190 md. Oil FVF and viscosity are 1 RB/STB and 4.0 cp, respectively. Boundary conditions are specified as shown in the figure. A well in gridpoint 5 produces oil at a rate of 2000 STB/D. Assume that the reservoir rock and oil are incompressible, and write the flow equations for gridpoints 4, 5, 6, 7, 8, and 9. Do not solve the equations. Influx = 0.02 STB/D-ft 2 bN
No-flow boundary
v
d~bw 0.10 psi/ft
7
8
9 %% = -2000 STB/D
No-flow boundary Y
I
,x
Figure 5-27
300 ft
1
2
3
Pbs = 3 2 0 0
psia
Discretized 2D reservoir in Exercise 5-11.
5.8 E x e r c i s e s
5-12
Starting with Eq. 5.81a, which expresses the bulk volume of gridpoint (i, j, k), derive Eq. 5.81 c for gridpoint (1, j, k) and Eq. 5.81 d for gridpoint
5-13
A 6-inch vertical well producing 500 STB/D of oil is located in 16-acre spacing. The reservoir is 30-ft thick and has a horizontal permeability of 50 md. The oil FVF and viscosity are 1 RB/B and 3.5 cp, respectively. The reservoir external boundaries are no-flow boundaries. The reservoir is simulated using four gridpoints in the radial direction as shown in Figure 5-28. Write the flow equations for all gridpoints. Do not substitute for values on the RHS of equations.
(nr,j,k)
•
500 STB/D undary
ow boundary No-flow boundary ~r
Figure 5-28
5-14
Discretized reservoir in Exercise 5-13.
A 9 ~ -inch vertical well is located in 12-acre spacing. The reservoir thickness is 50 ft. The horizontal and vertical reservoir permeabilities are 70 md and 40 md, respectively. The flowing fluid has a density, FVF, and viscosity of 62.4 lbm/ft 3, 1 RB/B, and 0.7 cp, respectively. The reservoir external boundary in the radial direction is a no-flow boundary, and the well is completed in the top 25 ft only and produces at a rate of 1000 B/D. The reservoir bottom boundary is subject to influx such that the reservoir boundary is maintained at 3000 psia. The reservoir top boundary is sealed to flow. Assuming the reservoir can be simulated using two gridpoints in the vertical direction and four gridpoints in the radial direction, as shown in Figure 5-29, write the flow equations for all gridpoints in this reservoir.
179
180
Chapter 5
Simulation with a Point-Distributed Grid
1000 STB/D
~oundary
T
PbL= ~uuu psla ~,r
Figure 5-29
Discretized 2D radial-cylindrical reservoir in Exercise 5-14.
Chapter 6
Well Representation in Simulators 6.1
Introduction
In general, the contribution of any reservoir block penetrated by a well to the well flow rate is independent of the flow equation for that block. Such contribution has to be estimated separately from, and then substituted into, the flow equation for the wellblock. Fluid flow toward a well in a wellblock is radial regardless of the dimensionality of the flow problem. A well is modeled as a line source/sink term. In this chapter, the emphasis in 1D and 2D flow problems is on the estimation of the well geometric factor, while in 3D flow problems the focus is on the distribution of the well rate among the different blocks that are penetrated by the well. The estimation of the wellblock geometric factor is presented for a well hosted by one block and falling inside block boundaries and a well hosted by one block and falling on one or two of reservoir no-flow boundaries (in 1D and 2D flow). We present the production rate equation for a wellblock and the equations necessary for the estimation of the production rate or flowing bottom-hole pressure (FBHP) for wells operating under different conditions, which include: (1) a shut-in well, (2) a specified well production rate, (3) a specified well pressure gradient, and (4) a specified well FBHP. The production rate equation for a wellblock has the form of
qsci -
Gw~ Bi,lli ( P i - P , ~ )
(6.1)
where qsc,, Gw,, and Pi = production rate, geometric factor, and pressure for wellblock i , respecUvely, Pwi, = well pressure opposite wellblock i , and Bi and/.ti = fluid FVF and viscosity at the pressure of wellblock i . Eq. 6.1 is consistent with the sign convention of negative flow rate for production and positive flow rate for injection.
6.2
Single-Block Wells
In this section, we present the treatment of a well that penetrates a single block. Wells in 1D linear flow, 1D radial flow, and 2D areal flow fall into this category.
6.2.1
Treatment of Wells in 1D Linear Flow
Figure 6-1 depicts fluid flow in a 1D linear flow problem. Fluid transfer into or out of a reservoir block has two components, global fluid transfer and local fluid transfer. The
181
182
Chapter 6
Well Representation in Simulators
Local flow arround an injection well
Y 7 ;
x
Figure 6-1
Global flow and local flow around wells in 1D reservoirs.
global fluid transfer is linear and moves fluid from one block to another, and the local fluid transfer is radial and moves fluid within the block to a production well (or from an injection well). Although this treatment of wells is new for 1D flow problems, it is consistent with and widely accepted in modeling fluid flow in 2D, single-layer reservoirs. For a boundary gridblock (Figure 6-2) or a boundary gridpoint (Figure 6-3) in ID flow problems, it is important to differentiate between the source term that represents a real (or physical) well and the source term that represents a fictitious well (or boundary condition). This differentiation is crucial because flow resulting from a boundary condition is always linear, whereas flow to or from a real well is always radial (see Example 7.6). For example, the fluid that crosses the reservoir right boundary (gridblock 5 in Figure 6-2 or gridpoint 5 in Figure 6-3) is estimated from the specifice boundary conditions, the list of which was given in Chapters 4 and 5. However, the fluid that enters or leaves the block (gridblock 1 in Figure 6 - 2 or gridpoint 1 in Figure 6-3) at any point, including the boundary point, through a well is estimated from the radial flow equation of a real well given by Eq. 6.1. It must be mentioned, however, that modeling linear flood experiments should use boundary conditions to represent injection and production at core endpoints. The logic behind this choice is that the injection and production ends of a core flood are designed such that the end effect is minimized and, consequently, linear flow near core endpoints is realized using end-stems. An end-stem (or end-plug) is a thin cylinder that has a number of concentric grooves intersected by a number of radial grooves on the side adjacent to the core. The injected fluid enters through a hole at the center on the other side of the end-stem and flows into the grooves making a uniform distribution of fluid across the face of the core adjacent to the grooves. This design of end-stems results in linear flow of fluid along the axis of the core. For a real well, the following equations apply,
Shut-in well qsc, = 0
(6.2)
qsc, = qspsc
(6.3)
Specified well production rate
Specified well pressure gradient
6.2 Single-Block Wells
qsq
=
-
2:r'flcr~k;q' hi ~r Bi~u~
183
(6.4)
Specified well FBHP q~c, -
Gwl
B, ui (P,-Pwy,)
(6.1)
where Gw, is estimated using Eq. 6.12. The dimensions and rock properties of wellblock i , are dealt with as explained for the 2D areal flow in Section 6.2.3. Radial flow due to well
7
y x
Figure 6-2
Well at a boundary block in a block-centered grid.
Radial flow due to well
7
Linear flow due to boundary condition
yx
Figure 6-3 6.2.2
Linear flow due to boundary condition
Well at a boundary block in a point-distributed grid.
T r e a t m e n t of Wells in 1D Radial Flow
In 1D radial flow in a single-well simulation, the well is hosted by the inner ring-like blocks here termed block 1 ( i = 1 ). Traditionally, wells in radial flow (single-well simulation) are treated as boundary conditions (Aziz and Settari 1979; Ertekin, Abou-Kassem, and King 2001). In the engineering approach, such wells can be treated as either source terms (real wells) or fictitious wells (boundary conditions) because in cylindrical coordinates both real wells and fictitious wells have radial flow. Chapters 4 and 5 present equations for the flow rate of fictitious wells. In this section, we present equations for the flow rate of wells as a source term. The well production rate equations for block 1, under various well operating conditions, are given as follows:
Shut-in well qsc, = 0
(6.5)
184
Chapter 6
Well Representation in Simulators
Specified well production rate qsq
=
(6.6)
q~psc
Well FBHP can be estimated from Equation 6.9, with qsps~replacing q,~, .
Specified well pressure gradient
qs~
-
2~flcrwku~ hl ~rr B 1 ~'L1
(6.7) w
Specified well FBHP Darcy's Law for radial flow applies, i.e.,
qs~ =
2~fl ckHh (Pe -- Pwi ) BktlOge(re /rw)
(6.8)
For a block-centered grid, consider the flow of fluid in the radial segment enclosed b e t w e e n the e x t e r n a l radius r~ (the p o i n t r e p r e s e n t i n g g r i d b l o c k 1) and the well radius rw (the internal radius of gridblock 1). In this case, re = r~, Pe = Pl, and qsc = qsc, • Therefore, Eq. 6.8 becomes 2 attic k~, h 1
qsc,
Blfll loge(rl/rw) (Pl -Pwl)
=
(6.9a)
from which 2zcflcku, h 1
(6.10a)
Gwl - loge(r~ / r ) Eq. 6.10a can also be obtained by finding Gr ,2 for i = i in Table 4 - 2 or Table 4-3, discarding the second term in the denominator that corresponds to the nonexistent gridblock 0, and observing that, for a block-centered grid, r~ 2 = r by definition if Table 4 - 2 is used or (r 1 / rw) = [t~lg log e ( a t g )
](alg
-
1)] , as given by Eq. 4.87, if Table 4-3 is used.
For a point-distributed grid, consider the flow of fluid between gridpoints 1 and 2. These two gridpoints can be looked at as the internal and external boundaries of a radial reservoir segment. The application of Darcy's Law for radial flow gives
qsc I =
because where
Pe ----P2 ' P.~ = Pl
,
2attic (kwh / Blz)~'2 (P2 - P,)
(6.9b)
loge(r2/rw) r = r2 , and rj = rw . Eq. 6.9b is in the f o r m o f Eq. 6.8,
6.2 Single-Block Wells
2~flc (kHh)l'2 Gwl = loge(r2 / r )
185
(6.10b)
Eq. 6.10b can also be obtained by finding G .... for i = 1 in Table 5 - 2 or Table 5-3 and observing that for a point-distributed grid, r~ -- r by definition and (r2 / q ) = alg as given by Eq. 5.74. Note that for constant permeability ( k l = k 2 = k/~ ) and constant thickness (h l=h 2=h),
( k H h ) l , 2 = k ~ h = k u h 1.
You will notice that in a point-distributed grid, there is no need to write the flow equation for gridpoint 1 because the pressure of gridpoint 1 is known ( Pl = Pwf ). In fact, this equation is nothing but Eq. 6.9b, which gives an estimate of the flow rate of wellblock 1 (refer to Exercise 6-7). The pressure of gridpoint 1 ( pl = Pwy ), however, is substituted in the flow equation for gridpoint 2.
6.2.3
Treatment of Wells in 2D Areal Flow
The wellblock pressure ( p ) and FBHP ( Pwl ) of a vertical well hosted by a wellblock in a single-layer reservoir are related through the IPR (Inflow Performance Relationship) equation (Peaceman 1983), qsc -
Gw
B/t ( p - Pwy)
(6.11)
where
Gw=
2~flcknh
(6.12)
[log e (req / rw ) -I- s]
T
Ay Y
Figure 6-4
Equivalent wellblock radius in a rectangular block showing anisotropy.
For anisotropic wellblock properties, k H is estimated from the geometric mean permeability,
kn = [kxky ]05.
(6.13)
The equivalent wellblock radius, for a well located at the center of a rectangular wellblock having anisotropic permeability as shown in Figure 6--4, is given by
186
Chapter 6
W e l l R e p r e s e n t a t i o n in S i m u l a t o r s
0 28 [(ky / k x ) 05" ( A x ) 2 + (kx / ky )0.5(Ay)2 ]0.5 Teq ~
"
[(ky / k x )0.25
.~_ ( k x [ k Y ) 0.25]
(6.14)
For isotropic permeability in the horizontal plane ( k x = ky ) and a rectangular wellblock, Eq. 6.14 reduces to rq = 0.14[(~c) 2 + (Ay)2]05
(6.15)
For isotropic permeability and a square wellblock ( Ax = Ay ), Eq. 6.15 becomes rq = 0.198Ax
(6.16)
Eqs. 6.14 through 6.16 apply to both block-centered and point-distributed grids. These equations, however, assume that the vertical well coincides with the center of the block hosting the well. They also have no provisions for the departure of the well axis from the block center. Therefore, the closer the well to the wellblock center, the better the representation of pressure distribution around the well. For centered wells in regularly distributed grids, the application of these equations is equally good for both grids, but the block-centered grid is preferred in an irregularly distributed grid because the wellblock center always coincides with the well. For wells that fall on reservoir boundaries (see Section 6.3.3), however, the point-distributed grid is preferred because the well and the gridpoint coincide. For horizontal wells, Eq. 6.11 applies but with an appropriate definition of G w . Further details on the estimation of G w for horizontal wells can be found elsewhere (Babu and Odeh 1989, Ertekin et al. 2001). Examples 6.1 and 6.2 demonstrate the estimation of the wellblock geometric factor in square and rectangular blocks, isotropic and anisotropic permeability, and wells with and without skin. Examples 6.3 through 6.6 demonstrate the estimations of the well production rate and obtain the wellblock production rate equation under various well operating conditions. Example 6.1 A single-phase oil reservoir, consisting of a horizontal layer, has many vertical production wells. Table 6-1 identifies four of these wells and the dimensions, permeabilities, and skin factors of their wellblocks. Each well is located at the center of the wellblock and fully penetrates the layer. The oil FVF and viscosity are 1 RB/STB and 2 cp, respectively. Well diameter is 7 inches. Calculate the wellblock geometric factors for the wells given in Table 6-1. Solution Well W- 1 The wellblock has k x ~ ky and z~c ~=A y . Therefore, Eqs. 6.14 and 6.13 can be used to estimate the equivalent wellblock radius and horizontal permeability, respectively
6.2 Single-Block Wells
T a b l e 6-1
187
Dimensions, Permeabilities, and Skin F a c t o r s of W e l l b l o c k s Wellblock
Well ID Ay (ft)
W- 1
208
832
30
100
225
0
W-2
208
832
30
150
150
0
W-3
416
416
30
100
225
0
W-4
416
416
30
150
150
0
req
=
h (ft)
kx (md)
ky (md)
Ax (ft)
0.28 [(225 / 100) 0.5(208) 2 + (100 / 225) 0.5 (832) 2 ]0.5
= 99.521 ft
[(225 / 100) °'25 -I-(100 / 225) 0.25]
a n d k . = [100 × 225] 0.5 = 150 md.
The wellblock geometric factor is estimated using Eq. 6.12, Gw =
2 ~ x 0.001127 × 150 x 30
= 5.463 RB-cp/D-psi.
{log e [99.521/(3.5 / 12)] + 0} Well W-2
The wellblock has k x = ky but Ax ~=A y . Therefore, Eq. 6.15 can be used to estimate the equivalent wellblock radius, req = 0.14 × [(208) 2 + (832) 2]0.5 = 120.065 ftandk H=k x=ky=150md. The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding Gw =
2 ~ x 0 . 0 0 1 1 2 7 x 150x30 {log e[120.065/(3.5 / 12)] + 0}
= 5.293 RB-cp/D-psi.
Well W-3
The wellblock has k, ~ k r but Ax = A y . Therefore, Eqs. 6.14 and 6.13 can be used to estimate the wellblock equivalent radius and horizontal permeability,
req = 0.28 [(225 / 100) 0.5(416) 2 + (100 / 225) o.5(416) 2 ]0.5 = 83.995 ft
[(225 / 100) o.25 + (100 / 225) o.25]
a n d k H = [100 x 225] 0.5 = 150 md.
s
188
Chapter 6
Well Representation in Simulators
The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding Gw =
2 ~ x 0.001127 x 150 x 30
= 5.627 RB-cp/D-psi.
{log e [83.995/(3.5 / 12)] + 0}
Well W-4 The wellblock has k, = ky and A x = A Z . Therefore, Eq. 6.16 can be used to estimate the equivalent wellblock radius, req = 0.198 x 416 = 82.364 ft and k H = 150 md. The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding
Gw -
2~x0.001127x 150x30 {log e[82.364/(3.5 / 12)] + 0}
= 5.647 RB-cp/D-psi.
It should be noted that even though all four wellblocks have the same thickness of 30 ft, area of 173,056 ft 2, and horizontal permeability of 150 rod, the well geometric factors are different because of heterogeneity and/or wellblock dimensions.
Example 6.2 Consider well W- 1 in Example 6.1 and estimate the well geometric factors for the following cases:
(a)
No mechanical well damage, i.e., s = 0.
(b)
Well damage resulting in s = + 1 .
(c)
Well stimulation resulting in s = - 1 .
Solution The wellblock of well W-1 has k x ~ ky and Ax ~ A y . Therefore, Eqs. 6.14 and 6.13 can be used to estimate the equivalent wellblock radius and horizontal permeability,
r = 0.28 [(225 / 100) 0.5( 2 0 8 ) 2 -I- (100 / 225) 0.5( 8 3 2 ) 2 ]0.5 = 99.521 ft eq [(225 [ 100) 0.25 + (100 / 225) 0.25]
and k , = [100 x 225] °s = 150 md. The wellblock geometric factor is estimated using Eq. 6.12. (a) For s = 0 (zero skin),
6.2 Single-Block Wells
2 ~ x 0 . 0 0 1 1 2 7 x 150 x 30 Gw =
- 5.463 RB-cp/D-psi.
{log e [ 9 9 . 5 2 1 / ( 3 . 5 / 12)1 + O}
(b) For s = +1 (positive skin),
G W-
2 ~ x 0 . 0 0 1 1 2 7 x 150 x 30
= 4.664
RB-cp/D-psi.
{log e [ 9 9 . 5 2 1 / ( 3 . 5 / 12)] + 1}
(c) For s = -1 (negative skin),
2:rr x 0 . 0 0 1 1 2 7 x 150 x 30 Cw =
= 6.594 RB-cp/D-psi.
{log e [ 9 9 . 5 2 1 / ( 3 . 5 / 12)1 - 1}
This example demonstrates the effect of well damage and stimulation on the well geometric factor and, in turn, on the well production rate. The reported damage in this well reduces the well geometric factor by 14.6%, where as the reported stimulation increases the well geometric factor by 20.7%.
Example 6.3 Consider well W- 1 in Example 6. I and estimate the well production rate for the following possible operating conditions: (a) Well is closed. (b) Constant production rate of 3000 STB/D. (c) Pressure gradient at sandface of 300 psi/ft. (d) Wellblock pressure is Po and FBHP is kept at 2000 psia. Solution For well W-l, % = 99.521 ft, k , = 150 md, and G w = 5.463 RB-cp/D-psi from Example 6.1. (a) For a closed well, Eq. 6.2 applies. Therefore, q,q = 0 STB/D. (b) For a specified production rate, Eq. 6.3 applies. Therefore, q,c, = -3000 STB/D. (c) For a specified pressure gradient, Eq. 6.4 applies. Therefore, 2 ~ x 0 . 0 0 1 1 2 7 x (3.5 / 12) x 150 x 3 0 q,,, -
X 300 = -1394.1
1x2
(d) For a specified FBHP, Eq. 6.1 applies. Therefore,
STB/D.
189
Chapter 6
190
Well Representation in Simulators
q,cl -
5.463 1 × ~ (Po - 2000)
or
(6.17)
qscl = -2.7315(p o - 2000) STB/D.
If, for example, the wellblock pressure is 3000 psia, then Eq. 6.17 predicts qsc, = - 2 . 7 3 1 5 ( 3 0 0 0 - 2 0 0 0 ) = - 2 7 3 1 . 5
STB/D.
Example 6.4 Estimate the FBHP of the well hosted by gridblock 4 in Example 4.1. The wellbore diameter is 7 inches, and the well has zero skin. Solution
From Example 4.1, gridblock 4 has the following dimensions and properties: Ax = 1000 ft, Ay = 1200 ft, h = Az = 75 ft, and k x = 15 md; and the flowing
fluid has B = 1 RB/STB and/~ = 10 cp. The well in gridblock 4 has qsc, = -150 STB/D. The local flow of fluid toward this well is radial. The equivalent wellblock radius can be estimated using Eq. 6.15, rq = 0 . 1 4 × [ ( 1 0 0 0 ) 2 +(1200)2] 0.5 = 218.687 ft and k , = k x = 15 md.
The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding 2x×0.001127 x15x75 Gw = {log e [ 2 1 8 . 6 8 7 / ( 3 . 5 / 12)] + 0} = 1.203 RB-cp/D-psi.
Applying Eq. 6.1 gives
1.203 -150-
l × 10
(P4 -Pwi, )
'
from which the FBHP of the well in Example 4.1, where qsc, = -150 STB/D, can be estimated as a function of the pressure of gridblock 4 as Pwl. = P4 - 1246.9 psia.
(6.18)
6.2 Single-Block Wells
191
Example 6.5 Consider the single-weft simulation in Example 4.11. Write the production rate equation for the well in gridblock 1 for each of the following well operating conditions: (a) The pressure gradient at sandface is specified at 200 psi/ft. (b) The FBHP at the middle of formation is kept constant at 2000 psia. Rock and fluid properties are as follows: k H = 233 md, B = 1 RB/STB, and k~ = 1.5 cp.
Solution The following data are taken from Example 4.11: r = 744.73 ft, r w = 0.25 ft, and h = 1 0 0 ft. In addition, discretization in the radial direction results in r 1 = 0 . 5 0 1 2
ft, r 2 = 2 . 4 8 1 9
a n d r 5 -- 3 0 1 . 4 5 7
ft, r3
-----
1 2 . 2 9 1 4 ft, r 4
=
60.8715
ft,
ft.
(a) For a specified pressure gradient, Eq. 6.7 applies. Therefore, 2re x 0.001127 x 0.25 x 233 × 100 qsc, =
x 200 = -5499.7
STB/D.
1 x 1.5
(b) For a specified FBHP, Eq. 6.9a applies. Therefore, 2 ~ × 0.001127 x 233 × 100
q,c,
=
1 × 1.5 × l o g e ( 0 . 5 0 1 2 / 0 . 2 5 ) (Pl - 2 0 0 0 )
or
qsc, = 158.1407(pl - 2000) STB/D
(6.19)
If, for example, the wellblock pressure is 2050 psia, then Eq. 6.19 predicts qsc, = -158.1407(2050 - 2000) = -7907.0 STB/D.
Example 6.6 Write the production rate equation for the well in gridpoint 9 in Example 5.5, and then estimate the FBHP of the well. The wellbore diameter is 7 inches and the wellblock has zero skin. Solution From Example 5.5, the block represented by gridpoint 9 has the following dimensions and properties: Ax = 250 ft, Ay = 300 ft, h = 100 ft, k x = 270 md,
192
Chapter 6
and
ky =
Well Representation in Simulators
220 md; and the flowing fluid has B = 1 RB/STB and p = 2 cp. The well
(or wellblock 9) production rate is specified at
qsc9 = -4000 STB/D.
The equivalent wellblock radius and horizontal permeability can be estimated using Eqs. 6.14 and 6.13, yielding
% = 0.28
[(220 / 270) 0.5(250) 2 + (270 / 220) 0.5( 3 0 0 ) 2 ]0.5 [(220 ] 270) 0.25 + (270 / 220) 0.25] = 55.245 ft
and k H = [270 × 220] 0.5 = 243.72 md. The wellblock geometric factor is estimated by substituting values into Eq. 6.12, resulting in 22~ × 0.001127 x 243.72 x 100 Cw =
= 32.911 RB-cp/D-psi.
{ l o g e [55.245/(3.5 / 12)] + 0}
Applying Eq. 6.1 gives
qsc9 -
32.911 (P9 --Pwj9 ) = -16"456(P9 -Pwy~ ) STB/D, lx2
- -
from which the FBHP of the well in Example 5.5, where q,c9 = -4000 STB/D, can be estimated as a function of the pressure of gridpoint 9 as
Pwf9 =
6.3
P9 -- 243.1 psia
(6.20)
Multiblock Wells
In this section, we present treatments of pressure variations within the wellbore, allocation of the well production rate among all the layers penetrated by the well, and the treatment of the flow between the well and its hosting block, especially for wells that fall on reservoir no-flow boundaries. 6.3.1
Vertical Effects (Flow Within Wellbore)
Pressures within the wellbore, opposite wellblocks, differ because of hydrostatic pressure, frictional loss due to flow, and kinetic energy. For vertical wells, the latter two factors can be neglected; therefore, pressure variation in the wellbore resulting from hydrostatic pressure can be expressed as
6.3 Multiblock Wells
193
Pw~ = Pw/,,~ + 7wb ( Zi - Zref )
(6.21)
where P~b = 7c Pwbg
(6.22)
and P wb =
Psc
(6.23)
B
Average FBHP can be used to obtain an estimate for ~ . qsc
t rWTret_~
-*
Pwfn~ ~ .... _
~
- - Z-ref
:--Z n
qs~o,
~"
nl
1
-¢.
Pwfn~ ~
-~_Zn2
A7R 2
~ ~ ~qscn2
Pwfn3 : ~ ~Z n ~ ~ ~qs~na
~w = {nl 'n2'n3}
Figure 6-5 6.3.2
Wellblock
Cross-section showing pressureswithin vertical wellbore.
Contribution to Well Rate
In this case, the vertical well penetrates several blocks. Figure 6-5 shows a well that penetrates wellblocks located in different layers, i.e., the wellblocks are vertically stacked. The concern here is to estimate the production rate of wellblock i , where wellblock i is a member of the set of all blocks that are penetrated by the well; i.e., i ~ ~0w . The equations in this section also apply to the well in single-well simulation if the appropriate wellblock geometric factors are used. Shut-in well qsc~ : o Specified well production rate
The contribution of wellblock i to the well production rate is given by Eq. 6.1,
(6.2)
194
Chapter 6
Well Representation in Simulators
GW
qsc, -
(Pi --
Pw~)
(6.1)
Bi/lZ i
where Pw~ is given by Eq. 6.21. Combining Eqs. 6.1 and 6.21 yields aw
q~"
-
Bi
fli
[P, - P~ir,j - ~wb (Z~ - Zref )]
(6.24)
The sum of the production rates of all wellblocks must add up to the specified well production rate; i.e., qsesc = ~ q~c, ie~p~
(6.25)
The FBHP of the well ( Pwire¢ ) can be estimated by combining Eqs. 6.24 and 6.25, yielding G~ Z {(~)i[Pi--~wb(Zi-Zref)]}q-qspsc ie~OW pwL~ ----
Q
(6.26)
For a specified well production rate, Eq. 6.26 is used to estimate Pw:,,:, and this estimate is subsequently used in Eq. 6.24 to calculate the wellblock production rate. The use of Eq. 6.26, however, requires the knowledge of the unknown pressure values of all wellblocks. An implicit treatment of Pw:,,: solves the problem, but such treatment leads to complications (e.g. construction and solution of the resulting matrix equation) that are beyond the scope of this introductory book. Ertekin, Abou-Kassem, and King (2001) presented the details of the implicit treatment of Pw:r,: • One solution is to estimate Pw:r,r at the beginning of each time step (old time level n); another solution is to assume that all vertically stacked wellblocks have the same pressure drop ( Pi -Pwy, -- Ap ). Solving Eq. 6.26 for Ap and substituting the result into Eq. 6.1 yields
qspsc
qscl --
(6.27)
leapw
Furthermore, if fluid properties are not sensitive to small pressure variations and all vertically stacked wellblocks are assumed to have the same equivalent well radius and skin factor, the above equation can be simplified to
6.3 Multiblock Wells
(k~lh) i qsc, - ~_, (knh), qspsc
195
(6.28)
l~lfi w
Eq. 6.28 prorates the well production rate among vertically stacked wellblocks according to their capacities (kHh)i. In addition, if the horizontal permeability of various layers is the same, then the well production rate is prorated according to wellblock thickness,
h, q,c, =
h----~
(6.29)
¢
ls~p~
Specified well pressure gradient For a specified well pressure gradient, the contribution of wellblock i to the well production rate is given by q,c =
2erF~flcr, k,, h, ~p dr Bi/,~ i
(6.30)
where F = ratio of wellblock i area to the theoretical area from which the well withdraws its fluid (see Section 6.3.3).
Specified well FBHP The contribution of wellblock i to the well production rate is given by Eq. 6.24, awi - - -- - -
qsc, -
Bi~i
[ P i - - Pwfr~ f - - ~ w b ( Z i
-- Z r e f
)]
(6.24)
The following example demonstrates the estimation of the production rate of individual wellblocks that are penetrated by the same well and the estimation of FBHP of the well.
Example 6. 7 Consider the well in Example 5.9. The well production rate is specified at 2000 B/D of water. (a) Prorate the well production rate between wellblocks 5 and 9. (b) Estimate the FBHP of the well at the formation top if the pressure of gridpoints 5 and 9 are 3812.5 and 3789.7 psia, respectively. (c) Prorate the well production rate between wellblocks 5 and 9 if the pressure of gridpoints 5 and 9 are known a priori as given above. Assume that the well fully penetrates both wellblocks and uses open well completion.
Solution The following data are taken from Example 5.9: r = 526.6 ft, r = 0.25 ft, k , = 150 md, B = 1 RB/STB, /~ = 0.5 cp, and 7 = 0.4333 psi/ft. In addition,
196
Chapter 6 Well Representation in Simulators
discretization in the radial direction results in r~ = r = 0.25 ft, r2 = 3.2047 ft, r3 = 41.080 ft, and r4 --- 526.60 ft; discretization in the vertical direction results in h 5 = 15 , Z 5 = 15, h 9 = 7 . 5 , and Z 9 = 0 ft. The FBHP is to be reported at the elevation of the formation top; i.e., ZreI = 0 ft. (a) The well in this problem is completed in wellblocks 5 and 9; i.e., ~0w = {5, 9 } . For a point-distributed grid, the wellblock geometric factors for wellblocks 5 and 9 are estimated using Eq. 6.10b, yielding
2z~flckHsh5
2er×0.001127 x 150×15 -
Gw5 -
log e (r2 / r )
= 6.2458 B-cp/D-psi
log e (3.2047 / 0.25)
and G
w9
2zcflckmh9
2z~ x 0.001127 x 1 5 0 x 7.5
log, (r2 / rw)
log e (3.2047 / 0.25)
= 3.1229 B-cp/D-psi.
Eq. 6.27 can be used to prorate well rate among wellblocks, resulting in
6.2458
(lx .5) q,c5 = ( ~ ) 5 + Gw q,p,c =
(~)9
6.2458
3.1229
X 2 0 0 0 = 1333.33 B/D
and
3.12299
qsc9 = (~p)5
Gw
(1×05)-× 2 0 0 0 = 666.67 B/D. qw,c = 6.24588 3.12299
Note that in this case, the wellblock rates can be prorated according to thickness using Eq. 6.29 because the FVF, viscosity, and horizontal permeability are constant. (b) The FBHP at the reference depth can be estimated using Eq. 6.26.
6.3 Multiblock Wells
P~
_3.1229 6.2458 ( ~ _ _ _ )[3812.5 - 0.4333(15 - 0)] + ( ~ ) [ 3 7 8 9 . 7 1x0.5 ix0.5 = 6.2458 3.1229 lxO.5
- 0.4333(0 - 0)]
197
2000
lxO.5
or
Pw:,e:
= 3693.8 psia
(6.31)
(c) The first step involves the estimation of the FBHP at the reference depth as shown in (b). The result is given by Eq. 6.31 as
Pw:,,:
= 3693.8 psia. The
second step involves applying Eq. 6.24 for each wellblock, yielding q~c, = ( ~ ) [ 3 8 1 2 . 5 ix0.5
- 3693.8 - 0.4333(15 - 0)] = 1401.56 B/D
and 3 1229 qsc9 = ( ~ ) [ 3 7 8 9 . 7 IXO.b
6.3.3
3 6 9 3 . 8 - 0 . 4 3 3 3 ( 0 - 0)] = 598.97 B/D
E s t i m a t i o n of the W e l l b l o c k G e o m e t r i c Factor
In general, the geometric factor for wellblock i ( Gw, ) is a fraction of the geometric factor for the theoretical well for wellblock i ( G'w, ),
Gw, = F~ x Gw,
(6.32)
where F = ratio of wellblock area to the theoretical area from which the well withdraws its fluid. The geometic factor depends on well location in the wellblock and whether or not it falls at reservoir no-flow boundaries. Figure 6 - 6 shows a discretized reservoir surrounded by no-flow boundaries and penetrated by a few vertical wells. Two of these wells fall at the center of wellblocks (wells W - A and W-K), four wells fall on one reservoir boundary (wells W-B, W-C, W-D, and W-E), and five wells fall at the intersection of two reservoir boundaries (wells W-F, W-G, W-H, W-I, and W-J). F~ = 1 if the well falls within the boundaries of a wellblock, F~ = 1/2 if the well falls on one reservoir boundary, F~ = 1/4 if the well falls at the intersection of two reservoir boundaries. The theoretical well geometric factor for wellblock i depends on well location as well as well radius and the dimensions and permeabilities of the wellblock. To estimate the geometric factor for wellblock i , the dimensions of the theoretical area from which the well withdraws its fluid ( Ax x Ay ) are first determined from the knowledge of the well location. This is followed by estimating the theoretical well geometric factor, using the equations presented in Section 6.2.3. Eq. 6.13 is used to estimate the horizontal permeability for wellblock i ; Eq. 6.14, Eq. 6.15, or Eq. 6.16 is used to estimate the theoretical equivalent wellblock radius; and Eq. 6.12 is used to estimate the geometric factor for the theoretical well for
198
Chapter 6
Well Representation in Simulators
Ax (ft) 200 300 .~_ ~..~ _ _
~-
350
250
300
__~__.-)
400
)H32
33
34
WC 35
36
G' > " 1250
26
27
28
29
30
t 15o
20OA
21
22
23
24
1--
14
15
16 OK
17
18
8
9
10
11
12
: 350
2 B
3
4
5
6
250
86
99
128
137
156
_T
142 ~~)E19
"O vE v '>,., 117
13
88
T -(~
200
D ( ) i i450 ~~]
73
)x
Figure 6-6
k x (md)
Single-layer reservoir penetrated by vertical wells.
wellblock i ( G~., ). Finally, Eq. 6.32 is used to estimate the geometric factor for wellblock i ( Gw, ). For vertically stacked wellblocks such as those shown in Figure 6-5, F~ = 1 , Ax = Axi , and Ay = Ayi . Therefore, the theoretical well geometric factor for wellblock i and the geometric factor for wellblock i are identical; i.e., Gw, = G~, . In this section, we present configurations in which the well is located on one and two reservoir no-flow boundaries. We consider wells that are located at reservoir no-flow boundaries and that each produce from a single block (wells W-B, W-C, W-D, W-E, and W-F). There are three possible configurations. The wellblock geometric factor in each configuration is estimated as follows: (1) The method of images for the well and wellblock with respect to no-flow boundaries used by Abou-Kassem and Aziz (1985) is used to define the theoretical area from which the well withdraws its fluid. (2) The geometric factor for the theoretical well for the wellblock is estimated using Eq. 6.14, derived b y Peac eman ( 1983 ) for a rectangular wellblock with anisotropic permeabilities. (3) The ratio of the wellblock area to the theoretical area from which the well withdraws its fluid is determined ( F~ ) as before. (4) Eq. 6.32 is used to estimate the geometric factor for wellblock i ( GW, ).
6.3 Multiblock Wells
199
Configuration 1 Figure 6-7a presents a well located at the south boundary of a boundary wellblock that falls on the reservoir south boundary (well B, hosted by block 2 in Figure 6-6). Figure 6-7b depicts the theoretical area from which the well withdraws fluid that is twice the area of the hosting wellblock; i.e., Ax = Ax~ and Ay = 2Ay~ • Accordingly, %, and G~, are calculated. Finally, F~ = Y2 as shown in Figure 6-7c. A well that is located at me north boundary of a boundary wellblock (well W-C, hosted by block 35 in Figure 6-6) receives similar treatment.
Axi
Axi
Y A~
I
O" (a)
~ r e q 442,'
i
Il
I"' re, I
ay i
(C)
(b) Figure 6-7
Configuration I for a well on the reservoir south boundary.
Configuration 2 Figure 6-8a presents a well located at the east boundary of a boundary wellblock that falls on the reservoir east boundary (well D, hosted by block 18 in Figure 6-6). Figure 6-8b depicts the theoretical area from which the well withdraws fluid that is twice the area of the hosting wellblock; i.e., Ax -- 2Axi and Ay = Ay~ • Accordingly req, and G~, are calculated. Finally, F, = 1/2 as shown in Figure 6-8c. A well that is located at the west boundary of a boundary wellblock (well W-E, hosted by block 19 in Figure 6-6) receives similar treatment.
Axi
%'~!~; i ...... .h
l
"
~x (a) Figure 6-8
r ltjeqL~
(b)
(c)
Configuration 2 for a well on the reservoir east boundary.
Configuration 3 Figure 6-9a presents a well located at the intersection of the south and east boundaries of a wellblock that falls on the reservoir south and east boundaries (well W-F, hosted by block 6 in Figure 6-6). Figure 6-9b depicts the theoretical area from which the well withdraws fluid that is four times the area of the hosting wellblock; i.e., Ax = 2Axi and Ay= 2Ayi . Accordingly rq~ and G*w, are calculated. Finally, F~ = 1/4 as shown in
200
Chapter 6
Well Representation in Simulators
Ax i
Ax i
y
I
AY i
'T
~::--J .....
-L-f-
,,' .-%(
reqi
> x (a)
-27:. .....
;-,".,,-'.
,
/-
i
/
Fi = 1/4
AYi
flay i
:_" ......
req i
/%J
(c)
l_L_
(b)
Figure 6-9
Configuration 3 for a well on the reservoir south and east boundaries.
Figure 6-9c. A well that is located at the intersection of the reservoir south and west (well W-J), west and north (wells W-H and W-I), or east and north (well W-G) boundaries receives similar treatment. Example 6.8 The single-phase oil, heterogeneous, anisotropic reservoir shown in Figure 6-6 has many vertical production wells. The reservoir consists of a 40-ft thick horizontal layer and has no-flow boundaries. Table 6-2 lists the identification of a few of these wells and the dimensions and permeabilities of the wellblocks. Each well fully penetrates the layer, and all wells were drilled with a 7-inch bit and have open-hole completion. Calculate the wellblock geometric factors for the wells given in Table 6-2. Assume zero skin factors. Table 6-2
W e l l s and T h e i r W e l l b l o c k D i m e n s i o n s and P r o p e r t i e s for Example 6.8 Wellblock Dimensions
Well ID
Wellblock Order
(ft)
Ay fit)
h
(ft)
Wellblock Permeabilities
k x (md)
ky (md)
W-A
20
300
200
40
86
142
W-B
2
300
250
40
86
65
W-D
18
400
450
40
156
117
W-F
6
400
250
40
156
65
Solution Well W-A Wellblock 20 totally hosts well W-A, which falls at its center or inside the gridblock boundaries. Therefore, F. = l , Ax = Ax i = 3(X) ft, and Ay = Ay i = 200 ft. Wellblock 20 has k x = 86 md and ky = 142 md. Eqs. 6.14 and 6.13 are used to estimate the equivalent wellblock radius and horizontal permeability, yielding
6.3 Multiblock Wells
r .q2o
= 0 . 2 8 I(142/86)°5(300)2 +(86/142)°5(200)21°5 [(142 / 86) o.25 + (86 / 142) o.25]
- 53.217 ft
and k.2 ° = [ 8 6 × 1 4 2 ] 0.5 = 110.51 md. The well geometric factor specific to wellblock 20 is estimated by substituting values into Eq. 6.12, resulting in
G~,2o
2at × 0 . 0 0 1 1 2 7 × 110.51 × 40 {1Oge[53"217/(3"5/12)]+0} -- 6.012 RB-cp/D-psi.
The geometric factor for wellblock 20 is obtained using Eq. 6.32, yielding
Gw~° = l ×6.012 = 6.012 RB-cp/D-psi. Well W-B Wellblock 2 hosts well W-B, which falls at the south gridblock boundary (configuration 1). Therefore, F, = ~ , ~c = Ax i = 300 ft, and Ay = 2Ay i = 2 × 250 = 500 ft. Wellblock 2 has k~ = 86 md and ky = 65 md. Eqs. 6.14 and 6.13 are used to estimate the equivalent wellblock radius and horizontal permeability, yielding ~'q2 = 0.28 [(65 / 86) 0.5 (300) 2 + (86 / 65) 0.5 (500) 2 ]0.5 = 84.468 ft
1(65 / 86) 0.25 + (86 / 65) 0.25] and k ~ = 186 x 65] °5 = 74.766 md. The well geometric factor specific to wellblock 2 is estimated by substituting values into Eq. 6.12, resulting in G~'2
2 ~ x 0.001127 x 74.766 × 40 { log e [84.468/(3.5 / 12)] + 0} = 3.736 RB-cp/D-psi.
The geometric factor for wellbtock 2 is obtained using Eq. 6.32, yielding Gw2 = ~ x 3.736 = 1.868 RB-cp/D-psi.
Well W-D Weltblock 18 hosts well W-D, which falls at the east gridblock boundary (Configuration 2). Therefore, F~ = Y2 , ~c = 2Axi = 2 x 400 = 800 ft, and Ay = Ay~ = 450 ft. Wellblock 18 has k x = 156 md and ky = 117 md. Eqs. 6.14 and 6.13 are used to estimate the equivalent wellblock radius and horizontal permeability, yielding
201
Chapter 6
202
Well Representation in Simulators
r q,, = 0.28 [(117 / 156) °5 (800) 2 + (156 / 117) 0.5 (450) 2 ]o.5 = 123.96 ft [(117 / 156) 0.25 + (156 / 117) 0.25] and k,, 8 = I156×11710.5 = 135.10 md. The well geometric factor specific to wellblock 18 is estimated by substituting values into Eq. 6.12, resulting in G* w'8
= 2 J r x 0 . 0 0 1 1 2 7 × 1 3 5 . 1 0 x 4 0 = 6.632 RB-cp/D-psi. { l o g e [123.96/(3.5 / 12)] + 0}
The geometric factor for wellblock 18 is obtained using Eq. 6.32,yielding Gw,' = ~ × 6.632 = 3.316 RB-cp/D-psi. Well W-F Wellblock 6 hosts well W-F, that falls at gridblock south and east boundaries (Configuration 3). Therefore, F, = I/4 , Ax = 2Ax i = 2 x 400 = 800 ft, and Ay = 2 × Ayi = 2 × 250 = 500 ft. Wellblock 6 has k x = 156 md and ky = 65 md. Eqs. 6.14 and 6.13 are used to estimate the equivalent wellblock radius and horizontal permeability, yielding - 0 2811(65 / 156) 0.5 (800) 2 + (156 / 65) 0.5 (500) 2 ]0.5 - 122.31 ft " [(65 / 156) 0.25 + (156 / 65) 0.25]
Feq6 - -
and k,6 = [156 x 6511o.5 = 100.70 md. The well geometric factor specific to wellblock 6 is estimated by substituting values into Eq. 6.12, resulting in 2:r x 0.001127 x 100.70 x 40 G* = = 4.723 RB-cp/D-psi. w~ {log, [122.3 l / ( 3 . 5 / 12)] + 0} The geometric factor for wellblock 6 is obtained using Eq. 6.32, yielding Gw~ = 1/4×4.723 = 1.181 RB-cp/D-psi. Table 6-3 shows the summary of intermediate and final results.
6.3.4
E s t i m a t i o n of W e l l R a t e a n d F B H P
If the F B H P of a well ( Pufr,r ) is specified, then the well production rate can be estimated as the sum o f production rates from all w e l l b l o c k s that are penetrated b y the well; i.e.,
6.4 Practical Considerations Dealing with Modeling Well Operating Conditions
Table 6 - 3
Well ID
203
Estimated Properties of Theoretical Wells and Wellblock Geometric Factors
Wellblock Config. # i
Wellblock
Theoretical Well
6x
6y
k
ky
k.,
%'
G;,
(if)
(~)
(md)
(md)
(md)
(if)
300
200
86
142
110.51 53.220 6.012
Fi
aw i
1
6.012
W-A
20
W-B
2
1
300
500
86
65
74.766 84.468 3.736
1.868
W-D
18
2
800
450
156
117
135.10 123.96 6.632
3.316
W-F
6
3
800
500
156
65
100.70 122.31
1.181
4.723
q,, : ~ q,c, iEg,~
(6.33)
If, on the other hand, the well production rate is specified, then the FBHP of the well ( Pwi.~, ) can be estimated using Eq. 6.26, G~
Y---, {( ~-~ ),[Pi
Pwyr,s =
i~.
-~,+(Z, -Zrez)l}+qse,c (6.26)
t~/z
E i~g,w
Eqs. 6.26 and 6.33 apply to vertical wells that are completed through vertically stacked wellblocks.
6.4
Practical Considerations Dealing with Modeling Well
Operating Conditions It is important for a reservoir model to represent the basic features of well performance. For example, a production well may not produce fluids at a constant rate indefinitely. We usually specifiy a desired constant rate for a well ( qspsc ) and place a constraint on the FBHP of the well ( P~fs, ). The specified FBHP must be sufficient to transport fluid from the bottom hole to the wellhead and maybe even to fluid treatment facilities. Additionally, an injection well may not inject fluid at a constant rate indefinitely. We usually specify a desired constant rate for a well ( qsps, ) that is consistent with the availability of injected fluid and place a constraint on the FBHP of the well ( P % ) that is consistent with the maximum pressure of the used pump or compressor (Abou-Kassem 1996). The specified FBHP plus frictional loss in the injection well and the surface lines minus fluid head in the well must be less than or equal to the maximum pressure for the injection pump or com-
204
Chapter 6
Well Representation in Simulators
pressor. To include the aforementioned practical features in a simulator, the following logic must be implemented in the developed simulator: (1) set P.j;,¢ - - P % (2) estimate the well FBHP ( p,f~,, ) that corresponds to the specified desired production (or injection) well rate using Eq. 6.26, and (3) use qsps, for the well rate as long as Pws~,, > P % for a production well or Pwi~,, < P% for an injection well, and distribute the well rate accordingly among the wellblocks ( qsc, ) as outlined in the text. Otherwise, (1) set P%, = Pwj,,¢ , (2) estimate the wellblock rate ( q,c, ) for each wellblock in the well using Eq. 6.24, and (3) estimate the resulting well rate for multiblock wells using Eq. 6.33. These three steps are executed every iteration in every time step. A similar treatment is followed if the well pressure gradient at sandface is specified instead of the well rate. In this case, the desired wellblock rate is calculated using Eq. 6.4. If we neglect implementing provisions for the treatment of the above practical considerations in a simulator, the continuous withdrawal of fluids may result in negative simulated pressures and the continuous injection of fluids may result in infinitely large simulated pressures. All reservoir simulators used by the petroleum industry, however, include logic for handling varying degrees of complicated well operating conditions.
6.5
Summary
Wells can be completed in a single block in 1D and 2D single-layer reservoirs or in multiblocks in multilayer reservoirs. Wells can be shut in or operated with a specified production rate, pressure gradient, or bottom-hole pressure. Shut-in wells have zero flow rates, and Eq. 6.2 defines the production rate of wellblocks completed in shut-in wells. Eq. 6.1 represents the IPR equation for a wellblock, and this equation can be used to estimate the production rate from the wellblock or the pressure in the well opposite the wellblock. In singlewell simulation, wells are incorporated in the flow equation as line source terms using Eq. 6.9. The wellblock geometric factor in a rectangular wellblock is estimated using Eq. 6.12. Eq. 6.4 can be used to estimate the wellblock production rate for a well operating with a specified pressure gradient, whereas Eq. 6.1 is used for a well operating with specified flowing bottom-hole pressure. In multiblock wells, proration of the well production rate among wellblocks can be achieved using Eqs. 6.24 and 6.26 and the wellblock geometric factor is estimated using Eq. 6.32.
6.6
Exercises
6-1
A well penetrates the whole thickness of a single layer. Does fluid flow toward (or away from) the well linearly, radially, or spherically?
6-2
In reservoir simulation, a well is represented as a source/sink line in the wellblock. (a) What is the fluid flow geometry within a wellblock in a 1D reservoir?
6.6 Exercises
(b) What is the fluid flow geometry within a wellblock in a 2D reservoir? (c) What is the fluid flow geometry within a wellblock in a 3D reservoir? 6-3
You develop a model to simulate a 1D, linear-flood experiment. Do you use fictitious wells or physical wells to reflect fluid input in the first block and fluid output out of the last block? Justify your answers.
6-4
You develop a single-well model. Justify why it is possible to use either a fictitious well or a physical well to describe the well rate in this case.
6-5
What are the different well operating conditions? Write the well production rate equation for each well operating condition.
6-6
Prove that Eq. 6.9a is nothing but the flow rate of the fictitious well resulting from flow across the inner boundary of gridblock 1 in radial-cylindrical flow, which is equivalent to the flow term between the left boundary and the block center of gridblock 1; i.e., G,~.... (P0 - Pl ) qsc, = B ~ I where G~.... is given in Table 4-3 in Chapter 4 and P0 = Pwl -
6-7
Prove that Eq. 6.9b can be derived from the steady-sate flow equation for gridpoint 1 in radial-cylindrical flow and by using the definition of geometric factors given in Table 5-3 in Chapter 5.
6-8
Consider the reservoir presented in Example 6.8. Figure 6-6 shows the block dimensions and permeabilities. Calculate the wellblock geometric factors for those penetrated by the wells identified as W-C, W-E, W-G, WH, W-I, W-J, and W-K. All aforementioned wells have open-hole completion and were drilled with a 5-inch bit.
205
Chapter 7
Single-Phase Flow Equation for Various Fluids 7.1
Introduction
The single-phase, multidimensional flow equation for a reservoir block was derived in Chapter 2. In Chapter 3, this flow equation was rewritten using CVFD terminology for a reservoir block identified by engineering notation or block order. Chapters 4 and 5 presented the treatment of blocks that fall on reservoir boundaries using fictitious wells. In Chapter 6, the wellblock production rate equation was derived for various well operating conditions. In this chapter, the single-phase, multidimensional flow equation that incorporates the wellblock production rate and boundary conditions is presented for various fluids, including incompressible, slightly compressible, and compressible fluids. These fluids differ from each other by the pressure dependence of their densities, formation volume factors (FVFs), and viscosities. The presentation includes the flow equation for an incompressible system (rock and fluid) and the explicit, implicit, and Crank-Nicolson equations for slightly compressible and compressible fluids. The flow equations for blockcentered grids and point-distributed grids have the same general form. The differences between the two grid systems lie in the construction of the grid, the treatment of boundary conditions, and the treatment of the wellblock production rate as was discussed in Chapters 4, 5, and 6. The presentation in this chapter uses CVFD terminology to express the flow equation in a multidimensional domain.
7.2
Pressure Dependence of Fluid and Rock Properties
The pressure-dependent properties that are important in this chapter include those properties that appear in transmissibility, potential, production, and the accumulation term, namely, fluid density, FVF, fluid viscosity, and rock porosity. Fluid density is needed for the estimation of fluid gravity using y = y,,pg
(7.1)
The equations used for the estimation of these properties for various fluids and rock porosity are presented next.
207
208
7.2.1
Chapter 7 Single-Phase Flow Equation for Various Fluids
IncompressibleFluid
This type of fluid is an idealization of gas-free oil and water. An incompressible fluid has zero compressibility; therefore, regardless of pressure, it has a constant density, FVF, and viscosity. Mathematically,
7.2.2
p ~ f(p) = constant,
(7.2)
B ~ f ( p ) = B ° _= 1,
(7.3)
/~ ~ f(p) = constant.
(7.4)
SlightlyCompressible Fluid
A slightly compressible fluid has a small but constant compressibility (c) that usually ranges from 10 -5 to 10 4 psi -1. Gas-free oil, water, and oil above bubble-point pressure are examples of slightly compressible fluids. The pressure dependence of the density, FVF, and viscosity for slightly compressible fluids is expressed as: p = p° [i + c(p - p°)]
B =
B °
[1 + c(p - p° )]
/~ = [1 - c, (p - p° )]
(7.5) (7.6)
(7.7)
where p ° , B ° , #° = fluid density, FVF, and viscosity at reference pressure ( p° ) and reservoir temperature, and c = the fractional change of viscosity with pressure change. Oil above its bubble-point pressure can be treated as a slightly compressible fluid with the reference pressure being the oil bubble-point pressure and, in this case, p ° , B ° , and /~" are obtained from oil-saturated properties at the oil bubble-point pressure.
7.2.3
Compressible Fluid
A compressible fluid has orders of magnitude higher compressibility than that of a slightly compressible fluid, usually 10 -2 to 10-4 psi -1 depending on pressure. The density and viscosity of a compressible fluid increase as pressure increases but tend to level off at high pressures. The FVF decreases orders of magnitude as the pressure increases from atmospheric pressure to high pressure. Natural gas is a good example of a compressible fluid. The pressure dependencies of the density, FVF, and viscosity of natural gas are expressed as
Pg B-
P,c
acP~
pM
zRT _
PS~T z
acT~,, P
(7.8)
(7.9)
209
7.3 General Single-Phase F l o w Equation in Multi Dimensions
/~g = f ( T , p , M )
(7.10)
The equations presented by Lee, Gonzalez, and Eakin (1966) and Dranchuk, Islam, and Bentsen (1986) are two forms of f ( T , p , M ) in Eq. 7.10. Although these gas properties can be estimated using Eqs. 7.8 through 7.10, these equations are used, external to a simulator, to calculate the density, FVF, and viscosity as functions of pressure over the pressure range of interest at reservoir temperature. The calculated FVF and viscosity are then supplied to the simulator in tabular form as functions of pressure. In addition, the gas density at standard conditions is supplied in order to calculate the gas density that corresponds to the gas FVF at any pressure.
7.2.4
Rock Porosity
Porosity depends on reservoir pressure because of the combined compressibility of rock and pore. Porosity increases as reservoir pressure (pressure of the fluid contained in the pores) increases. This relationship can be expressed as ~b= ~p°[1+ % ( p - p ° ) ]
(7.11)
where qb° = porosity at the reference pressure ( p° ), and % = porosity compressibility, ff the reference pressure is chosen as the initial reservoir pressure, then q~° may incorporate the effect of overburden on porosity.
7.3
General Single-Phase Flow Equation in Multi Dimensions
The single-phase, multidimensional flow equation for block (gridblock or gridpoint) n that incorporates boundary conditions is presented using CVFD terminology as in Eq. 4.2 (or Eq. 5.2), ~zm[(p~, l,n
. . . . zm__Z~)l+ g'q,. + m Vb,, ..~b..+l q~. - P. ) - 7~,,, t s q,c n - a-~ lt~)n -- (~). ] L--a SOl, n
(7.12)
where ~p. = the set whose elements are the existing neighboring blocks in the reservoir, ~. = the set whose elements are the reservoir boundaries ( b L , b s , b w , b E, b u , b v ) that are shared by block n , and q~,,. = flow rate of the fictitious well representing fluid transfer between reservoir boundary l and block n as a result of a boundary condition. For a 3D reservoir, ~n is either an empty set for interior blocks or a set that contains one element for boundary blocks that fall on one reservoir boundary, two elements for boundary blocks that fall on two reservoir boundaries, or three elements for boundary blocks that fall on three reservoir boundaries. An empty set implies that the block does not fall on any reservoir boundary, i.e., block n is an interior block, and hence
210
Chapter 7 Single-Phase Flow Equation for Various Fluids
qm
..... = 0
Chapter 6 discussesthe estimation of the production rate equation for a wellblock ( q~ sc n
)
with the well producing (or injecting) fluid under a given operating condition. The accumulation term, represented by the RHS of Eq. 7.12, is presented for each type of fluid separately in Sections 7.3.1, 7.3.2, and 7.3.3. In engineering notation, block order n is replaced with (i,j,k) and Eq. 7.12 becomes
T~,(~,j,k>I(P~" - P~k , , ) - 7"l,(i,j,k) (Z, -- Zi,j,k
~
) ] -{-
IE~];i,j,k
IE~i,j,k
qm sct,ti,j,k ) + qs,m,,, j (7.13)
- ~t
7.3.1
"B "''j'~ - (-B)"J" I.
Incompressible Fluid Flow Equation
The density, FVF, and viscosity of an incompressible fluid are constant independent of pressure (Eqs. 7.2 through 7.4). Therefore, the accumulation term for an incompressible fluid ( c = 0 ) but a compressible porous medium reduces to gbn
~
~) n
Vbn ~) : C *
n+l
acAt [(_),,+1 _ ( 7 ) , ] = ~ [ p ,
n
-P,, ]
(7.14)
with B = B ° _=1 for negligible fluid thermal expansion. If, in addition, the porous medium is treated as incompressible ( % = 0 ), the accumulation term expressed by Eq. 7.14 becomes zero; i.e.,
v~. ,.qL.,, q~ n ---7-1~-:~n --(7to ] = 0
OSc Z3,t
1-1
(7.15)
Substituting Eq. 7.15 into Eq. 7.12 yields the flow equation for incompressible systems, T~.. [(p, - p. ) - 7t.. (Z, - Z,, )] + ~
q ...... + q.c. = 0
(7.16a)
or
lEIPi,j,k
Tt,(i,j,k~[(Pl--Pi4,~)--I'l,(i,j,~>(ZI--Zi,j,~)]+ ~. q~c...j.~,+qs
(7.16b)
The superscript m in Eq. 7.16 is dropped because none of the pressures depend on time, in addition to the condition that the wellblock production rate and boundary conditions do not change with time. Therefore, the pressure distribution for incompressible flow systems does not change with time. This means that such flow problems have steady-state solutions.
7.3 General Single-Phase Flow Equation in Multi Dimensions
7.3.1.1
211
Algorithm for Obtaining the Pressure Solution
The pressure distribution for an incompressible flow problem is obtained using the following steps: (1) Calculate the interblock transmissibilities for all reservoir blocks. (2) Estimate the production rate (or write the production rate equation) for each wellblock in the reservoir as discussed in Chapter 6. (3) Estimate the flow rate (or write the flow rate equation) for each fictitious well in the reservoir as discussed in Chapter 4 (or Chapter 5); i.e., estimate the flow rates resulting from the boundary conditions. (4) For every gridblock (or gridpoint) in the reservoir, define the set of existing neighboring reservoir blocks ( ~0 ) and the set of reservoir boundaries that are block boundaries ( ~ n ) ' expand the summation terms in the flow equation (Eq. 7.16 in this case), and substitute for the wellblock production rate obtained in (2) and the fictitious well rates obtained in (3). (5) Factorize, order, and place the unknown pressures on the LHS and place the known quantities on the RHS of each flow equation. (6) Solve the resulting set of equations for the unknown pressures using a linear equation solver such as those presented in Chapter 9. (7) Estimate the wellblock production rates and fictitious well rates if necessary using the flow rate equations obtained in (2) and (3). (8) Perform a material balance check.
Material Balance Check for an Incompressible Fluid Flow Problem
7.3.1.2
For an incompressible fluid flow problem (constant q5 and B), there is no accumulation of mass in the reservoir. Therefore, the sum of fluids entering and leaving the reservoir boundaries including wells must add up to zero (or a small number to account for roundoff errors); i.e., N
~.~ (q,c,, + ~ q ...... ) = 0 n~l
(7.17a)
ICOn
where N = total number of blocks in the reservoir. The production (or injection) rate is set to zero for any reservoir block that is not penetrated by a well. The second term in the parentheses in Eq. 7.17a takes care of fluid flow across the reservoir boundaries resulting from boundary conditions. If reservoir blocks are identified using engineering notation, N
subscript n and summation ~
in Eq. 7.17a are replaced with subscript (i,j,k) and
n=l nx
ny
nz
~ ~ i-1 j-1 k=l
, respectively. The resulting equation is
212 Chapter 7 Single-Phase Flow Equation for Various Fluids
nx
ny
nz
~,~F.,~_,(q.~<j. + ~_, q.~,.,.i.~))=O i-1 j = l k=l
(7.17b)
le~i,j,k
The material balance check that is expressed by Eq. 7.17 can be derived by writing Eq. 7.16 for each block in the system ( n = 1,2,3...N ) and then summing up all N equations. All interblock flow terms in the resulting equation cancel out, leading to Eq. 7.17. It is customary to perform a material balance check after solving any simulation problem. An unsatisfactory material balance check implies an incorrect pressure solution for the problem. A satisfactory material balance check, however, does not necessarily imply a correct pressure solution. If the material balance check is unsatisfactory, the flow equation and all of its elements (transmissibilides, well production rate, fictitious well rates, ~0,,, . . . . . etc.) for every gridblock (gridpoint) in the reservoir and the solution of the algebraic equations must be carefully investigated in order to find the cause of the error. Examples 7.1 through 7.6 present the solutions for several variations of the 1D flow problem. The variations include different boundary conditions, well operating conditions, and well location within the reservoir block. Example 7.1 demonstrates the application of the algorithm presented in this section to obtain the pressure solution. Example 7.2 presents an approximate solution method used by other reservoir simulation books when dealing with a constant pressure boundary in a block-centered grid. In Example 7.3, the well produces oil with a constant FBHP specification instead of a constant well production rate. In Example 7.4, the reservoir right boundary is specified as a constant pressure gradient boundary instead of a no-flow boundary. In Example 7.5, the reservoir is an inclined reservoir instead of horizontal. In Example 7.6, the well is relocated at a reservoir boundary, and the effect of treating it as a boundary condition is demonstrated. Example 7.7 presents a 2D reservoir with anisotropic permeability. Example 7.8 presents a 2D homogeneous and isotropic reservoir showing symmetry. Example 7.1 A single-phase fluid reservoir is described by four equal blocks as shown in Figure 7-1. The reservoir is horizontal and has homogeneous and isotropic rock properties, k = 270 md and (p = 0 . 2 7 . The gridblock dimensions are A x = 300 ft, Ay = 350 ft, and h = 40 ft. The reservoir fluid properties are B = B ° = 1 RB/STB, p = 50 Ibm/ft3, and # = 0.5 cp. The reservoir left boundary is kept at constant pressure of 4000 psia, and the reservoir right boundary is sealed off to flow. A 7-#7 vertical well was drilled at the center of gridblock 4. The well produces 600 STB/D of fluid and has a skin factor of 1.5. Assuming that the reservoir rock and fluid are incompressible, find the pressure distribution in the reservoir and the FBHP of the well. Perform a material balance check. Solution T h e gridblocks have the s a m e d i m e n s i o n s and rock properties. Therefore, 71, 2 = T2, 3 = 7_3,4 =
T x
,
where
7.3 General Single-Phase Flow Equation in Multi Dimensions
213
qsc4 -600 STB/D
J pbw = 400
No-flow boundary
Figure 7-1
Discretized 1D reservoir in Example 7.1.
Axkx (350 x 40) × 270 T = fl,: - = 0.001127 x - 28.4004 STB/D-psi. There is a #BAx
0.5 x I x 300
production well in gridblock 4 only. Therefore, q,c~ = - 6 0 0 STB/D. In addition, for the other gridblocks, qsq = q== = q,~ = 0 . Gridblock 1 falls on the reservoir west boundary, which is kept at a constant pressure of 4000 psia. Therefore, Eq. 4.37c, can be used, yielding
kxA,: qsc,~., = [tic , u B - ~ /
2 ) ]1 [(p~ - p' ) - 7( Z ~ - Z~ )]
270 x (350 x 40) . . . . . . . = [0.001127 × ~ 0 0 ~ I I t~u~,, - Pl ) - 7 x 0] or
qs%,, = 56.8008(4000- p~ ) STB/D
(7.18)
Gridblock 4 falls on the reservoir east boundary, which is a no-flow boundary. Therefore, Eq. 4.32 applies giving q~,%,4 = 0 STB/D. The general flow equation for this 1D horizontal reservoir is obtained from Eq. 7.16a by discarding the gravity term, yielding
Z TI,.(P, - P , , ) + Z q..... +q ..... = 0
(7.19)
For gridblock 1, n = 1, ~01 = {2} , and ~'~ = {b w } . Therefore, ~ , q ....... = qs%., and Eq. 7.19 becomes
T1,2(P2 - P , ) + q s % , ,
+q,c, = 0
Substitution of the values in this equation gives 2 8 . 4 0 0 4 ( p 2 - p~ ) + 5 6 . 8 0 0 8 ( 4 0 0 0 - p~ ) + 0 = 0
(7.20)
214
Chapter 7 Single-Phase Flow Equation for Various Fluids
or after factorizing and ordering the unknowns, -85.2012pl + 28.4004p 2 = -227203.2
(7.21)
For gridblock2, n = 2 , ~02 = {1,3} , and ~2 = {} - Therefore, ~ q ..... = 0 and Eq. 7.19 becomes T1.2(Pl - P2 ) + T2.3(P3 - P: ) + q,c2 = 0
(7.22)
Substitution of the values in this equation gives 28.4004(pl - P2 ) + 28.4004(p3 - P2 ) + 0 = 0 or after factorizing and ordering the unknowns, 28.4004pl - 56.8008P2 + 28.4004P3 = 0
(7.23)
For gridblock 3, n = 3 , ~'3 = {2, 4 } , and ~3 = { } • Therefore, y_~ q ....... = 0 and le~3 Eq. 7.19 becomes T2,3 (P2 - P3 ) + 73.4 (P4 - P3 ) +
q~c~=
0
(7.24)
Substitution of the v a l u e s in this equation gives 28.4004(p2 - P3 ) + 2 8 . 4 0 0 4 ( p 4 - P3 ) + 0 = 0 or after factorizing and ordering the unknowns, 28.4(X)4p2 - 56.8008P3 + 28.4004p4 = 0
(7.25)
For gridblock 4, n = 4 , ~04 = {3} , and ~4 : {be } • Therefore, ~ , q,c,,, = qs%:,4 ls~4
and Eq. 7.19 becomes T3,4 (P3 - P4 ) +
qs%4
+ q,c, = 0
(7.26)
Substitution of the values in this equation gives 28.4004(p 3 - P4 ) + 0 + ( - 6 0 0 ) = 0 or after the ordering of the unknowns, 28.4004P3 - 28.4004p 4 = 600
(7.27)
The results of solving Eqs. 7.21, 7.23, 7.25, and 7.27 for the unknown pressures are Pl = 3 9 8 9 . 4 4 psia, P2 =3968.31 psia, p:~ = 3 9 4 7 . 1 8 P4 = 3926.06 psia.
psia, and
7.3 General Single-Phase Flow Equation in Multi Dimensions
215
Next, the flow rate across the reservoir left boundary ( qsc~., ) is estimated using Eq. 7.18, yielding q.,%., = 56.8008(4000 - Pl )
=
56.8008(4000 - 3989.44) = 599.816 STB/D
The FBHP of the well in gridblock 4 is estimated using Eq. 6.1. First, however, the equivalent wellblock radius using Eq. 6.15 and the wellblock geometric factor using Eq. 6.12 must be calculated, yielding
req Gw =
= 0.14[(300)2 + ( 3 5 0 ) 2 ]0.5 = 64.537 ft
2 ~ × 0.001127 x 270 x 40
= l 1.0845 RB-cp/D-psi
log e [64.537/(3.5 / 12)] + 1.5
-600 -
11.0845 1 × 0 . ~ (3926.06 - P,~t, )
from which P,,i4 = 3899.00 psia. The material balance for an incompressible fluid and rock system is checked by substituting the values for the well production rates and fictitious well rates on the LHS of Eq. 7.17a, yielding N
~,(qsc° + ~ , q ...... )=(q,c, +qs%.,)+(qsc~ +0)+(qsc3 +0)+(q,~, +q ....... ) n=l
levi.
-- ( 0 + 5 9 9 . 8 1 6 ) + ( 0 + 0 ) + ( 0 + 0 ) + ( - 6 0 0 + 0 ) = -0.184.
Therefore, the material balance check is satisfied and a small error of 0.184 STB/D is observed because of rounding off during calculations.
Example 7.2 Find the pressure distribution in the reservoir presented in Example 7. 1, but this time assume that the boundary pressure is displaced half a block to coincide with the center of boundary gridblock 1. In other words, the pressure of gridblock 1 is kept constant at 4000 psia as shown in Figure 7-2. qsc4 -600 STB/D
J No-flow boundary
pb w = 400q Pl = Pbw
Figure 7-2
Discretlzed 1D reservoir in Example7.2.
216
Chapter7 Single-Phase Flow Equation for Various Fluids
Solution
For gridblock 1, pl _=p~, = 4000 psia
(7.28)
What remains is to find the pressure of gridblocks 2, 3, and 4. The flow equations for these three blocks are obtained from Eqs. 7.23, 7.25, and 7.27 in Example 7.1. For gridblock 2, 28.4004Pl - 56.8008P2 + 28.4004P3 = 0
(7.23)
28.4004p2 - 56.8008p3 -I- 28.4004p4 = 0
(7.25)
28.4004p3 - 28.4004p4 = 600
(7.27)
For gridblock 3,
For gridblock 4,
Substitution of Eq. 7.28 into Eq. 7.23 yields 28.4004 x 4000 - 56.8008P2 + 28.4004P3 = 0 or the flow equation for gridblock 2 becomes - 5 6 . 8 0 0 8 p 2 + 28.4004p3 = - 1 1 3 6 0 1 . 6
(7.29)
The results of solving Eqs. 7.25, 7.27, and 7.29 for the unknown pressures are P2 = 3978.87 psia, P3 = 3957.75 psia, and P4 = 3936.62 psia. The flow rate across the reservoir left boundary ( q,c~., ) can be estimated using the flow equation for gridblock 1, Eq. 7.20 obtained in Example 7.1, yielding
T1,2( P z
- e l ) + q,% 1 + q'q = 0
(7.20)
Substitution of the values of the gridblock pressures in this equation gives 28.4004(3978.87 - 4000) + q,c,.~., + 0 = 0 or qsc,.~., = 600.100 STB/D. The approximation presented by Eq. 7.28 results in Pl = 4000 psia, compared to Pl = 3989.44 psia using Eq. 4.37c in Example 7.1. This approximation has been used in currently available books on reservoir simulation to obtain a solution for problems involving a specified pressure boundary condition in a block-centered grid. Such an approximation, however, is first-order correct and produces results that are less accurate than the treatment that uses Eq. 4.37c and was demonstrated in Example 7.1.
7.3 General Single-Phase Flow Equation in Multi Dimensions
217
Example 7.3 Consider the reservoir described in Example 7.1, but this time the well in gridblock 4 produces under a constant FBHP of 3899 psia as shown in Figure 7-3. Find the pressure distribution in the reservoir. In addition, find the well production rate and flow rate across the reservoir west boundary. Pwf = 3899 psia qsc4 ?
J pbw = 400
No-flow boundary
Figure 7-3
DiscreUzed1D reservoir in Example 7.3.
Solution From Example 7.1, the transmissibility and the flow rate across the reservoir left boundary are obtained as Tx = 28.4004 STB/D-psi and q,,~,, = 56.8008(4000 - Pl ) STB/D
(7.18)
respectively. The flow equations for the first three gridblocks are obtained as in Example 7.1. For gridblock 1, -85.2012pl + 28.4004p 2 = -227203.2
(7.21)
28.4004p~ - 56.8008p2 + 2 8 . 4 0 0 4 p 3 = 0
(7.23)
28.4004P2 - 56.8008P3 + 28.4004P4 = 0
(7.25)
For gridblock 2,
For gridblock 3,
In addition, for the well in gridblock 4, Feq = 64.537
ft, and G w = 11.0845 RB-cp/D-psi.
The rate of production from the well in gridblock 4 can estimated using Eq. 6.1 for a constant FBHP specification, yielding q"" -
11.0845 1 X 0 . ~ (P4 -- 3899) = -22.1690(P4 - 3899)
For gridblock 4, the flow equation is obtained from Eq. 7.26 in Example 7.1,
(7.30)
Chapter 7 Single-Phase Flow Equation for Various Fluids
218
(7.26)
?"3.4 (P3 -- P4 ) -I- q.,%., + qsc~ = 0
Substitution of transmissibility and Eq. 7.30 into Eq. 7.26 yields 28.4004(p3 - P4 ) + 0 + [-22.1690(p 4 - 3899)] = 0 or after factorizing and ordering the unknowns, 28.4004p3 - 50.5694p4 = -86436.93
(7.31)
The results of solving Eqs. 7.21,7.23, 7.25, and 7.31 for the unknown pressures are Pl =3989.44 psia, P2 =3968.31 psia, P3 =3947.19
psi& and
P4 = 3926.06 psia.
Substitution for pressures in the equations for qsc4 (Eq. 7.30) and q,%., (Eq. 7.18) yields qsc, = -22.1690(p 4 - 3899) = -22.1690(3926.06 - 3899) = -599.893 STB/D
q,%,., = 5 6 . 8 0 0 8 ( 4 0 0 0 - p l ) = 56.8008(4000- 3989.44) = 599.816 STB/D.
Example Z4 Find the pressure distribution in the reservoir presented in Example 7.1, but this time a pressure gradient of-0.2 psi/ft is specified at the reservoir right boundary as shown in Figure 7-4. qsc4 = -600 STB/D
J dp _ ~ bE 0.2 psi/ft
pbW= 400
-
Figure 7-4
DiscreUzed1D reservoir in Example7.4.
Solution From Example 7.1, the transmissibility and the flow rate across the reservoir west boundary are obtained as T = 28.4004 STB/D-psi and qs%., = 56.8008(4000 - Pl ) STB/D respectively. The flow rate across the reservoir east boundary is estimated using Eq. 4.24b, yielding
(7.18)
7.3 General Single-Phase Flow Equation in Multi Dimensions
q,cbE. =l/~c --~B--]41~X x k A .Op b, --7°a~xZb,:] = 0 ' 0 0 1 1 2 7 ×
219
270 x (350 x 40) [-0.2 - 7, x 0] 0.5xl
or
q ....... = -1704.024 STB/D The flow equations for the first three gridblocks are obtained as in Example 7.1. For Gridblock 1, -85.2012pl + 28.4004p2 = -227203.2
(7.21)
28.4004pl - 56.8008p2 + 28.4004p3 = 0
(7.23)
28.4004P2 - 56.8008P3 + 28.4004P4 = 0
(7.25)
For Gridblock 2,
For Gridblock 3,
For Gridblock 4, the flow equation is obtained from Eq. 7.26 in Example 7.1, yielding 73,4 (P3 -- P4 ) + q,% ,4 + qsc, = 0
(7.26)
Substitution o1 values in Eq. 7.26 gives 28.4004(P3 - P4 ) + (-1704.024) + (-600) = 0 or after the ordering o1 the unknowns, 28.4004p3 - 28.4004P4 = 2304.024
(7.32)
The results of solving Eqs. 7.21,7.23, 7.25, and 7.32 for the unknown pressures are Pl = 3959.44 psia, P2 = 3878.31 psia, P3 =3797.18 psia, and P4 = 3716.06 psia.
Substitution for the pressures in the equation for qs%., (Eq. 7.18) yields
q,%., = 56.8008(4000 - Pl ) = 56.8008(4000 - 3959.44) = 2304.024 STB/D.
Example 7.5 Consider the reservoir shown in Figure 7-5. The reservoir has the same description as that presented in Example 7.1, with the exception that this reservoir is inclined along the formation dip. The elevations of the center of gridblocks 1, 2, 3, and4 are respectively3182.34 ft, 3121.56 ft, 3060.78 ft, and 3000 ft below sea level The centers of the reservoir west and east boundaries are respectively 3212. 73 ft and 2969.62 ft below sea level Assuming that the reservoir
Chapter 7
220
Single-Phase Flow Equation for Various Fluids
rock and fluid are incompressible, find the pressure distribution in the reservoir and the FBHP of the well in gridblock 4. Perform a material balance check. Solution The gridblocks have the same dimensions and rock properties. Therefore,
T~,2 = T2,3 = T3,4 = T = tic Axkx - 0 . 0 0 1 1 2 7 x (350 x 40) x 270 = 28.4004 HBAx 0.5 x I x 300 STB/D-psi. The fluid gravity is estimated using Eq. 7.1, yielding 7 = 7cPg = (0.21584×10-3) x S 0 x 3 2 . ] 7 4 = 0.34722 psi/ft. There is a production well in gridblock 4 only. Therefore, q,c, = - 6 0 0 STB/D. In addition, for the other gridblocks q,c, = q,~2 = q,c3 = 0 . Gridblock 1 falls on the reservoir west boundary, which is kept at a constant pressure of 4000 psia. Therefore, qsc~,, can be estimated using Eq. 4.37c, which yields k~A. qsc~,, = lflc HB(Ax / 2) ]1 [ ( P b w -- Pl ) -- •(Zb w -- Z l )l
270 x (350 x 40) ] [(4000 = [0.001127 x b-~ ~--ix ~ - ~ ) - pl ) - 0.34722 x ( 3 2 1 2 . 7 3 - 3182.34)] or
qsc~., = 56.8008(3989.448 - Pl ) STB/D
(7.33)
Gridblock 4 falls on the east boundary, which is a no-flow boundary. Therefore, Eq. 4.32 applies, giving qs%., = 0 STB/D. q~c.. = -600 STB/D
No-flow boundary ZbE =2969.62 ft Z4=3000 ft Z3=3060.78 ft
Z
Z2=3121.56 ft
Z1=3182.34 ft
pbw = 40C
Zbw =3212.73 ft
Figure 7-5
DiscreUzed1D reservoir in Example7.5.
7.3 General Single-Phase F l o w Equation in Multi Dimensions
221
The general flow equation for gridlock n in this 1D inclined reservoir is expressed by Eq. 7.16a, ~ , Tx., I(P, - P, ) - 7,,, (Z, - Z )] + ~ , q,c,.,, + q,c. = 0
(7.16a)
For gridblock 1, n = 1 , y2~ = {2} , and ~1 -- {bw } - Therefore, .~, qsc,., = q,%., and Eq. 7.16a becomes
Tl,2 [(P2 - Px ) - v(Z2 - Z1 )] + qs% ,1
JI--
qsq
=
0
(7.34)
Substitution of Eq. 7.33 and the values into Eq. 7.34 gives 28.4004[(P2 - Pl ) - 0.34722 x (3121 5 6 - 3182.34)] + 56.8008(3989.448 - Pl ) + 0 = 0 or after factorizing and ordering the unknowns, -85.2012p1 + 28.4004p2 = -22?203.2
(7.35)
For gridblock 2, n = 2 , Y:2 = {1,3} , and ~2 = { } - Therefore, ~ , q ...... = 0 and Eq. 7.16a becomes T1,2 [ ( P l - P2 ) -- ~/(Zl - Z2 )] 4- T2,3 [(Pa - P2 ) - Y(Z3 - Z2 )1 + q,¢2 = 0
(7.36)
Substitution of the values in this equation gives 28.4004[(pl - P2 ) - 0.34?22 × (3182.34 - 3121 5 6 ) ] +28.4004[(P3 - P2 ) - 0.34?22 × (3060.78 - 3121.56)] + 0 = 0 or after factorizing and ordering the unknowns, 2 8 . 4 0 0 4 P l - 56.8008P2 + 2 8 . 4 0 0 4 p 3 = 0 For gridblock 3, n = 3 ,
q)3 = {2, 4 } , a n d ~3 = { } • T h e r e f o r e ,
(7.37) ~
q,c,.~ = 0 a n d
IE~3
Eq. 7.16a becomes T2,3 l(Pz - P3 ) - Y(Z2 - Z3 )1 + T3.4 [(P4 - P3 ) - 7(Z4 - Z3 )] "~ q,,..~ = 0
(7.38)
Substitution of the values in this equation gives 28.4004[(P2 - P3 ) - 0 . 3 4 7 2 2 x ( 3 1 2 1 . 5 6 - 3060.78)] +28.4004[(P4 - P3 ) - 0 . 3 4 7 2 2 × ( 3 0 0 0 - 3060.78)] + 0 = 0
or after factorizing and ordering the unknowns, 28.4004p2 - 56.8008P3
+ 28.4004P4
= 0
(7.39)
222
Chapter7 Single-Phase Flow Equation for Various Fluids
For gridblock 4, n = 4 , ~P4 = {3} , and ~4 = {bE } - Therefore, ~ , q ..... =
q,%,.,
l~4
and Eq. 7.16a becomes T3,4 [(P3 - P4 ) - 'Y(Z3 - Z4 )] -1- q,~%,, + q,~, = 0
(7.40)
Substitution of the v a l u e s in this equation gives 28.4004[(p3 - P4 ) - 0.34722 x (3060.78 - 3000)] + 0 + ( - 6 0 0 ) = 0
or after ordering the unknowns, 28.4004p3 - 28.4004p4 = 1199.366
(7.41)
The results of solving Eqs. 7.35, 7.37, 7.39, and 7.41 for the unknown pressures are ,°1 = 3978.88 psia, P2 = 3936.65 psia, P3 = 3894.42 psia, and P4 = 3852.19 psia.
Next, the flow rate across the reservoir left boundary ( qsc,~., ) is estimated using Eq. 7.33, yielding qs%., = 5 6 . 8 0 0 8 ( 3 9 8 9 . 4 4 8 - Pl ) = 5 6 . 8 0 0 8 ( 3 9 8 9 . 4 4 8 - 3978.88) = 600.271
STB/D.
The FBHP of the well in gridblock 4 is estimated using Eq. 6.1, but first the equivalent wellblock radius using Eq. 6.15 followed by the wellblock geometric factor using Eq. 6.12 must be calculated, giving re q =
G
0.14[(300)2 + (350)2 ]0.5 = 64.537 ft,
2at × 0.001127 × 270 × 40
-
log e [64.537/(3.5 / 12)] + 1.5
= 11.0845
RB-cp/D-psi,
and -600-
11.0845 - (3852.19-p,f,) Ix0.5
from which P,f, = 3825.13
psia.
The material balance for an incompressible fluid and rock system is checked by substituting the values for the well production rates and the rates across reservoir boundaries on the LHS of Eq. 7.17a, which yields
N
Z(q.~,:,, n=l
+ Z q,~,.,,)= (q.,c, +q,%.,)+(qsc2 +0)+(q.~c~ "{-0)-f'(qsc4 +q,%.4 ) l~.
= (0 + 600.271) + (0 + 0) + (0 + 0) + ( - 6 0 0 + 0) = +0.271.
Therefore, the material balance check is satisfied and a small error of 0.271 STB/D is observed because of rounding off during calculations.
7.3 General Single-Phase Flow Equation in Multi Dimensions
223
Example 7.6 Find the equation for the well production rate and pressure distribution in the reservoir presented in Example 7.1 if the vertical well is operated with a constant FBHP of 3850 psia for the following three cases:
(a) The well is located at the center of gridblock 4. (b) The well is located at the east boundary of gridblock 4. (c) The well is treated as a boundary condition with the reservoir boundary pressure equal to 3850 psia. Solution
From Example 7.1 ,the transmissibility and the flow rate across the reservoir west boundary are obtained as ~ = 28.4004 STB/D-psi and qsc~,, = 56.8008(4000 - Pl ) STB/D
(7.18)
respectively. The flow equations for the first three gridblocks are obtained as in Example 7.1. For gridblock 1, - 8 5 . 2 0 1 2 P l + 28.4004P2 = - 2 2 7 2 0 3 . 2
(7.21)
28.4004pl - 56.8008p2 + 28.4004P3 = 0
(7.23)
28.4004p2 - 56.8008P3 + 28.4004P4 = 0
(7.25)
For gridblock 2,
For gridblock 3,
For gridblock 4, n = 4 , ~P4 = {3} , and ~'4 = {bL. } • Therefore, ~ , q.~c,., = qs%.4 IE~4
and Eq. 7.16a for a horizontal reservoir becomes T3,4 (P3 - P4 ) + qsc~,4 + qsc, = 0
(7.26)
(a) The well is located at center of gridblock 4. The equation for the well production rate is obtained using Eq. 6.15 for r q, Eq. 6.12 for G w , and Eq. 6.1 for qsc, (see Figure 7-6a), yielding req = 0.141(300)2
Gw =
+ (350)2 ]0.5 = 64.537 ft,
2 ~ × 0.001127 × 270 × 40 log e [64.537/(3.5 / 12)] + 1.5
and
= 11.0845 RB-cp/D-psi,
224
Chapter 7
Single-Phase Flow Equation f o r Various Fluids
qsc4 -
11.0845 l X 0.---------~(P4 -- 3850)
or
qsq = -22.1690(p4 - 3850) STB/D
(7.42)
Substitution of the transmissibility and Eq. 7.42 into Eq. 7.26 gives 28-4004(p3 - P4 ) + 0 + [-22.1690(p4 - 3850)] = 0 or after factorizing and ordering the unknowns,
28.4004P3 - 50.5694P4 = -85350.65
(7.43)
The results of solving Eqs. 7.21, 7.23, 7.25, and 7.43 for the unknown pressures
are Pl =3984.31 psia, P2 = 3 9 5 2 . 9 4 psia, P3 = 3921.56 psia, and P4 =
3890.19 psia.
Substitution for P4 = 3890.19 into Eq. 7.42 yields
qsc4 = - 2 2 . 1 6 9 ( p 4 - 3 8 5 0 ) = - 2 2 . 1 6 9 ( 3 8 9 0 . 1 9 - 3 8 5 0 ) = - 8 9 0 . 9 7 2
STB/D
(7.44)
(b) The well is located at the east boundary of gridblock 4. The equation for the well production rate is obtained using Eq. 6.15 for Eq. 6.1 for
qsc 4 .
req ,
Eq. 6.32 for G w , and
Note that the well at the block boundary withdraws only half
of its fluid production potential from gridblock 4, as shown in Figure 7-6b (i.e., F 4 = ~ , Configuration 2 in Chapter 6). In other words, the whole well has twice the drainage area of the well in wellblock 4; i.e., Ax = 600 ft not 300 ft, and the geometric factor of wellblock 4 is half of that for the whole well. Therefore, Teq4 =
0.14[(600)2 + ( 3 5 0 ) 2 ]0.5 = 97.247 ft,
2Jr x 0.001127 x 270 x 40 * = - 10.463 RB-cp/D-psi, G,. log e [97.247/(3.5 / 12)] + 1.5 G,,4 = ~ GS, 4 = ]/2 (| 0.463) = 5.2315 RB-cp/D-psi, and
qsc4 or
5.2315 lx0.~(p4-3850)
7.3 General Single-Phase Flow Equation in Multi Dimensions
225
Pwr = 3850 psia a =?
/ No-flow boundary
pbw = 400q
(a) Well is located at center of Gridblock 4. Pwf = 3850 psia qsc4 7
~y x 2
pbw = 4000 psia 300 ff ,
3
?
40 ft
4
No-flow boundary
1
, 3 0 0 ft
(b) Well is located at east boundary of Gridblock 4.
7
y ~X 2 "--* •
pbw = 4000 psia
300 ft
3 ' •
'
4 ~[~.
, 300 ft
PbE= 3850 psia qsc4 = qSCbE,= ?
(c) Well is replaced with a boundary condition at east boundary of Gridblock 4.
Figure 7-6
Well location and treatment in Example 7.6.
qsc4 = - 1 0 " 4 6 3 ( p 4 - 3 8 5 0 )
STB/D
(7.45)
Substitution of the transmissibility and Eq. 7.45 into Eq. 7.26 gives 28.4004(p3 - P4 ) + 0 + [-10.463(P4 - 3850)] = 0 or after factorizing and ordering the unknowns,
28.4004p3 - 38.8634p4 = --4-0282.55 The results of solving Eqs. 7.21,7.23, 7.25, and 7.46 for the unknown pressures are p~ = 3987.93 psia, P2 = 3963.79 psia, P 3 - - 3 9 3 9 . 6 6 psia, and P4 = 3915.52 psia. Substitution for P4 = 3915.52 into Eq. 7.45 yields
(7.46)
Chapter 7 Single-Phase Flow Equation for Various Fluids
226
qsc4 = - 1 0 . 4 6 3 ( p 4 - 3850) = - 1 0 . 4 6 3 ( 3 9 1 5 . 5 2 - 3850) = - 6 8 5 . 5 3 6 STB/D
(7.47)
(c) The well is treated as a boundary condition with the reservoir boundary pressure equal to 3850 psia as shown in Figure 7-6c. Therefore, the flow rate of the fictitious well can be estimated using Eq. 4.37c for a constant pressure boundary condition, whose application gives
kxAx
q,%.4 = [tic ltB( Ax / 2) ]4[(PbE - P , ) - Y(Zh~. -Z4)] 270 x (350 x 40) . . . . . . . = [0.001127 x ~ ~ 1ltJ ts~u -
P 4 ) - '~
X 01
or
q,%.4 = 56.8008(3850- P4 ) STB/D
(7.48)
Substitution of Eq. 7.48 and the values into Eq. 7.26 gives 28.4004(P3 - P4 ) + 56.8008(3850 - P4 ) + 0 = 0 or after factorizing and ordering the unknowns, 28.4004p3 - 85.2012p4 = - 2 1 8 6 8 3 . 0 8
(7.49)
The results of solving Eqs. 7.21, 7.23, 7.25, a n d 7.49 for the u n k n o w n p r e s s u r e s are Pl = 3981.25 psia, P2 = 3943.75 psia, P3 = 3906.25 psia, a n d P4 = 3868.75 psia.
Substitution for P4 = 3868.75 into Eq. 7.48 yields the rate of flow across the reservoir east boundary. Therefore, qsc4 =
q,%., = 56.8008(3850 - P4 )
=
56.8008(3850 - 3868.75)
or
q,c, =-1065.015 STB/D
(7.50)
The predicted well production rates given by Eqs. 7.44, 7.47, a n d 7.50 d e m o n strate that e v e n for 1 D flow it is not appropriate to treat wells at reservoir e n d s a s b o u n d a r y conditions, that it is important to differentiate b e t w e e n physical wells and fictitious wells as discussed in Chapter 6, and that well performance and pressure distribution are affected by well location (within a block or on a reservoir noflow boundary).
Example 7. 7 A 2D o# reservoir is described by four equal blocks as shown in Figure 7-7a. The reservoir is horizontal and has ~b= 0.2? and anisotropic
7.3 General Single-Phase Flow Equation in Multi Dimensions
227
permeability, k x = 150 md and ky = 100 md. The gridblock dimensions are Ax = 350 ft, Ay = 250 ft, and h = 30 ft. The reservoir fluid properties are
B = B ° = 1 RB/STB and ~ = 3.5 cp. The reservoir boundaries are subject to the conditions shown in Figure 7-7b. A vertical well in gridblock 2 produces oil with a constant FBHP of 2000 psia, and another vertical well in gridblock 3 produces 600 STB/D of oil. The wells have a 3-#? radius. Assuming that the reservoir rock and fluid are incompressible, find the pressure distribution in the reservoir. Find the rate of production of the well in gridblock 2 and the FBHP of the well in gridblock 3. Find oil flow rates across the reservoir boundaries. Perform a material balance check. qsc 3 = -600. STB/D . . .
.
.
No-flow boundaries
o i
¢ I.
350 ff
r
/
. r
(a) Gridblocks and wells. (b) Boundary conditions.
Figure 7-7
Discretized 2D reservoir in Example7.7.
Solution The gridblocks have the same dimensions and rock properties. Therefore,
T~,2 = T~,4 = T~ = tic Axkx = 0.001127 x (250 × 30) × 150 = 1.0350 STB/D-psi. pBAx
T],3 -- T2,4 = L
=
tic
Ayky #BAy
3.5 x 1 × 350
- 0.001127 ×
(350 × 30) × 100 3.5 × 1 × 250
= 1.3524 STB/D-psi.
There are two production wells in gridblock 2 and gridblock 3. For both wells, we use Eqs. 6.13, 6.14, and 6.12 to estimate k11 , r q, and G ,
respectively.
k~ = [ 1 5 0 x 1 0 0 ] °5 = 122.474 md. r eq
= 0.281(100 / 150) o.5(350) 2 + (150 / 100) o.5 (250) 2 ]o.5 _- 58.527 ft, [(100 / 150) 0.25 + (150 / 100) o.25]
Chapter 7 Single-Phase Flow Equation for Various Fluids
228
Gw =
2 ~ x 0.001127 x 122.474 x 30 {log e [58.527/(3 / 12)] + 0}
= 4.7688
RB-cp/D-psi.
For the well in gridblock 2, we apply Eq. 6.11, yielding q,~ -
4.7688 ~ (P2 - 2 0 0 0 ) = - 1 . 3 6 2 5 ( p 2 - 2 0 0 0 )
(7.51)
STB/D
For the well in gridblock 3, qs~3 = -600 STB/D. In addition, for the other gridblocks, qs~, = q,q = 0 • Gridblock 1 falls on the reservoir south and west boundaries. The reservoir south boundary is kept at a constant pressure of 4000 psia. Therefore, the flow rate of the fictitious well can be estimated using Eq. 4.37c, whose application gives
k Ay q ....... = [fl~ /,tB(-~y/ 2) ]~ [(Pbs - P~ ) - }'(Zb.~ - Z~ )] 100 X (350 X 30) . . . . . . . = I0.001127 x ~ x ~ - } - ~ - ) j t t e u u u - p~ ) - 7 x 0] or
qs%., = 2.7048(4000 - p~ ) STB/D
(7.52)
The reservoir west boundary is a constant rate boundary supplying fluid to gridblock 1. Therefore, qsc~., = 500 STB/D. Gridblock 2 falls on the reservoir south and east boundaries. The reservoir south boundary is kept at a constant pressure of 4000 psia. Therefore, using Eq. 4.37c, 100 x (350 x 30) ] [(4000 q ....... = [0-001127 x ~--;.- ? ;--52~..-T~. -pz)-~'x0] .5.D X l X [ZDU / Z ) or
q ......... = 2.7048(4000 - P2 ) STB/D
(7.53)
The reservoir east boundary is a constant pressure gradient boundary. Therefore, using Eq. 4.24b,
kxAx" r~P
qscb,,~._ = [ t i c - - ~ J Z t ~ x x b~
-70~xZb~
]=0.001127x
150 x (250 x 30) [ - 0 3 7 x O ] 3.5xl " -
or
qscb~.2 = - 1 0 8 . 6 7 5 STB/D. Gridblock 3 falls on the reservoir west a n d north boundaries. Both reservoir b o u n d a r i e s are no-flow boundaries. Therefore, q.,c~..~ = q,% 3 = 0 .
7.3 General Single-Phase Flow Equation in Multi Dimensions
229
Gridblock 4 falls on the reservoir east and north boundaries. The reservoir east boundary is a constant pressure gradient boundary. Therefore, using Eq. 4.24b, kxAx
[oqp
q ..... =[tic - - ~ - 1 4 ~xxh~ - 7 .
3 .xZh~" 1=0.001127x .
1 5 0 x ( 2 5 0 x 30) [--0.3 - }, x 0] 3.5x1
or
q ....... = - 1 0 8 . 6 7 5 STB/D. The north boundary is a constant rate boundary withdrawing fluid from gridblock 4. Therefore, qs%., = - 2 0 0 STB/D. The general flow equation for gridblock n in this 2D horizontal reservoir can be obtained from Eq. 7.16a by discarding the gravity term, yielding
Z ~.n(Pl
--Pn) +
Z q,c,., + qsc,, = 0
(7.19)
For gridblock 1, n = 1, ~ = {2, 3}, and ~:1 = {bs, bw } • Therefore, ,~__,q,c,., = q,%., + q.,c~., and Eq. 7.19 becomes /eE 1
T~,2(Pz - P, ) + T~,3(P3 - P, ) + q,%, + q,,,~, + q,q = 0
(7.54)
Upon substitution of the corresponding values, this equation becomes 1.0350(p2 - p~ ) + 1.3524(p 3 - Pl ) + 2.7048(4000 - p~ ) + 500 + 0 = 0 or after factorizing and ordering the unknowns, - 5 . 0 9 2 2 P l + 1.0350p2 + 1.3524p3 = - 1 1 3 1 9 . 2 0
(7.55)
For gridblock 2, n = 2 , ~0~ = {1,4}, and ~2 = {bs,bt~ } • Therefore,
~_~ q,,-,.~ = qs% ~ + qs%.~ and Eq. 7.19 becomes le~2
71,2(Pl
--
P2 ) +
7"2,4
(P4 - P2 ) + qs%.: + q,% ~ + q,~ = 0
(7.56)
Upon substitution of the corresponding values, this equation b e c o m e s 1.0350(p~ - P2 ) + 1.3524(p 4 - P2 ) + 2.7048(4000 - P2 ) - 1 0 8 . 6 7 5 - 1.3625(p 2 - 2000) = 0. After factorizing and ordering the unknowns, the equation becomes 1.0350pl - 6.4547P2 + 1.3524P4 = - 1 3 4 3 5 . 5 5 4
(7.57)
230
Chapter 7 Single-Phase Flow Equation for Various Fluids"
For gridblock 3, n = 3 , ~3 = {1,4} , and ~3 = {bw, bN } • Therefore,
~-~ qsc,.3 = q.~% ~ + q,%, 3 and Eq. 7.19 becomes 1c~3 T1,3 (Pl - P3 ) + 7"3,4(P4 - P3 ) + q,%.3 + q,c,,,., + q.~c3 = 0
(7.58)
Upon substitution of the corresponding values, this equation b e c o m e s 1.3524(pl - P3 ) + 1.0350(p 4 - P3 ) + 0 + 0 - 600 = 0
After factorizing and ordering the unknowns, the equation becomes 1.3524pl - 2.3874p3 + 1.0350p4 = 600 For gridblock 4, n = 4 ,
(7.59)
~4 = { 2 , 3 } , and ~4 = {be, bu } • Therefore,
qsc,., = q.%:.4 + qs%,, and Eq. 7.19 becomes le~4 T2,4 (P2 -- P4 ) + T3,4 (P3 -- P4 ) + q,%:, + q , ~ , + qsq
= 0
(7.60)
Upon substitution of the corresponding values, this equation b e c o m e s 1.3524(p2 - P4 ) + 1.0350(P3 - P4 ) - 108.675 - 200 + 0 = 0
After factorizing and ordering the unknowns, the equation becomes 1.3524p2 + 1.0350P3 - 2.3874P4 = 308.675
(7.61)
The results of solving Eqs. 7.55, 7.57, 7.59, and 7.61 for the unknown pressures are Pl = 3772.36 psia, P2 = 3354.20 psia, P3 = 3267.39 psia, and P4 = 3187.27 psia. The flow rates across the reservoir boundaries are estimated by substituting for the pressures in Eqs. 7.52 and 7.53, yielding
q,%.~ =
2 . 7 0 4 8 ( 4 0 0 0 - p l ) = 2 . 7 0 4 8 ( 4 0 0 0 - 3 7 7 2 . 3 6 ) = 615.721 STB/D
and q~%.~ = 2.7048(4000 - P2 ) = 2.7048(4000 - 3354.20) = 1746.787 STB/D
The production rate for the well in gridblock 2 is obtained by substituting for gridblock pressure in Eq. 7.51, which gives q,~ = - ] .3625(p2 - 2000) = -1.3625(3354.20 - 2000) = -1845.12 STB/D The FBHP of the well in gridblock 3 is estimated using Eq. 6.11, yielding -600
~ ( 3 2 6 7 . 3 6 - p,¢~ ) , 1x3.5
7.3 General Single-Phase Flow Equation in Multi Dimensions
from which Pwi3 = 2827.00 psia. The material balance for an incompressible fluid and rock system is checked by substituting values for the well production rates and fictitious well rates on the LHS
of Eq. 7.17a, resulting in N ~,(qsc +~,qsc, n-I
"
,~e.
)=-
"
[(q,q +qs%.-Fqsc~wl)+(q,.:~ +q,%~ +q .... o) ] ' ..... L+(q,c3 + q,%.~ + q ....... ) + (q,~, + q ....... + q,%., )
J
[(0 + 615.721 + 500) + ( - 1 8 4 5 . 1 2 + 1746.787 - 108.675)] /
/
k + ( - 6 0 0 + 0 + o) + (0 - 108.675 - 200)
J
= 0.038. Therefore, the material balance check is satisfied and a small error of 0.038 STB/D is observed because of rounding off during calculations.
Example 7.8 Find the pressure distribution in the 2D horizontal reservoir shown in Figure 7-8. The reservoir rock properties are homogeneous and isotropic: ~b = 0.19 and k = ky = 200 md. Gridblocks have Ax = Ay = 400 ft and h = 50 ft, and fluid properties are B = B ° = 1 RB/STB, p = 55 Ibm/ft3, and kt = 3 cp. The reservoir has no-flow boundaries, and there are three wells in this reservoir. The well in gridblock 7 produces fluid at a constant rate of 1000 STB/D. Each of the two wells in gridblocks 2 and 6 injects fluid with a constant FBHP of 3500 psia. The wells have a diameter of 6 in. Assume that reservoir rock and fluid are incomprehensible. Solution The gridblocks have the same dimensions and rock properties. Therefore,
T4,5 -----T5,6
= 77,8 = Tx = 72,5 = T4.7 = T~,8 = Ty = T ,
where
T = tic Axkx = 0 . 0 0 1 1 2 7 x (400 x 50) x 200 = 3.7567 STB/D-psi. ktBAx
3 x ] x 400
For each of the three wells we u s e Eqs. 6.13, 6.16, 6.12, a n d 6.1 for k n , req, G w , and qsc, respectively: k M = 200 md, r eq = 0 . 1 9 8 x 4 0 0 = 79.200 R,
and
231
Chapter7 Single-Phase Flow Equationfor Various Fluids
232
G,, =
2 ~ x 0.001127 × 200 x 50 {log e [ 79.200/(3 / 12)] + 0}
= 12.2974 RB-cp/D-psi.
The application of Eq. 6.1 gives 12.2974 1 x ~ (P7 - P,,f7 )
-1000 = or
P,f, = P7
-
-
243.954 psia
(7.62)
for wellblock 7,
qs,
-
12.2974 1 x - ~ (P2 - 3500)
or q.~c2 = -4'0991(p2 - 3 5 0 0 ) STB/D
(7.63)
for wellblock 2, and
qsc6
-----
-4.0991(p 6 -3500)
STB/D
(7.64)
for wellblock 6. In addition, qsq = qsc, = q,c8 = 0. For no-flow boundary conditions and interior blocks, ~ , qsc,.° = 0 for n = 2,4,5,6,7,8. The general flow equation for this 2D horizontal reservoir can be obtained from Eq. 7.16a by discarding the gravity term, yielding
£TI,,(P,-P,)+Zq,,,,., For no-flow boundaries
( ~., q ......
+q,c,, = 0
(7.19)
= 0 ), Eq. 7.19 reduces to
Z T~,,,(p,-p,,)+q,,.°
=0
(7.65)
leap n
For gridblock 2, n = 2 and
'~0 2 = {5}
.
Therefore, applying Eq. 7.65 gives
Tz,5(p5 - p 2 ) + q , , : ~ = 0
Upon substitution of the corresponding values, this equation becomes 3.7567(p5 - P2 ) - 4.0991(P2 - 3500) = 0
(7.66)
7.3 General Single-Phase Flow Equation in Multi Dimensions
233
= -1000 STB/D qsc ~k Pwf2 = 3500 psia m
....
i,/i '
/
p...~ = 3500 psia
"// I®l'lgY'un°ares 8//)
1I
/b..A '/i°(/ :;V
1 Jl i
7
I
.....................4 .....
i//,x
I 5
..................... 6 ...................
(b) Boundary conditions.
(a) Gridblocks and wells.
Figure 7-8
Discretized 2D reservoir in Example7.8.
After factorizing and ordering the unknowns, the equation becomes - 7 . 8 5 5 8 p 2 + 3.7567P5 = - 1 4 3 4 6 . 9 7
(7.67)
For gridblock 4, n = 4 and ~P4 = {5, 7}. Therefore, applying Eq. 7.65 gives T4,5 (P5
-- P4
) "}-7"4,7(P7 -- P4 ) + qsc4 = 0
(7.68)
Upon substitution of the corresponding values, this equation b e c o m e s 3.7567(p5 - P4 ) -I- 3.7567(p 7 - P4 ) + 0 = 0 or after factorizing and ordering the unknowns, - 7 . 5 1 3 4 p 4 + 3.7567p 5 + 3.7567p7 = 0
(7.69)
For gridblock 5, n = 5 and V)5 = {2, 4,6,8}. Therefore, applying Eq. 7.65 gives
Tz,s (P2 - P5 ) + T4,s (P4 - P5 ) + T5.6 (P6 - P5 ) + 7"5.8(P8 - 1°5 ) + q,c, = 0
(7.70)
Upon substitution of the corresponding values, this equation b e c o m e s 3.7567(P2 - p.~ ) + 3.7567(p4 - P5 ) + 3.7567(p6 - P5 ) + 3.7567(P8 - P5 ) + 0 = 0 After factorizing and ordering the unknowns, the equation becomes 3.7567P2 + 3.7567P4 - 15.0268p5 + 3.7567P6 + 3.7567p8 = 0 For gridblock 6, n = 6 and
"/~6 = {5}
o Therefore,
applying Eq. 7.65 gives
(7.71)
234
Chapter 7 Single-PhaseFlow Equation for Various Fluids
T5,6 (P5 - P6 ) + qsc6 = 0
(7.72)
Upon substitution of the corresponding values, this equation becomes 3"7567(p5 - P6 )
--
4-0991(P6 - 3500) = 0
After factorizing and ordering the unknowns, the equation becomes 3.7567p5-7.8558P6
=-14346.97
(7.73)
For gridblock 7, n = 7 and ~7 = {4,8}. Therefore, applying Eq. 7.65 gives T4.7 (P4 - P7 ) + T7,8(P8 - P7 ) + qsc7 = 0
(7.74)
Upon substitution of the corresponding values, this equation b e c o m e s 3.7567(p 4 -
P7 ) +
3.7567(p 8 -
P7 ) - 1000
:
0
After factorizing and ordering the unknowns, the equation becomes 3.7567P4 - 7.5134P7 + 3.7567p8 = 1000
(7.75)
For gridblock 8, n = 8 and ~P8 = {5, 7}. Therefore, applying Eq. 7.65 gives T~,8(P5 - P8 ) + T7,8(P7 - P8 ) + q,~c8 = 0
(7.76)
Upon substitution of the corresponding values, this equation becomes 3.7567(p5 - P8 ) + 3.7567(p7 - P8 ) + 0 = 0 or after factorizing and ordering the unknowns, 3.7567p5 + 3.7567p7 - 7.5134p8 = 0
(7.77)
The results of solving Eqs. 7.67, 7.69, 7.71, 7.73, 7.75, and 7.77 for the unknown p r e s s u r e s are P2 = 3378.02 psia, P4 P6 = 3378.02 psia, P7
---- 2978.73
=
3111.83 psia, P5 = 3244.93
psia, and P8 -- 3111.83
psia,
psia. Note the sym-
metry about the vertical plane that passes through the centers of gridblocks 5 and 7 (see Section 4.6). We could have made use of this symmetry and, accordingly,
set P2 = P6 and P4 = P8, written the flow equations for gridblocks 2, 4, 5, and 7, and finally solved the resulting four equations for the unknowns P2, P4, P5, and P7. Next, the production rate for the wells in gridblocks 2 and 6 are estimated by substituting for gridblock pressures in Eqs. 7.63 and 7.64, yielding qsc2 = -4"0991(p2 - 3500) = -4.0991(3378.02 - 3500) = 5(X).(X)8 STB/D qsc6 = -4"0991(P6 - 3 5 0 0 ) = --4.0991(3378.02 -35(X)) = 500.008
STB/D.
The FBHP of the well in gridblock 7 is estimated using Eq. 7.62, which gives
7.3 General Single-Phase Flow Equation in Multi Dimensions
Pwf7 = P 7 --
235
243.954 = 2978.73 - 243.954 = 2734.8 psia.
The material balance for an incompressible fluid and rock system is checked by substituting the values for the well production rates and fictitious well rates on the LHS of Eq. 7.17a. For no-flow boundaries, the LHS of Eq. 7.17b reduces to 8
8
8
~.~(q,c. + ,~q,c,.. ) = ~ (q,c° + 0 ) = ~qsc. = 5 0 0 . 0 0 8 + 0 + 0 + 5 0 0 . 0 0 8 - 1 0 0 0 + 0 = 0.016. l~.
n=2
n=2
n=2
Therefore, the material balance check is satisfied and a small error of 0.016 STB/D is observed because of rounding off during calculations.
7.3.2
Slightly C o m p r e s s i b l e Fluid Flow Equation
The density, FVF, and viscosity of slightly compressible fluids at reservoir temperature are functions of pressure. Such dependence, however, is weak. In this context, the FVF, viscosity, and density that appear on the LHS of a flow equation (Eq. 7.12) can be assumed constant. The accumulation term can be expressed in terms of pressure changes over a time step by substituting for B and ¢) (using Eqs. 7.6 and 7.11 ) into the RHS of Eq. 7.12. The resulting accumulation term is
a-cAt [(B )" - ( B ) " I ~ - ~ " B" (c+%)lp,,""+' - p " ] acAt
(7.78)
Note that Eq. 7.78 reduces to Eq. 7.14 for an incompressible fluid where c = 0 . Substitution of Eq. 7.78 into Eq. 7.12 yields the flow equation for slightly compressible fluids,
Z T,l,l[Pl .. . .. . --P, .. . .). - T t., , ( Z. t - Z.n ) ] .+ Z q
t~,p.
7.3.2.1
lc~°
m
+
q,c - Vbn~ , (c + c¢ ) Ip~fl - p," ] m
°
c:~B° At
(7.79)
Formulations of the Slightly Compressible Fluid Flow Equation
The time level m in Eq. 7.79 is approximated in reservoir simulation in one of three ways, as mentioned in Chapter 2. The resulting equation is commonly known as the explicit formulation of the flow equation (or the forward-central-difference equation), the implicit formulation of the flow equation (or the backward-central-difference equation), and the Crank-Nicolson formulation of the flow equation (or the second order-central-difference equation). The terminology in the parentheses is usually used in the mathematical approach to reservoir simulation. It originates from the way the partial differential equation (PDE) describing the problem is approximated to give the finite-difference equation (or flow equation in algebraic form). The forward, backward, or second-order descriptor refers to the approximation of the time derivative (or accumulation) term with reference to the time level at which the PDE is written. The central-difference descriptor refers to using a second-order approximation of (interblock) flow terms in the PDE.
236
Chapter 7
Single-Phase Flow Equation for Various Fluids
E x p l i c i t f o r m u l a t i o n o f the f l o w e q u a t i o n
The explicit formulation of the flow equation can be obtained from Eq. 7.79 if the argument F m (defined in Section 2.6.3) is dated at old time level t" ; i.e., t m ---- t " , and as a result F m = F " • Therefore, Eq. 7.79 becomes .
.
l,. I tp,
.
. -
.
Pn ) --
~/,,n (Zl
- -
Zn)] "~- 2 q",c,,. + q,c"
-=
"
[P"+', _ pn 1
(7.80a)
or
,~, T," ,,~,j,k) [(P/lE~,Oi,j,k
P?,j,k) -
"
~l,(i,j,k)
(Zl
-- Zi,j,k
q"sct,o,j,k) + qsc." j,
)] "1- 2 IE~i,j, k
(7.80b) a c B °A t
tq I'~,
,,
- Pi,j.~ ]"
• Stable numerical solution • Unstable numerical solution
,,
i1~
,",
,,, Time
~
/ /
Figure 7-9
Pressure behavior for a gridblock.
Inspection of Eq. 7.80a reveals that it has one unknown, namely pn"+1 , and that all the neighboring blocks (nodes) have known pressures at the old time level. Therefore, the pressure solution at time level n + 1 is obtained by solving Eq. 7.80a for p,+l for block n independent of the flow equations of the other blocks. Stability analysis performed in the mathematical approach (Ertekin, Abou-Kassem, and King 2001) concludes that Eq. 7.80 is conditionally stable, i.e., the use of Eq. 7.80 gives numerically stable pressure solutions for small time steps only (see Figure 7-9). In other words, the allowable time step is quite small, and the amount of computational effort required to obtain the solution to practical problems at a given time level is prohibitive. Consequently, this formulation is not used in reservoir simulation. The explicit formulation is only of academic interest to mathematicians, and it is not pursued further in this book.
7.3 General Single-Phase Flow Equation in Multi Dimensions
237
Implicit formulation of the flow equation The implicit formulation of the flow equation can be obtained from Eq. 7.79 if the argument F m (defined in Section 2.6.3) is dated at new time level t "÷~ ; i.e., t m -- t "+l , and as a result F m ~ F "+1 . Therefore, Eq. 7.79 becomes 1 _p,+X)_ n Y ,t , , ( Z z - Z , ) ] + Z q ; £ ) ,
Z T . ~ I,,, .ltP, ...
+ q,c,+1 = Vo,,~ C ¢ ) ) [ P ~ + I - - P ~ u ozat
] (7.81a)
or Z
,¢ n+l n+l. Z l,(i,j,k~ttPl -P~,j,~)-Y~,(~,j,k)( t--Zi,j,k)] +
T n.l
IE~fll,j,k
n
Vbl,j., ~)~,j,k (C "t- Cfb ) [ n--1 --
~
~.,
qn+l
.......j~,
..[_ n+l
qs<j~
lE~i,j,k (7.81b)
,,
Pi,;,k - PT j k ]"
In this equation, dating fluid gravity at old time level n instead of new time level n+l does not introduce any noticeable errors (Coats, George, and Marcum 1974). This approximation will be used throughout this book. Inspection of Eq. 7.81 a reveals that block n and all its neighboring blocks (nodes) have unknown pressures at the current time level. Therefore, the pressure solution at current time level n + 1 is obtained by solving simultaneously the system of equations, which result from writing Eq. 7.81a for all blocks (nodes) in the reservoir. Stability analysis performed in the mathematical approach (Ertekin, Abou-Kassem, and King 2001) concludes that Eq. 7.81 is unconditionally stable because of the linearity of this equation, i.e., Eq. 7.81 gives numerically stable pressure solutions with no limits on the allowable time step. However, there has to be a limit on the time step in order to obtain an accurate solution, but this is not a stability consideration. The property of unconditional stability of the implicit formulation method makes it attractive in spite of the extra computational effort required per time step. The solution at a given simulation time can be obtained with much less computational effort by taking large time steps. The time step is limited only by accuracy requirements. Consequently, the implicit formulation method is commonly used in reservoir simulation.
Crank-Nicolson formulation of the flow equation The Crank-Nicolson formulation of the flow equation can be obtained from Eq. 7.79 if the argument F m (defined in Section 2.6.3) is dated at time t n + 1 / 2 . In the mathematical approach, this time level was chosen in order to make the RHS of Eq. 7.79 a second-order approximation in time. In the engineering approach, however, the argument F m can be approximated as F m ~ 1//2 2
T,,..ttP~ . . . . .- P . )
F "~1/2 = ~
(F n +
F "*1) .
n -y,..(Z,-Z°)l+~
l~p,,
Therefore, Eq. 7.79 becomes
T,,,. n41 .ttP, ...
1
n+l - P °n+l",)--~',,n (Z,-Z)]
l~
+~(Zq,,,~ n
n¢l
+Zqs~,+l,)+~(q~c +q,c )=
Vb~i~n(C"}-Ce? )
n+l
[P,
(7.82a) n
--P,]"
238
Chapter 7
Single-Phase Flow Equation for Various Fluids
Eq. 7.82a can be rewritten in the form of Eq. 7.81a as 2
Tl,nn+l[(pn+l --
l
Vb.d?~(c +c* ) _ a--~B=(At/2)[p*
pn. ,1 -) - Y l , . n+l ( Z I - - L . )~ I
\,
.11_
~
n~l
z,q~c,.,
.~_
n+l
q ....
.1
Kj' q" -p.
"
]-{~,T,,
(7.82b)
l,ltPt . . . . - -. P. , ) - - g t,, ( Z t - Z ) ] + .._, .c,.. + q,c ". }"
Like Eq. 7.81, the pressure solution at current time level n + 1 is obtained by solving simultaneously the system of equations, which result from writing Eq. 7.82b for all blocks (nodes) in the reservoir. The Crank-Nicolson formulation is unconditionally stable, and the time step is limited only by accuracy requirements. The advantage o f the CrankNicolson formulation over the implicit formulation is a more accurate solution for the same time step or larger time steps for the same accuracy (Hoffman 1992). This gain in accuracy is obtained at no extra computational cost because the terms in the braces { } on the RHS of Eq. 7.82b are calculated at the end of the previous time step. The drawback of the Crank-Nicolson formulation is that the numerical solution may exhibit overshoot and oscillations for some problems. Such oscillations are not due to instability but rather to an inherent feature of the Crank-Nicolson formulation (Hoffman 1992). This formulation method finds infrequent use in reservoir simulation perhaps because of this drawback and the problems that may arise because of specifying a pressure gradient at reservoir boundaries (Keast and Mitchell 1966).
7.3.2.2
Advancing the Pressure Solution in Time
The pressure distribution in a slightly compressible flow problem changes with time. This means that the flow problem must be solved in its unsteady-state form. At Time t o = 0 all reservoir block pressures (pO, n = 1,2,3...N) must be specified. Initially, a fluid in the reservoir is in hydrodynamic equilibrium. Therefore, it is sufficient to specify the pressure at one point in the reservoir, and the initial pressure of any block in the reservoir can be estimated from hydrostatic pressure considerations. Then the procedure entails finding the pressure solution at discrete times ( t 1, t 2, t 3,/4 . . . . etc. ) by marching the latest value o f pressure in time using time steps ( At,, At2, A t 3 , A t 4 . . . . etc. ). The pressure solution is advanced from initial conditions at t 0 = 0 (time level n) to t 1 = t o + A t 1 (time level n+l). The solution then is advanced in time from t, (time level n) to t 2 = t 1 -I- Al 2 (time level n+l), from t 2 to t 3 = t 2 + A t 3 , from t 3 to t 4 = t 3 + A t 4 , and the process is repeated as many times as necessary until the desired simulation time is reached. To obtain the pressure solution at time level n+ 1, we assign the pressure solution just obtained as pressures at time level n, write the flow equation for every block (node) in the discretized reservoir, and solve the resulting set of linear equations for the set of unknown pressures. For the explicit formulation, the calculation procedure within each time step follows. (1) Calculate the interblock transmissibilities and the coefficient of ( pn+l _ p~ ), and define the pressure at the old time level for all reservoir blocks.
7.3 General Single-Phase Flow Equation in Multi Dimensions
239
(2) Estimate the production rate at time level n for each wellblock in the reservoir as discussed in Chapter 6. (3) Estimate the flow rate at time level n for each fictitious well in the reservoir as discussed in Chapter 4 (or Chapter 5), i.e., estimate the flow rates resulting from boundary conditions. (4) For every gridblock (or gridpoint) in the reservoir, define the set of existing reservoir neighboring blocks ( ~Pn ) and the set of reservoir boundaries that are block boundaries ( ~n ), expand the summation terms in the flow equation (Eq. 7.80 in this case), and substitute for the wellblock production rate obtained in (2) and fictitious well rates obtained in (3). (5) Solve the flow equation of each reservoir block (node) for its unknown pressure independent of the other flow equations because each flow equation in the explicit formulation has only one unknown pressure. (6) Perform incremental and cumulative material balance checks. For the implicit and the Crank-Nicolson formulations, the calculation procedure within each time step follows. (1) Calculate the interblock transmissibilities and the coefficient of ( p~+l _ p~ ), and define pressure at the old time level for all reservoir blocks. (2) Estimate the production rate (or write the production rate equation) at time level n + 1 for each wellblock in the reservoir as discussed in Chapter 6. (3) Estimate the flow rate (or write the flow rate equation) at time level n + 1 for each fictitious well in the reservoir as discussed in Chapter 4 (or Chapter 5), i.e., estimate the flow rates resulting from boundary conditions. (4) For every gridblock (or gridpoint) in the reservoir, define the set of existing reservoir neighboring blocks ( ~Pn ) and the set of reservoir boundaries that are block boundaries ( ~, ), expand the summation terms in the flow equation (Eq. 7.81 or 7.82), and substitute for the wellblock production rate obtained in (2) and fictitious well rates obtained in (3). (5) Factorize, order, and place the unknown pressures (at time level n + 1 ) on the LHS and place known quantities on the RHS of each flow equation. (6) Solve the resulting set of equations for the set of unknown pressures (at time level n + 1 ) using a linear equation solver such as those presented in Chapter 9. (7) Estimate the wellblock production rates and fictitious well rates at time level n + 1 if necessary by substituting for pressures obtained in (6) into the flow rate equations obtained in (2) and (3). (8) Perform incremental and cumulative material balance checks.
240
Chapter 7 Single-Phase Flow Equation for Various Fluids"
7.3.2.3
Material Balance Check for a Slightly Compressible Fluid Flow Problem
For slightly compressible fluid flow problems, there are usually two material balance checks. The first is called the incremental material balance check ( IMB ) and is used to check the material balance over a time step. The second is called the cumulative material balance check ( CMrJ ) and is used to check the material balance from the initial conditions up to the current time step. The latter check tends to smooth errors that occur over "all the previous time steps; therefore, it provides a less accurate check than the first check. In reservoir simulation, a material balance check is defined as the ratio of the accumulated mass to the net mass entering and leaving reservoir boundaries, including wells. If reservoir blocks are identified using block order and the implicit formulation is used, the equations for material balance checks are
N V,
~ n+l _ (~_): ]
IM, : ,~--1~zf~t [(B)" N
(7.83)
Z (qsn£ 1 + Z qsc,,. °+1) n=l
IE~n
and
CMB
~n=l : n+l
- [(~-):+1 - (-~-)On] (7.84)
N
ZA,mZ(q:o +ZqL) m=l n=l 1~. where N = total number of blocks in the reservoir, Subscript n = block number, and superscript n = old time level. In Eqs. 7.83 and 7.84, the production (or injection) rate is set to zero for any reservoir block that is not penetrated by a well. In addition, Eq. 7.11 defines rock porosity, and Eq. 7.6 defines FVF for slightly compressible fluid. Alternatively, we can substitute Eq. 7.78 for a slightly compressible fluid into Eqs. 7.83 and 7.84. The material balance checks become o
V"o¢,,(C + % ) r
............ n=l a cB °At IMn =
,,+,
,,
[p,, -P,,] (7.85)
N
~(q,~:l + x-, ,+,. . 2_~qsc,.. )
n=l
l~,,
and
a,B °
CMB =
n,l
[P"
N
ZAImZ(q~c,+Z m=l
n=l
l~n
- p° I
qm
sc~,,)
(7.86)
7.3 General Single-Phase Flow Equation in Multi Dimensions
241
The second term in the parentheses in the denominator of Eq. 7.85 and 7.86 takes care of fluid flow across reservoir boundaries. The numerical value of both IMn and CMB checks should be close to one. A value of 0.995 to 1.005 or better is acceptable for solving problems using handheld calculators, compared to 0.999995 to 1.000005 used in numerical simulators. The incremental material balance check at time level n + 1, which is expressed by Eq. 7 . 8 5 , c a n be d e r i v e d b y w r i t i n g Eq. 7 . 8 1 a f o r e a c h b l o c k in the s y s t e m ( n = 1, 2, 3...N ) and then summing up all n equations. The resulting equation is N
n~l pn+l n Z • z~ ,,,, [(P~ - , ) - Y , , , ( , - Z , , ) I } + ~
Z l ' ~ T,n÷l n=l
le~p~
n=l
gb.~n(C+C0)r n=l
N
n+'
a~B° At
(~-"~ n+l L q .....
q_
le~
n+l
qs~. ) (7.87)
__pn n
tP,
].
The sum of all interblock flow terms in the reservoir, which are expressed by the first term on the LHS of Eq. 7.87, add up to zero, while the second term on the LHS represents the N
algebraic sum of all production rates through wells ( ~ q,~+l ) and those across reservoir n=l N
~-" q-+, boundaries ( S" ,_~ z.., ..... ). The RHS of this equation represents the sum of the accumulan=l lEE.
tion terms in all blocks in the reservoir. Therefore, Eq. 7.87 becomes ~(~"~ n=l
n~-I "t-
2., q ...... l~,,
n+l', ~.~ Vbn~)n(C"lcC*) qsc ) = [pn--1 _ pn~ ] n ,=l acB °At
(7.88)
Dividing this equation by the term on the LHS yields
1:
n=l
~B°At
P" -P~]
N Z z n+l
~
n='
l~ n
(7.89)
n+l x
tq,c,, + 2 . ~ q ...... )
Comparing Eqs. 7.85 and 7.89 dictates that IM8 must be equal or close to one in order to preserve the material balance. The equation for the c u m u l a t i v e material balance check is obtained by writing Eq. 7.88 for all time steps ( m = 1,2,3...n+1 ), observing that At m = t m'l - t m replaces A t , and summing up all resulting equations. It should be mentioned that for the explicit formulation, the denominator of Eq. 7.89 is replaced with
242
Chapter 7 Single-Phase Flow Equation for Various Fluids
N
(qs"c, + ~ q~c,,. ). For the Crank-Nicolson formulation, the denominator of Eq. 7.89 n=l
l(=~n N 1/~
n+l
becomes ~ [ ~ (q;,+l + q~, ) + 2./2 tq ...... n=l
~_
n ,.
qs~, )].
IE~.
Both Examples 7.9 and 7.10 demonstrate the application of the solution algorithm presented in this section to advance the pressure solution from one time step to another. The reservoir is discretized using a block-centered grid in Example 7.9, whereas a point-distributed grid is used in Example 7.10. Example 7.11 presents the simulation of a heterogeneous ID reservoir. Example 7.12 demonstrates the advancement of the pressure solution in time in single-well simulation. Example 7.9 A single-phase fluid reservoir is described by four equal blocks as shown in Figure 7-10. The reservoir is horizontal and has homogeneous rock properties, k = 270 md, ~ = 0 . 2 7 , and c¢ = I x 10 -6 psi -1. Initially, the reservoir pressure is 4000 psia. Gridblock dimensions are Ax = 300 ft, Ay = 350 ft, and h = 40 ft. Reservoirfluid properties are B = B ° = l RB/STB, p = 50 Ibm/ft 3, /~ = 0.5 cp, and c = I x 10 -5 psi -1. The reservoir left boundary is kept at a constant pressure of 4000 psia, and the reservoir right boundary is sealed off to flow. A 7-in vertical well was drilled at the center of gridblock 4. The well produces 600 STB/D of fluid and has a skin factor of 1.5. Find the pressure distribution in the reservoir after one day and two days using the implicit formulation. Take time steps of one day. Perform a material balance check. This problem is the same as that presented in Example 7.1, except both the fluid and rock are slightly compressible. Solution The gridblocks have the same dimensions and rock properties. Therefore,
TI,2 = T2.3 = T3,4 = Tx = tic A~kx - 0.001127x ( 3 5 0 x 4 0 ) × 2 7 0 = 28.4004 /~BAx
0.5 x 1 x 300
and Vb.~"n(C+%)
( 3 0 0 × 3 5 0 X 4 0 ) × 0 . 2 7 × ( 1 × 1 0 S +1X10--6)
acB°At
5.614583 × 1 x 1
= 2.2217 for n = 1,2,3,4.
There is a production well in gridblock 4 only. Therefore, q,+ls,:,= qsc2"+i= q,+lsc3= 0 and q sc , ,41 = _ 6 0 0
STB/D.
Gridblock 1 falls on the reservoir west boundary, which is kept at a constant pressure of 4000 psia. Therefore, q"+~ ,c~., can be estimated using Eq. 4.37c, whose application gives
7.3 General Single-Phase Flow Equation in Multi Dimensions
243
qsc4 -600 STB/D
J pbw = 400,
No-flow boundary
Figure 7-10
Discretized 1D reservoir in Example7.9. k xAx
q"+'%" = [fl~ l~B--~/2)
1' [(p~
- pill)
- y(Zbw
270 x (350 x 4 0 ) . . . . . . . . . . = [0.001127x O ' - .=S- xs -l x- O- : - O0-/ =2 =) = : l t t 4 t ~ ' - P l
(7.90)
Z, )1
-
1\
)-yxO]
or
q"+l = 56.8008(4000- p~"l) STB/D SCbw .t
(7.91)
Gridblock 4 falls on the reservoir east boundary, which is a no-flow boundary. Therefore, Eq. 4.32 applies, giving q,+l = 0 STB/D. SCbE .4 (a) First time step calculations ( n = 0 , t + l = 1 day, and At = 1 day) n
n
Assign pl = p~" = p"3 =P4 = p ~ . = 4 0 0 0 psi& _
The general flow equation for gridblock n in this 1 D horizontal reservoir is obtained from Eq. 7.81a by discarding the gravity term, yielding
~" T.,l(pn~l L,
t,,
t
-P,
,'lx
)+
1( ~ n
~'q.+l _1_ , ' l . . . . . . q,~
-=
v~ ~(c+c~) . ac-----~t
n+l
[p,-p,]
n
(7.92)
le~ n
For gridblock 1, n = 1, '~)l : { 2 } , and ~l =
{bw } - Therefore,
~ , q,,+] : qn+l ~ ...... ,%., /e~ t
and Eq. 7.92 becomes T1.2 /
n+l
tP2
-Pl
n+lx]_
)
n+l
q,~l
v~ ¢~ (c + c~ ) [p~'+'
qs%~ + ,q -
-P;]
Substitution of the values in this equation gives
28.4004(p2+1 _ p~+l ) + 56.8008(4000 - p~+l ) + 0 = 2.2217[p~ +1 - 4000] or after factorizing and ordering the unknowns,
(7.93)
244 Chapter 7 Single-Phase Flow Equation for Various Fluids
- 8 7 . 4 2 2 9 p ~ '.1 + 2 8 . 4 0 0 4 p 2 +~ = - 2 3 6 0 9 0 . 0 6
(7.94) n+l
F o r g d d b l o c k 2, n = 2 , ~P2 = {1,3} , a n d ~'2 = { } • T h e r e f o r e ,
2~ q ...... = 0 a n d
Eq. 7 . 9 2 b e c o m e s T, ( n+l ~+1 . n+l 1,2 Pl -P2 )+T2,3tP3 -P~"+I) +0+.
q~+l s~ -
V~ ~)2 (c + c¢ )
[P2 +1 _ P 2 l
(7.95)
acB°At
Substitution of the values in this equation gives 2 8 . 4 0 0 4 ( p ~ '~1 - p 2 +1 ) + 2 8 . 4 0 0 4 ( p 3 +l - p:~+l ) + 0 + 0 = 2 . 2 2 1 7 [ p n+l - 4 0 0 0 1
or after factorizing and ordering the unknowns, (7.96)
2 8 . 4 0 0 4 p ~ '+~ - 5 9 . 0 2 2 5 p ~ +~ + 2 8 . 4 0 0 4 P 3 +~ = - 8 8 8 6 . 8 6
For gridblock 3, n = 3
I
~03 = { 2 , 4 }
,
and ~3 = { } "
Therefore, ~ q " +scl,l 3 = 0
and
IE~ 3
Eq. 7.92 becomes
T2,3.tP2n+l -
n+l x .1._T. , n+l n+l x 0 -]- n+l -P3 ) 3,4 I,P4 -- P3 ) + qsc~
v~,¢;(c +c,) [p~+l _ p ~ ] acB°At
(7.97)
S u b s t i t u t i o n of t h e v a l u e s in this e q u a t i o n g i v e s
28.4004(P2+1 -
P3n+l ) + 2 8 . 4 0 0 4 ( p 4n+l - p3 +1 ) + 0 + 0 = 2 . 2 2 1 7 [ P 3 +I - 40001
or after factorizing and ordering the unknowns, 28.4004P2 +l - 59.0225p~ '÷1 + 28.4004p~ .1 = -8886.86 For gridblock 4, n = 4 , ~04 = {3} , and ~'4 =
(7.98)
{be } • Therefore, ~.~ q,,+lsc,.,= q,%"+1.4 IE~4
and Eq. 7.92 becomes
7 , " n+l .+1. °~l + .+I_Vb,¢'4(C+C*)[ ..1 . 13 4[P3 --P4 ) + q,cb,, q,c, ~ P4 -- P4 ]
(7.99)
S u b s t i t u t i o n of t h e v a l u e s in this e q u a t i o n g i v e s 28.4004(P3÷I - P 4 ,+1 ) + 0 - 6 0 0
= 2 . 2 2 1 7 [ P 4 +1 - 4 0 0 0 1
or after factorizing and ordering the unknowns, 2 8 . 4 0 0 4 p ~ '+1 - 3 0 . 6 2 2 1 P 4 +1 = - 8 2 8 6 . 8 6
(7.100)
7.3 General Single-Phase Flow Equation in Multi Dimensions
245
The results of solving Eqs. 7.94, 7.96, 7.98, and 7.100 for the unknown pressures are
p l +l =
3993.75 psia, p~+~ = 3980.75 psia,
p,,+13 =
3966.24 psia, and
p4 +1 = 3949.10 psia.
~%., ) is estimated using Next, the flow rate across the reservoir left boundary ( q"÷l Eq. 7.91, which gives
qn+l SCbw ,1
=
5 6 . 8 0 0 8 ( 4 0 0 0 - p~+l) = 5 6 . 8 0 0 8 ( 4 0 0 0 - 3993.75) = 355.005 STB/D.
The material balance for a slightly compressible fluid and rock system is checked using Eq. 7.85, yielding
~ gt,.~)~(cl-¢4~)
Vb ~)° ( C -~ C e~ )
[pn+l
,=1
"
a cB °At
IMB
- p'~ ]
N
~ t
4
ZtP"+I--P:]n=I
4
4
~ , ( q , ~n, l + ~ q . +SCl.n ,)
S,q,+, ,+1 ~ so° + E Z q , c , .n
n=l
n=l
l~e,,
n=l l~e.
2.2217[(3993.75 - 4000) + (3980.75 - 4000) + (3966.24 - 4000) + (3949.10 - 4000) 1 [0 + 0 + 0 - 600] + [355.005 + 0 + 0 + O] =
-2.2217×110.16 -244.995
= 0.99897 .
Therefore, the material balance check is satisfied. (b) Second time step calculations ( n = 1, t,+ 1 = 2 day, and At = 1 day) n
Assign Pl
=
n
3993.75 psia, P2
=
n
3980.75 psia, P3 = 3966.24 psia, a n d
P4 = 3949.10 psia. B e c a u s e At is constant, the flow equation for each gridblock in the s e c o n d and s u c c e e d i n g time steps is obtained in a way similar to that
used in the first time step, except the newly assigned p,~ is used to replace the old p," in the accumulation term. For example, p~ on the RHS of Eqs. 7.93, 7.95, 7.97, and 7.99 for this time step is replaced with 3993.75, 3980.75, 3966.24, and 3949.10, respectively. For gridblock 1, 28.4004(p~ +1 -
p l +1 ) +
56.8008(4000 - p~'l ) + 0 = 2.2217[p~ ÷1 - 3993.75]
or after factorizing and ordering the unknowns, - 8 7 . 4 2 2 9 p ~ ' 1 + 28.4004p~ '÷1 = - 2 3 6 0 7 6 . 1 6
(7.101)
Chapter 7 Single-Phase Flow Equation for Various Fluids
246
For gridblock 2, 28.4004(p~"' - p~,l ) + 28.4004(p~+, _ p~+, ) + 0 + 0 = 2.2217[p~'-' - 3980.751
or after factorizing and ordering the unknowns, 28.4004p~"1 _ 59.0225p~+, + 28.4004p3+~ = - 8 8 4 4 . 0 8
(7.102)
For gridblock 3, 28.4004(p~ +1 -- P3,,-~l ) + 28"4004(p4n+l -- P3 +1) + 0 + 0 = 2.2217[p~ '÷~ -- 3966.24]
or after factorizing and ordering the unknowns, 28.4004p~ +l - 59.0225P3 +1 + 28.4004P4 ~1 = - 8 8 1 1 . 8 6
(7.103)
For gridblock 4, 28.4004(P3 +1 - P 4 n+l ). + 0 - 6 0 0
= 2.2217[p4 +1 - 3 9 4 9 . 1 0 ]
or after factorizing and ordering the unknowns, 28.4004P3 +1 - 30.6221p~ +1 = - 8 1 7 3 . 7 7
(7.104)
The results of solving Eqs. 7.101 through 7.104 for the unknown p r e s s u r e s are p~'+a = 3990.95
psia, p2 +1 = 3972.64
p4 +~ = 3933.77
psia.
psia, p3 +~ = 3953.70 psia, and
I qn+l
Next, the flow rate across the reservoir left boundary,
.~(~.~) is estimated using
Eq. 7.91, which gives q,,+l SCbw ,t = 56.8008(4000 - p l ÷~) = 56.8008(4000- 3990.95) = 514.047 STB/D. The material balance is checked using Eq. 7.85, yielding
Vb~)~(C~C~))~ a BAt IMB
--
4
....
l pn
,=ltP"
,1
4
Z q.:;~' + Z Z q"~i, n=l
~2
n=l
le~n
2217[ (3990.95-3993.75)+(3972.64-3980.75)
= [ "
L+(3953.70_3966.24)+(3933.77_3949.10)jj [0+0+0-600]+[514.047+0+0+0]
]1 = - 2 . 2 2 1 7 × 38.78 -85.953
= 1.00238.
Example 7. 10 Consider the problem presented in Example 7.9, but this time the reservoir is described by five equally spaced gridpoints using a point-distributed grid as shown in Figure 7-11.
7.3 G e n e r a l S i n g l e - P h a s e F l o w E q u a t i o n in M u l t i D i m e n s i o n s
247
qsc5 = -600 STB/D
Z
No-flow boundary
Pl = Pbw =
Figure 7-11
Discretized 1D reservoir in Example7.10.
The problem is restated as follows. The reservoir length along the xdirection is 1200 ft, Ay = 350 ft, and h = 40 ft. The reservoir is horizontal and has homogeneous rock properties, k -- 270 md, q~= 0 . 2 7 , and c~ = 1 x l 0 -6 psi-1. Initially, the reservoir pressure is 4000 psia. Reservoir fluid properties are B = B ° = 1 RB/STB, p = 50 Ibm/ft3, ~ = 0.5 cp, and c = I x 10 -s psi-1. The reservoir left boundary is kept constant at 4000 psia, and the reservoir right boundary is sealed off to flow. A 7in vertical well was drilled at the center of gridblock 5. The well produces 600 STB/D of fluid and has a skin factor of 1.5. Find the pressure distribution in the reservoir after one day and two days using the implicit formulation. Take time steps of one day. Perform a material balance check. Solution The reservoir is discretized into five gridpoints, n x = 5 . The distance between the gridpoints is zkxi+~/2 = 1 2 0 0 / ( 5 - 1 ) = 300 ft for i = ] , 2 , 3 , 4 . Therefore, block sizes in the xdirection are Ax 1 = Ax 5 = 3 0 0 / 2 = 150 ft and Ax 2 = Ax 3 = Ax 4 = 300 ft. Blocks represented by the various gridpoints have the same rock properties. Therefore, A xk x
T~,2 = T:, 3 = I"3,4 = 14,5 = T = tic #BAxi+,/2
Vb,~(c+c¢)
0.001127 x
(350 x 40) x 270 0.5xlx300
_ (300 x 350 x 40) x0.27 x (1 x l O -5 + l x l O ~ )
acB°At
5.614583 x 1 x 1
= 28.4004,
= 2.2217 for n = 2,3,4.
Additionally, Vb.{b~(c+%) acB°At
_ (150x350x40)x0.27x(lx10 5.614583 x 1 x l
5 +lx10-6)
=1.11085 for n = l , 5 .
Chapter 7 Single-Phase Flow Equation for Various Fluids
248
There is a production well in gridpoint 5 only. Therefore,
q,+l,q = qn+lsc2= qn+ls~3= q,+lsc4= 0 and qs~.+1 = - 6 0 0 STB/D. Gridpoint 1 falls on the reservoir west boundary, which is kept at a constant pressure of 4000 psia. Therefore,
(7.105)
p~,+l = P~ = 4000 psia In addition, q,+l ,%., can be estimated using Eq. 5.46c, whose application gives
q"+~,%=,l [~C - ~kxAx ]1,2 = [0.001127 x
n+l x "Z [(Pb W - - P 2 ) - - r t b W -Z2)]
(7.106)
270 x (350
x 40)][ (4000 - p~+~ ) - y x 0] 0.5xlx300
or
q"+' sc~ a = 2 8 . 4 0 0 4 ( 4 0 0 0 -
p~+l)
STB/D
(7.107)
Gridpoint 5 falls on the reservoir east boundary, which is a no-flow boundary. Therefore, Eq. 5.40 applies, giving q,,.1 = 0 STB/D. SCbE ,5
(a) First time step calculations ( n = 0 , n
n
t.+ 1 = 1 day, and At = 1 day)
n
Assign Pl =P2 = P "3 = P, = P"5 = Pi, = 4000 psia. The general flow equation for gridpoint n in this 1D horizontal reservoir is obtained from Eq. 7.81a by discarding the gravity term, yielding
E T'n+l/tpln+l l,n
-- pnn+l x-[~-'~) ~
l~.
qn+lsc,,,,+qsn~cl=
l~.
For gridpoint 1, n = l ,
"
(c + a cB °
At
[p,~+l _p.] "K~ q,,1
(7.92)
,+1
~1 = { 2 } , and ~~ = {b w } . Therefore, ,_, ..... = q,%.,
and Eq. 7.92 becomes TI " n+l _ p l + l ) ,2
[P2
+
q.*l SCbw ,1
+ n+l qsq =
ac B°At )[p~,+l - P ~ ' ]
(7.93)
In reality, we do not need to write or make use of the flow equation for gridpoint 1 because p~'+~ = 4000 psia as defined by Eq. 7.105; however, Eq. 7.93 can be n+l
used to estimate q~%., . Substitution of values in Eq. 7.93 gives 28.4004(P2 '' - 4000) + q;+~., + 0 = 1.1108514000 - 4000]
7.3 General Single-Phase Flow Equation in Multi Dimensions
249
which when solved for q"+~ sc~ ,1 results in Eq. 7.107. Therefore, we may conclude for the case of a specified pressure boundary in a point-distributed grid that the rate of fluid flow across a reservoir boundary can be obtained either by using Eq. 5.46c or writing the flow equation for the boundary gridpoint and making use o f pbn; 1 = Phi, = Po •
For gridpoint 2, n = 2
~Oz = { l , 3 }
and ~:z = { }
Therefore, ~-'q"+~ = 0 and
Eq. 7.92 b e c o m e s
v.2q~(c+ %) T1,2 ( p l + l __ p;l+l ) + T2,3 ( p 3 + l -- p ; + l ) ..]_ 0 -}- qsnc~1 --
(7.95)
[ p ; + l -- P 2 ]
~'c B°
At Substitution of the v a l u e s in this equation gives 28.4004(4000 - p;'+~ ) + 28.4004(p3 '1 - p2 +1 ) + 0 + 0 = 2.2217[p2 +~ - 40001
or after factorizing and ordering the unknowns,
(7.108)
-59.0225p~ +1 + 28.4004p~TM = -122488.46 For gridblock 3, n = 3
,
~O3 = { 2 , 4 }
i
and ~ 3 = { } . T h e r e f o r e ,
~,q"+l set,3 = 0 and IE~3
Eq. 7.92 b e c o m e s T,
( n+l
z,3 P2
n+l . . . . . . 1 n+l ) _1._0 "}'- n+l -) + 13,4 ~,P4 -- P3 qsc~
- P3
v,~ q~; (c + c, ) [p3 +1 _ p; ]
(7.97)
a B°At
Substitution of the values in this equation gives 28.4004(P2 ~1 --P3. ~-1) + 2 8 " 4 0 0 4 ( P 4 n+l --P3n+l ) + 0 + 0 = 2 " 2 2 1 7 [ P 3
+1-4000]
or after factorizing and ordering the unknowns,
(7.98)
28.4004p~' 1 _ 59.0225p~,+1 + 28.4004p~ +1 = -8886.86 For gridblock 4, n = 4 , ~04 = {3, 5} , and ~:4 = { } . Therefore, ~
q",,,n+l
= 0
and
IC~4
Eq. 7.92 becomes T3,4 ( p 3 ~1
n+l
--t)4
,-
)+T45(P5
n+l
n tq x .t_ 0 ..~ n+l
-1°4
)
qs~4-
go. ~b4(C + C¢ ) [P4 '1 _ P4 ] a B°At
Substitution of the values in this equation gives 28.4004(P3 +1 - P 4 .+1 ) + 2 8 " 4 0 0 4 ( p 5 .+1 - P 4 ., 1) + 0 + 0 = 2 " 2 2 1 7 [ p ~
or after factorizing and ordering the unknowns,
+1-4000]
(7.109)
Chapter 7 Single-Phase Flow Equation for Various Fluids
250
(7.110)
28.4004p~ '+1 - 5 9 . 0 2 2 5 p 4 +1 + 28.4004p~ '+1 = - 8 8 8 6 . 8 6 For gridblock 5, n = 5 ,
~05 = { 4 } , a n d ~5 =
{b~:} .
Therefore,
n+l
2_, qsc,.
qn+l
= .......
a n d Eq. 7.92 b e c o m e s T3 " n+l __pn+l. +
4tP4
n+l
5 ) q,%~
,
+
n~l__
qs~
vb,¢~(c+%)pn+l 5
a,B°At
n -P5 ]
(7.111)
Substitution of the values in this equation gives 28.4004(p4+1 _ p,,+15 ) + 0 - 6 0 0 = 1.11085[p~ +1 - 40001
or after the factorizing and the ordering of unknowns, 2 8 . 4 0 0 4 p 4 +l - 29.51 .xz3p5 .... 1 = -3843.4288
(7.112)
T h e results of solving Eqs. 7.108, 7.98, 7.110, a n d 7 . 1 1 2 for t h e u n k n o w n p r e s sures
are
p 2 +1 =
p~'+~ = 3 9 3 9 . 7 2
3 9 8 7 . 4 9 psia, p,+l = 3 9 7 4 . 0 0 psia, p4 +1 = 3 9 5 8 . 4 8 psia, a n d 3 psia.
Next, the flow rate across the reservoir left boundary ( q"+l sc~., ) is estimated using Eq. 7.107, which yields q ,sctw , 1 ,t : 2 8 . 4 0 0 4 ( 4 0 0 0 - p2 +1 ) = 2 8 . 4 0 0 4 ( 4 0 0 0 - 3 9 8 7 . 4 9 ) = 3 5 5 . 2 8 9 STB/D.
The material balance for a slightly compressible fluid and rock system is checked using Eq. 7.85,
~ v,o¢~.(c+%) n-1 IMB =
°,,
acBOAt lP, _p~] N
(
n+l
Z q,~ + Z n=l
I,E~,,
q.~l) sc,.
~(c+%)
~ vb
.
.
~f .
.
,, IB~At [ p , + l _ p , ; ] 5 5 Zqn,l+Z~qn+l
.
,_._., sc,,. n-I le~,,
n=l
1.11085 x ( 4 0 0 0 - 4 0 0 0 ) + 2 . 2 2 1 7 × ( 3 9 8 7 . 4 9 - 4 0 0 0 ) + 2 . 2 2 1 7 × ( 3 9 7 4 . 0 0 - 4 0 0 0 ) ] _ 1 + 2 . 2 2 1 7 × ( 3 9 5 8 . 4 8 - 4 0 0 0 ) + 1.11085 x ( 3 9 3 9 . 7 2 - 4 0 0 0 ) [(0+0+0+0-600)+(355.289+0+0+0+0)] -
-244.765
- 1.00022.
-244.711
Therefore, the material balance check is satisfied. (b) Second time step calculations ( n = 1 ,
t,,+l
= 2 day, and At = 1 day)
/
7.3 General Single-Phase Flow Equation in Multi Dimensions
Assign P2n = 3987.49 psia, p"3 = 3974.00 psia, P4n
=
251
3958.48 psia, and
P"5 = 3939.72 psia. Note that p~,+l = 4000 psia. Because At is constant, the flow equation for each gridblock in the second and succeeding time steps is obtained in a way similar to that used in the first time step, except the newly assigned p,~ is used to replace the old p," in the accumulation term, as mentioned in Example 7.9. For example, P~i on the RHS of Eqs. 7.95, 7.97, 7.109, and 7.111 for the present time step is replaced with 3987.49, 3974.00, 3958.48, and 3939.72, respectively. For gridblock 2, n+l n+l 2 8 . 4 0 0 4 ( 4 0 0 0 - - Pa ) + 2 8 " 4 0 0 4 ( p 3 -
p~+l) + 0 + 0 =
2 . 2 2 1 7 [ P 2 +1 -- 3 9 8 7 . 4 9 ]
or after factorizing and ordering the unknowns, - 5 9 . 0 2 2 5 P 2 +1 + 2 8 . 4 0 0 4 p ~ '+1 = - 1 2 2 4 6 0 . 6 6 7
(7.113)
F o r g r i d b l o c k 3,
28.4004(p~ +1 -P3n * l )+28-4004(p4n + l -P~'+l) . +0+0
=
2"2217[p~ T M
--
3974.00]
or after factorizing and ordering the unknowns, 2 8 . 4 0 0 4 P 2 +1 - 5 9 . 0 2 2 5 p ~ " ' + 28.4004p,~ +1 = - 8 8 2 9 . 1 0 2 6
(7.114)
F o r g r i d b l o c k 4, n+l
2 8 . 4 0 0 4 ( p ~ +' - P4
) + 28.4004(p5
n+l
- P4 +') + 0 + 0 = 2 . 2 2 1 7 [ p 4 +' - 3 9 5 8 . 4 8 ]
or after factorizing and ordering the unknowns, 2 8 . 4 0 0 4 p ~ +~ - 5 9 . 0 2 2 5 p ~ +~ + 2 8 . 4 0 0 4 p ~ '~1 = - 8 7 9 4 . 6 2 0 0
(7.115)
F o r g r i d b l o c k 5, 2 8 . 4 0 0 4 ( P 4 +~ - p~'+~ ) + 0 - 6 0 0 = 1.11085[p~ '+1 - 3 9 3 9 . 7 2 ]
or after factorizing and ordering the unknowns, 2 8 . 4 0 0 4 p 4 .1 - 2 9 . 5 1 1 2 5 p ~ '+1 = - 3 7 7 6 . 4 6 0 9
(7.116)
The results of solving Eqs. 7.113, 7.114, 7.115, and 7.116 for the unknown pressures are p~+l = 3981.91 psia, p~'+~ = 3963.38 psia, p4+1 = 3944.02 psia, and p,+l = 3923.52 psia. 5 The flow rate across the reservoir left boundary ( q,+l sc~., ) is estimated next using Eq. 7.107, yielding
Chapter 7
252
Single-Phase Flow Equation f o r Various Fluids
q ,sc~, wl ,, ---~28.4004(4000 - p~+l ) = 28.4004(4000 -- 3981.91) = 513.763
STB/D
The application of Eq. 7.85 to check the material balance for the second time step gives
v~ ¢](c+c,) ,=1
a~B°At
lP"+' - p" ]
I ~ MB
5
5
Z q"+l +Z scn
"~-" q"+l i__.d scl, n
n=l 16~n
n=l
1.11085 x ( 4 0 0 0 - 4000) + 2.2217 x (3981.91 - 3987.49)
/+2.2217 x (3963.38 -
3974.00) + 2.2217 x (3944.02 -
[+1.11085 x (3923.52
- 3939.72)
/
_
]
3958.48)/ /
] _ -86.103
[(0 + 0 + 0 + 0 - 600) + (513.763 + 0 + 0 + 0 + 0)]
-86.237
= 0.99845.
Therefore, the material balance check is satisfied.
Example 7.11 A 1D, horizontal, heterogeneous reservoir is discretized as shown in Figure 7-12. The reservoir is described by five gridblocks whose dimensions and rock oroperties are shown in the figure. Reservoir fluid properties are B = B ° = l RB/STB, /~ = 1.5 cp, and c = 2.5×10 -5 psV 1. Initially, reservoir pressure is 3000 psia. The reservoir left and right boundaries are sealed off to flow. A 6-#7 vertical well was drilled at the center of gridblock 4. The well produces 400 STB/D of fluid and has zero skin. The well is switched to a constant FBHP of 1500 psia if the reservoir cannot sustain the specified production rate. Find the pressure distribution in the reservoir after five days and ten days using the implicit formulation. Take time steps of five days. Tabulate reservoir pressure versus time until reservoir depletion. Solution The general flow equation for gridblock n in this 1D horizontal reservoir is obtained from Eq. 7.81a by discarding the gravity term, yielding "~
,-rn+l /
1In [,Pln+l ,
-
Pnn+l ) + Z q
i,,~.
n+l + q,cn+l = Vb.dq~;,(C .....
t~,
"
"}- C o )
[p,+l, - p." ]
(7.92)
a c B At
Interblock transmissibilities can be calculated using Eq. 4.67a with the geometric factors in the xdirection obtained from Table 4-1 because the gridblocks have an irregular grid size distribution and heterogeneous rock properties, resulting in
T.,._+I L .....
(1__ = Gx'.... p B )~'....
= 1
2fl C
I~B Ax, /(Ax, k, ) + ~iT1/(A,,, k.,,,, )
(7.117)
7.3 General Single-Phase Flow Equation in Multi Dimensions
qsc4
253
-400 STB/D
No-flow boundary
No-flow boundary
Figure 7-12
Discretized 1D reservoir in Example 7.11.
Therefore,
T~'2
1 1.5xl
2x0.001127 X
- 14.0442 STB/D-psi
400/[(500 x 50) x 273] + 300/[(500 x 50) x 248]
Similarly, T2,3 =15.7131 STB/D-psi, T3, 4 =21.0847
STB/D-psi, and
T4.5 = 20.1622 STB/D-psi.
Vb,~(c+c¢,)
(400 x 500 x 50) x 0.21x (2.5 x 1 0 -5 + 0 )
acB° At
5.614583xlx5
- 1.87013 STB/D-psi
Similarly,
G (c acB°At
- 1.13544 STB/D-psi
- 0.333952 STB/D-psi
acB°At Vb'~4(c +%) - 1.11317 STB/D-psi a B°At
a B°At
- 0.723562 STB/D-psi
254
Chapter 7
Single-Phase Flow Equation f o r Various Fluids
There is a production well in gridblock 4 only. Therefore, qn+l = - 4 0 0 STB/D and sc 4
q,,+l = q,+l = q,+l = 0 and SOl sc2 '~c3 = q,+l so5 = 0 . No-flow b o u n d a r y conditions imply q,+l SCbW ,1 q .+l
SCbE .5
= 0
For no-flow boundaries, Eq. 7.92 reduces to ~ ' ~ T n+l (
Z--J l,n
n*]
P~
n+l- q.+l = Vb, dp~(c + c¢ ) [P"+' _ P,", ] - Pn ) + sc.
(a) First time step calculations ( n = 0 , n
n
(7.118)
ct c B ° At
l~v,,,
n
t÷~ = 5 days, and At -- 5 days)
n
Assign Pl = P2 = P3 = P4 = P"5 = Pi, = 3 0 0 0
psia.
For gridblock 1, n = 1 a n d ~,~ = {2}. Therefore, Eq. 7.118 b e c o m e s x
n+l
T1,2(P2 ÷1 - P ~ ' l ) + q , c ~
=
Vbl (p~ (C + Ce~) [ P l +1 n a BOAt -Pl ]
(7.119)
Substitution of the values in this equation gives 14.0442(p~ +1 - p~'+' ) + 0 = 1.87013lp~' ~ - 3000] or after factorizing and ordering the unknowns, -15.9143p~ '+~ + 14.0442p2 +1 = - 5 6 1 0 . 3 9
(7.120)
For gridblock 2, n = 2 a n d ~'2 = {1,3} . Therefore, Eq. 7.118 b e c o m e s
,
Tlz(P;*I-p2~I)+T2,3(P;*I-P2
.+~. + .+l ) qs~-
Vb~q~ (c + c¢ ) [P~+' _ P~ ] a BOAt
(7.121)
Substitution of the values in this equation gives 14.0442(p~ ÷1 - P2 ~ ) + 15.? 13 l(P3 ÷~ - p~÷~) + 0 = 1.13544[ p2 '1 - 3000] or after factorizing and ordering the unknowns, 14.0442Pl +~ - 30.8927p~ ''1 + 15.7131P3 +1 = - 3 4 0 6 . 3 2
(7.122)
For gridblock 3, n = 3 and F3 = {2,4}. Therefore, Eq. 7.118 b e c o m e s T2 3 ( p ~ l
,
--
.+1 .+, n+l x _]_ n+l P3 ) -}- T 3 4 (P4 -- P3 ) q,~ --
Vb3~l)3(c]-e*)
.
Substitution of the values in this equation gives
a B°At
n.~l
[P3
-- P3 l
(7.123)
7.3 General Single-Phase Flow Equation in Multi Dimensions
255
1 5 . 7 1 3 l ( p 2 *1 - P3 t-1 ) _}_2 1 . 0 8 4 7 ( p 4 +' - p'3 +1 ) + 0 = 0 . 3 3 3 9 5 2 [ P 3 ~1 - 30001
or after factorizing and ordering the unknowns, 1 5 . 7 1 3 l p ; '+l - 3 7 . 1 3 1 8 p ~ ' ' l + 2 1 . 0 8 4 7 p 4 .1 = - 1 0 0 1 . 8 5 6
(7.124)
For g r i d b l o c k 4, n = 4 a n d ~P4 = { 3 , 5 } . T h e r e f o r e , Eq. 7 . 1 1 8 b e c o m e s
T3 . . . . 1
,4 I.P3
n+l . . . .
-
-
P4 ) "}- 14,5 tP5
+1
.+l)+
-
P4
°+,
q,c~. =
Vb, 0 ] ( C + C ~ ) [ p 4 . , o a c B At
°
- P4 ]
(7.125)
Substitution of the values in this equation gives 21.0847(p; '~1 - p~+l ) + 20.1622(p; ''1 - p~,l ) _ 400 = 1. ] 1317Ip~+1 _ 3OOO1 or after factorizing and ordering the unknowns, 2 1 . 0 8 4 7 P 3 +~ - 4 2 . 3 6 0 1 P 4 ~1 + 2 0 . 1 6 2 2 P 5 ~1 = - 2 9 3 9 . 5 1 0
(7.126)
For gridblock 5, n = 5 and ~'4 = {4}. Therefore, Eq. 7.118 becomes o
.
.
.
.
q,stP4
1 -- p,,,1-
,+I
5 )+qsc~-
Vb5 05 (C + C¢ ) IPs*' -- P~ ]
(7.127)
acBOAt
Substitution of the values in this equation gives 2 0 . 1 6 2 2 ( P 2 +1 -
p 5 +1 ) -I- 0 =
0 . 7 2 3 5 6 2 [ p ~ "1 - 30001
or after factorizing and ordering the unknowns, 2 0 . 1 6 2 2 P 4 ~1 - 2 0 . 8 8 5 7 p ; TM
=
-2170.686
(7.128)
The results of solving Eqs. 7.120, 7.122, 7.124, 7.126, and 7.128 for the unknown pressures are p~,+x = 2936.80 psia, p~+~= 2928.38 psia,
P"+~=3 2915.68
psia,
p4 +1 = 2904.88 psia, and p,+15 = 2908.18 psia. (b) Second time step calculations ( n = 1,
t,,,l
Assign p~' =2936.80
psia, p~ =2915.68
psia, p~ =2928.38
= ]0 days, and At = 5 days) psia,
n
P4 = 2904.88 psia, and P"5 = 2908.18 psia. Because At is constant, the flow equation for each gridblock in the second and succeeding time steps is obtained in a way similar to that used in the first time step, except the newly assigned
p",
is
used to replace the old p,~ in the accumulation term. In fact, for horizontal reservoirs having no-flow boundaries and constant production wells and simulated using a constant time step, only the RHSs of the final equations for the first time
256
Chapter 7 Single-Phase Flow Equation for Various Fluids
step change. The new value for the RHS of the equation for gridblock n is
[__qn,1 so.
Vb.~P~(C"I-c~P) . ~
P°]
For gridblock 1, 14.0442(p 2'' - p l +' ) + 0 = 1.870131p~'*' - 2936.801
(7.129)
or after factorizing a n d ordering the unknowns, -15.9143p~ '+1 + 14.0442p~ +1 = - 5 4 9 2 . 2 0
(7.130)
14.0442(p~ TM -P2"*1 ) + 15.7131(p3,,1 _ p,+l ) + 0 = 1.13544[p~ TM - 2 9 2 8 . 3 8 ]
(7.131)
For gridblock 2,
or after factorizing a n d ordering the unknowns, 14.0442p~ TM - 30.8927p~ +1 + 15.7131p~'+1 = - 3 3 2 5 . 0 0
(7.132)
For gridblock 3,
15.7131(P2+1 --P3n+l ) + 21"0847(p4,+1 _p,~l 3 )+0=0.333952Ip~''--2915.68]
(7.133)
or after factorizing and ordering the unknowns, 15.713 lp~ +1 - 37.1318P3 +1 + 21.0847p4 ~1 = - 9 7 3 . 6 9 7 2
(7.134)
For gridblock 4, 21.0847(p~ '+' - P4"~1) + 2 0 . 1 6 2 2 ( p 5"÷' - P4"+1)- 400 = 1.11317[p4 +1 - 2904.88]
(7.135)
or after factorizing a n d ordering the unknowns, 21.0847p~ '+1 - 42.3601p4 +1 + 20.1622p~ '÷1 = - 2 8 3 3 . 6 3
(7.136)
For gridblock 5, 20.1622(p4 +1 - p~'+' ) + 0 = 0.723562Ip~'+' - 2908.1801
(7.137)
or after factorizing and ordering the unknowns, 2 0 . 1 6 2 2 p ~ " - 20.8857p~ '+1 = - 2 1 0 4 . 2 4 8
(7.138)
The results of solving Eqs. 7.130, 7.132, 7.134, 7.136, and 7.138 for the unknown p r e s s u r e s are p~'+~ = 2861.76 psia, p2 +~ = 2 8 5 1 . 7 7 psia, p~,,1 = 2 8 3 7 . 3 0 psia, p4 '~ = 2825.28 psia, a n d p~+l = 2828.15 psia.
Table 7-1 shows gridblock pressures, the well production rate, and the FBHP of the well as time progresses. Note that the reservoir produces at a constant rate for the first ninety days, after which the reservoir does not have the capacity to produce fluid at the specified rate and the well is switched to operation under a constant FBHP of 1500 psia. Observe also that reservoir pressure declines steadily
7.3 General Single-Phase Flow Equation in Multi Dimensions
Table 7-1 Time (day)
257
P e r f o r m a n c e of the Reservoir Described in E x a m p l e 7.11 Pl (psla)
P2 (psla)
}93
P4
P5
qsc 4
(psia)
(psia)
(psia)
(STB/D)
3000
3000
3000
3000
3000
(psia) 3000
2936.80
2928.38
2915.68
2904.88
2908.18
10
2861.76
2851.77
2837.30
2825.28
2828.15
-400 -400
15
2784.83
2774.59
2759.86
2747.65
2750.44
-400
2718.60
20
2707.61
2697.33
2682.56
2670.32
2673.10
-400
2641.27
25
2630.34
2620.06
2605.28
2593.04
2595.81
-400
2563.98
30
2553.07
2542.78
2528.00
2515.76
2518.53
-400
2486.71
2875.83 2796.23
35
2475.79
2465.50
2450.72
2438.48
2441.26
-400
2409.43
40
2398.52
2388.23
2373.45
2361.21
2363.98
-400
2332.15
45
2321.24
2310.95
2296.17
2283.93
2286.71
-400
2254.88
50
2243.97
2233.68
2218.90
2206.66
2209.43
-400
2177.60
55
2166.69
2156.40
2141.62
2129.38
2132.15
-400
2100.33
60
2089.41
2079.12
2064.34
2052.10
2054.88
-400
2023.05
65
2012.14
2001.85
1987.07
1974.83
1977.60
-400
1945.78
70
1934.86
1924.57
1909.79
1897.55
1900.33
-400
1868.50
75
1857.59
1847.30
1832.52
1820.28
1823.05
-400
1791.22
80
1780.31
1770.02
1755.24
1743.00
1745.77
-400
1713.95
85
1703.03
1692.74
1677.96
1665.72
1668.50
-400
1636.67
90
1625.76
1615.47
1600.69
1588.45
1591.22
-400
1559.40
95
1557.58
1548.51
1535.55
1524.87
1527.17
-342.399
1500.00
100
1524.61
1520.22
1514.26
1509.47
1510.08
-130.389
1500.00
105
1510.35
1508.46
1505.91
1503.88
1504.09
-53.378
1500.00
110
1504.34
1503.54
1502.47
1501.61
1501.70
-22.229
1500.00
115
1501.82
1501.48
1501.03
1500.68
1500.71
-9.294
1500.00
120
1500.76
1500.62
1500.43
1500.28
1500.30
-3.890
1500.00
125
1500.32
1500.26
1500.18
1500.12
1500.12
-1.628
1500.00
130
1500.13
1500.11
1500.08
1500.05
1500.05
-0.682
1500.00
135
1500.06
1500.05
1500.03
1500.02
1500.02
-0.285
1500.00
from the initial condition of 3000 psia to ultimately 1500 psia at abandonment. The estimated P,f4 reported in Table 7-1 used k n
=
333 md, r = 75.392 ft, and
Gw4 = 20.652 RB-cp/D-psi, which were based on the properties of wellblock 4 and the hosted well.
258
Chapter 7 Single-Phase Flow Equation for Various Fluids
Example 7.12 A 0.5-ft diameter water well is located in 20-acre spacing. The reservoir thickness, horizontal permeability, and porosity are 30 ft, 150 md,