468

Click here to load reader

Petroleum Reservoir Simulation a Basic Approach

Embed Size (px)

Citation preview

Page 1: Petroleum Reservoir Simulation a Basic Approach

P e t r o l e u m

R e s e r v o i r S i m u l a t i o n

A Basic Approach

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

@

Page 2: Petroleum Reservoir Simulation a Basic Approach

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, TX 77046

AUSTIN, TX: 427 Sterzing St., Suite 104 Austin, TX 78704

1 0 9 8 7 6 5 4 3 2 I

Library of Congress Cataloging-in-Publication Data

Petroleum Reservoir Simulation: A Basic Approach/ Jamal H. Abou-Kassem ... [et a l . ] .

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.

Page 3: Petroleum Reservoir Simulation a Basic Approach

We dedicate this book to our parents.

Page 4: Petroleum Reservoir Simulation a Basic Approach

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. Imagina- tion 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 multi- plicity of solutions. Science is the essence of knowledge, and acceptance of the multi- plicity 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" solu- tions 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 ld - -o r in other words, t ime-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 engi- neering 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 big- gest 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 technolo- gies 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 reser- voir 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 res- ervoir model has gone from thousands to millions in just a few years. Other examples can

xi

Page 5: Petroleum Reservoir Simulation a Basic Approach

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 gener- ated by commercial reservoir simulators. As companies struggle to deal with scandals trig- gered 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 reser- voir engineering.

This book provides a means of understanding the underlying principles of petroleum res- ervoir 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 treat- ment 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 con- fusing. In keeping up with the same rigor of treatment, this book presents the discretiza- tion 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 reser- voir simulation. For instance, we discuss the effect of boundary conditions on material- balance-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 sci- ence 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

Page 6: Petroleum Reservoir Simulation a Basic Approach

Preface xiii

activities to field applications will benefit greatly from this book, which is bound to pre- pare them better for the Information Age.

Acknowledgments

We, the authors, are grateful to many colleagues, friends, and students who have contrib- uted to this book. We thank Dr. M. S. Osman, of the Kuwait Oil Company, for his contri- butions, 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

Page 7: Petroleum Reservoir Simulation a Basic Approach

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 engi- neering 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 mathemat- ical 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 inter- prets boundary conditions as fictitious wells that transfer fluids across reservoir bound- aries. 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-cylin- drical 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 pre- sented in this book. In Chapter 2, we present the derivation of single-phase, multidimen- sional 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 block- centered 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 simula- tion. Chapter 10 is entirely devoted to multiphase flow in petroleum reservoirs and its sim- ulation. The book concludes with Appendix A, which presents a user's manual for a single- phase simulator. The CD that accompanies the book includes a single-phase simulator

XV

Page 8: Petroleum Reservoir Simulation a Basic Approach

xvi Introduction

written in FORTRAN 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 identif ied and corrected. Educators may use the simulator to make up new problems and obtain their solutions.

Page 9: Petroleum Reservoir Simulation a Basic Approach

Contents

Preface xi

Introduction xv

Nomenclature xvU

1 Introduction .......................................................................... 1

1.1 Background 1

1.2 Milestones for the Engineering Approach 2 1.3 Importance of the Engineering and Mathematical

Approaches 4 1.4 Summary 5 1.5 Exercises 5

2

3

Single-Phase Fluid Flow Equations in Multidimensional Domain ................................................ 7

2.1 Introduction 7

2.2 Properties of Single-Phase Fluid 7 2.3 Properties of Porous Media 8

2.4 Reservoir Discretization 8

2.5 Basic Engineering Concepts 9

2.6 Multidimensional Flow in Cartesian Coordinates 11 2.7 Multidimensional Flow in Radial-Cylindrical Coordinates 2.8 Summary 36 2.9 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

Page 10: Petroleum Reservoir Simulation a Basic Approach

viii Contents

3.4 Flow Equations Using CVFD Terminology in any Block Ordering Scheme 57

3.5 Summary 58 3.6 Exercises 58

4 S imula t ion with a B lock -Centered Grid ............................ 63

4.1 Introduction 63

4.2 Reservoir Discretization 63

4.3 Flow Equation for Boundary Gridblocks 66

4.4 Treatment of Boundary Conditions 73

4.5 Calculation of Transmissibilities 87

4.6 Symmetry and Its Use in Solving Practical Problems

4.7 Summary 115 4.8 Exercises 117

110

5 S imula t ion with a Point -Dis t r ibuted Grid ........................ 123

6

5.1 Introduction 123

5.2 Reservoir Discretization 123

5.3 Flow Equation for Boundary Gridpoints 126

5.4 Treatment of Boundary Conditions 135

5.5 Calculation of Transmissibilities 152

5.6 Symmetry and Its Use in Solving Practical Problems

5.7 Summary 173 5.8 Exercises 175

169

Well

6.1

6.2

6.3

6.4

6.5 6.6

Representa t ion in S imula tors .................................. 181

Introduction 181

Single-BIockWells 181

Multiblock Wells 192

Practical Considerations Dealing with Modeling Well Operating Conditions 203

Summary 204 Exercises 204

Page 11: Petroleum Reservoir Simulation a Basic Approach

Contents ix

7 Single-Phase Flow Equation for Various Fluids ............ 207

7.1 Introduction 207

7.2 Pressure Dependence of Fluid and Rock Properties 207

7.3 General Single-Phase Flow Equation in Multi Dimensions

7.4 Summary 276 7.5 Exercises 276

209

8 Linearization of Flow Equations ...................................... 283

8.1 Introduction 283

8.2 Nonlinear Terms in Flow Equations 283

8.3 Nonlinearity of Flow Equations For Various Fluids

8.4 Linearization of Nonlinear Terms 288

8.5 Linearized Flow Equations in Time 293

8.6 Summary 319 8.7 Exercises 321

284

9 Methods of Solution of Linear Equations ....................... 325

9.1 Introduction 325

9.2 Direct Solution Methods 325

9.3 Iterative Solution Methods 337

9.4 Summary 361 9.5 Exercises 361

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 393

10.5 Material Balance Checks 414

10.6 Advancing Solution in Time 414

10.7 Summary 416 10.8 Exercises 416

365

Page 12: Petroleum Reservoir Simulation a Basic Approach

x Con ten t s

A User's Manual for Single-Phase Simulator 421

A,1 Introduction 421

A.2 Data File Preparation 421

A.3 Description of Variables Used in Preparing a Data File 423

A.4 Instructions to Run Simulator 430

A.5 Limitations Imposed on the Compiled Version 430

A.6 Example of a Prepared Data File 431

References 433

Author Index 437

Subject Index 439

Page 13: Petroleum Reservoir Simulation a Basic Approach

Nomenclature

a n = coefficient of unknown Xn,n.,,, ,

defined by Eq. 9.46f

A = parameter, defined by Eq. 9.28 in

Tang' s algorithm

IAI = square coefficient matrix

A x = cross-sectional area normal to x-

direction, ft 2 [m 2]

Axlx = cross-sectional area normal to x-

direction at x, ft 2 [me1

Axlx+ x = cross-sectional area normal to

x-direction at x + Ax , ft 2 [m 2]

Ax Ix,_,,2 . = cross-sectional area normal to

x-direction at block boundary

x~+l/2 , ft 2 [m 2]

b = reservoir boundary

b L, = reservoir east boundary

b L = reservoir lower boundary

b N = reservoir north boundary

b s = reservoir south boundary

b U = reservoir upper boundary

b w = reservoir west boundary

b = coefficient of unknown x,_,~,, r ,

defined by Eq. 9.46a

B = parameter, defined by Eq. 9.29 in

Tang' s algorithm

B = fluid formation volume factor,

RB/STB [m3/std m 3 ]

= average fluid formation volume factor

in wellbore, RB/STB [m3/std m 3]

Bg = gas formation volume factor,

RB/scf [m3/std m 3]

B i = fluid formation volume factor in

block i , RB/STB [m3/std m 3]

B o = oil formation volume factor,

RB/STB [m3/std m 3]

Bob = oil formation volume factor at

bubble-point pressure, RB/STB

[m3/std m 3]

Bei = formation volume factor of phase p

in block i

B w = water formation volume factor,

RB/B [m3/std m 3]

B ° = fluid formation volume factor at

reference pressure p° and

reservoir temperature, RB/STB

[m3/std m 3]

c = fluid compressibil i ty, psi -1 lkPa- l l

c e = coefficient of unknown of block i

in Thomas ' algorithm

c n = coefficient of unknown x , , defined

by Eq. 9.46g

c u = coefficient of unknown x N in

Thomas ' or Tang 's algori thm

c o = oil-phase compressibil i ty, psi -1

[kPa -1 ]

c¢ = porosity compressibility, psi -1 [kPa -1]

c a = rate of fractional viscosity change

with pressure change, psi -1 [kPa -1]

C = parameter, defined by Eq. 9.30 in

Tang' s algorithm

CMe = cumulative material balance

check, dimensionless

xvii

Page 14: Petroleum Reservoir Simulation a Basic Approach

xviii Nomenclature

Cop = coefficient of pressure change over

t ime step in expansion of oil

accumulation term, STB/D-psi

[std m3/(d.kPa)]

Cow = coefficient of water saturation

change over t ime step in expansion

of oil accumulation term, STB/D

[std m3/d]

C,~p = coefficient of pressure change over

t ime step in expansion of water

accumulation term, B/D-psi

[ std m3/(d.kPa) ]

Cww = coefficient of water saturation

change over t ime step in expansion

of water accumulation term, B/D

[std m3/d]

~¢ = vector of known values

D = parameter, defined by Eq. 9.31 in

Tang' s algorithm

di = known RHS of equation for

block i in Thomas ' algorithm

dm~ = maximum absolute difference

between two successive iterations

d = RHS of equation for gridblock n,

defined by Eq. 9.46h

e~ = coefficient of unknown of

block i + 1 in Thomas ' algorithm

e,, = coefficient of unknown Xn+ 1 ,

defined by Eq. 9.46d

e u = coefficient of unknown x~ in

Tang' s algorithm

f ( ) = function of

fp = the pressure dependent term in

transmissibil i ty

f , . l = nonlinearity, defined by Eq. 8.17 p,,,~

F(t) = argument of an integral at t ime t

F~ = ratio of wellblock i area to

theoretical area from which well

withdraws its fluid (in Chapter 6),

fraction

F m = argument of an integral evaluated

at t ime t m

F(t m) = argument of an integral

evaluated at t ime t"

F ° = argument of an integral evaluated

at time t"

F(t") = argument of an integral

evaluated at t ime t"

F n+l = argument of an integral evaluated

at t ime t n+l

F(t n+l) = argument of an integral

evaluated at time t "+~

F n+1/2 = argument of an integral

evaluated at t ime t "~ln

F(t n+l/z) = argument of an integral

evaluated at time t "+1/2

g = gravitational acceleration, ft/sec 2

[m]s 2]

gi = element i of a temporary vector

(~) generated in Thomas '

algorithm

G = geometric factor

G . = well geometric factor, RB-cp/D-psi

[m3.mPa.s/(d.kPa)]

Gw, = well geometric factor for

wellblock i , defined by Eq. 6.32,

RB-cp/D-psi [m3.mPa.s/(d.kPa)]

G* = well geometric factor of the

theoretical well for wellblock i ,

RB-cp/D-psi [m3.mPa.s/(d.kPa)]

Gy i .... = interblock geometric factor

between block i and block i -T- 1

Page 15: Petroleum Reservoir Simulation a Basic Approach

Nomenclature xix

along the x direction, defined by

Eq. 8.4

G .... = interblock geometric factor

between blocks 1 and 2 along the

x direction

Gy2. 6 = interblock geometric factor

between blocks 2 and 6 along the

y direction

G~,,,2.j. k = interblock geometric factor

between block (i , j ,k) and

block (i-y-l,j,k) along the

r direction in radial-cylindrical

coordinates, defined in Table 4-2,

4-3, 5-2, and 5-3

Gx = interblock geometric factor i+ll2,j,k

between block (i , j ,k) and

block (i-y-l,j,k) along the

x direction in rectangular

coordinates, defined in Table 4-1

and 5-1

Gy~j . . . . . . = interblock geometric factor

between block (i , j ,k) and

block (i,j-y-l,k) along the

y direction in rectangular

coordinates, defined in Table 4-1

and 5-1

G ........... = interblock geometric factor

between block (i , j ,k) and

block (i,j, kT-1) along the

z direction in rectangular

coordinates, defined in Table 4-1

and 5-1

G ...... = interblock geometric factor

between block (i , j ,k) and

block (i,j, kT-1) along the

z direction in radial-cylindrical

coordinates, defined in Table 4-2,

4-3, 5-2, and 5-3

G% ........ = interblock geometric factor

between block (i , j ,k) and

block (i,j-y-l,k) along the 0

direction in radial-cylindrical

coordinates, defined in Table 4-2,

4-3, 5-2, and 5-3

h = thickness, ft [m]

h i = thickness of wellblock i , ft [m]

h I = thickness of wellblock l, ft [m]

IMB = incremental material balance

check, dimensionless

k . = horizontal permeability, md [~tm 2]

k., = horizontal permeability of

wellblock i , md [Ixm 2]

k r = permeability along the r direction in

radial flow, md [~m 2]

kr~ = relative permeability to gas-phase,

dimensionless

kro = relative permeability to oil-phase,

dimensionless

k ..... = relative permeability to oil-phase

at irreducible water saturation,

dimensionless

krog = relative permeability to oil-phase

in gas/oil/irreducible-water system,

dimensionless

k o w = relative permeability to oil-phase

in oil/water system, dimensionless

krp = relative permeability to phase p,

dimensionless

k~p ...... = relative permeability phase p

between point i and point i-T- 1

along the x axis, dimensionless

Page 16: Petroleum Reservoir Simulation a Basic Approach

xx Nomenc la ture

kr,, = relative permeability to water-

phase, dimensionless

k v = vertical permeability, md [/.tm 2]

k = permeability along the x axis, md [gm 2]

kx Ix,~1,2 = permeability between point i

and point i -T 1 along the x axis,

md [gm 2]

ky = permeability along the y axis, md [~m 2]

k z = permeability along the z axis, md

[gm 2]

k o = permeability along the 0 direction,

md [Jam 2]

log e = natural logarithm

L = reservoir length along the x axis, ft

[m]

[L] = lower triangular matrix

L = reservoir length along the x axis, ft

[m]

m = mass accumulation, lbm [kg]

m = mass accumulation in block i ,

Ibm [kg]

mc~, = mass accumulation of

component c in block i , l bm [kg]

m i = mass of component c entering

reservoir from other parts of

reservoir, lbm [kg]

m~ ]x,_l,~ = mass of component c entering

block i across block boundary

xi_ m , l b m [kg]

m~o [~, .... = mass of component c leaving

block i across block boundary

xi+l/2 , lbm [kg]

mcs, = mass of component c entering (or

leaving) block i through a well,

lbm [kg]

m n , , = mass of component c per unit

volume of block i at time t n,

lbm/ft 3 [kg/m 3]

m "+1 = mass of component c per unit c v i

volume of block i at time t n+l,

lbm/ft 3 [kg/m 3]

rhcx = x-component of mass flux of

component c, lbm/D-ft 2

[kg/(d.m2)]

mig~ = mass of free-gas-component per

unit volume of reservoir rock,

lbm/ft 3 [kg/m 3]

rhig~ = x-component of mass flux of free-

gas-component, lbm/D-ft 2

[kg/(d.m2)]

m i = mass of fluid entering reservoir

from other parts of reservoir, lbm

[kg]

mi Ix = mass of fluid entering control

volume boundary at x, lbm [kg]

milr = mass of fluid entering control

w)lume boundary at r, lbm [kg]

mi [x, .... = mass of fluid entering block i

across block boundary xi_l/2 , lbm

[kg]

mi 10 = mass of fluid entering control

volume boundary at O, lbm [kg]

m o = mass of fluid leaving reservoir to

other parts of reservoir, lbm [kg]

mo[r+Ar = mass of fluid leaving control

volume boundary at r + A r , lbm

[kg]

Page 17: Petroleum Reservoir Simulation a Basic Approach

Nomenclature xxi

mov = mass of oil-component per unit

volume of reservoir rock, lbm/ft 3

lkg/m 3]

rhox = x-component of mass flux of oil-

component, lbm/D-ft 2 lkg/(d.m2)]

mo ]x+~ = mass of fluid leaving control

volume boundary at x + Ax, Ibm

[kg]

mo [x~ .... = mass of fluid leaving block i

across block boundary xi,1/2 , Ibm

Ikg]

mo [0+A0 = mass of fluid leaving control

w)lume boundary at 0 + A0 , Ibm

[kg]

m = mass of fluid entering (or leaving)

reservoir through a well, Ibm [kg]

m,~v = mass of solution-gas-component

per unit volume of reservoir rock,

lbm/ft 3 [kg/m 3]

rhsgx = x-component of mass flux of

solution-gas-component, lbm/D-ft 2

[kg/(d.m2) l

m = mass of fluid entering (or leaving)

block i through a well, lbm [kg]

m = mass of fluid per unit volume of

reservoir rock, lbm/ft 3 [kg/m 3]

m" = mass of fluid per unit volume of v~

block i at time t n, lbm/ft 3 [kg/m 3]

n+l mv, = mass of fluid per unit volume of

block i at time t n+~, lbm/ft 3

[kg/m31

m .... = mass of water-component per unit

volume of reservoir rock, lbm/ft 3

[kg/m 3 ]

rhwx = x-component of mass flux of

water-component, lbm/D-fl 2

[kg/(d.m2)]

rh x = x-component of mass flux, lbm/D-

ft 2 [kg/(d.m2)]

rhx [x = x-component of mass flux across

control volume boundary at x,

lbm/D-ft 2 [kg/(d.m2)l

r h [x+~ = x-component of mass flux

across control volume boundary at

x + Ax, lbm/D-ft 2 [kg/(d.m 2) l

r h [x~ .... = x-component of mass flux

across block boundary xi+l/2,

lbm/D-ft 2 [kg/(d.m2)]

M = gas molecular weight, lbm/lb mole

[kg/kmole]

Mp, = mobility of phase p in wellblock

i , defined in Table 10-4

n = coefficient of unknown x,+,, x ,

defined by Eq. 9.46e

n r = number of reservoir gridblocks (or

gridpoints) along the r direction

nvps = number of vertical planes of

symmetry

n x = number of reservoir gridblocks (or

gridpoints) along the x axis

ny = number of reservoir gridblocks (or

gridpoints) along the y axis

n z = number of reservoir gridblocks (or

gridpoints) "along the z axis

n o = number of reservoir gridblocks (or

gridpoints) in the 0 direction

N = number of blocks in reservoir

P = pressure, psia [kPa]

p° = reference pressure, psia [kPa]

Page 18: Petroleum Reservoir Simulation a Basic Approach

xxii Nomenclature

= average value pressure, defined by

Eq. 8.21, psia [kPa]

Pb = oil bubble-point pressure, psia

[kPa]

pg = gas-phasepressure, psia [kPa]

Pi = pressure of gridblock (gridpoint) or

wellblock i , psia [kPa]

p~' = pressure of gridblock (gridpoint)

i at time t m, psia lkPal m Pi~l = pressure of gridblock (gridpoint)

i -Y- 1 at time t m, psia [kPa]

pm = pressure of gridblock (gridpoint) i , j ,k

( i , j ,k ) at time t m, psia [kPa] p~ i~l,j.k = pressure of gridblock (gridpoint)

( iT 1,j,k ) at time t m, psia [kPa] rn

Pgj~l,k = pressure of gridblock (gridpoint)

( i, j T- l, k ) at time t m, psia [kPa] p~ i,j,k~l = pressure of gridblock (gridpoint)

( i , j ,k -Y- 1 ) at time t m, psia [kPa]

pn = pressure of gridblock (gridpoint) i

at time t n, psia [kPa]

p n 4 1 = pressure of gridblock (gridpoint)

i at time t n+l, psia [kPa] (e~ l )

p y l = pressure of gridblock (gridpoint)

i at time level t n+l and iteration

v + 1, psia [kPa] {~- t )

6p~ *~ = change in pressure of gridblock

(gridpoint) i over an iteration at

time level n + 1 and iteration

v + 1, psi [kPa]

p~_, = pressure of gridblock (gridpoint)

i - 1 , psia [kPa]

P~+l = pressure of gridblock (gridpoint)

i + 1, psia [kPa] n P.1 = pressure of gridblock (gridpoint)

i + 1 at time t n, psia [kPa]

p . . l = pressure of gridblock (gridpoint) i + 1

i + 1 at time t n+l, psia lkPa]

p.+l pressure of gridblock (gridpoint) i-T-1 ~-~

i-T-1 at time t n+l, psia [kPa]

Pij,k = pressure of gridblock (gridpoint)

or wellblock ( i , j ,k ), psia [kPa]

p~ = pressure of neighboring gridblock

(gridpoint) l, psia [kPa]

p . = pressure of gridblock (gridpoint) or

wellblock n, psia lkPa]

pO = initial pressure of gridblock

(gridpoint) n, psia [kPal

p" = pressure of gridblock (gridpoint) or

wellblock n at time level n, psia

[kPal

pn+l = pressure of gridblock (gridpoint)

i at time level t n+l and iteration

v , psia [kPal

p~+l = pressure of gridblock (gridpoint)

or wellblock n at time level n + 1 ,

psia [kPa]

p ~ = pressure of gridblock (gridpoint) n

at old iteration v , psia [kPa]

p~V+l~ = pressure of gridblock (gridpoint)

n at new iteration v + 1, psia [kPa]

Pp, = pressure of phase p in gridblock

(gridpoint) i , psia [kPa]

Pp~;, = pressure of phase p in gridblock

(gridpoint) i -Y- 1, psia [kPa]

Po = oil pressure, psia [kPa]

Pr# = pressure at reference datum, psia

[kPa]

Psc = standard pressure, psia [kPa]

Pw = water-phase pressure, psia [kPa]

Pws = flowing well bottom-hole pressure,

psia lkPa]

Page 19: Petroleum Reservoir Simulation a Basic Approach

Nomenclature xxiii

Pw~., = estimated flowing well bottom-

hole pressure at reference depth,

psia [kPa]

Pw~ = flowing well bottom-hole pressure

opposite wellblock i , psia [kPa]

P.~.: = flowing well bottom-hole

pressure at reference depth, psia

[kPa]

Pw:,~ = specified flowing well bottom-

hole pressure at reference depth,

psia lkPal

P~.~o = gas/oil capillary pressure, psi

[kPal

P.gw = gas/water capillary pressure, psi

[kPa]

P¢o., = oil/water capillary pressure, psi

lkPa]

q = well production rate at reservoir

conditions, RB/D [m3/d]

qc.,, = mass rate of component c entering

block i through a well, lbm/D

[kg/d]

q:g = production rate of free-gas-

component at reservoir conditions,

RB/D [std m3/d]

q~,~m = mass production rate of free-gas-

component, lbm/D [kg/d]

q:~c = production rate of free-gas-

component at standard conditions,

scf/D [std m3/d]

q~ = mass rate entering control volume

through a well, lbm/D [kg/d]

q,., = mass rate entering block i

through a well, lbm/D [kg/d]

qo = production rate of oil-phase at

reservoir conditions, RB/D

[std m3/d]

qom = mass production rate of oil-

component, lbm/D [kg/d]

qosc = production rate of oil-phase at

standard conditions, STB/D

[std m3/d]

qsc = well production rate at standard

conditions, STB/D or scf/D

[std m3/d]

qsc, = production rate at standard

conditions from wellblock i ,

STB/D or scf/D [std m3/d]

qm = production rate at standard sc i

conditions from wellblock i at

time t " , STB/D or scf/D

[std m3/d]

q" = production rate at standard scn

conditions from wellblock n at

time t m , STB/D or scf/D

lstd m3/d]

qm = production rate at standard SCi,i,k

conditions from wellblock (i, j ,k )

at time t ' , STB/D or scf/D

[std m3/d]

qn+l = production rate at standard sci

conditions from wellblock i at

time level n + 1 , STB/D or scf/D

[ std m3/d] (v)

qn+l - - production rate at standard s,., conditions from wellblock i at

time :÷1 and iteration v , STB/D

or scf/D [std m3/d]

qm = volumetric rate of fluid at SCl,(i,j,k)

standard conditions crossing

Page 20: Petroleum Reservoir Simulation a Basic Approach

xxiv Nomenclature

q~c,.,

q~,,o

qs~,

q~,b,

qscb,~,.

qs% ,~

reservoir boundary I to

block (i , j ,k) at time t " , STB/D

or scf/D [std m3/d]

= volumetric rate of fluid at

standard conditions crossing

reservoir boundary l to block n,

STB/D or scf/D lstd m3/dl

= volumetric rate of fluid at

standard conditions crossing

reservoir boundary I to block n at

time t ~ , STB/D or scf/D

[std m3/d]

= production rate at standard

conditions from wellblock n,

STB/D or scf/D [std m3/dl

= interblock volumetric flow rate

at standard conditions between

gridblock (gridpoint) i and

gridblock (gridpoint) i -Y- 1, STB/D

or scf/D [std m3/d]

= volumetric flow rate at standard

conditions across reservoir

boundary to boundary gridblock

bB, STB/D or scf/D [std m3/d]

= volumetric flow rate at standard

conditions across reservoir

boundary to boundary gridpoint

bP, STB/D or scf/D [std m3/d]

= volumetric flow rate at standard

conditions across reservoir west

boundary to boundary gridblock

(gridpoint) 1, STB/D or scf/D

[std m3/d]

= volumetric flow rate at standard

conditions across reservoir east

boundary to boundary gridblock

(gridpoint) n x , STB/D or scf/D [std

m3/d]

qsgm = mass production rate of solution-

gas-component, lbm/D [kg/d]

qsesc = specified well rate at standard

conditions, STB/D or scf/D

[std m3/dl

q,,m = mass production rate of water-

component, lbm/D [kg/d]

qwsc = production rate of water-phase at

standard conditions, B/D [std m3/dl

qx = volumetric rate at reservoir

conditions along the x axis, RB/D

[m3/d]

r = distance in the r direction in the

radial-cylindrical coordinate

system, ft lm]

r e = external radius in Darcy 's Law for

radial flow, ft [m]

req ~-~ equivalent wellblock radius, ft [m]

req~ = equivalent radius of the area from

which the theoretical well for

block n withdraws its fluid, ft [m]

r~l = r-direction coordinate of point

i-T-I, ft [m]

r L = radii for transmissibility iT-l~2

calculations, defined by Eqs. 4.82a

and 4.83a (or Eqs. 5.75a and

5.76a), ft [ml

r~;~/2 = radii squared for bulk volume

calculations, defined by Eqs. 4.84a

and 4.85a (or Eqs. 5.77a and

5.78a), ft 2 [m 2]

r,, = residual for block n, defined by

Eq. 9.61

r = well radius, ft [m]

Page 21: Petroleum Reservoir Simulation a Basic Approach

N o m e n c l a t u r e xxv

Ar = size of block (i,j , k) along the

r direction, ft [m]

R s = solution GOR, scf/STB

lstd m3/std m 3]

s = skin factor, dimensionless

S = fluid saturation, fraction

Sg = gas-phase saturation, fraction

Siw = irreducible water saturation,

fraction

s. = coefficient of unknown x_.~ ,

defined by Eq. 9.46b

S O = oil-phase saturation, fraction

S w = water-phase saturation, fraction

t = time, day

T = reservoir temperature, °R [K]

At = time step, day

t ~ = time at which the argument F of

integral is evaluated in Eq. 2.30,

day

At,. = mth time step, day

t ~ = old time level, day

A t = old time step, day

t n~ = new or current time level, day

At.+ 1 = current (or new) time step, day

TY b,b. = transmissibility between reservoir

boundary and boundary gridblock

at time t ~ m

Tb,bp = transmissibility between reservoir

boundary and boundary gridpoint

at time t m

T b m = transmissibility between ,bP*

reservoir boundary and gridpoint

immediately inside reservoir

boundary at time t m

T = gas-phase transmissibility along the

x direction, scf/D-psi

[ std m3/(d.kPa)]

T m = transmissibility between 1,( i , j ,k )

gridblocks (gridpoints) l and

( i , j , k ) at time t m

T," = transmissibility between l,n

gridblocks (gridpoints) 1 and n at

time t m

Tox = oil-phase transmissibility along the

x direction, STB/D-psi

[std m3/(d.kPa)]

~1,2,:,~ = transmissibility between point

( i , j , k ) and point ( iT- 1 , j , k ) along

the r direction, STB/D-psi or

scf/D-psi [std m3/(d.kPa) ] Lm

~,2~,, = transmissibility between point

( i , j , k ) and point ( i - T - l , j , k ) along

the r direction at time t m , STB/D-

psi or scf/D-psi [std m3/(d.kPa)]

T = standard temperature, °R [K]

Twx = water-phase transmissibility along

the x direction, B/D-psi

[std m3/(d.kPa)]

T ....... = transmissibility between point i

and point i -Y- 1 along the x axis,

STB/D-psi or scf/D-psi

[std m3/(d.kPa) l

Tx n'-I ~- transmissibility between point i i~l/2

and point i -Y- 1 along the x axis at

time ~+1, STB/D-psi or scf/D-psi

l std m3/(d.kPa)] iv)

T"'~ = transmissibility between point i xiTI/2

and point i T- 1 along the x axis at

time t j'+l and iteration v , STB/D-

psi or scf/D-psi [std m3/(d.kPa)]

Page 22: Petroleum Reservoir Simulation a Basic Approach

xxvi Nomenclature

T x,:m,~.j., = transmissibility between point

( i , j , k ) and point (i-y- 1,j,k) along

the x axis, STB/D-psi or scf/D-psi

[std m3/(d.kPa)]

,,~,~.j.~ = transmissibility between point

( i , j , k ) and point (i-y- 1, j ,k) along

the x axis at t ime t r" , STB/D-psi or

scf/D-psi [std m3/(d.kPa)]

Ty,.j ...... = transmissibility between point

( i , j , k ) and point (i,j-T-l,k) along

the y axis, STB/D-psi or scf/D-psi

[std m3/(d.kPa)]

r ; ,.j+~,2., = transmissibility between point

( i , j , k ) and point (i , j-y-l ,k) along

they axis at time t m , STB/D-psi or

scf/D-psi [std m3/(d.kPa)]

T j ...... = transmissibility between point

( i , j , k ) and point (i,j,k-T-1) along

the z axis, STB/D-psi or scf/D-psi

[std m3/(d.kPa)]

T" z,.j.~,,2 = transmissibility between point

( i , j , k ) and point (i,j,k-y-1) along

the z axis at time t m , STB/D-psi or

scf/D-psi [std m3/(d.kPa)]

T% ...... = transmissibility between point

( i , j , k ) and point (i , j-y-l ,k) along

the 0 direction, STB/D-psi or

scf/D-psi [std m3/(d.kPa)]

To"j ...... = transmissibility between point

( i , j , k ) and point (i , j-y-l ,k) along

the 0 direction at time t m ,

STB/D-psi or scf/D-psi [std

m3/(d.kPa)]

IUl = upper triangular matrix

u = x-component of volumetric

velocity of gas-phase at reservoir

conditions, RB/D-ft 2 [m3/(d. m2)]

u i = element i of a temporary vector

(~) generated in Thomas '

algorithm

Uo~ = x-component of volumetric

velocity of oil-phase at reservoir

conditions, RB/D-ft 2 [m3/(d. m2)]

Up x x 1,2 = x-component of volumetric t

velocity of phase p at reservoir

conditions between point i and

point i-T- 1, RB/D-ft 2 [m3/(d. m2)]

Uwx = x-component of volumetric

velocity of water-phase at reservoir

conditions, RB/D-ft 2 [m3/(d. m2)]

u x = x-component of volumetric velocity

at reservoir conditions, RB/D-ft 2

[m3/(d. m2)]

V b = bulk volume, ft 3 [m 3]

Vb, = bulk volume of block i , ft 3 [m 3]

Vb,.j.~ = bulk volume of block (i, j , k ) , ft 3

[m 3 ]

Vb. = bulk volume of block n, ft 3 [m 3]

[ = mass rate of component c Wci x~ 1/2

entering block i across block

boundary xi_l/2 , lbm/D [kg/d]

weilx,.~,z = mass rate of component c

leaving block i across block

boundary Xi~l/2 , lbm/D [kg/d]

w~ x = x-component of mass rate of

component c, lbm/D [kg/d]

wi = coefficient of unknown of

block i - 1 in Thomas ' algorithm

w = coefficient of unknown x,,_~,

defined by Eq. 9.46c

Page 23: Petroleum Reservoir Simulation a Basic Approach

N o m e n c l a t u r e xxvii

w N = coefficient of unknown XN_ 1 in

Thomas ' or Tang 's algorithm

w x = x-component of mass rate, lbm/D

[kg/d]

Wxlx = x-component of mass rate

entering control volume boundary

at x. lbm/D [kg/d]

Wxlx+~ = x-component of mass rate

leaving control volume boundary at

x + A x , lbm/D [kg/d]

Wxlx,,~,2 = x-component of mass rate

entering (or leaving) block i

across block boundary xi~1/2 ,

lbm/D [kg/d]

x = distance in the x direction in the

Cartesian coordinate system, ft [m]

Ax = size of block or control volume

along the x axis, ft [m]

= vector of unknowns (in Chapter 9)

x i = x direction coordinate of point i , ft

[ml

x i = unknown for block i in Thomas '

algorithm

Ax~ = size of block i along the x axis, ft

[m]

6x_ = distance between gridblock

(gridpoint) i and block boundary

in the direction of decreasing

i along the x axis, ft [ml

6x~ = distance between gridblock

(gridpoint) i and block boundary

in the direction of increasing

i along the x axis, ft [m]

x~l = x direction coordinate of point

i -T- 1, ft lm]

xi~ 1 = unknown for block i -Y- 1 in

Thomas ' algorithm (in Chapter 9)

Axirl = size of block i-T- 1 along the

x axis, ft [m]

xi~1/2 = x direction coordinate of block

boundary xi~ii2 . ft [m]

Axi~l/2 = distance between point i and

point i T 1 along the x axis. ft [m]

x = unknown for block n (in Chapter 9)

x (v) = unknown for block n at old n

iteration v (in Chapter 9)

x (v+l~ = unknown for block n at new n

iteration v + 1 (in Chapter 9)

x. x = x direction coordinate of gridblock

(gridpoint) n x, ft [m]

Y = distance in the y direction in the

Cartesian coordinate system, ft [m]

Ay = size of block or control volume

along the y axis, ft [m]

Ayj = size of block j along the y axis, ft

Ira]

z = gas compressibi l i ty factor,

dimensionless

z = distance in the z direction in the

Cartesian coordinate system, ft [m]

Az = size of block or control volume

along the z axis, ft [m]

Az~ = size of block k along the z axis, ft

Ira]

Azi,j,~ = size of block ( i , j , k ) along the

z axis, ft [m]

Z = elevation below datum, ft [m]

Z b = elevation of center of reservoir

boundary below datum, ft [m]

ZbR = elevation of center of boundary

gridblock b B below datum, ft lml

Page 24: Petroleum Reservoir Simulation a Basic Approach

xxviii Nomenclature

Zbe = elevation of boundary gridpoint bP below datum, ft [m]

Z~ = elevation of gridblock (gridpoint)

i or wellblock i , ft [m]

Z ~ = elevation of gridblock (gridpoint)

i-T-1, ft [ml

Z~,j,k = elevation of gridblock (gridpoint)

( i , j ,k) , ft [ml

ZI = elevation of gridblock (gridpoint) l,

ft [m]

Z = elevation of gridblock (gridpoint) n,

ft lm]

Zr~f = elevation of reference depth in a

well, ft [m]

OP - pressure gradient in the x direction, 3x

psi/ft [kPa/m]

~Pxb = pressure gradient in the

x direction evaluated at reservoir

boundary, psi/ft [kPa/m]

OP = pressure gradient in the

x direction evaluated at block

boundary x~1/2 , psi/ft [kPa/m]

r = pressure gradient in the

r direction evaluated at well radius,

psi/ft [kPa/m] b ~

= potential gradient in the 3x

x direction, psi/ft [kPa/m] 3Z

- elevation gradient in the bx

x direction, dimensionless

"73~x b = elevation gradient in the

x direction evaluated at reservoir

boundary, dimensionless

a = volume conversion factor whose

numerical value is given in

Table 2-1

alg = logarithmic spacing constant,

defined by Eq. 4.86 (or Eq. 5.79),

dimensionless

tic = transmissibility conversion factor

whose numerical value is given in

Table 2-1

fli = element i of a temporary vector

(2) generated in Tang's algorithm

(in Chapter 9)

2" = fluid gravity, psi/ft [kPa/m]

~i = element i of a temporary vector

(7) generated in Tang' s algorithm

(in Chapter 9)

~. = gravity conversion factor whose

numerical value is given in

Table 2-1

Vg = gravity of gas-phase at reservoir

conditions, psi/ft [kPa/ml

~m/2 = fluid gravity between point i

and point i -y- 1 along the x axis,

psi/ft [kPa/m] m V~l/2,j,k = fluid gravity between point

(i, j, k) and neighboring point

(i-T- 1, j ,k) along the x axis at time

t m , psi/ft [kPa/m] r n V~,j+I/2,~ = fluid gravity between point

(i,j,k) and neighboring point

(i, j g 1, k) along the y axis at time

t ' , psi/ft [kPa/m]

~/i",'j,k~ll2 = fluid gravity between point

(i, j ,k) and neighboring point

(i,j,k ~ l) along the z axis at time

t m , psi/ft [kPa/m]

~/~'ti j k~ = fluid gravity between point

(i,j,k) and neighboring point I at

time t " , psi/ft [kPa/m]

Page 25: Petroleum Reservoir Simulation a Basic Approach

Nomenclature xxix

m y~,,, = fluid gravity between point n and

neighboring point 1 at time t m ,

psi/ft [kPa/m]

Yz,(i,j,k~ = fluid gravity between point

( i , j ,k) and neighboring point I,

psi/ft [kPa/m]

y~,. = fluid gravity between point n and

neighboring point l, psi/ft [kPa/ml

Yo = gravity of oil-phase at reservoir

conditions, psi/ft [kPa/m]

Yp ..... = gravity of phase p between point

i and point i -y- 1 along the x axis,

psi/ft lkPa/m]

Yp,,. = gravity of phase p between point l

and point n, psi/ft [kPa/m]

y., = gravity of water-phase at reservoir

conditions, psi/ft [kPa/m]

7wb = average fluid gravity in wellbore,

psi/ft [kPa/m]

e = convergence tolerance

t/i,,j = set of phases in determining

mobility of injected fluid = { o, w,g }

rlprd = set of phases in determining

mobility of produced fluids,

defined in Table 10-4

0 = angle in the Odirection, rad

A0j = size of block ( i , j ,k) along the

0 direction, rad

A0j~n = angle between point ( i , j ,k)

and point (i,j-y-l,k) along the

O direction, rad

~b = porosity, fraction

~bi,j,k = porosity of gridblock (gridpoint)

(i, j , k ) , fraction

~ n ~-~ porosity of gridblock (gridpoint) n,

fraction

o

O O

Oi

O?

0 I'

07 "1

Iff~ i 4:1

0 m iT1

O" iT-1

lff~n t i i-T1

in qb l

Oo Op,

Orel

~w kt

kti

kt~

= porosity at reference pressure p° ,

fraction

= potential, psia [kPa]

= potential of gas-phase, psia [kPa]

= potential of gridblock (gridpoint)

i , psia [kPa]

= potential of gridblock (gridpoint)

i at time t m, psia [kPa]

= potential of gridblock (gridpoint)

i at time t n, psia [kPa]

= potential of gridblock (gridpoint)

i at time t n+l, psia [kPa]

= potential of gridblock (gridpoint)

i-T- 1, psia [kPa]

= potential of gridblock (gridpoint)

i T- 1 at time t m, psia [kPal

= potential of gridblock (gridpoint)

i -Y- 1 at time t n, psia lkPa]

= potential of gridblock (gridpoint)

i -Y- 1 at time t ~+ 1, psia [kPa]

= potential of gridblock (gridpoint)

( i , j ,k) at time t m, psia [kPa]

= potential of gridblock (gridpoint)

1 at time t m, psia [kPa]

= potential of oil-phase, psia lkPa]

= potential of phase p in gridblock

(gridpoint) i , psia [kPa]

= potential at reference depth, psia

[kPa]

= potential of water-phase, psia [kPa]

= fluid viscosity, cp [mPa.s]

= viscosity of fluid in gridblock

(gridpoint) i , cp [mPa.sl

= fluid viscosity at reference pressure

p° , cp [mPa.s]

= gas-phase viscosity, cp lmPa.s]

Page 26: Petroleum Reservoir Simulation a Basic Approach

xxx Nomenclature

/~P x,:,,2 = viscosity of phase p between

point i and point iT 1 along the

x axis, cp [mPa.s]

/'to = oil-phase viscosity, cp [mPa.s]

/~ob = oil-phase viscosity at bubble-point

pressure, cp [mPa.s]

/~w = water-phase viscosity, cp [mPa.s]

/~1 ...... = fluid viscosity between point i

and point i -T- 1 "along the x axis, cp

[mPa.sl

~0 = a set containing gridblock (or

gridpoint) numbers

~0 b = the set of gridblocks (or gridpoints)

sharing the same reservoir

boundary b

~,:,~ = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) (i, j ,k )

~p, = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n

~Pro = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n along the

r direction

~P~o = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n along the

x axis

~Yn m . the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n along the

y axis

~P:,, = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n along the

z axis

~P0,, = the set of existing gridblocks (or

gridpoints) that are neighbors to

gridblock (gridpoint) n along the

0direction

~Pw = the set that contains all wellblocks

in a well

P = fluid density at reservoir conditions,

lbm/ft 3 [kg/m31

p° = fluid density at reference pressure

p° and reservoir temperature,

Ibm/ft 3 [kg/m31

pg = gas-phase density at reservoir

conditions, lbm/ft 3 [kg/m 3]

P6s = Gauss-Seidel spectral radius

Pgsc = gas-phase density at standard

conditions, lbm/ft 3 [kg/m 3]

Po = oil-phase density at reservoir

conditions, lbm/ft 3 [kg/m 3]

Pos, = oil-phase density at standard

conditions, lbm/ft 3 [kg/m 3]

Psc = fluid density at standard

conditions, lbm/ft 3 [kg/m 3]

Pw = water-phase density at reservoir

conditions, lbm/ft 3 [kg/m 3]

Pw.~c = water-phase density at standard

conditions, lbm/ft 3 lkg/m 3]

Pwb = average fluid density in wellbore,

lbm/ft 3 [kg/m 31

= summation over all members of

set ~p

= summation over all members of lE~)i,j,k

set ~Pi,j,k

= summation over all members of

set ~0

Page 27: Petroleum Reservoir Simulation a Basic Approach

Nomenclature xxxi

Z = summat ion over all member s o f ie~o w

set ~Pw

= summat ion over all member s of l ~ p w

set ~p.,

= summat ion ove r all me mb e r s of

set ~n

~i = e lement i o f a t empora ry vec tor

(~) genera ted in T a n g ' s a lgor i thm

~i,i,k = set o f all reservoi r boundar ies that

are shared with g r idb lock

(gr idpoint) ( i , j , k )

~. = set of all reservoi r boundar ies that

are shared with g r idb lock

(gr idpoint) n

~o = over - re laxa t ion pa ramete r

~Oop, = op t imum over - re laxa t ion

pa ramete r

{ } = empty set or a set that contains no

e lements

u = union opera tor

S u b s c r i p t s

1,2 = be tween gr idpoin ts 1 and 2

b = bulk, boundary , or bubb le poin t

bB = boundary g r idb lock

bB*" = g r idb lock next to reservoi r

boundary but falls outs ide the

reservoi r

bP = boundary gr idpoin t

bP* = gr idpoin t next to reservoi r

boundary but falls ins ide the

reservoi r

bP** = gr idpoin t next to reservoi r

boundary but falls outs ide the

reservoi r

c = componen t c, c = o, w, fg, sg ;

convers ion; or capi l la ry

ca = accumula t ion for componen t c

ci = enter ing (in) for componen t c

cm = mass for componen t c

co = leaving (out) for componen t c

cv = per unit bulk volume for

componen t c

E = east

est = es t imated

fg = f r ee -gas -componen t

g = gas-phase

i = index for gr idblock, gr idpoint , or

poin t a long the x or r d i rec t ion

i-T- 1 = index for ne ighbor ing gr idblock,

gr idpoint , or poin t a long the x or

r d i rect ion

i T - l / 2 = b e t w e e n i and i-T-1

i , i -y- 1 / 2 = be tween b lock (or point) i

and b lock boundary i-T- 1 / 2 a long

the x d i rec t ion

(i, j , k ) = index for gr idblock , gr idpoint ,

or poin t in x-y-z (or r-O-z) space

iw = i r reducib le water

j = index for gr idblock, gr idpoint , or

point a long the y or 0 d i rec t ion

j T- 1 = index for ne ighbor ing gr idblock,

gr idpoint , or poin t a long the y or

t9 di rect ion

j -Y- 1 / 2 = be tween j and j -T- 1

j , j -Y- 1 /2 = be tween b lock (or point) j

and b lock bounda ry j-T- l / 2 a long

the y d i rec t ion

k = index for gr idblock , gr idpoint , or

point a long the z d i rec t ion

Page 28: Petroleum Reservoir Simulation a Basic Approach

xxxii Nomenclature

k -y- 1 = index for ne ighbor ing gr idblock,

gridpoint, or point a long the

z direct ion

k T- 1 / 2 = be tween k and k T 1

k,k -Y- 1 / 2 = be tween b lock (or point) k

and b lock boundary k T- 1 / 2 a long

the z direct ion

l = index for ne ighbor ing gridblock,

gridpoint, or point

L = lower

lg = logar i thmic

l ,n = be tween gr idblocks (or gridpoints)

I and n

m = mass

n = index for g r idb lock (or gridpoint) for

which a f low equat ion is writ ten;

total number o f l inear equat ions in

T h o m a s ' and T a n g ' s a lgor i thms

N = north

n x = last gr idblock (or gridpoint) in the

x direct ion for a para l le lepiped

reservoir

ny = last gr idblock (or gridpoint) in the

y direct ion for a para l le lepiped

reservoir

n z = last gr idblock (or gridpoint) in the

z direct ion for a para l le lepiped

reservoir

o = oi l -phase or o i l - componen t

opt = op t imum

P = p h a s e p , p = o , w , g

r = r direct ion

ref = reference

r+1/2 = b e t w e e n i and iT-I a l o n g t h e

r direct ion

s = solut ion

S = south

sc = standard condi t ions

sg = so lu t ion-gas -component

sp = specif ied

U = upper

v = per unit v o l u m e of reservoi r rock

w = water-phase or wa te r -componen t

W = west

wb = wel lbore

wf = f lowing wel l

x = x direct ion

xi,l/2 = be tween i and i-T- 1 a long the

x direct ion

Y = y direct ion

Yj~I/2 = b e t w e e n j and j ~ 1 a long the

y direct ion

z = z direct ion

z~l/= = be tween k and k -Y- 1 a long the

z direct ion

0 = 0d i rec t ion

0j~l/2 = b e t w e e n j and j-T- 1 a long the

0 direct ion

Superscr ip t s

m = t ime leve l m

n = t ime leve l n (old t ime level)

n + 1 = t ime level n + 1 (new t ime level ,

current t ime level) (v)

n + 1 = t ime leve l n + 1 and old i teration

V

(v.-1) n + 1 = t ime level n + 1 and current

i teration v + 1

(v) = old i terat ion v

(v + 1) = current i teration v + 1

* = in termedia te va lue befbre S O R

accelerat ion

Page 29: Petroleum Reservoir Simulation a Basic Approach

Nomenclature x x x i i i

° = r e f e r e n c e

= a v e r a g e

' = d e r i v a t i v e w i t h r e s p e c t t o p r e s s u r e

---> = v e c t o r

Page 30: Petroleum Reservoir Simulation a Basic Approach

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 oper- ating strategies. Figure 1-1 depicts the major steps involved in the development of a reser- voir 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 dis- crete 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 gov- erning 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 discretiza- tion, 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

Page 31: Petroleum Reservoir Simulation a Basic Approach

2 Chapter 1 Introduction

C .. . . . . . . . . ) C ............. ) C ............ ) ( . . . . . . . C ° 3 NONLINE/kR PDE'S NONLINEAR ALGEBRAIC LINEAR ALGEBRAIC SATURATION

EQUATIONS EQUATIONS 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 experi- ments 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 varia- tional method. The "mathematical approach" refers to the methods that obtain the non- linear 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-dif- ference 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 mathemat ica 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 Milestones for the Engineering Approach The foundations for the engineering approach have been overlooked all these years. Tradi- tionally, reservoir simulators were developed by first using a control volume (or elemen- tary 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-

Page 32: Petroleum Reservoir Simulation a Basic Approach

1.2 Milestones for the Engineering Approach 3

I iiii!l I '°wou' Flow in ) x

,I Ax I, x x+Ax

Figure 1-2 Control volume used by mathematicians for 1D flow.

(x,y,z+Az) ~(,y+Ay, z+Az)

(x+Ax,y,z+Az. zj T x

(x+Ax,y+Ay, z)

Figure 1-3 Control volume 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 engi- neering 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 neigh- boring 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 stan- dard 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 dis- cretized 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 devel- oped the forward-central-difference equation and the backward-central-difference equation

Page 33: Petroleum Reservoir Simulation a Basic Approach

4 Chapter I Introduction

without going through the rigor of the mathematical approach in teaching reservoir simula- tion 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 mathemat- ical 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 obser- vation 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 res- ervoir 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 J

s Flow in s

I )' x-Ax/2

X x+Ax/2

I . . j pm m m m m m i

Flow out

Figure 1-4 Control volume for 1D flow.

1.3 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 res- ervoir 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-

Page 34: Petroleum Reservoir Simulation a Basic Approach

1.4 Summary 5

(x-~d2,y-Ay/2,z+Az/2) (x-,~x/2 ,y+Ay/2 ,z+,~./2 )

/ , d (x+~d2,y-Ay/2,z+~./2) (x+,Sx/2,y+,~y/2,

J ' z~z] (x-A~2,y-'Ay/2,z-Az./2) | . ~ l (x-Ax/2,y+Ay/2,z-Az/2)

x.- / 1 / t - I . , , 'u

(x+,~x/2 ,y-Ay/2 ,z-~-/2 ) (x+Ax/2,y+,~y/2,z-~-/2)

Figure 1-5 Control volume for 3D flow.

mation of the second-order space derivative and provides interpretation of the approxi- mations 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 sta- bility. 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 formu- lation, 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 dif- ferential equation to obtain the flow equation in algebraic form. In contrast, the engi- neering approach involves reservoir discretization to describe the reservoir, followed by formulation to obtain the flow equation in integral form, which, when approximated, pro- duces 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 consid- ered 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

1-1

1-2

E x e r c i s e s

Name the major steps used in the development of a reservoir simulator using the mathematical approach.

Indicate the input and the expected output for each major step in Exercise 1-1.

Page 35: Petroleum Reservoir Simulation a Basic Approach

6 Chapter l Introduction

1-3

1-4

1-5

1-6

1-7

How does the engineering approach differ from the mathematical approach in developing a reservoir simulator?

Name the major steps used in the development of a reservoir simulator using the engineering approach.

Indicate the input and the expected output for each major step in Exercise 1-4.

Draw a sketch, similar to Figure l - l , for the development of a reservoir simulator using the engineering approach.

Using your own words, state the importance of the engineering approach in reservoir simulation.

Page 36: Petroleum Reservoir Simulation a Basic Approach

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 prop- erties, 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) deriva- tion of the algebraic flow equation for a general block in the reservoir using basic engi- neering 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 coordi- nates 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 = Y c P g (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

Page 37: Petroleum Reservoir Simulation a Basic Approach

8 Chapter 2 Single-Phase Fluid F low Equations in Mult idimensional Domain

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 deri- vation 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 prop- erties 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 porosi ty 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 inde- pendent 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. Per-

meab 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 per- meability can be represented by k x, ky, and k z. The reservoir is described as having iso-

tropic permeability distribution if k = ky = k z ; otherwise, the reservoir is anisotropic if

permeability shows directional bias. Usually k x - - ky -- k H and k z = k v with k v < k H

because of depositional environments.

2.4 Reservoir Discretization

Reservoir discret izat ion 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 ( Ax i , ~ 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 point- distributed 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

Page 38: Petroleum Reservoir Simulation a Basic Approach

2.5 Basic Engineering Concepts 9

• i-1

Xi_ 1

r

Z~Xi-1/2 V ~

8X i- 8Xi+

I 0 i

X i

Ax i

z~Xi+l/2

~k

F

I • i+1

X i+ 1 [ ~Xi+ 1 I ),

X i-1/2 X i+1/2

Figure 2-1 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 neigh- boring blocks in 2D flow in the x-y plane, and Figure 2-2c shows that there are six neigh- boring 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, res- ervoir discretization removes space from being a variable in the formulation of the problem. More elaboration follows in Section 2.6.2.

} ix

Y

T }px • (i, j+l)

. . . . . . . . . . .

(i-l, j)

(i,j-1)

(a) 1D. (b) 2D.

- I (i+1 ,j)

.

(i,j+l ,k)

I I ............ (i,j-1 ,k)

(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 constitu- tive equation. The principle of mass conservation states that the total mass of fluid

Page 39: Petroleum Reservoir Simulation a Basic Approach

10 Chap te r 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 b lock i, must equal the net increase in the mass of the fluid in the reservoir volume ele- ment; 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 of fluid entering the reservoir volume element from other parts of 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 t ime interval.

An equa t ion o f s ta te describes the density of fluid as a function of pressure and tempera- ture. For single-phase fluid,

B = p~ / p (2.7a)

for oil or water, and

B - pg~ (2.7b) a pg

for gas, where p and p~ = f luid densi t ies at reservoi r condi t ions , Ps,. and P~.,c = f luid densities at standard condmons, and a = the volume conversion factor.

A cons t i tu t ive equa t ion describes the rate of fluid movement into (or out of) the reservoir volume element. In reservoir simulation, Darcy ' s Law is used to relate fluid flow rate to potential gradient. The differential form of Darcy ' s Law in a 1D inclined reservoir is

Ux = qx / ax = - t i c k ~ 0 (2.8) l~ 3x

where fl~ = the t ransmissibi l i ty convers ion factor, k X = absolute permeabi l i ty of rock in the d i rec t ion of the x ax i s , / z = f lu id v iscos i ty , • = potent ia l , and u x = volumet r ic (or superficial) velocity of 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:

Page 40: Petroleum Reservoir Simulation a Basic Approach

2 .6 M u l t i d i m e n s i o n a l F l o w in Car t e s ian Coord ina t e s 11

- dPrel = (P - Pref) -- y(Z - Zr~ f ) (2.9)

where Z = elevation from datum, with positive values downward.

Therefore,

oqx ~,~ _ y -~-x) (2.10)

and the potent ia l d i f ferences be tween b lock i and its neighbors , b lock i - l and block i + 1, are

~ i-1 - - Iff~ i = ( P i - 1 - - Pi ) - ~ / i - I /2 ( Z i - 1 - Z i ) ( 2 . 1 1 a )

( I ) i + l - - (I)i = ( P i + l - - Pi ) - - ' ~ i+1/2 ( Z i + l - Z i ) (2.11b)

2.6 Multidimensional Flow in Cartesian Coordinates 2.6.1 Block Identification and Block Ordering Before writing the flow equation for a l D, 2D, or 3D reservoir, the blocks in the dis- cretized reservoir must be identified and ordered. Any block in the reservoir can be identi- fied 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)

(1,1)

(2,2)

(2,1)

(3,2)

(3,1)

(4,2)

(4,1)

Figure 2-4 Engineering notation for block identification.

There are many block ordering schemes, including natural ordering, zebra ordering, diag- onal (D2) ordering, alternating diagonal (D4) ordering, cyclic ordering, and cyclic-2 ordering. If the reservoir has inactive blocks within its external boundaries, such blocks

Page 41: Petroleum Reservoir Simulation a Basic Approach

12 Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain

17 18 19

13 14 15

9 10 11

5 6 7

1 2 3

(a) Natural ordering.

14 17 19

10 13 16

6 9 12

3 5 8

1 2 4

(c) Diagonal (D2) ordering.

11 10

12 19

13 20

14 15

1 2

(e) Cyclic ordering.

Figure 2-5

20

16

12

8

4

20

18

15

11

7

(b) Zebra ordering.

(d) Alternating diagonal (D4) ordering.

9 8

18 7

17 6

16 5

3 4

(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, fol- lowed 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

Page 42: Petroleum Reservoir Simulation a Basic Approach

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 nota- tion 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 (a) Reservoir representation.

f f J J J /

111213141/1 (b) Natural ordering of blocks.

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 pre- vious 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 res- ervoir 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,:= / / / / V~ =' | I I I I,'1 ='

i=1 i=2 i=3 i=4 i=1 i=2 i=3 i=4 i=I i=2 }=3 i=4

(a) Reservoir representation. (b) Engineering notation. (c) Natural ordering of blocks.

Figure 2-7 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

Page 43: Petroleum Reservoir Simulation a Basic Approach

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.

k=3

(1,3,3) (2,3,3) (3,3,3)

(1,2,3) (2,2,3) (3,2,3)

(1,1,3) (2,1,3) (3,1,3)

(4,3,3) 33 34 35 36 j=3

(4,2,3) k=3 29 30 31 32 j=2

(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

z y

/

i=1 i=2 i=3 i=4

(a) Reservoir representation.

Figure 2-8

Solution

k=2 (1,2,2) (2,2,2) (3,2,2) (4,2,2) k=2 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

k = l (1,2,1) (2,2,1) (3,2,1) (4,2,1) k = l 5 6 7 8 j=2

(1,1,1) (2,1,1) (3,1,1) (4,1,1) 1 2 3 4 j=l

i=1 i=2 i=3 i=4 i=1 i=2 i=3 i=4

(b) Engineering notation. (c) Natural ordering of blocks.

3D reservoir representation in Example 2.3,

(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.

Page 44: Petroleum Reservoir Simulation a Basic Approach

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 15

2.6.2 Derivation of the One-Dimensional Flow Equation in Cartesian Coordinates

Figure 2 - 3 shows b lock i and its ne ighbor ing b locks i - 1 and i + 1 in the x direct ion. At

any ins tant in t ime, f lu id enters b l o c k i, coming f rom b l o c k i - 1 across i ts x i 1/2 face at a

mass rate of w lx, ~,~ and leaves to b lock i + 1 across its xi+~/2 face at a mass rate of w ] ...... •

The f lu id also enters b lock i through a wel l at a mass rate of qm, • The mass of f luid con-

ta ined in a uni t vo lume of rock in b lock i is my, . Therefore , the mater ia l ba lance equat ion

for b lock i wri t ten over a t ime step At = I n ~ l - t n Call be rewri t ten as

m,[,, .... -mol ....... +m, , = m (2.12)

Terms l ike w x I ...... , w I ...... , and q,,, are funct ions of t ime only because space is not a vari-

able for an a l ready d iscre t ized reservoi r as d iscussed in Sect ion 2.4. Fur ther jus t i f ica t ion is

p resented later in this section. Therefore ,

tn~l

mil ..... : f w l ....... dt (2.13) t n

tn~l

molx .... = f wxL dt t n

(2.14)

tn+l

m ~ -~ f ,i t n

Using Eqs. 2.13 through 2.15, Eq. 2.12 can

qm, dt

be rewri t ten as

(2.15)

t n41 tn+l tn+l

f WX[ . . . . . d r - - ~ WXI ....... d ' + f q m d t : m a . t n t n t n

The mass accumula t ion is def ined as

(2.16)

m = A t (Vbmv) i = V, ( m "÷1 m" b~. v, -- vi)" (2.17)

Note that mass rate and mass f lux are re la ted through

w x = rhxA x (2.18)

Mass f lux ( rh x ) can be expressed in terms of f luid dens i ty and vo lumet r ic veloci ty ,

rh x = a c p u x (2.19)

mass of f luid per uni t vo lume or rock ( m v ) can be expressed in terms of f luid dens i ty and porosi ty ,

Page 45: Petroleum Reservoir Simulation a Basic Approach

16 Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain

m v = 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:,). t n t n t n

(2.22)

Substitution of Eqs. 2.19 through 2.21 into Eq. 2.22 yields

tn+l tn+l tn~l

, - V ~ n ~ l n [. (a,:pu.,A )lx,, ~ d t - ~ (a~pu Ax)[,,.,,.dt+ [. (acpq),dt= b,[(~P)~ -(q~P), 1" t n t n t n

(2.23)

Substitution of Eq. 2.7a into Eq. 2.23, dividing by acpsc, and noting that q / B = qs,: yields

: _ ]. n . . t n

(2.24)

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 ~ k x l x lP [ ( ( I D i - I - - ( ~ i ) ]

where k[,,._,,o_ is rock permeability between blocks i - 1 and i that are separated by a dis-

tance AXg 1/2, ~i-1 and qb i 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

k x l x 1/2 -(lff~i --(I~i41)]. Ux/,,1,, ' - ~ I ...... '~Ci+ I / 2

(2.25b)

Substitution of Eq. 2.25 into Eq. 2.24 and grouping terms results in

Page 46: Petroleum Reservoir Simulation a Basic Approach

2.6 Multidimensional Flow in Cartesian Coordinates 17

![(tic ~ ) x. ,,o (0,_1 - O,)ldt - , _ . j" l(fl~,. ~-----~) . ....... (~i)i-Oi+')]dl

' °" , , , .+1 e n

t °

(2.26)

or

j" [ T ..... (0,_ 1 - * ~ ) ] d t + j" tT x ..... (*~+1-(I) i ) ]dl q- f q,,~dt= ~ , t -B , , - ( ~ ) , ] t n t n i n

(2.27)

where k , a x I

T X . . . . . = (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 Darcy ' s Law (Eq. 2.25) to est imate fluid volumetr ic veloci ty between b lock 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 het- erogeneous block permeability distribution and irregular grid blocks (neither constant nor equal Ax , 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-distr ibuted grid. Note that for a discretized reservoir, blocks have defined

dimensions and permeabilities; therefore, interblock geometric factor

k A I (/~c ~ ) ]

l J L a , x 1/2 i :

is cons tan t , i n d e p e n d e n t o f space and t ime. In addi t ion , the p re s su re d e p e n d e n t

term (/~B)[x ' .... of t ransmissibi l i ty uses some average viscosi ty and format ion vo lume

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 t ime as b lock pressures

change with time. Hence, t ransmissibi l i ty ~, ...... be tween b lock 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.

Page 47: Petroleum Reservoir Simulation a Basic Approach

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 t n + l t n ~ 1

I [Tj ..... ( ( I ~ i - 1 - ¢ i ) ] d t + I [ T = (d~i. , - * i ) ] c l t + f q,cdt t n t n t n

or after substituting Eq. 2.11 for potential,

Vb, d / ~ , [ n+l

t n ~ l t n * l

f {T~, ,,z [(Pi -I - - Pi ) - - ~ i -1,2 ( Z i - ] - - Zi )] }dr + f {L,,,,2 [(P,+, - P, ) - }'i-,,z (Zi+, - Z~)]} dt t n tn

"" v, d~q~ . . . . . , + f q,c, d t = ' - - ~ - - ) A P i -P '~] ,

,. a d p B

(2.29a)

t n ~ l

; F(t)dt t n

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 t ime t m , where t" < t m < t "+1 , and At , where At = (t ml - t n) , as shown in Figure 2-10. Therefore,

t n t l tn+l tn+l tn+l

f F(t)d, = ; F(tm)dt = ; F m d t = F m ; d t = F m x t :n : F m X ( t n + l - t n ) : F m X A t .

t n t " t n t "

(2.30)

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:

Consider the integral

where ( )i = the chord slope of ( )i between p,,+li and Pi "

2.6.3 Approximat ion of T ime 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, how- ever, are not efficient for solving reservoir simulation problems. Therefore, performing these integrations necessitates making certain assumptions.

(2.29b)

Page 48: Petroleum Reservoir Simulation a Basic Approach

2.6 Mul t id imensional F low in Cartesian Coordinates 19

F(t)

F(t n+l)

F(t n)

Figure 2-9 Figure2-10

F(t)

F(t n* l )

F(t r")

F(t")

t t t n tn+l t n t m t n+l

Representation of the Integral of a function as the area under the curve (left). Representation of the integral of a function as F(fm)×At (right).

F(t)

F(t n+l )

F(t n)

F(t)

F(t n÷l)

F(t n)

F(t)

F(t n+l) 1/2 [F(t n) +

F(t n)

t t t n tn+l t n tn+l t n t n+1/2 tn+l

(a) (b) (c)

Figure 2-11 Approximations of the Integral of function.

F ( t ' ) x A t as s h o w n in F i g u r e 2 - 1 1 a , F ( t " ~ ) x A t 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<l,~(Oi+l -dp~) 1 , or q,~, that

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

V b ,6 1 iT m (~m __~m)lAt + " A t . . . . . . . ~ " [T~,I~(~?I-@?)IAt+, ,<,,,2, ,+1 q,~ : ~-clt-~) - ( 7 ) , ]

Dividing the above equation by At gives

(2.31)

0 " " + m = Vb, [(q~y,+l _ ( )~ 1 (2.32) Tm (dPm -dPm)+ Tm (~i+1-- i ) qsc . n A t B ' xi 1/2 \ i - 1 i i Xi , l l~ i

Substituting Eq. 2.11 into Eq. 2.32, we obtain the flow equation for block i,

Tx . . . . . . . . . Z T . . . . Z ,-.1,2 I tP i_ l -P i ) - 7 i llOt~ i - 1 - Z i ) ] + x..2l(Pi+1-P~ ) - 7 . 1 / 2 ( i+1-Zi)]

.~qm : Vb: [(~)n+l -- (=)i¢ n ]. (2 .33)

acAt B B

The right-hand side (RHS) of the flow equation expressed as Eq. 2.33, known as the fluid accumula t ion term, vanishes in p rob lems involving the f low of incompress ib le fluid ( c = 0 ) in an incompressible porous med ium ( % = 0 ). This is the case where both B

Page 49: Petroleum Reservoir Simulation a Basic Approach

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 approxima- tion 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 equa- tions. 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.,

r l • m r z m m \ m z z . . _ m m

.... ttp2 - P 3 )-~3-1/21, 2 -Z3)I+T~,,,,I(P2 P3 )-~3+i/2(Z4 -Z3)] v~, ~,°+, e .

+ q Z , - a~-~t[(~)3 - ( 3 ) 3 1 .

(2.34)

For block 3, Z 2 = Z 3 = Z 4 for horizontal reservoir and q,~'-3 = -400 STB/D.

Because Ax3~l/2 = A x , and because/ t and B are constant,

Tx m =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 (2.35) . . . . . . ~ .... /~BAx ' 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 accumu- lation in block 3. All terms have the units of STB/D.

Page 50: Petroleum Reservoir Simulation a Basic Approach

2.6 M u l t i d i m e n s i o n a l F l o w in Car tes ian Coord ina te s 21

Table 2-1

Quantity

Length

Area

Permeability

Quantit ies Used in Flow Equations in Different Systems of Units

Compressibility

Symbol

x, y, z, r, Z

A, A~ Ay, A z, A r, A 0

System of Units

Customary SPE Metric Lab Units Units Units

f t m cm

ift 2 m 2

C, Co, C¢

m 2

cm 2

k, 1% ky, k:, k,, k o md darcy

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 m 3 cm3/std cm 3

Solution GOR R s scf/STB std m3/std m 3 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-ft 2 m/d cm/sec

Phase density P, Po, Pw, ~ Ibm/ft3 kg/m3 g/cm3

Block bulk volume V b ft 3 m 3 cm 3

atm -1

Compressibility factor

psi -1

dimensionless

o R

kPa -1

dimensionless

Temperature T

Porosity

Phase saturation S, S o, S w, S u

Relative permeability kro, k,~, krg

dimensionless

K

fraction fraction fraction

fraction fraction fraction

fraction fraction fraction

Gravitational acceleration

32.174 ft/sec 2 9.806635 m/s 2 980.6635 cm/ sec 2 g

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

Page 51: Petroleum Reservoir Simulation a Basic Approach

22 Chapter 2 S ingle-Phase Flu id F l o w Equat ions in Mul t id imens ional Domain

400 STB/D

Z

~ " ~ .'Yx O0 ft

Figure 2-12 1D reservoir representation in Example 2.4.

2.6.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 Z { Tm [ ( P i l - P ~ ) - ~ i - 1 / 2 ( i-1--Zi)] and Xi-l/2

Tx . . . . . . . Z ..... t t P i + l - P i ) - 'Y i+ I /2( i + 1 - Z i ) ] },

the source term due to injection or production ( q m ), and the accumulation term

Vb r/(~',n-}] , ~ x n l { - - ~ . t t - ) , - ~ - ) , 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 neigh- bor ing b locks in 2D f low (Figure 2 -2b ) , and six ne ighbor ing b locks in 3D f low (Figure 2-2c). Therefore, for 2D flow, the flow equation for block (i,j) in the x-y plane is

~. . . . . . . . Z Z ,j-,,2 ttPu-1 - Pi j) - Yla-1/2 ( ij-1 - ~a)]

+T . . . . . . Z Z ....... i t tP- la -Pi , j ) -Yi a/2.j( i - la - ~a)]

+T . . . . . . Z Z ....... j ttPi+Lj - P~a) - 7.1/2a ( i+l,j-- i,j)]

+ T . . . . . . . . Z Vb Y,,,,l,2[tPi,j41--Pi,J)--Ti,j,1/2 (" ia+l-Zi,j)]+qm,,, ~ ' B . i . j - . B . i , j . " (2.37)

For 3D flow, the flow equation for block ( i , j , k ) in the x-y-z space is

Page 52: Petroleum Reservoir Simulation a Basic Approach

2.6 Multidimensional bTow in Cartesian Coordinates 23

where

T£j . . . . [ ( P i j k . 1 P i , j , k ) - - T i , j k - 1 / 2 ( i j k -1 Zi , j ,k)]

m m m Z +Tm [(Pi,j-l,k--Pi,j,k)--7i4-1/2,k( i,j-l,k--Zid,k)] Yi,j l/2,k

m m m , , Z , , + T~m,,~,j,~ [(Pi- l , j ,k -- Pi,j ,k ) -- 7i-1/2 j k ( i..1 j k -- Zi,j,k )1

+T,m,,~,, l(P,"+,j,k - P~,),~)- m , , Z , , 7~+~= j k ( ~+~ j ~ - Z~,j,k)l

in m m Z +T" [(Pij*l,k--Pi4,k)--Yij,l/2~( i j * l k - - Z i , j , k ) ] Yi,j-1/2,lc , , , , ,

m 7 , m . . . . Z - + Tz j . . . . [ (P i j k~l -- P i , 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~

(2.38)

k A x [ (~ kxA ) 1 Gx, ,~(-~)x , ,=j~ (2.39a)

k A ] k y A v 1 1 Li,j ...... ~---(/~c ~ B ~ y ) i j ...... = ( f l c - ' ~ Y )YiJ . . . . . . ( ~ B ) Y i , j . . . . . . --- Gy, j . . . . . . ( ~ - B ) Y i , j ...... (2.39b)

k,A z I k A 1 1 L,,j -b?-? G j .... ( ~ ) z j . . . . (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, kx=270md, andky=220md. 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).

Page 53: Petroleum Reservoir Simulation a Basic Approach

2 4 Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain

Y

Figure 2-13

2

The sequence of neighboring blocks in the set ~ , j, k or ~n"

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 > / ~ j=2

100.11 I I I Vi:l i=1 i=2 i=3 i=4

Figure 2-14 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.,

L m r / m m m ...... l i P 3 , 1 - - P 3 , 2 ) - - ~ ' t3 ,2-1 /2 (Z3,l -- Z3,2)]

-~Tx~ ' ,/ 2 [ ( P 2 " ~ - P 7 2 ) - ~/3m-1/22 ( Z 2 2 - Z 3 2 ) ] 2,, . . . . . . .

+T" [(pr~2-P32)-y3m+l/22(Z42-Z32)] X3~1/2, 2 . . . . . •

+ ~ m . . . . . . . + ,,, v~,~,~ r,-~_v,-- ¢ , ,

. . . . . . . . I[P3,3-P3,2)-•32+l/e(Z33-Z3,2)] q .... - , , B , 3 ~ - ( ' B ) 3 , 2 ] "

. . . . - . . . . a c A t - , - (2.40)

Page 54: Petroleum Reservoir Simulation a Basic Approach

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

T ~ =Tm =fl~ k A y 2 2 0 x ( 2 5 0 x 100) = 10 .3308 Y ...... Y ...... /.tBAy = 0 " 0 0 1 1 2 7 × 2 x l x 3 0 0

(2 .41a)

(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)

+(10"3308) (P3 ,3- -P3 ,"2) - -400= V~,~ (tp~.+l q ~ . a ~Xt "B "~'2 - (-~)~,2 I.

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.,

(2 .42)

- , 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

+ m \ 1 + T ~ ..... [ ( P ~ 3 - P ~ " 2 ) - Y " ~ ' ~ " 2 ( Z ~ ' 3 - Z 2 ~ ) ] q . . . . a c A t -' B ~'~"

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 hos t a well,

Tx m = T" = 18 .2574 STB/D-psi , and T m = T ~ = 10 .3308 STB/D-psi . 2 1/2,2 x2+112,2 Y2,2 112 Y2,2t112

Subs t i tu t ion into Eq. 2 .43 g ives

(10.3308)(P2~1 - P+~2 ) + (l 8 .2574)(pt" 2 - P~I2 ) + (l 8.2574)(p~'12 - P2~2 )

(2 .43)

Page 55: Petroleum Reservoir Simulation a Basic Approach

26 Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain

(10.3308)(P2.3 - P2z) = ~-~-L..~., . , 2 - (~)z.2]. ' a,, t -'

(2.44)

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, k x = 270md, ky = 220 md, and k z = 50 md. The FVF, density, and viscosity of the flowing fluid are 1.0 RB/STB, 55 Ibm/fl 3, 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 -15b , inter ior blocks include reservoir blocks that are located in the second and third co lumns 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.

z y

x /

k=3 =3 k=2 k=l

i=1 i=2 i=3 i=4 (a) Reservoir representation.

Figure 2-15

k=3

(1,3,3) (2,3,3) (3,3,3) (4,3,3) j=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

k=2

(1,3,2)

(1,2,2)

(1,1,2)

(2,3,2) (3,3,2) (4,3,2) j=3 133.3 STB/D

(2,2,2) ~ " (4,2,2) j=2 (3,2,2)

(2,1,2) (3,1,2) (4,1,2) j=l

T 300 ft I (1,3,1) (2,3,1) (3,3,1) (4,3,1) j=3

k=l (1,2,1) (2,2,1) (3,2,1) (4,2,1) j=2 Y

T ~,- X (1,1,1) (2,1,1) (3,1,1) (4,1,1)

i=1 i=2 i=3 i=4

(b) Engineering notation.

3D reservoir representation in Example 2.6.

j=l

Page 56: Petroleum Reservoir Simulation a Basic Approach

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

+T . . . . . . . . . . . Z x3 .. . . . . . . l [ P 4,2,z -- P3,z,2 ) - - 7 3*ll Z,2,:: t 4 , 2 , 2 - Z 3 , 2 , 2 ) ]

+T . . . . . . . . y ......... ttP3,3,2 - P3,2,z) - 73,2+m,2 (Z3,3,2 - Z3,12)]

m rn +Era ...... l (P312,3 - - P3 ,2 ,2) - - 73,2,2t-1/2 (Z3,2,3 - Z3,2 ,2)1

V,

.... % A t ,,~,3,2,2 - ,~,3,2,2,- (2 .45)

F o r b l o c k (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 It,

Z323 - Z 3 2 , = - 3 3 . 3 3 3 It, a n d q~ = - 1 3 3 . 3 STB/D. B e c a u s e , ,~ , ,~ sc3,2, 2

Z~kX3zl/2,2, 2 = / ~ f = 250 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 m 3,2,2+1/2 = 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,

Tm = tic kxA" = 0 0 0 1 1 2 7 x 270 x (300 x 33 .333) 6 .0857 STB/D-ps i (2.46a) ............ k tBAx " 2 x 1 x 250 =

Tm -= tic kvA~ = 0 . 0 0 1 1 2 7 x 220 x (250 x 33 .333) = 3 .4436 STB/D-ps i (2 .46b) Y . . . . . . . . . IuBAy 2 x 1 x 300

T" =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 STB/D-ps i (2 .46e) .......... ktBAz 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)

Page 57: Petroleum Reservoir Simulation a Basic Approach

28 Chapter 2 Single-Phase Fluid F l o w Equat ions in Mul t id imensional Domain

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 radial- cylindrical 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)

r / / / s ' x

/

, y

I I I I I

0j.1/2

X

, y

(r, ,0j)

Figure 2-16 Graphing a point in Cartesian and radial coordinates (left). Figure 2-17 Block ( i , j ,k) in single-well simulation (right).

F i g u r e 2 - 1 8 a shows that b l o c k ( i , j , k ) is su r rounded 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 lock boundar ies ( 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.

Page 58: Petroleum Reservoir Simulation a Basic Approach

2.7 Multidimensional Flow in Radial-Cylindrical Coordinates 29

I Zi'j'k+l/2

A Zi.j, k

Zi,i,k-l/2

I'i (i,j,k-1)

ri-1/2 ri+1/2

• , ( i , j , k ) and its neighboring blocks in the z-direction. 0j 1

(a) Block ( i , j , k ) and its neighboring blocks in horizontal plane.

Figure 2-18 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

Page 59: Petroleum Reservoir Simulation a Basic Approach

30 Chapter 2 S ingle-Phase Fluid F low Equat ions in Mul t id imens ional Domain

(a) Reservoir representation. (b) Natural ordering of blocks.

Figure 2-19 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 i=4

(a) Reservoir representation. (b) Engineering notation. (c) Natural ordering of blocks.

Figure 2-20 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 con- tinues (lager by lager) until all blocks are numbered. The final ordering of blocks in this reservoir is shown in Figure 2-20c .

2.7.2 Derivation of the Multidimensional Flow Equation in Radial- cylindrical Coordinates

To wr i tc the mate r ia l ba l ance for b lock ( i , j , k ) in F igure 2 - 1 8 ove r a t ime step At = t "+] - t " , we a s sume that the f lu id c o m i n g f r o m n e i g h b o r i n g b locks enters

b lock ( i , j , k ) through b lock boundar ies ( 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 applica- tion of Eq. 2.6 results in

(miL,,2,k-moL,,,,~, )+(miL, ' ..... -molo, j .... ) + (m,[=,, . . . . . - m ° l .......... ) + m ...... =ma,,," (2.48)

Terms like mass rates,

Page 60: Petroleum Reservoir Simulation a Basic Approach

2.7 Mult idimensional F low in Radial-Cylindrical Coordinates 31

W r [ r l l 2 j k ~ W o l o i , j . . . . . ' W z ' wrl 'w°[% . . . . . ~ w ' l I - , , Zi , j ,k- l /2 Fi4ll2,j, k " ' ~ Zi'j 'k~ll2

and well mass rate, qm, j,k , are functions of t ime only (see just if icat ion in Sec. 2.6.2);

therefore,

ln~l

mil = f WFI at (2.49a) ri l l2, j ,k Fi l l2, j ,k

t n

tn+l

re ' l% ...... = f Wo o j ..... dt (2.49b) t n

tn~l

milzlj ...... = j'w lzj ...... dt t n

(2.49c)

tn+l

moi : IWrl dt r l t l l2, j ,k ri÷ll2,j,k

(2.50a)

tn÷l

molo, j ...... = f wolo, ...... d t (2.50b)

tntl

tool = f w[ dt (2.50c) Zi,j,k+ll 2 ~ Zi,j,k+ll 2

t n

tn41

m = f q~ . jd t sLy,k i, , t n

In addition, mass accumulation is defined as

(2.51)

= At(Vom,)ij , k = Vb,,j, ~ ( .~1 _ m" ) mvl,) ,k vl,j,k m ai,j,k

Mass rates and mass fluxes are related through

W r L = l h r A r

%1o = rhoAo

(2.52)

(2.53a)

(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)

Page 61: Petroleum Reservoir Simulation a Basic Approach

32 Chapter 2 Single-Phase Fluid Flow Equations in Mult idimensional Domain

rh o = a p u o (2.54b)

rh z = ~ c p u z

and m v can be expressed in terms of fluid density and porosity,

(2.54c)

m . = (q~P)ia,k (2.55)

Also, the well mass rate can be expressed in terms of well volumetric rate and fluid density,

qm~j,k = ( a c p q ) i j , ~ (2.56)

Substitution of Eq. 2.54 into Eq. 2.53 yields

W r Ir : a p u A ( 2 . 5 7 a )

Wo ]o = a cpuoAo (2.57b)

w~l: = a,:puzA z

Substitution of Eq. 2.57 into Eqs. 2.49 and 2.50 yields

(2.57c)

tn~I

m,l~_~,~,,,,~ = j" ac(PUrAr)]~,,~,,,dt t n

(2.58a)

tn , l

milo,., ..... : f a (puoAo)lo,, ..... dt t n

(2.58b)

tn~t

m , I . ' ..... : ~a(puAp l z . , ....... dt t n

(2.58c)

tn~l

mol = f C~c(pUrAr)l~+,/z,, dt Q+l/2,j,k I , ,

t n

(2.59a)

tn+l

molo,, .... = f ac(puoAo)lo,, ...... el, i n

(2.59b)

tn41

mo[ = f ac(puAz) I d, ,2t ,j ,k+] / 2 Zi,j ,k t 112

t n

Substitution of Eq. 2.56 into Eq. 2.51 yields

(2.59c)

m s~,j,k

tn+l

= f (cccpq)id,kdt t n

(2.60)

Page 62: Petroleum Reservoir Simulation a Basic Approach

2.7 Multidimensional Flow in Radial-Cylindrical Coordinates 33

Substitution of Eq. 2.55 into Eq. 2.52 yields

m = V b . j ~ [ ( ~ ) p ) n+l n , j.~ - ( ¢ > P ) , i ~] ai,j,k i , , ' ' '

Substitution of Eqs. 2.58 through 2.61 into Eq. 2.48 results in

(2.61)

tn+l t n*l t n~l

I cQ(PUrar)[~_,/~j,kdt- f a~(pu'Ar)l~,,,2.~.~dt+ I a~(puoa°)lo,,, ..... dt t n t n t n

tn+, t n~l t n+l

- I aApuoAo)lo,, . . . . . . dt+ I aApuzA=)lz,, ....... dr- I Ctc(PUzAz)[<, ...... dt t n t n t n

tn+l

- V, ~,+~ (2.62) + I (a~Pq)'o,~ dt - b,,,~ [(~P)~ j k -- (q~P)~o,k l" t n

Substitution of Eq. 2.7a into Eq. 2.62, dividing by a~p,~, and noting that q~ = q ! B yields

i x '̀ar, dt - [ (urAr) dt+ I ( ) dt

r A '"~ A K - I ( ~ ) d t + ! ( ) d t - ( dt

t n Oi,j÷ll2,k n Zi,j,k 1/2 n Z i . ' +

(2.63)

t n . 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 ).] (2.64a) Url,. ,,'-.,.,~ : tic ~lr~.,,~,,,,, Ar/-l/2,J, k

Likewise,

kr[~.~/2.j, [ (d~bi,j,k --di)i+],j,k).]. Urlr i , l l 2 , j / : = ~ c ~ ] r i t / 2 , j , k A r i + l / 2 , j , k

k~]-, .... (~, j , 1--1ff~ijk ). u.I . . . . . - - J

• Zi,j,k t/2 ~ Zi,J,k -1/2 ~ Z i ' j ' k - l / 2

(2.64b)

(2.65a)

Page 63: Petroleum Reservoir Simulation a Basic Approach

34 Chapter 2 Single-Phase Fluid Flow Equations in Multidimensional Domain

Similarly,

kz [z,.j ...... [ ( ~ i , j , k -- ~ i j k+l ) ]

k°[o . . . . . [ (~) i j l k - - { ~ i j k )

t~lo,,j ...... i,j,k Oi,s-ll2,k

(2.65b)

(2.66a)

kolo ..... [ (O , j~ - <l, ij+l~) u°i°',J ...... = fl" ~ ~ l ~ ]" (2.66b) i[~lO,,j . . . . . . 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 A r I '"~' krAr I f [ ( f l< ~-----BA~r) n ,,o , ( ~ '-l,,,k -- + g,S,k ) ]d t + f [(tic ~---B~r)[ . . . . . s k ( fI i i+l ' j 'k - lrili ' j 'k ) l d t

t n ri,j,k (Oi s-I k - Oi s k) ldt

+'i' [ 1 _ koA o I ,o ' . . . . . .

'"+' kzA z ] '"+' _ kzA z ] + f [(fl< ~ ) = , , ..... (~'"#'k-' - ~'"/'k )]dt + ! [ (~ ~ ) z , , j ...... (~'"'k+l -- +'"'k)]dt

tn+i + S q'<,k dt Vb'~ ffcPV+l ¢ " = i,, - - ( B ) i j,k 1. ( 2 . 6 7 ) t" "' a c t ~ B / i ' j ' k '

Eq. 2.67 can be rewritten as

t n-I tml

f [Ti , j ...... (lff~i,J, k-1 - - l f f~i , j ,k)]dt -jr- f [Told ...... (lff~i,j-l, k - - l f f~i , j ,k)Jdt t n tn

t n+l tntl

+ ~ [Tri-tszd,k ( l~J i - l , j , k - - f~J i , j , k ) ]d t + f [Tri+,zaa,k ( l f f~i+l . j ,k- qbij,k)]dt i n t n

t ntl lair

- t - S [Toi,j ...... (l~Ji'j+l'k -dP'Jk)]dt+ S IT (O + -Oi,j,k)]dt , , Zi,j,ktl[ 2 i,j,k 1 t n tn

tn*l

+ J qsc.dt= vb,,, 1, t \ -B1i , j ,k \ O J i j k j t n s. , C~ c , ,

(2.68)

Page 64: Petroleum Reservoir Simulation a Basic Approach

2.7 Mul t id imens ional F low in Radial-Cyl indrical Coordinates 35

where

T ?'ia-ll2,j,k

k r A r I _ k r A r 1 1 ) = (tic B----ff~r)lr,~,,=,j,, = ( t i c ---~r)~,,: , , ,~ (~-~)r,:,,~j,, = G~+,,~,~,, (~--B r,~,,~j,, (2.69a)

1 -koAo I =(flc~)O,,j,,,=~(__~B)% ....... To,~ ...... = ri,j, k ([~c ~ - ~ ) Oi,J ...... i,j,k (2.69b)

G 1 , = % ...... ( -~ )o ,~ . . . . . .

_ k A [ k A 1 1) T ...... = ( t i c ~ ~ )1 = (tic z = ( - ~ z,,~,~+,,= (2.69c) ~i,, /[~BI~Z IZi,j,k4.1,2 - ~ )zi'j'*~l'2 (--~)zi'j'k3"l'2 Gzi'j . . . . . .

Expressions for geometric factors G for irregular grids in heterogeneous reservoirs are

presented in Chapters 4 and 5.

2.7.3 A p p r o x i m a t i o n of T i m e In tegra ls

Using Eq. 2.30 to approximate integrals in Eq. 2.68 and dividing by At, the flow equa- tion in radial-cylindrical coordinates becomes

m m _ _ ~ m + _ _ ( ~ i , j , k ) ] Tz, j ...... [(lff~i,j'k-1 i,j,k)] reWj_,,=~,[(¢lPi,~-l,k m

m 0 " T m [ (Oi'~,,j,k -- oimj,k)] +T~,,,2,j,, l(Oi-l, j,k-- i3,k)] + ~.,,~.,,, (2.70)

+To~, ...... [(~,,m ,~--,I,,,%)l+~,~ ...... [(~',%,--~',,%k)]

+qsmqa,~ = a c A t t ~ B J i , j , k ~ B J i , j , k j"

Using the definition of potential difference, Eq. 2.70 becomes

L . . . . _ p mj~) _ 7,,%,~-,,~ (Z,,j,~_, -- Z , j~)] i,j,k..ll2 l (P i , j , k -1 , , ' '

--}-T, . . . . . . Z - Z i , j , k ) ] o,a_~,2,k l ( P i , j - l , k -- Pi,j,l~ ) -- ~'i,j-1/2,k ( i , j - l ,k

"}-Tr_m/2j,k [(pm-l , j ,k -- pi,mj,k ) - - ~] im_ll2,j,k ( Z i - l , j , k -- Z i , j , k )]

m m m -- m Z -- Z i , j , k ) ] + T~+l,~.,j,k [ (Pi+l , j ,k - - Pi , j ,k ) ~]i+ll2,j,k ( i+l,j,k

"[-T.m [ (P~ j+ l k -- o m ) -- y m . . . . . ( Z i .+1 k -- Z ; k ) ] Oi,j~ll2,k , , ~ i , j , r ,Jq-llZ,g J ,d , "

+ L ? , , ...... [(p?,j ,~+l - p ,? j ,~) - r,,%,~+~,~(z,,j,~+~ - z,,j,~)]

4- m = i,i,~ i - ( ' / ' ~ 1 q*,,j~ ot A t t ~ B~i ,J , k ~ BJ i ,J , ~ '"

(2.71)

Page 65: Petroleum Reservoir Simulation a Basic Approach

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 equa- tions 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 coef- ficients of potential differences are transmissibilities T~, ~ , and ~ in the x-y-z space and T , T O , 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 equa- tions into algebraic equations. Governing equations, involving both the rock and fluid prop- erties, 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 coor- dinate system. In this approach, the reservoir first is discretized into blocks, which are iden- tified 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 multidimen- sional 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

2-1

2-2

Exercises

List the physical properties of rock and fluid necessary for the derivation of a single-phase flow equation.

Enumerate the three basic engineering concepts or equations used in the derivation of a flow equation.

Page 66: Petroleum Reservoir Simulation a Basic Approach

2.9 Exercises 37

2-3

2-4

2-5

2-6

2-7

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.

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?

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.

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.

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.

Active block

Inactive block

p~,,y ~J P : ~ A y F~ ,uFP4~s~

Figure2-21

i:1 .~x

i=2 i=3 i=4 i=5

2D reservoir representation in Exercise 2-7.

j=l

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

Page 67: Petroleum Reservoir Simulation a Basic Approach

38 C h a p t e r 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

2-8

2-9

2-10

• 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.

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.

z ¼y ~-x

600 STB/D

1 2 3 4 : 5

L r "!

Figure 2-22 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 1 x 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.

Page 68: Petroleum Reservoir Simulation a Basic Approach

2.9 Exerc ises 39

2-11

2-12

2-13

(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.

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.

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.

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.

z ¼y r X

600 STB/D

375ft ;

Figure 2-24 1D reservoir representation in Exercise 2-14.

Page 69: Petroleum Reservoir Simulation a Basic Approach

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 md 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 of 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.

Z 3000 psia I

Figure 2-25

240 B/D

i i 1000 psia 30 ft

"~ 275ft ;~

1D reservoir representation in Exercise 2-15.

2-16

2-17

Consider the reservoir presented in Figure 2 -14 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).

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 FVF 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 15 = P 1 6 = 3500 psia. Assuming that the reservoir water and rock are

incompressible, calculate the pressure of blocks 6, 7, 10, and 11.

Page 70: Petroleum Reservoir Simulation a Basic Approach

2.9 Exercises 41

Figure 2-26 2D reservoir representation in Exercise 2-17.

Page 71: Petroleum Reservoir Simulation a Basic Approach

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 regard- less of the ordering scheme of blocks. The only difference among 1 D, 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 pre- sented 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 ter- minology presented in this section is based on a 2001 work published by Ertekin, Abou- Kassem, 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, respec- tively. Then we define ~p, as the set that contains the neighboring blocks in all flow direc- tions 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

Page 72: Petroleum Reservoir Simulation a Basic Approach

44 Chapter 3 Flow Equations Using CVFD Terminology

The following sections present the f low 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,

~0 = { (i - I), (i + I)} (3.2a)

~0y n = { } ( 3 . 2 b )

~Pz° ={}

Substitution of Eq. 3.2 into Eq. 3. l a results in

(3.2c)

q' , = ~Pi = { ( i - 1 ) , ( i + l ) } u { it j { }

= { ( i - 1 ) , ( i + 1)}.

The flow equation for block i expressed as Eq. 2.33,

(3.3)

m -- m m ) m Tmxi l/z [ ( P i - 1 P ? ) - ~],_ il2 ( Z i - 1 - Z i )1 "~- T~.m+,/2, [(piml -- Pi - - Y ..... (Z i+ l - - Z i ) ]

+q~ = Vb, r,~P,,+, _ (~)7 ]'

which can be written in CVFD form as

(3.4a)

where

T~,~[(P: ~ - P i ) - Y u ( Z I - Z i ) ] + q m, = ac A---- ~ l~lP i

~F m : T m T m i~-l,i i,i~-i ~ xlz~l/2

and transmissibilities T m are defined by Eq. 2.39a. In addition, Xi t ll2

(3.4b)

(3.5)

~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 - lb . In this case,

~x. = {( i- l , j ) , ( i+l , j )} (3.7a)

~y° ={(i , j-1),( i , j+l)} (3.7b)

~0 = { } (3.7c)

Page 73: Petroleum Reservoir Simulation a Basic Approach

3.2 Flow Equations Using CVFD Terminology 45

l , x (a) R¢ i = {(i-1),( i+1)}

(i , j+ 1 )

,j) :: ~ i~ : ( i+ l , j )

( i , j -1)

(b) ~i, j = {( i , j -1) , ( i - l , j ) , ( i+ l , j ) , ( i , j+ l ) }

Y

TAx

N [ i , j+ l ,k)

i I . <i-l,j,k) i [~! I (i+ 1,j,k)

(i,j-1 ,k)

(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 { }

= { ( i , j - 1 ) , ( i - l , j ) , ( i + l , j ) , ( i , j + l ) } .

Eq. 2.37 expresses the flow equation for block (i, j ) as

(3.8)

m m \ m / a T m [ ( P i j _ l - - P i j ) - - Y i j _ l l 2 ~ i j _ l - Z i j ) ] yt,j . t/2 . . . . .

m m m Z +T,7_,,,_,, [(Pi-14 - Pi4 ) - Y i -1 /2 , j ( i - l , j - Z i , j )1

+ T . . . . . _ P . . . . . Z - Z i j )1 x,,,,2,j ttPi+ld i , j ) - - ~ i + l l 2 , j ~ i+l,j ,

- t - r . . . . _ _ p m _ _ m ~'~ ~ B ' )n; l _ ( ~B ' . . . . . . . . ~ j,,21-tPij~l i.j) Y i , j + l l 2 ( Z i j ~ - l - Z i j ) ] + q m i , J % A t )n j],

(3.9a)

which can be written in CVFD form as

Z T ' . . . . . ) m ( Z , q m Wbi,j r . ~ ) x n + l ~) n lewiO 1,(i,j)[~,Pl - - P i , j - -~ l l , ( i , j ) - Z i , j ) ] " t - ,c,., = a c k t l t - ~ ) i . j -(~)i,j]

where

(3.9b)

T~ m : T m T m (iT-l,j),(i,j) (i,j),(iTl,j) ~ XiTII2, j (3.10a)

T m = T ~ = T m (3.10b) (i,jTl),(i,j) (i,j),(i,jg-1) - - Yi,j~:l/2

Transmissibilities, T m and T m have been defined by Eqs. 2.39a and 2.39b, respec- xi4112,j Yi,j~:ll2 tively. In addition,

Page 74: Petroleum Reservoir Simulation a Basic Approach

46 Chapter 3 F low 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 , jg l ) , ( i , j ) = ~ m - - m (~,j),(~,j;~) = Y~,j~/2 (3.11b)

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 . 1 2 a )

~t.)yn = { (i, j -- 1, k ), (i, j + 1, k) } (3.12b)

~Pz, = { (i, j , k - 1 ) , ( i , j , k + l) } (3.12e)

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,, Z , , i j .. . . . . [l 'Pi,j,k-1 -- Pi, j ,k ) - - Y i j k - l / 2 ( i j k-1 - - Z i , j , k )]

+Tymj ...... [(P,,~j-,.k - p,.mj.~ ) -- el.j_,, 2,t (Zi , j - -1 ,k - - Z i , j , k )]

+Txm_,nj, , [(pim-l,j,k -- Pi,~,k ) - - 7im-ll 2.j,k ( Z i - 1 , j , k - - Z i , j , k )]

+Txl ,n , , , , [(piml j k -- p m m , , i , j ,k ) - - 7 i + l / 2 , j , k ( Z i + l , j , k - - Z i , j , k )]

+LT.+ .... " . . . . . . i,j,k ) - - ~]i , j+ll2,k ( Z i , j + l , k - - Z i , j , k )]

. m m \ m i z - -~T?j . . . . . . [ (P i , j , k+l - - P i , j , k ) - - ~] i , j ,k*l l2 [ i , j ,k*l - - Z i . j . k )]

Vb,, ,k r(_%+1 - - B ] i , j , k - - ( - n ) i , j , k ] '

which can be written in CVFD form as

E le~Pi,j,k

where

(3.14a)

Vb,, m m = ' -- (~)/ ,j ,k ]' ( 3 . 1 4 5 ) T, . . . . ( Z _ Z i j , k ) ] + q m k a c A t B ''j'k t , ( i , j ,k) I L P l - Pi,j ,k ) - ~l,(i,j,~)

T, m - T ~ m ~ T m (iTl,j ,k),(i,j ,k) - - (i ,j ,k),(iTl,j ,k) Xi~:ll2,j,k

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 . 15a )

( 3 . 15b )

Page 75: Petroleum Reservoir Simulation a Basic Approach

3.2 F l o w E q u a t i o n s Us ing C V F D T e r m i n o l o g y 47

T m = T m T " ( i , j ,k~-l) , ( i , j ,k) (i,j,k),(i,j,k~l) -- (3.15C) ~i,j,k~l/2

As mentioned earlier, transmissibilities T m T m and T m have been defined Xi~l/2,j,k ' Yi,jzll2,k ' Zi,j,kzll2 in Eq. 2.39. Also,

~] tn __ m ( i T - l , j , k ) , ( i , j , k ) : ~/'(ni,j,k),(iq:l,j,lc) = 7i~:l/2,j,lc (3.16a)

~/m ~- m m (i , jT-l ,k) ,( i , j ,k) Y ( i , j , k ) , ( i , j T l , k ) -~ Y i , j T l / 2 , k (3.16b)

7m = 7m m (3.16C) (i,j,k-T-1),(i,j,k) ( i , j , k ) , ( i , j , k+l) ~ 7 i , j , k ~ - l / 2

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 ment ioned before, n - i fo r I D f low, n - (i, j ) for 2D f low, and n -= (i, j , k) for 3D f low, and the elements o f set ~0 are def ined accord ing ly (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 representat ion of this reservoir.

For block 3, %0x3 = { 2 , 4 } , ~0r3 = { } , and ~z3 = { } • Substitution into Eq. 3.1a

gives ~0 3 = {2, 4} u { } u { } = {2, 4}. The application of Eq. 3.17 for n = 3 pro-

duces

Page 76: Petroleum Reservoir Simulation a Basic Approach

48 Chapter 3 Flow Equations Using CVFD Terminology

. . . . Z "~+ " ET/ .3 [ (P / - P 3 ) - T i . 3 ( Z t - 3 )1 q,c, = IEW 3

which can be expanded as

acAt

z2m3 [(pm -- pm m m , - 3 ) -- 'Y2,3 (Z2 - Z3 ) l "~ T4m 3 [ ( P 4 - P 7 ) - "~4,3 (Z4 - Z3 ) l

+m 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

270 x (900 x 100)

2 x 1 × 2 5 0

(3.18)

(3.19)

= 54.7722 STB/D-psi (3.20)

Z 2 = Z 3 = Z 4 for a horizontal reservoir, and q" = -400 STB/D. . sc 3

Substitution into Eq. 3.19 yields

( 5 4 " 7 7 2 2 ) ( p ~ - P ; ) + ( 5 4 " 7 7 2 2 ) ( P 4 - P 3 ) - 4 0 0 = V~, [(~)3+1 __ (_~)3 ]" a At

Eq. 3.21 is identical to Eq. 2.36, obtained in Example 2.4.

(3.21)

~:: . . : : : . : : . . : : . . : : ~

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 2) [(P~' - P'~2 ) -- ~m (Zl _ Z3,z )] + q~,~ V~,~ r z (~ xn+l (J~ n ,~0,.2 ' . . . . ,,(3,2) . - ~ Lt~)3,2 - (~)3.2 ], (3.22)

which can be expanded as

T(~,1),(3,2) [ (P~,I - - P~,,2 ) -- }/(3,1),(3,2) (Z3,1 - Z3,2 )1

"t-7(22) (32, [(Pzm,2 -- pm m • , , 3,2 ) - 7~2,2~,(3 ,2) ( Z 2 , 2 - Z 3 , 2 )1

Page 77: Petroleum Reservoir Simulation a Basic Approach

3.2 Flow Equations Using CVFD Terminology 49

'1-T(4'2) (32) [(P72 - p m 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 - - t ~ ~ ] 3 2 -- (B)3,2 ]. • o : A t /~ '

(3.23)

For this flow problem,

kxA~ /~BAx

- 0 .001127 x 270 x (300 x 100) 2 x l x 2 5 0

- 18.2574

(3.24)

m m T(3,l),(3,2) = T(3,3),(3,2) = ~c

k y A y 0 001127 X 220 x (250 x 100) /~BAy 2 X 1 X 300

10.3308

(3.25)

• n m Z3,1 = Z2, 2 = Z3, 2 = Z4, 2 = Z3, 3 for a hor izonta l reservoir , a d qsc32 - 4 0 0 STB/D.

Substitution into Eq. 3.23 yields

(10.3308)(p~, - p3m2 ) + (18.2574)(p2m2 -- pm m - - m ) • 3,2 ) + (18.2574)(P4,2 P3,2

V b . . . . . ~\ t l+ l __ (~)3,2 ] . . B +(10"3308)(P~,3 - P3';2 ) - 400 = ~ [1,B)3,2

(3.26)

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 ~0 n 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 . 2 7 a )

~y° = { } (3.27b)

~z,, ={}

Substitution of Eq. 3.27 into Eq. 3.1a results in

(3.27c)

Page 78: Petroleum Reservoir Simulation a Basic Approach

50 Chapter 3 Flow Equations Using CVFD Terminology

) x

n'.l [ °+'n, I i!iiiiii'i!iii I n;' 1 [:!ii',i~i~ii)~)J~il n?l

In'-I (b) gn = {(n'nx),(n-1),(n÷l),(n÷nx)}

(c)

(a) Vn={(n-1),(n+1)} I n'lnx I

Vn = {(n-nxny),(n-nx),(n-1),(n÷ 1),(n+nx),(n+nxny)}

Figure 3-3 A block and its neighboring blocks in 1D, 2D, and 3D flow using natural ordering.

~0 = { ( n - 1 ) , ( n + l ) } w { } u { }

= { (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.28)

(3.29a)

~y. ={(n-nx),(n+n~,)} (3.29b)

Substitution of Eq. 3.29 into Eq. 3. la results in

(3.29c)

lp, = { ( n - 1 ) , ( n + l ) } w { ( n - n x ) , ( n + n x ) } u { }

= { (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.30)

(3.31a)

lpy,, = {(n-nx) , (n+nx) } (3.31b)

lp~. = {(n-nx ny),(n+nxny) }

Substitution of Eq. 3.31 into Eq. 3.1a results in

(3.31c)

lp, = { (n -1 ) , (n+ l ) } u { ( n - n x ) , ( n + n x ) } U { ( n - n x n y ) , ( n + n x n y ) }

= { ( n - n x n y ) , ( n - n x ) , ( n - 1 ) , ( n + l ) , ( n + n x ) , ( n + n x n y ) } . (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,

Page 79: Petroleum Reservoir Simulation a Basic Approach

3.2 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 51

, , , K P , - P n ) - r , , , ( ,-Zn)]+q,~ [( )~+'-( )~], (3.17) leap.

where transmissibility T~, m is defined as

m m T':r~,,, = T,~,.¢_~ - T m (3.33a) Xi=l/2, j ,k

Tn m = T m - T m ( 3 . 3 3 b ) Tnx,n n,nT-nx Yi,i~l/2,k

T m = Z m - - T m (3.33c) n~-nxny ,n n , n T n x n y Zi,j ,k ~ l l2

m In addition, fluid gravity Yl,, is defined as

m

~nm, nT-1 -~ ~]nT-l,n --~ ~m (3 .34a) i4-1/2,j,k

~nmnT_n : ~m __ m , nT-n,,n = Xi,j~l/2,k (3.34b)

7~ = y m _ ~ n,nTnxny nT.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 L/j=l

i=1 i=2 i=3 i=4

Figure 3-4 2D reservoir description in Example 3.3

Page 80: Petroleum Reservoir Simulation a Basic Approach

52 Chapter 3 Flow Equations Using CVFD Terminology

Solution

Block (3,2) in Figure 2-14 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 .1a resul ts in ~07 = { 6 , 8 } u { 3 , 1 1 } u { } = {3,6,8,11}.

The application of Eq. 3.17 produces

~ , T~,~ [(p~' - P7 ) - 7,.7 (Z, - Z 7 )1 + q2, = acAt IEIP 7

which can be expanded as

(3.35)

T3,~ [ ( P 7 - P? ) - "y3m7 (Z3 - Z7 )] -]- T6m7 [ (P6 - P7 ) - 'Y~,7 (Z6 - Z7 ) ]

-}-T£,~ [ (P8 - p~n ) _ ~78m7 ( Z 8 _ Z7 )] .,~ Tl~7 [(Pl~ -- P7') -- }/11,7 ( Z l l - Z7 )]

..]_ m Vb7 [ ( ~) ]n+l ~) n

Here again,

kxA" = 0 .001127x 270 x (300 x100) = /~BAx 2 x I x 250

(3.36)

18.2574 STB/D-psi (3.37)

kyAy 220 x (250 x 100) m m 7"3. 7 = T~,.7 = f l ~ - 0 . 0 0 1 1 2 7 x

ttBAy 2 x 1 × 3 0 0 - 10.3308 STB/D-psi (3.38)

Z 3 = Z 6 = Z 7 = Z 8 = ZI! for a horizontal reservoir, and q,~c7 = - 4 0 0 STB/D.

Subs t i tu t ion into Eq. 3 .36 g ives

(10 .3308) (P3 - P7 ) + (18 .2574 ) (p6 - P7 ) + (18 .2574) (p8 - P7 )

(3 .39) +(10.3308)(p1' ] - P7 ) - 400 = ----TV~ tt~)7r/(~\n+l - - ('-~)7 ]"

a c a t /~ / 5

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} , and ~ 0 = {7,31} .

Page 81: Petroleum Reservoir Simulation a Basic Approach

3.2 Flow Equations Using CVFD Terminology 53

i=1 i=2 i=3 i=4 (a) Reservoir representation.

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 ,

17 18 1~9 20 j=2 k=2

13 14 15 16 j=l

k=l

9 10 11 12 =3

5 6 7 8 =2

1 2 3 4 =1

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 . . . . ( ~ x n + ] (~1 n

Z T/.19 [ (P? -- Pl9 ) - yt.m19 (Z, - Z,9 ) l + q,";,~ - ~ I_t~),9 - (B)19 ]"

This equation can be expanded as

T m r / m m m m - m m m 7,19 l iP7 -- PI9 ) -- ~7,a9 (Z7 - Z19 )] + T]5,19 I(PI5 - P19 ) - ~'15,i9 (Z15 - Z19 )]

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 - - m m "t-T23,19 [ ( P ~ - el9 - '~23,19 (Z23 - Z19 )l "1- T31,19 [(P31 P19 ) - ~/31,19 (Z31 - Z19 )]

vb, ,.¢...1 ¢ . -t-qs"~t9 - - - - t t " ~ - ) 1 9 - ( n ) 1 9 ] . a c A t /5

For block 19, Z15 = Z~8 = Z,9 = Z2o = Z23, Z 7 - Z~9 = 33.33 ft,

Z31 -Z19 = - 3 3 . 3 3 ft, q " = - 1 3 3 . 3 STB/D. Since . SCl9

A x 1 8 , 1 9 = A X 2 o , 1 9 = A x = 2 5 0 ft,

(3.40)

(3 .41)

Page 82: Petroleum Reservoir Simulation a Basic Approach

54 Chapter 3 Flow Equations Using CVFD Terminology

AYl5,19 : Ay23,19 : A y = 3 0 0 It, Z~Z7,19 ~--- / ~31 , 19 : A Z : 3 3 . 3 3 i f , a n d kt , p , a n d B

are constants, then

m 31,19 7 c p g = 0 . 2 1 5 8 4 X 1 0 -3 X55X32 .174=0 .3819 psi/It,

m m 270 x (300 x 33.33) 6.0857 STB/D-psi (3.42) T18,19 = T20,19 = #c kxax - 0.001127x MBAx 2 x I x 250

kyAy 220x (250x33 .33 ) = 3.4436 STB/D-psi (3.43) m m T15,19 : T23,19 : # c - - 0 . 0 0 1 1 2 7 X

~BAy 2 x 1 x 300

kz Az T7,~9 : T3r~,19 = # c - 0.001127 x

ktBkz

Substitution into Eq. 3.41 gives

50 x (250 x 300)

2 x l x 3 3 . 3 3 = 63.3944 STB/D-psi (3.44)

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]

-133 .3 = Vt~9 [(£'ln+l -- (~)19 ]" a cAt t~B~19

Eq. 3.45 corresponds to Eq. 2.47 in Example 2.6, which uses engineering notation.

(3.45)

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 direc- tions (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 general ized 3D flow equat ion in the r-O-z space for b lock n - - t e r m e d b lock (i, j , k ) i n engineer ing notation, mean ing 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 ) }

~Oo. = { ( i , j - l , k ) , ( i , j + l ,k)}

Wz,, = { ( i , j , k - l ) , ( i , j , k + l)}

Substitution of Eq. 3.46 into Eq. 3.1 b produces

(3.46a)

(3.46b)

(3.46c)

Page 83: Petroleum Reservoir Simulation a Basic Approach

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 Coord ina t e s Using C V F D T e r m i n o l o g y 55

~)n = ~) i,j,k

= { ( 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.47)

= { ( 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.

Table 3-1 Functions in Cartesian and Radial-Cylindrical Coordinates

Coordinate

Transmissibility

Set of neighboring blocks along a direction

Number of blocks along a direction

Function in Cartesian Function in Radial- Coordinates Cylindrical Coordinates

X r

y 8

Z Z

Tx T

L To

Tz T

~z

~ x ~ r

~/Jy ~ 0

Wz

n x n r

ny n 0

n z n z

The flow equation for block (i, j, k) , represented by Eq. 3.14a, becomes

. . . . . . . . z ,, ...... ttPi,:,k-1 - Pij,~ ) - 7~,:,k-1 / 2 t i,j,k-1 - Zi,:,k )1

+To, ~ [ ( p i,mj_ l,k __ p m m Z i,j . . . . . . i,j,k ) -- ~ i , j - 1/2,k ( i , j-l ,k -- Z i , j ,k )]

Page 84: Petroleum Reservoir Simulation a Basic Approach

56 C h a p t e r 3 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

i - ,j, m - - m ) rn -I-TIn . . . . [ (Pi - l , j , k Pi,j ,k - "~i-1/2,j,k (Z i - l , j , k -- Zi,j,l: )]

+T~t,:,j,, [(p,"~ j,k - p m m , i.j.k ) -- ~i+1/2,j,k (Zi+l, j .k -- Zi , j ,k )]

+ T i n [(P~,j+l,k Pi,j,k - - Y i , j 4 - 1 / 2 , k ( Z i , j + l , k , , oi , j t l12,k

+ T T , + . . m m 7 , Z , , z j . . . . | [Pi j k+l -- Pi,j,k ) -- Y i j/¢+1/2 ( i j k+l -- Zi, j ,k )]

v~ -(~),,J,~]" qs~,j~ a A t t " B / i ' j ' k

Eq. 3.14b, the flow equation in CVFD terminology, retains its form:

(3 .48a)

"' - (~),,j.k ]. (3 .48b) O~cA t t \ B/ i 'J 'k

(3 .51a)

(3 .51b)

(3.51c)

Eq. 3.17. The resulting equations are listed below.

~Pr. = {(n--1) , (n+l)}

IPO, ' = { ( n - n r ) , ( n + n r ) }

~Pzo = { ( n - n r n o ) , ( n + n r n o ) }

E T,m r~ m m m ~ , , . 1 + m ---- i,,,j,k) l (Pt - Pi,j,k ) - Yt,(i,j,k) (Z t - L i j k )1 q,c j k

Eq. 3.15, which defines transmissibilities, becomes

T m = T m T m (3 .49a) ( i T - l , j , k ) , ( i , j , k ) ( i , j , k ) , ( i T l , j , k ) -~ ri~]/2,Lk

T m - T, m T, m (3 .49b) (i,jTl,k),(i,j,k) -- (i,j,k),(i,jTl,k) ~- 0i4~1/2,k

T " = T m T m ( i , j , k T - 1 ) , ( i , j , k ) (i,j,k),(i,j,kTl) = (3.49c) Zi,j,k~.ll2

Transmissibili t ies in radial-cylindrical coordinates, Trm 2,j,k , T l'nOi,j4.1/2, k , and T mz~,j,k,t/2 are

defined by Eq. 2.69. Note that gravity terms, as described by Eq. 3.16, remain intact for

both coordinate systems.

m m = Y ~ = Yi~Z/2,j,~ (3.50a) ~ ( i ~ - l , j , k ) , ( i , j , k ) ( i , j , k ) , ( i ~ l , j , k )

m m m ~(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 equa- tions that correspond to Eqs. 3.31 through 3.34 with the aid of Table 3-1 and then use

Page 85: Petroleum Reservoir Simulation a Basic Approach

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 any B l o c k Order ing 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 - n r ) ' ( n + n r ) } U { ( n - n r n ° ) ' ( n + n r n ° ) } (3.52)

= { ( n - n n o ) , ( n - n r ) , ( n - l ) , ( n + l ) , ( n + n ~ ) , ( n + n ~ n o ) } .

Now the flow equation for block n in 3D flow can be written again as Eq. 3.17,

Z T _ _ p m m Z . . . . . q m V b . ~ ~ IclPn l.n l(Pt . ) - ~]l,n ( I - - Z n )] "1- scn -- - - c~ t 1( ):+1 -- ( ) : ], (3 .17)

where transmissibility T~I,~ is defined as

T m = T 'n T" (3.53a) 7:l,n n.nT-1 ~ rlz.1/2j,k

Tn m = T m =_ T , m ~-n r ,n n,nT-n r Oi.jxll2, k (3.53b)

T m = T m T m gi,j,k~ll2

In addition, fluid gravity y~., is defined as

m ~n,nT1 ~" m m Yn+l,n =- Yi~-l/2,j,k

n,nTn, nT-nr,n ~ ~i,j~-ll2,k

(3.54a)

(3.54b)

n:gnrn o,n -- i,j,k T-I 12 (3.54c)

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 bound- aries 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 Car tes ian coordinates , and the e lements conta ined in sets ~0r,, , ~00.,

Page 86: Petroleum Reservoir Simulation a Basic Approach

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

3-1

3-2

3-3

3-4

3-5

3-6

3-7

3-8

3-9

Exercises

Is 0 the same as { } ? If not, how does it differ?

Write the answers for 2 + 3 and {2} u {3}.

Using your own words, give the physical meanings conveyed by Eqs. 3.2a and 3.2b.

Consider the 1D reservoir representation in Figure 2-6b. Find ~p~, ~P2, ~03 , and ~04 .

Consider the 2D reservoir representation in Figure 3-4. Find ~p, for n = 1,2,3,...12.

Consider the 3D reservoir representation in Figure 2-8c. Find ~0 for n = 1, 2, 3,...36.

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 ) .

Using the definitions of ~n , ~0x,, , ~0y. , and ~Pz. along with the aid of

Figure 3-3c, prove that ~0 = ~Pxo u ~y. U ~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.

Page 87: Petroleum Reservoir Simulation a Basic Approach

3.6 Exercises 59

(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 ~f12 and 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 No-flow t

flow boundary

3-10

Figure 3-6 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 9 • • ®

4 5 6

3-11

y 1 2 3 y ® • •

~-x

Figure 3-7 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.

Page 88: Petroleum Reservoir Simulation a Basic Approach

60 Chapter 3 Flow Equations Using CVFD Terminology

3-12

3-13

3-14

(b) Write the flow equation for each interior block in this reservoir.

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.

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 of 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.

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 md and q0 = 0 .17 . 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

z ¼y ~x

Figure 3-8

J J J

I 2200psia I ] 1 2 3 900 psia 5 ft

4

400 ff "1

1D reservoir representation in Exercise 3-13.

325 STB/D

I I I 270~ psia

Yx 2 3 500 ft

I ~ ~-I Figure 3-9 1D reservoir representation in Exercise 3-14.

Page 89: Petroleum Reservoir Simulation a Basic Approach

3.6 Exercises 61

3-15

3-16

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).

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 2D reservoir representation in Exercise 3-15.

I, 200 ,I Figure 3-11 2D reservoir representation in Exercise 3-16.

Page 90: Petroleum Reservoir Simulation a Basic Approach

Chapter 4

Simulat ion with a B lock-Centered Grid

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 vari- able in space. In contrast, the gridpoints (or nodes) are selected first in the point-distrib- uted 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-cen- tered 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 inte- rior 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 transmis- sibilities 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 well- defined. 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 , Ax i , Axi. 1 ), gridblock bound- aries ( x~_l/2 , x i . l /2 ), distances between the point that represents gridblock i and grid- block boundaries ( 6x i , bx÷ ), and distances between the points representing these gridblocks ( Ax i 1/2 ' ~ i+1 /2 )"

63

Page 91: Petroleum Reservoir Simulation a Basic Approach

64 Chap te r 4 S imu la t ion wi th a B l o c k - C e n t e r e d Gr id

Ax 1 I, ,I,

I 1 Left Boundary

Figure 4-1

2 3 nx-1 n x l Right Boundary

Discretization of a 1D reservoir using a block-centered grid.

I

'( z~i-1/211"~ . . . . 8xi- ~[~' 8xi+AXi+l/2~,.ll F~I

Xi.1 Axi_ 1

r

xi AX i

r

xi-1/2 xi+1/2

• I+1 I

Xi+l Axi+l

p-i

Figure 4-2 Gridblock i and its neighboring gridblocks in the xdirection.

Gridblock dimensions, boundaries, and locations satisfy the following relationships:

nx

Z A x i = L x , i=1

- 1 t3x i- = 6xi. - 1/2Axi , i = 1,2,3...n x ,

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 x - 1 (4.1)

Xi+ 1 = X i "1- A X i + I / 2 , i = 1 , 2 , 3 . . . n x - 1 , x 1 = / / 2 1 ~ 1

Xi- l /2 = X i - - 6 X i- = X i - - 1 / 2 / ~ i , 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. An irregular

grid implies that block sizes in the direction of the x axis ( Ax i ) and the y axis ( Ayj ) are nei-

ther 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 discretiza- tion 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

Page 92: Petroleum Reservoir Simulation a Basic Approach

4.2 Reservoir Discretization 65

AY4 • • O • •

"¢ |

AY 3 • i o n • • n I~3)n ~ ~ n

/"Y2 O • • • •

• • •

AXl ~ ~ Ax2 ~ . Ax3 ~ . A x 4 Ax 5

Figure 4-3 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 ~ ~ ' 7'5 ft

Figure 4-4 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

Page 93: Petroleum Reservoir Simulation a Basic Approach

66 Chapter 4 Simulat ion with a Block-Centered 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 .18 . The points representing gridblocks are equally

spaced; i.e., Axi,1/2 = Ax = 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, = -150 STB/D. Fluid properties are B = 1 RB/STB and / * = 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 equa- tions 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 termi- nology 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 ( b w ) and the reservoir east boundary ( b~: ), and those along the y axis are termed the reser- voir south boundary ( b s ) and the reservoir north boundary ( b N ). Reservoir boundaries along the z axis are termed the reservoir lower boundary ( b L ) and the reservoir upper boundary ( b U ).

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 (injec- tion) term and the accumulation term are the same for both interior and boundary grid- blocks. The engineering approach involves replacing the boundary condition with a no-

flow boundary plus a fictitious well having a flow rate qm that reflects fluid transfer SCb,bB

between the reservoir boundary i tsel f (b) and the boundary b lock (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 1 D, 2D, or 3D reservoir, respectively). For the flow equation for a boundary gridblock, the number of flow terms

Page 94: Petroleum Reservoir Simulation a Basic Approach

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 grid- block.

z¢ .._." f W

sJ "•>

E X

bN

i I

di. j ~ . ~ bw ,- bL /

Figure 4-5 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--~At i t s ) . - t ~ ) ,

or, in terms of potentials, as

(4.2a)

ra m ~ m x j ¢ ~ "~ m,n j¢_ m Vbn r i ~ x n + l _ _ ( ~ ) : ] ~TI,.(aP,- .) 2.,qsc, q.<.-a--~tttT). feW. le~.

(4.2b)

where ~ . = the set whose elements are the existing neighboring gridblocks in the reser-

voir, ~. = the set whose elements are the reservoir boundaries ( bi.bs,bw,be,bN,b U ) that

n m n are shared by gridblock n , a d q~c, 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 grid- blocks 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

Page 95: Petroleum Reservoir Simulation a Basic Approach

68 Chapter 4 Simulat ion with a B lock-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 . . . . . . . . . Z q., + qm t.(i4.k)i~.Pl --Pi4.k)--Yt.(i4.k)( t--Zi.j.k)] + Z s~.,.j.,~ ~¢,.:.~ lEq)i,j,k la-~i,j,k

(4.2c) -- Vbi,j,k [(~nql __(~.~,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 prob- lems, 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 bound- aries, whereas a boundary reservoir gridblock has one neighboring gridblock and one res- ervoir 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 grid-

block, including boundary gridblocks. These two reservoir boundaries ( bL,b U ) are dis-

carded 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 grid- block 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 reser- voir boundaries. Therefore, a boundary gridblock that falls on one, two, or three reservoir boundaries has five, four, or three neighboring gridblocks, repectively. The above discus-

sion 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.

Page 96: Petroleum Reservoir Simulation a Basic Approach

4.3 Flow Equation for 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 m T ~ t ~ " Iff~mx-[ - m Vbi l@)n+a_(0B)T] Tmx, ,,2 ((I)i-1 - ( I ) i ) ' ~ 3;+1/2 ( t i + 1 - i ) q,c, = a At

(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 2 m .

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 - ¢ b m ' l + T m tOm_or~)+q , , = E~ [(~p)l. 1 _(.~)~q~.] (4.4a) Xl_I/2 \ 0 = 1 " x>t/2 \ 2 scI a At g

(1/2) AX 1 (1/2) ~ n x ~_1 I.a ,,._1 I.,~

~..;. .... I" / / "l .... ;.... -...o....I" I • I • I...o...j

o I ~ ~ ~ nx I nx+~ Left Boundary Right Boundary

Figure 4-6 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.,

q m m s%, : r2.2 ( % - o l )

Substitution of Eq. 4.5a into Eq. 4.4a yields

q" +L~ ( o ° ' - o T ) + q " v~, i(~)71 q~ = _ (=),n ]

sc~, v ,1 2 sc 1 • ~a a At 15 B

(4.5a)

(4.4b)

Page 97: Petroleum Reservoir Simulation a Basic Approach

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 : { b w } ,

and by observing that ~ q ' ~ = 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 ~ iff~m _ l f f ~ m _1_ m m m qm Vb ~) n+l (~)"l n -1 n~ - - nx ) T~ ,12 (lff~n +.1 - - I ~ n ) "~ [(--~)nx - - . ~ . , , . ( 4 . 5 a ) x._,:2 ~ .~. . x x sc.~ acAt

The second term on the LHS of Eq. 4.6a represents the rate of fluid flow across the reser- voir 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 Cm .... = ( n~+l -- (1)m~) qs%~ Xnx+ll2

Substitution of Eq. 4.7a into Eq. 4.6a yields

T m (lff~m lff~mx.jt_ m nx..}_ mnx gbnx ~ n+l ~ ...... , -- ,~-~- . ) q ..... q,~ - ~ t [ ( ~ ) . ~ - ( ) : ]

(4.6a)

(4.6b)

The above flow equation can also be obtained from Eq. 4.2b for n = n x , ~,x = {nx - 1},

~, = {bE} and by observing that ~ q m = qm and T m = T m x "~ ,n x SCbE,n x n x -1,n~ xn x --1/2 °

For 2D reservoirs, the flow equation for interior gridblock (i,j) is given by Eq. 2.37,

T m m _ t ~ j ) + T m (~mi_l , j --I f f~m " ~ + T m ( f b m m Yid-t/2 ( ~ i , j - I , xi 1/24 i , j :" xi+l/2, j \ - - i+l,j - - lff~i,j )

+r~.., 2 (o,mj+. _ ~,mj) + qm -- Vbi,j [ (~))n41 -- (~))n 1 (4.8a) ~": acAt ~'B'i'J "B'i'J ~"

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)},

and by observing that

~ i , j = { }

qm sc,.j, = 0 for an interior gridblock, T m = T m and (i,j~-l),(i,j) Yi,jzt/2 '

le~i,j

m T(iTl , j) ,( i , j ) = Tm XiTl/2, j *

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

Page 98: Petroleum Reservoir Simulation a Basic Approach

4.3 F low Equat ion f o r Boundary Gridblocks 71

(4.9a) ~ m e(1)m32i iff~m \ + m Vb~l , , ' ~xn+ l ~ n +Iv ..... 1' 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

( q m ...... ~,1~ ) that transfers fluid across the reservoir south boundary to gridblock (3,1); i.e.,

q'~ =T~7 ..... ((I)~3~0 -- (1)3ml) sCt, s,(3,ll ., .

Substitution of Eq. 4.10 into Eq. 4.9a yields

(4.10)

m m m m T m m m q + T ( O - O3,1) -l- ((1) 4,1 - O3,1) SCbs,(3,I) X3_1/2,1 2,1 X3t1/2,1

j f _ T m ( ~ m ~ m \ _ l m Vb3,1 [(~ - 3 , ) q ..... )3~ 1 e n = -(-~)31]. Y3,1+1/2 \ 3,2 . . . . acAt ~ ,

The above flow equation can be obtained from Eq. 4.2b for

n-- (3,1), ~03,1 = {(2,1),(4,1),(3,2)}, ~3,1 = {bs}

(4.9b)

Z m qm = qm m = T m , T(4,1),(3,1 ) = T m , and and by o b s e r v i n g tha t .... <3., ..... ~ , ' , ' T(2,1),(3,1) x3 ...... x ........

m T(3,2),(3,1) = T m y3,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

T y r o cop . . . . . . . . . . . . \ 1,0 - - (I)~1) "I-- TX71,21 ((ID ~, 1 - (I)l 1) "l- T~ .. . . . . ((I)2'1 - - (I) l ' l )

(4.11a) Wbl t ~ n+l ~ n

. , ,n _ . - ( 3 ) , , 1 . +T~'2,+1, (dX:l iT:-@li ')+q,q, acAt

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 = T m ((])m _ (i)1,%) ( 4 . 1 2 ) SCbs,(I,1 ) YI,I 1/2 \ 1,0

Page 99: Petroleum Reservoir Simulation a Basic Approach

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.,

q m _ T m ( ~ , n m SCbw,(I,I) - - Xl 1/2,| \ 0,1 - - ( I ) l , 1 )

Substitution of Eqs. 4.12 and 4.13 into Eq. 4.11 a yields

(4.13)

........ "1- q2~,( l ,b . . . . ( ( ~ 2 ' 1 - - ¢ l m ] )

.jeT m (ibm i~rn\_}_ m gbLl r(£V+, _ (£3. "Y ....... \ - - 1 , 2 - - 11) q ' q ' - ~ - A t . . . . 11 , B / l , 1 ] •

' a c t / ~ '

(4.11b)

The a b o v e f low e q u a t i o n can a lso be o b t a i n e d f r o m Eq. 4 .2b for n - ( 1 , 1 ) ,

~P1,1 = {(2,1),(1,2)} ~11 = {bs,bw} and by observing that ~ qm m.... + m , ' , , s % u > = q s % (11) q.%,,,,.

1~1,1

m m T(2,1),(1,1 ) = T" and T(1,2),(1,1 ) = T m

Xl+I/2*I ' Yl,l+I/2 "

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,,, +q2° - ,.,,_,It,_,), - - ( ~ ) , l (4.14)

For interior gridblocks n, ~p, = { n - l , n + l } and ~, = { } . Therefore, ~qs~,° = 0

The gridblocks in this problem are equally spaced; therefore, T m = T m = T " l , n XnTll 2 X '

where

k ~ A x - 0.001127 x 15 x (1200 x 75) = 0.1521 STB/D-psi T~ = tic/~BAx 10 x 1 x 1000

(4.15)

, , , q m q~' = 0 . For gridblock 2, n = 2 ~,9 2 = {1,3} ~2 = { } ~ ...... = 0 , and ,c2

Therefore, Eq. 4.14 becomes

Page 100: Petroleum Reservoir Simulation a Basic Approach

4.4 Treatment o f Boundary Conditions 73

Vb2 1"((~ ]n+l -- ((~) n ] (4.16) (0.1521)(p~' -p~")+(0.1521)(p 3 -p~ ' )= a~-~L,~,2 B 2 •

For gridblock 3, n 3 , W3={2,4}, ~3={} ~q~ , .3=0 and q" =0 ~ 1 s c 3 •

I E ~ 3

Therefore, Eq. 4.14 becomes

m m + m V~ [(q~);÷l q~. (4.17) (0.1521)(P2 -P3 ) (0"1521)(P4 - P 3 ) = a------~ B " - ( ' n )3]"

For gridblock 4, n = 4 , q-'4 = {3 ,5} , ~ , = { } , ~---~q,'~,4 = 0 ,

and qm = -150 STB/D. Therefore, Eq. 4.14 becomes sc 4

m m -t- 21 m 150---~ Vb: [ (~ ' )4+1-(~B)4 ]. (4.18) (0.1521)(P3-P4) ( 0 . 1 5 ) ( P 5 - P 2 ) - acAt t~

44 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 gra- dient 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 generali- zations 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 ) reflects fluid transfer between the boundary block (bB) (e.g., grid- scb.b~ block 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 grid- block 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

q m ,c~, = T~m (~o - ~ ) (4.5a)

Page 101: Petroleum Reservoir Simulation a Basic Approach

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/2 in terms of the transmissibilities between gridblock 0 and

the reservoir west boundary b w and between gridblock 1 and the reservoir west boundary

b w . The result is

T" - kxAx " k x A m k x A x m T m | m

= [/Jc f i b r i l / 2 = [tic" fl-----~l ]1 = 1/2[ f lc /~B(--~/2)], - ~ b~,~ = ~T0,~

o r

(4.19a)

To, ~ = T~, 1 = 2T~'2 (4.19b)

Substitution of Eq. 4.19b into Eq. 4.5a gives

qm = 1~Tin ({~)m__ sc~.,1 / 2"~ ,1~ o 0 1 ) (4.5b)

Similarly, for boundary gridblock n x , which falls on the reservoir right boundary,

qm : Z m (~i)m -- ~pm ~ (4.7a) SCbE,n t ~ Xnx+ll2 ~ n x + l n, :

and

qm = L/Tm (~.}m -- ~)m ) (4.7b) $CbE,n ~ /'2 bE,rt x \ nx+l n x

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" is SCb ,bB $Cb,bB

qm = T m d~rn - - m SCb,hB bB,bB ~* ( bB** ~ ) b B ) (4.20a)

o r

qm = ~ T Y (¢D m ~m SCb,b, b,bB bB**-- bB) , (4.20b)

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 TbmbB = transmis-

sibility between reservoir boundary (b) and boundary gridblock bB.

Page 102: Petroleum Reservoir Simulation a Basic Approach

4.4 Treatment o f Boundary Condit ions 75

(1/2) ALbB b

...... J: . . . . . . . . . . . : ' . . . . . . . . . . . b,,.%cb,b8 j

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

Figure4-7

(1/2) ALbB

tbB

Direction L Boundary

Definition of terminology used in Eq. 4.20.

In the following sections, we derive expressions for q~ under various boundary condi- SCb ,bB

tions for a block-centered grid in Cartesian coordinates. We stress that this rate must pro- duce 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 pre- sented 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.

4.4.1 Speci f ied Pressure Gradient Boundary Condition

For boundary gridblock 1 shown in Figure 4-8, which falls on the left boundary of the res- ervoir, Eq. 4.20a reduces to Eq. 4.5a that can be rewritten as

k A . . . . kxAx]m ( ~ o - # ° ? ) qmsc~j - z m - x.2 , (~" - ~ " ) = l tic ~ - - - B - ~ - ] l / 2 ( q b o o - ~ " ) = [ f l , - -~-1/2 ~Cl/2

- kxAx m ~ m A k A ,, ~ m kxAx m ~dp m -= [~c--~-],,2[-~,~ ~= -~/Jc-~ll,2 ~,~ = -[,8c---~-], ~ • (4.21)

dp dx bw

• I

Left Boundary

3 nx-1

dp bE dx

I • I " " nx I

Right Boundary

Figure 4-8 Specified pressure gradient condition at reservoir boundaries in a block-centered grid.

Page 103: Petroleum Reservoir Simulation a Basic Approach

76 Chapter 4 Simulat ion wi th a Block-Centered 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 T m ( ~ m _ _ l ~ m - kxAx m f ~ ) m ( i ) m = ( n~.l ) = [~c ---- 'B~]n +1/2 ( n t l - - n ) SCbE ,nx Xnx+l/2 • ?Ix • v x

_ k Ax ~ ( ~ m dom~ A m = [#c - - ~ - ] , +,2" °,+l - - , , , - k . . . . OOI

x ~nx+l/2 ~ [#c - ~ ] n x ~-1,2[~- X bE. ] ( 4 . 2 2 )

__k~Ax m Ot~ ~ =[ f l~- -k A m ~ t,~B ]n•+l/20X Ib E ~uB In" Ox Ib e "

Here again, we used the reflection technique shown in Figure 4-6 with respect to trans- missibility 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,

A m kl I m 0(I) l q,; .... = - [ f l c ~ - ] b , -Eb

or, after combining with Eq. 2. l 0,

(4.23a)

klAl m Op Im O-~ll ~

and at the reservoir right (east, north, or upper) boundary,

(4.23b)

klAz-m 3 0 ~

or, after combining with Eq. 2.10,

(4.24a)

k;A; m 3P Im m OZ q m =[flc__~.ff]bB[_~b _~,b_.~b]

where l is the direction normal to the boundary.

(4.24b)

4 .4 .2 Speci f ied F low Rate B o u n d a r y Condi t ion

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

Page 104: Petroleum Reservoir Simulation a Basic Approach

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 -- ¢~Pl ) : qsp,,'c ( 4 . 2 5 ) SOb W ,1 XI/2 \ ~ 0

and Eq. 4.7a for boundary gridblock n becomes

qm _ T m (¢b,n ¢ ~ SQ, E,,," - - . . . . . . . " ~ - - n . + l - - . ) = q.p.," (4.26)

In general, for a specified flow rate boundary condition, Eq. 4.20a becomes

q~ . . . . . . = qspsc (4.27)

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.,

T~ m qm _ b,bB

....... ~ T;,~ q,e,,~ (4.28)

I~P b

where ~0 b 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 ktAl m b , b B flB--~/2)']bB (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 m rn (e.g., ¢0 = ¢~ for gridblock I and ap" = ap m for gridblock n ). In either case, Eq. 4.5a

n x ny+l x

for boundary gridblock 1 reduces to

qm = T" (~o -~ '~) = 0(~o -~ '~) = ~m~ (O) = 0 '~Cb W ,1 XII2 -

and Eq. 4.7a for boundary gridblock n x reduces to

(4.30)

Page 105: Petroleum Reservoir Simulation a Basic Approach

78 C h a p t e r 4 S i m u l a t i o n w i t h a B l o c k - C e n t e r e d G r i d

qm _ T m ( d i )m ( b i n ~ _ O r ( ~ m ~ m ~ = T x 7 . . . . ( 0 ) = 0 - - 3~ 1 / 2 \ n + 1 - - ~ n x " - - ", n ~ + l - - n x ," SCbE,n x nx+ x n x

In general, for a reservoir no-flow boundary, Eq. 4.20a becomes

qm = 0 SCb ,bB

(4.31)

(4.32)

For multidimensional flow, qm is set to zero, as Eq. 4.32 implies, for each boundary sCb,bO

gridblock that falls on a no-flow boundary in the x , y, or z direction.

4 . 4 . 4 Speci f ied B o u n d a r y Pressure Condi t ion

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 m (qbm_qb?) = T "~ • %, x,,2, 0 x,,2[Oo-O~ + o ~ o71 (4.33)

= L,~21(o~ n - o ~ ) + ( o ~ - o7 ) ] = L'~,2 ( ° o - o,~ ) + L~, ( o ~ - • 7).

Combining the above equation and Eq. 4.19b yields

qm __ )~2Tm (¢~m sc~,,- 2 0,~ o-¢/~)+) '~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 reser- voir boundary from the other side (point 0); see Figure 4-6. That is,

T, m O m 0,~ ( 0 - O ~ ) = T~,~ (O~ - • 7). (4.35)

Substitution of Eq. 4.35 into Eq. 4.34 and making use of Eq. 4.19b yields

qm = Tb ~ ~ (O~ -- • 7) . ( 4 . 3 6 ) sc~v ,t

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 ~ (4.37a) s~,bB = Tb,bB ( b b~"

Eq. 4.37a can be rewritten in terms of pressure as

q m m ra m Z = T~ bB [(Pb -- Pbe) -- )16 bR ( b -- ZbB)] (4.37b) $Cb,bB •

Page 106: Petroleum Reservoir Simulation a Basic Approach

4.4 Treatment o f Boundary Condit ions 79

where 7bmbR is nothing but fluid gravity in boundary block bB and T" = transmissibility b ,bB

between the reservoir boundary and the point representing the boundary gridblock and is given by Eq. 4.29,

klAl ]m TbTb, = [tic # B - ~ / 2 ) b, (4.29)

Combining Eqs. 4.29 and 4.37b gives

B~--~/~/ I~[(P~ . . . . Z qm = [tic -- PbB)-- 7b,bBt b -- Zb~)] (4.37e) SCb'bB 2)

pbw // " ' 1 " 1 • I • I ' 1 " 1 'pbE

Left Boundary Right Boundary

Figure 4-9 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 for a boundary gridblock falling on a specified pressure boundary in the x, y, or z sobs,

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 pres- sure 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 condi- tion. Following this treatment, the problem reduces to finding the pressure of other grid- blocks 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.

Page 107: Petroleum Reservoir Simulation a Basic Approach

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

r " . I , I , li I ........... q ............ [ .... r ..... I ..... ] = ? ........... ~ No-flowboundary • !-" ~000. ,! !, ~000, , ! ' 7

Figure 4 -10 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 ~ l T , ( P I m x jl_ "~-"~ m .+ m g b ~ n+l (~ n

. . . . . o (~)" ] - P . ) 2..,q.c, q,~ [ (~) . (4.14)

From Example 4.2, T ~ = T ~ = 0.1521 STB/D-psi. l,n x

For boundary gridblock 1, n = 1 , ~0~ = {2 } , ~1 = {bw } ~ , q m ..~.qm and J SCbw,1 '

l~

qm = 0 SOl

Therefore, Eq. 4.14 becomes

O.1521(p~ ' -p~)+ " . =--L,-- , IV~ r(q~V+l ~b, - ( ~ ) 1 ] ( 4 .38 ) q'% ' acAt B

whore the rate of flow across the reservoir loft boundary is given by Eq. 4.37c,

q" =[flc kxAx 1"[ m "%; # B - ( - - ~ / 2 ) 1 ( P ~ - Pl ) - 7~.,1 ( Z ~ - Z1 )] ( 4 . 3 9 )

or

15x (1200×75) . . . . . . = 0.001127 × 10 x i ~ tt~t~u - p;') - 7~,,,, x O]

m qs%,, = (0.3043)(5000 - p~"). (4.40)

Page 108: Petroleum Reservoir Simulation a Basic Approach

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 - ( . ) ' ~ ] (4.41)

Z m For boundary gridbloek 5, n = 5 , ~'5 = {4}, ~5 = {bE}, q~,~ =qsc~,~ , and

qm = 0 Therefore, Eq. 4.14 becomes s c 5

Vb' [(q~):*' _ (q~):] (4.42) (O.1521)(p4 - p~') + q ~ = • acAt B B

where the flow rate across the reservoir right boundary (no-flow boundary) is

given by Eq. 4.32. For the reservoir right boundary, b - b E , 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~ ' ) = - - - ~ l t - ~ ) 5 vb' [/¢,n+l (~ n - (~)5 ] (4.44) acAt /5 /:¢

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.

b:° l ps,,.

Figure 4-11 Discr~ized 1D r m ~ o i r in Examle 4.4.

Solution

The flow equation for gridblock n in a 1 D horizontal reservoir is obta ined from Eq. 4 .2a by neglecting the gravity term, resulting in

~,tP, - P , ) ~ q ..... q,c t-[(

150 STB/D

... ~. _ asc ~ = 50 STB/D

(4.14)

Page 109: Petroleum Reservoir Simulation a Basic Approach

82 Chapter 4 Simulation with a Block-Centered Grid

From Example 4.2, T." = T" = 0.1521 STB/D-psi. l , n x

For boundary gridblock 1, n = 1 , ~ = {2} ,

qm = 0 Therefore, Eq. 4.14 becomes s c I

E ...~.q m and ~, = {b w } , q,~ . . . . . ,~W,1 '

lc~t

1 ~ mx..~ m Wb, [ / (~ \n+l ¢ n (0. 521)(p2 - P l ) q,%, - - - I L - - ) I - (~)1 ] (4.38) a ~At B

where the flow rate of a fictitious well for the specified pressure gradient at the res- ervoir left boundary is estimated using Eq. 4.23b,

~15 kxAx "m' ~PIox I O~XX bw q'~,c~., = - [ f l~ - - ~ - ] 1 ["~"lbw -- ~ ? ] (4.45)

= -[0.001127 x 1 5 x (1 2OO ×

75).] [-0.1 - O] = -152.145 × (-4). 1) 10×1

o r

q" = 15.2145. (4.46) SCb w ,1

Substitution of Eq. 4.46 into Eq. 4.38 results in the flow equation for boundary gridblock 1,

Vbl re ~b.j,+l (~ ~, ] (4.47) (0 .152 l)(p~' - p~' ) + 15.2145 = ~ , , ~ , , - , ~ , 1 ,

, qm =qm and For boundary gridblock 5, n = 5 ~5 = {4} , ~5 = {bE}, .~, ..... ,c,,.5 , le~ 5

qm = 0 Therefore, Eq. 4.14 becomes s c 5

(O.1521)(p4__p~)+qm aV__~t [(~)~+1 ¢ n • cb~, - - ( ~ ) 5 1

where the flow rate of a fictitious well for a specified rate boundary is estimated using Eq. 4.27; i.e.,

(4.42)

qm = 50 STB/D (4.48) SCbE ,5

Substitution of Eq. 4.48 into Eq. 4.42 results in the flow equation for boundary gridblock 5,

Vb5 r / • x n + l / (J~ xn 1 (0.1521)(p4 - p~") + 50 = ~ tt~)5 - t~)5 ] (4.49)

Page 110: Petroleum Reservoir Simulation a Basic Approach

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 o. 1 psi/ft • • • • b

No-flow boundary

y 300 ft ]

I ,x

J f 8 4000 STB/D 5 6

1 2 3 4 • • • • ft

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 ] ( 4 . 1 4 ) lelp n le~ n

Note that Axz,, = Ax = 250 ft, Ay l , 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 Tm= tic/~BAx 2 x l x 2 5 0

(4.50)

Tm tic kyAv = = 0.001127x Y ~ B m y

220 x (250 × 100)

2 x l x 3 0 0 - 10.3308 STB/D-psi (4.51)

Page 111: Petroleum Reservoir Simulation a Basic Approach

84 Chapter 4 Simulation with a Block-Centered Grid

For boundary gridblock 2, n = 2 ~'P2 = {1,3,6} ~2 = {bs.} and q" = 0 ) ) , ) sc 2 "

~ , q m =qm , where qm is obtained from Eq. 4.37c after discarding the gravity SCb s ,2 SCb S ,2

term, resulting in

q" = [fl~ k y A y ] . . . . )

s%, ItB(Ay / 2) 2 t P b s - - P2

220 X (250 X = [0.001127 X 100)]( 3000 -- P2)

2 x l X (300/2)

or

q" = (20.6617)(3000 - P2) SOb S ,2

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~')

+(20.6617)(3000- P2 )= 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" = 0 SCb w ,5

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~')

_ vb, [ (~ )71_(~ )~ ] o:At

For boundary gridblock 8, n = 8 ~8 = {4,7,12} ~8 = {be} and q" = 0 ) ) , sc 8 .

~,qm., =qm , where qm is estimated using Eq. 4.24b for the reservoir east scb E 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 -~-X b~ l=lO'O01127x, 2 x l

= 4564.35 X (0.1) = 456.435.

(4.52)

(4.53)

(4.54)

(4.55)

(4.56)

Page 112: Petroleum Reservoir Simulation a Basic Approach

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 )

+456.435= Vb ̀ [(--~)8 ÷I (~ n t:zAt B - ( ~ ) 8 ] "

(4.57)

For boundary gridblock11 n=11 Wn={7,10,12} 2~ll={bN} and q~ = 0 , i , SCll •

~ , qm,.,1 =q"'~,~.,1 ' where qscbtq,11 " 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 = T , m kyAv , . bN.~ "~'" = [fl~ p B - ~ y / 2 ) ]11 = 10.001127 X 2202 X 1X ( 3 0 0 / 2 ) X (250 X 100)] = 20.6616

(4.59)

for all values of l ~ ~PoN •

Substitution of Eq. 4.59 into Eq. 4.58 yields

20.6616 qm _ ,cb .... 4 x 20.6616

x (-500) = -125 STB/D

Substitution into Eq. 4.14 results in the flow equation for boundary gridblock 11,

(4.60)

m m m m m (10.3308)(p~ - Pu) + (18.2574)(pm - Pn) + (18.2574)(p u - P . )

- 1 2 5 = - ,,~,11 -,-E,11," a At /J /~

(4.61)

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,

Page 113: Petroleum Reservoir Simulation a Basic Approach

86 Chapter 4 Simulation with a Block-Centered Grid

Z T ' . . . . . .q_ ~ m m Wbr I ~) ~) , , n t P t - - P n ) 2~qsc, +qsc , = 1( )~+1_( )".1 ( 4 . 1 4 )

l~,e. l~,, " a At B B

The data necessary to write flow equations for any boundary gridblock were cal- culated in Example 4.5. The following is a summary:

Tx" = 18.2574 STB/D-psi; (4.62a)

T " = ] 0.3308 STB/D-psi; (4.62b) Y

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~ = 4 5 6 . 4 3 5 STB/Dfor b B = 4 , 8 , 1 2 " (4.62e) SCb E ,bB J

and

qs m ..... = - 1 2 5 STB/D for bB = 9,10,11,12. (4.62t3

For boundary gridblock 1, n = 1 , ~p~ = {2,5}, ~j = {bs,b w} , q~, = 0 , and

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 )

= _ ( 3 ) , ] .

For boundary gridblock 4, n = 4 , ~4 = {3,8} , ~4 = {bs,bE} ' q,~, = 0 , and

~ q m ~ISCbsm., + qs%" ,4 = (20"6617) (3000- P4) + 456"435 STB/D. IE~ 4

Substitution into Eq. 4.14 results in the flow equat ion for boundary gridblock 4,

(18.2574)(p~' - p~') + (10.3308)(p~' - P4) + (20.6617)(3000 - P4') + 456.435

Vb 4 rz~xtz+l / ~j~ ~,t/] - •

For boundary gridblock 9, n = 9 , ~9 = {5,10} , ~9 = {bw,bu} ' qs"~9 = 0 , and

(4.63)

(4.64)

Page 114: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation o f Transmissibilities 87

qm =qm + m =0- -125= - -125 STB/D. sc,.9 s%,, qscb~ 9 16~ 9

Substitution into Eq. 4.14 results in the flow equation for boundary gddblock 9,

Vb~ , , q~,.+l , q~.:,] (4.65) (10.3308)(p~' -- P9) + (18.2574)(pm -- Pg" ) - 125 = -~ : - - I t ~ )9 -- t~)9 - acAt B z~

For boundary gridblock 12, n = 12 , ga~2 = {8,11}, ~12 = {bu,bN}, q,~ = 0 , and

qm m - , J c m , =456.435-125=331.435 STB/D. £ ....... = q $ c b £ 12 q 'veb N 12 IE~L.

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= Vbl~ i(q~.+~ q~. acAt t ' . n . , 1 2 - (B)12]. (4.66)

4.5 Calculation of Transmissibilities

Eq. 2.39 in Chapter 2 defines the transmissibilities in the flow equations in Cartesian coor- dinates. The definitions of transmissibility in the x, y, and z directions are expressed as

1 (4.67a)

1 L = ~y ( ~ ) . . . . . e, j : l /2 ,k ~ j : t / 2 , k / , t / : ~ ~ ' j " '

(4.67b)

1 r ..... = G . .... ( -~ ) . .... (4.67c) ~L , 2 ~i, , " t ~i, , 2

where the geometric factors G for anisotropic porous media and irregular gridblock distri- bution 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

Page 115: Petroleum Reservoir Simulation a Basic Approach

88 C h a p t e r 4 S i m u l a t i o n w i t h a B l o c k - C e n t e r e d G r i d

Table 4-1 Geomet r ic Factors in Rectangular Grids ( t r t e k i n ot al. 2001)

Direction Geometric Factor

G ......... " : AXi j k/(Ax k ) -]- Axi~-i j k/(Ax k ) , , i , j , k i , j , k , • i ~ , j , k i 4 - I , j , k

Gy,,i ...... = Ayi, j , k / (Ay , j,, ky, j,k ) + Ayi,jT 1,k /(Ay,,~r,, k ky, jT,,, )

G j ...... = Azi j ~/(Az kz ) J¢- A z i - k~-i/(A k ) , , i , j , k i , j , k ' J " " Z i , j , k ~ : l Z i , j , k ~ l

2tic (4.68) G ....... " = Axi j k/(Ax kx ) + AXial • k/(Ax k )

, , i , j , k i , j , k ' J ' i ~ : l , j , k " i~: l , j ,k

For flow be tween gridblocks i and i + 1 in a 1D reservoir, j = 1 and k = 1. Dis-

carding these subscripts and the negative sign in Eq. 4.68 yields the sought geo- metric factor,

G = 2tic (4.69) xi+l/2 Ax~/(A k ) + Axi+ 1/(Ak,,)

(b) Consider the steady-state flow of incompressible fluid ( B = 1 and/~ = con-

stant) in incompressible porous media between gridblocks i and i + 1. Grid-

block i has cross-sectional area Ax, and permeability kx,, and

gridblock i + 1 has cross-sectional area A.,,,, and permeability kx,,, . Bound-

ary 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 - P~,~/2) (4.70) qi,i+l/2- Bfl~xi+

Page 116: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation of Transmissibilities 89

Actual layer boundary

j J

Discretized block boundary

/

qi, i+l /2] qi+l/2,i~ ~

] i : , j

Figure 4-13 Transmissibility between two adjacent blocks.

Similarly, the rate of fluid flow from block boundary i+½ to the center of grid-

block i + 1 is given by Darcy's Law as

flckx"~Ax"' (Pi+l/2--Pi+l) (4.71) qi+l/2,i+l- Bpf~Xi+l -

In this flow system, there is neither fluid accumulation nor fluid depletion. There-

fore, 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.,

qi,i+l/2 =qi+l/2,i+l =qi,i+l (4.72)

The rate of fluid flow between the centers of gridblocks i and i + 1 is given by

Darcy's Law as

Gx' .... (Pi - - P i+ l ) qi, i~, l- BI~

(4.73)

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)

Page 117: Petroleum Reservoir Simulation a Basic Approach

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 _ --~6x e 6xi+ 1 (4.76)

Gx, .... fl~k, a fl~kx, A ....

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 = 2tic (4.78) Xi~l l2 l ~ i / ( Ax, k x, ) +/~ i+1 / (Ax , , , k , , , , )

Eqs. 4.69 and 4.78 are identical.

Eq. 2.69 in Chapter 2 defines the transmissibilities in the flow equations in radial-cylin- drical coordinates. The definitions of transmissibility in the r, 0, and z directions are expressed as

1 (4.79a)

1 T% ...... = Go, J ...... (-~-~)% ....... (4 .79b)

__1 / (4.79c)

where the geometric factors G for anisotropic porous media and irregular gridblock distri-

bution 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

Az k and Az~/2 depend on the value of subscr ipt 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,

n o

~ A 0 j = 2 ~ , A0j,/2 = ~ ( A 0 j , I + A 0 j ) , j = 1,2, 3... n o - 1 , j=l

Page 118: Petroleum Reservoir Simulation a Basic Approach

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 91

Table 4 -2 Geometr ic Factors in Cylindrical Grids (Farouq Ali 1986)

Direction Geometric Factor

0

f l~AO s

G m,~,j,~ = log e (r~ ! r/'~/2) I (Az , s kk~ ~ ) + loge (r~1/2 ! ri-~ )/(Az~-I J kk~ ~ )

f l AOj G +,,~.j., = l 1. . . . . . . . , .. og e (ri+u2 / r i ) ] ( A z i j kk%, ) + log e (r~+l / r~u2) ](Az,+~ j kk +~,, )

2 f l c lOge (riL+u2 ] ri~u2 ) Go ......... = AO j /(Azi,j,kko,,j,, ) + AO j+ 1/(Azi.m,kk%,, ' )

G = 2 f l , ( ~ AOj)(r2+uz - re2u2)

z,.j ...... AZij.k /kz,.j. ~ + ~Zi.j,kT_ 1 /kz,. j ....

Oj41 = Oj + AOj+I/2 , j = 1,2,3... n o - 1 , 01 =/1~2 A01 ( 4 . 8 0 )

0 j ; u 2 = 0 j - T - ~ A 0 j , 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 ( r m ), trans- missibility calculations ( r,~1/2 ), and bulk-volume calculations ( ri~u: ) are as follows (Aziz and Settari 1979, Ertekin et al. 2001):

for i=1,2,3. . .n -1 ;

r~+~ = atgr ~ (4.81)

for i=1 ,2 ,3 . . . n r -1 ;

rL _ r/+ 1 - r/ ( 4 . 8 2 a ) i+1/2

lOge (r/+ 1/r/)

rL _ r - r / _ 1 ( 4 . 8 3 a ) i-1/2

lOge( ~/r/_ 1 )

for i = 2 , 3 . . . n r ;

Page 119: Petroleum Reservoir Simulation a Basic Approach

92 Chapter 4 Simulation with a Block-Centered Grid

for i = 1 ,2 ,3 . . .n -1 ;

for i = 2,3...n r ;

where

r 2 _ r 2 i~-i i (4.84a) r 2 -

i+1/2 log e (r/e+1 / r/2 )

r 2 - - 17 2 i i - 1 (4.85a) /~2 - -

i-112 l O g e (r/2 / F//21)

I )lln r = re (4.86)

r 1 = [ 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 transmissi-

bility. That is to say, r~ 2 = r w and ~+1/2 = re by definit ion for a b lock-centered grid

(Ertekin, Abou-Kassem, and King 2001).

The bulk volume of gridblock (i, j , k) is calculated from

Vbi.j,, = (Fi2+1/2 - - f/!.l/2 )(1/2 2 mO j )z~Zi,j, k (4.88a)

for i = l , 2 , 3 . . . n r - 1 , j = l , 2 , 3 . . . n o , 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 hor- izontal reservoir with an external radius r e is expressed by Darcy's Law,

-2Jrfl~ kHh q--- ~ (Pe--Pw)"

B/~ log~( )

The pressure drop across the reservoir is obtained from Eq. 4.89 as

(4.89)

Page 120: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation of Transmissibilities 93

-qB,uloge( -r-e- )

(P~ -Pw) - r

2~rfl k.h

Let the reservoir be divided into o r 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 f low between

points i + 1 and i ,

-2Xfl ckHh q = - - (Pi+I - Pi)"

B/~ log~ ( -F/-+l ) r~

The pressure drop between points i + 1 and i is obtained from Eq. 4.91 as

( P i + I - - Pi ) =

-qBlt log~ (~+a) r,.

2xfl c k~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 ) - - -

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 og , ( - - )

r. n r

o r

(r"--~l) = (re)"", r~ r

for i = 1,2,3...n r - 1.

For the convenience of manipulation, define

~lln~

then Eq. 4.95a becomes

(4.90)

(4.91)

(4.92)

(4.93)

(4.94)

(4.95a)

(4.86)

Page 121: Petroleum Reservoir Simulation a Basic Approach

94 C h a p t e r 4 S i m u l a t i o n w i t h a B l o c k - C e n t e r e d G r i d

(r,,,) = % ri

o r

ri+ 1 = a lgr '

for i = 1,2,3...n r - 1 .

Eq. 4.81 def ines the locations of the points in the rdirect ion that result in equal pressure drops between any two successive points.

(4.95b)

(4 .81)

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 = - - ( P i + l - P i ) " (4.91)

B~ log~( G1 ) r.

The steady-state fluid flow rate across a block boundary is also expressed by the

differential form of Darcy's Law at block boundary r L i+1/2 '

- 2 a r f l ¢knhri+l/2 (4.96) q'~'~ln---- B/~ d I(+w "

The pressure gradient at a block boundary can be approximated, using central dif- ferencing, as

_~F r/il n = Pi+l -- Pi r.1 - r i

Substitution of Eq. 4.97 into Eq. 4.96 results in

(4.97)

L -27gfi ,kHhri+l/2 Pi+l - Pi (4.98)

q (; "~ = B t~ 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 (p,+l - P i ) =

B/~ log e (rs+l-) r

-2~f l¢kl4hriLl /2 Pi-1 - Pi (4 .99)

Page 122: Petroleum Reservoir Simulation a Basic Approach

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 95

which simplifies to give

rL _ r/. 1 - r/ i~112

log~ (~+1) (4.82a) ri

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

a s

r L ,+112 = { ( a /g - 1)/[ log~ (a~g)] }r~

fo r i = 1 , 2 , 3 . . . n , - 1 ;

r L i-1/2 = { ( (~/g - - 1 ) / [ a Z g l o g e (a/g)] }r, -- ()/%)r/L1/2

fo r i = 2, 3 . . . n ;

( 4 . 82b )

(4 .83b)

52÷112 = {(a~g - l ) / [ log e (a~g)] }52 (4.84b)

for i = l,2,3...nr - 1 ;

/.2 2 1 2 2 2 ~-1/2 = {(a~g - ) / [ a / g l o g e ( a , ) l }r~ = (/~/a/g)r/2+l/2 ( 4 . 85b )

fo r i = 2 , 3 . . . n ;

Vb,/,, = {(a~g -- 1) 2 ][ t2~g log e (a~g)] }ri 2 (1//2 AO j )Az,,j, k ( 4 . 88b )

fo r i = 1,2,3,. . .nr_ 1 ; and

,,.. 1 2 2 --1)/[a~g loge(CC~g)]}re2(l/2AOj)AZ,,,,j,k V b ,~ -- { l - [log~ ( a / g ) / ( O : , g - )] (a/g (4.88d)

fo r 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~

r~+ 1 /r, = a/g

Substitution of Eqs. 4.100 and 4.101 into Eq. 4.82a yields

(4 .100)

(4 .101)

Page 123: Petroleum Reservoir Simulation a Basic Approach

96 Ch ap t e r 4 S imula t ion wi th a B l o c k - C e n t e r e d Gr id

r t" : r/+ 1 - r i (azg - 1)r/ i+1/2 lOge(r m / r ) loge(a lg) i

Eq. 4.102 can be rearranged to give

= {(alg - l ) / l o g e ( a t g ) } r /

riLl/2 /F/ = ( a / g -- l ) / l o g ~ ( a l g )

from which

lOge (r /Ll/2/r /) = loge[(a lg - l ) / lOge (a l¢ ) ] )

Eqs. 4.101 and 4.102 can be combined by eliminating r~, yielding

1 r1" log~ (a lg) (at~ ,+~/2 - - 1)(r+, / a tg) = { (atg - 1)/[alg loge (OSlg)] }r/+ 1

Eq. 4.105 can be rearranged to give

r,1 / r,~1/2 = [ % log, ( % ) ] / ( % - l)

from which

log~ (r,.+l / r/Ll/2) ~-~ log~ { I% lOge ( a , ) ] / ( a l g -- 1) }

Using Eq. 4.81 and replacing subscript i with i - I yields

r/ = 0:lgr._l

r~/r.1 = a1~

Subst i tu t ion of Eqs . 4 .108 a n d 4 .109 into Eq. 4 .83a yie lds

r 1. _ ri-r~-i r ~ - r i / a l g _ { ( a t g _ l ) / [ a l g l o g ~ ( a t g ) l } r ~ i-1/2 loge(r~/ri_l) loge(a tg )

Eq. 4.110 can be rearranged to give

r. / r.~/= = I% lOge (a lg ) ] / ( a lg - 1)

from which

lOge ( r i / r iLl/2) = log A [ct~ lOge(atg)l /(alg - 1)}

Eqs. 4.108 and 4.110 can be combined by eliminating r , yielding

- - [(alg - 1) / alg ] (gig r,._ , ) = [(atg - l) / log~ (alg)Jr,._ 1 r/Ll / 2 -- log~ (a lg)

Eq. 4.113 can be rearranged to give

(4.102)

(4.103)

(4.104)

(4 .105)

(4 .106)

(4.107)

(4.108)

(4.109)

(4.110)

(4 .111)

(4 .112)

(4 .113)

Page 124: Petroleum Reservoir Simulation a Basic Approach

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 97

r/L_u2/r~_~ = ( a , - 1) / loge(a lg)

from which

L C~ log~ (r~._u2 / re-1 ) = log~ [( tg - 1) / log e (alg)]

Eqs. 4.102 and 4.110 are combined to get

r L , ~. { ( a l g - 1 ) / l ° g ~ ( a t ~ ) } r ~ ~+u2/r~-~/2 = { (a~ - 1 ) / [ c % loge (C% )] }r ~ = c%

from which

(4.114)

(4.115)

(4.116)

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

2 _r2 (a~ -1)~ 2 r 2 i+1 2 2 (4.118) - ~ - - - 1) / log e (atg)]r i+,/2 lOge (r/2+1/ri 2) | , [(a2g Oge(a~)

Substitution of Eqs. 4.108 and 4.109 into Eq. 4.85a yields

r2 - r 2 (1 - l/a~g)r/2 2 i ~-, - {(a~g - 1 ) / [ c % lOge(a~g)] }r/2 (4.119) /.~2 - -

i--1/2 log, (r/2 / r/2_1) 1 0 g,(a/g)2

Subtraction of Eq. 4.119 from Eq. 4.118 yields

r 2 _ r 2 ( C t ~ g - 1 ) r 2 [(a~g - 1)/a~g ] 2 i+1/2 i-1/2 -- lOge(a~g ) i lOge(a~g ) ri (4.120)

- - - - 1 2 (a~g 1 ) ( l - / a , g ) r 2 ~ 2 l 2 r 2

- log~(a~g) i = {(a;g - 1 ) 2/[0:ig Oge(a lg ) ]} i •

Combining Eqs. 4.88a and 4.120 yields

,~ta 2 1V / l a ~ loge(a~g)l}r~Z(1/zAO~)Azij ,k (4.121) Vbi,j, k ~ ( \ lg - - ]

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 = n r , Eq. 4.88d is used and the proof is left as an exercise (Exercise 4-13).

, r I" and r ~" r l / r - l , rL+.2/r/ r+l / i~u2 E x a m p l e 4 .10 demons t r a t e s that quot ients r~/ i l/2 , i-1/2

r I" / r L are funct ions of the logar i thmic spacing constant Ct/g only as expressed in the i + 1 / 2 " i-1/2

fo l lowing equations:

F i /TiiLl/2 ~" [ a l g loge(a~g)l/(alg - 1 ) (4.111)

Page 125: Petroleum Reservoir Simulation a Basic Approach

98 C h a p t e r 4 S i m u l a t i o n w i th 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 )

r~l/2 /rg = (a~g - 1 ) l l og~(a lg )

~+1 / r/L1/2 = [alg 1Oge (alg)]/(alg - - l )

~+L,/2/r/~1/2 = alg

(4.114)

(4.103)

(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) (4.86)

(2) Let r~ = [alg loge(Ct tg) / (a lg - 1)]r w (4.87)

= ai-lr, (4.122) (3) Set r 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 ()~2 AOj )ZXZi,j, k (4.88b)

for i = 1,2,3,...n r - 1 ; and

,,,.. --- l'02(cz 2 1 2 _ , . Vb ,k { 1 - [ l o g e ( a ~ , ) / ( a t g - , j , , - ) / [ a ¢ g 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

Page 126: Petroleum Reservoir Simulation a Basic Approach

4.5 Calcu la t ion o f Transmiss ib i l i t ies 99

Table 4 -3 Geometr ic Factors in Cylindrical Grids

Direction

0

Geometric Factor

3~AO j

G l /2, j ,k = {log.latg log. (alg) / (a~g _ 1)]l(Azio,kk~,.,.~)

+ log. I(% - 1) / log e (alg)]/(Azi<,j,kkr~_,.s.~ ) }

3cAO j

G~'"2J'~ = { log. [(atg - 1) / log e (alg)]/(Azi,j,kk,.j,~ )

+ log e [ a l ~ log e (alg)/((Ztg - 1)]/(AZ.i+l,j,kk~t,,,, ) }

2tic lOge (atg)

Goi , j . . . . . . m o j / ( z ~ k Z i j kko ,~ ) + m o j 4 _ l / ( z ~ Z i jT-1 kko ) • , i , , - , , i,j~:l,k

G = 2tic (VbiJ'k ] l~lzi'j'k ) <J'~'~ 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 equa- tions 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 /43,560x40/~ = 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.

Page 127: Petroleum Reservoir Simulation a Basic Approach

100 Chapter 4 Simulation with a Block-Centered Grid

Second, let r 1 = [(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 ,

r 2 = (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 boundar ies for transmissibility calculations ( rf_~/2,r~l/2 ) are est imated

using Eqs. 4 .82a and 4.83a.

For i = 2 ,

+1/2 = r 3 - r 2 1 2 . 2 9 1 4 - 2 . 4 8 1 9

=6 . 1315 ft. loge(r3/r2) - 1Oge(12.2914/2.4819 )

r~,_1/2_ r2 - - r 1 = 2 .4819- -0 .5012 =1 .2381 ft. l ° g e ( r z / 5 ) ]Oge(2"4819/0"5012)

Table 4-4 shows the boundaries for transmissibility calculations for other grid- blocks.

(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 r L . i,1/2 /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.

(4.123)

(4.124)

r I" a n d T a b l e 4 - 4 r. , i~l/=

0.5012

r L i - 1 / 2

0.25 a

l o g e A r g u m e n t s in T a b l e 4 - 2 for E x a m p l e 4 .11

2.4819 1.2381 6.1315

12.2914 6.1315 30.3651

60.8715 30.3651 150.379

301.457 150.379 744.73 b

1.2381

a rl[~l/2 _- Fw = 0 . 2 5

b L r5~1/2 = r = 744.73

ri+l L ~+1/2

2.005 2.005 2.47 2.47 4.9528

2.005 2.005 2.47 2.47 4.9524

2.005 2.005 2.47 2.47 4.9524

2.005 2.005 2.47 2.47 4.9524

2.005 2.005 2.47 2.47

L i+1/2

Page 128: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation o f Transmissibilities 101

T a b l e 4 - 5 G r i d b l o c k B o u n d a r i e s and Bulk 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 r i 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 a

rs~ m = r e = 744.73

For i = 2 ,

r~ - r ~ - r 2 - (12"2914)z- (2"4819)2 = 45.2906 ft 2 (4.125) ~1/2 log~(r~ / r~) 10ge1(12.2914) 2/(2.4819) 2]

r~_1/2= r~-r12 (2"4819)2-(0"5012)2 =1 . 8467 ft 2. (4.126) loge(r ~/r/2) loge[(2.4819) 2/(0.5012) 2]

Therefore, the gridblock boundaries for bulk volume calculations are

~+l/-~ = ~ = 6.7298 ft

r2_1/2 = ~ ---- 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.

Page 129: Petroleum Reservoir Simulation a Basic Approach

102 C h a p t e r 4 S imu la t ion wi th a B l o c k - C e n t e r e d Gr id

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 grid-

blocks ( r i ) calculated using Eq. 4.122.

(b) Block boundaries for transmissibilitycalculations ( r I" r I" ) are estimated i-1/2 ~ i+1/2

using Eqs. 4.82b and 4.83b, yielding

r L = { ( ( z tg - l ) / [ l og e (a~g)] }r i = { (4 .9524 - l ) / [ l o g e (4 .9524)] }r~ i+1/2 (4 .129)

= 2.47045r,

r L i-1/2 = { (atg - l ) ][alg l o g e (a~g)] }r i = { ( 4 . 9 5 2 4 -- l ) / [ 4 . 9 5 2 4 l o g e ( 4 . 9 5 2 4 ) ] }r i (4 .130)

= 0 . 4 9 8 8 4 r 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 / r i l ' rLil-1/2 It : , a n d r~]/2/ri('l/2 a s func-

t ions of alg were der ived in Example 4 .10 a s Eqs. 4 . 1 1 1 , 4 . 1 0 6 , 4 .114,

4 .103, a n d 4 .116, respect ively . Subs t i tu t ion of alg = 4 .9524 in t h e s e e q u a -

t ions, we obta in:

r//r.L_l/2 = [(ztg log e (a lg) ] / (~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 (4 .132)

r~'i-~/2/ri-1 = (alg - 1)/log~(~z~g) = ( 4 . 9 5 2 4 - 1 ) / l o g ~ (4 .9524) = 2 . 4 7 0 • (4 .133)

r+Ll/2/r, = ( a , - 1 ) / l o g , ( a l g ) = 2 .470 (4 .134)

r L r I" = 4 .9524 (4 .135) i+1/2 / i-1/2 = I~'lg

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.

Page 130: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation of Transmissibilities 103

t .2 ~ 2 i+~2 {(a~,~-l)/[l°ge(a~g)]}52 {((4"9524)2-1) / [ l °ge( (4 .9524)2) l}r~2 (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 2 4 2 = -- 1] /[(4.952 ) ]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/fl a, 1 RB/B, and 0.5 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 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.

Page 131: Petroleum Reservoir Simulation a Basic Approach

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 reser- voir rock and fluid property data, the determination of the location of points repre- senting 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 bound- aries 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 , = k H = ] 5 0 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

T ~r PbL=OUUU psia

No-flow boundary

)ft

Figure 4-14 Discretized 2D radial-cylindrical reservoir in Example 4.13.

Page 132: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculat ion o f Transmissibi l i t ies 105

For the block-centered grid shown in Figure 4-14, n r = 4 , n z = 3 ,

Az k = h / n = 3 0 / 3 = 10 ft for k = 1,2,3 ; hence, Az, =10 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 ;

Z n = 1 5 f t f o r n = 5 , 6 , 7 , 8 ; Z = 2 5 f t f o r 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 r 2 = 3 . 8 0 1 4 ft, (3 =25 .753 ft, and r 4 =174 .46 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 . 7 7 4 6 ) 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 ,

2 2 _ l ) / [ a ] g 9 } r f ( 1 / 2 A O j ) Z ~ n r , k Vb,,,,~ = {1-[loge(c:le)/(alg -1)] (alg 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 .... = G ........ ( ~ B ) = G: ......... ( 0 . 5 ~ ) = (2)G- ~i,- 2 ~i,kTll2

where Go is defined in Table 4-3 as ~i,kTll2

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.142)

(4.143)

Page 133: Petroleum Reservoir Simulation a Basic Approach

106 C h a p t e r 4 S i m u l a t i o n w i th a B l o c k - C e n t e r e d G r i d

G. ~i,k:tl2

_ ' S c k , ( V ~ , . k / ~ )

Az~ or after substitution for values it becomes

G. ~i , k : l l2

= (1.127 x 10 -3)(45)(36.0576 x r~ 2)

10 = (0.182866)ri 2 (4.144a)

for i=1,2,3 and k= ] , 2 , 3 and

G. ~i ,kz l l2

= (1.127 × 10 -3)(45)(0.846740 x 106)

10 = 4294.242 (4.144b)

for i = 4 and k=1 ,2 ,3 .

Substituting Eq. 4.144 into Eq. 4.142 results in

T ........ = 2(0.182866)r/2 = (0.365732)r/2 (4.145a)

for i=1,2,3 and k =1,2,3 and

T z = 2(4294.242) = 8588.484 k 1/ i , ¢ 2

(4.145b)

for i = 4 and k=1 ,2 ,3 .

Eq. 4.79a defines the transmissibility in the r direction, yielding

, .. = Q ( ! ) = C ( , - - ~ ) T . . . . . . . . . . . . /~B ......... , , . . , ^ , = (2)G ........ (4.146)

where G~ ........ is defined in Table 4-3. With A8 = 2Jr and constant radial perme-

ability, 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 est imated 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 grid- blocks 5 and 9 using Eq. 4.28,

Page 134: Petroleum Reservoir Simulation a Basic Approach

4.5 Calcu~tion of Transmissibilities 1 0 7

Table 4 - 6 Gr idblock Locat ion, Bulk Volume, and Radial and V e ~ i c a l Transmissibi l i t ies for Example 4 .13

n Az. Zn . . . . . . . L . . . . . . . (R) (R) (R) (R 3) (B/D-psi) (B/D-psi)

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 . 2 8 )

I(-~Y b

where Tb~'bB = transmissibility in the radial direction between reservoir boundary b

and gridblock bBwith the well being the reservoir internal boundary and

y2 b = y2 w = {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 m = l 1 . 1 0 3 7 4 B / D - p s i r5,6

Z m = T 'n = 1 1 . 1 0 3 7 4 B / D - p s i . b w , 9 r9,1o

Page 135: Petroleum Reservoir Simulation a Basic Approach

108 Chapter 4 Simulat ion with a Block-Centered Grid

The application of Eq. 4.28 results in

11.10374 qm = × ( - 2 0 0 0 ) = - 1 0 0 0 B/D

~':~~ 11.10374+11.10374

11.10374 qm = x ( - 2 0 0 0 ) = - 1 0 0 0 B/D.

s%,, 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." is estimated using Eq. 4.29 and A z = Vb./Az,, b L ,n n

k A T m bL,n : ~ c Zn Zn

/ z B ( A z , / 2 )

= (0.0020286)Vb, ,.

= 0.001127 x 45 × (Vb, ' /Az , )

0 .5 x 1 x ( 10 / 2 ) ( 4 . 1 5 0 )

For the reservoir east and upper (no-flow) boundaries, qm = 0 for n = 4,8,12 SOb E ,n

and qm = 0 for n=9,10,11,12 Yable 4-7 summarizes the contributions of SCb~, ,n

gridblocks to well rates and fictitious well rates.

The general form of the flow equation for gridblock n is obtained from Eq. 4.2a,

Z T , . . . . . . . . . z m Vbn l," (~ \n+l (~ n lnll'Pt, - P , ) -T t , ( . z -Z~ ' ) ]+Zq .~ , , ° +qm _ ----7 " l t - z ) n --('~')n] ( 4 . 2 a )

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" = 0 and "" SCbw ,1 I

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)

Page 136: Petroleum Reservoir Simulation a Basic Approach

4.5 Calculation o f Transmissibilities 109

T a b l e 4 - 7 Cont r ibu t ion of Gr idb locks to Wel l R a t e s and F ic t i t ious Wel l R a t e s

q m

n i k '~. (B/D)

1 1 1 0

2 2 1 0

3 3 1 0

4 4 1 0

5 1 2 0

6 2 2 0

7 3 2 0

8 4 2 0

9 1 3 0

10 2 3 0

11 3 3 0

12 4 3 0

qm Sfb L ,n

(B/D)

( 0 . 2 3 0 3 1 ) [ ( 4 0 0 0 - p~") - ( 0 . 4 3 3 3 ) ( 3 0 - 25)1

( 1 0 . 5 7 0 2 ) [ ( 4 0 0 0 - P2 ' ) - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]

( 4 8 5 . 0 8 5 ) [ ( 4 0 0 0 - P 3 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]

(17177.1) [ ( 4000 - P 4 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 25)]

q,, q m q,, scb w ,n SCb E ,n SCL L, ,n

(B/D) (B/D) (B/D)

-1000

-1000

0

0

0

0

0

For gridblock 3, n = 3 , i = 3 , k = 1 , ~'3 = {2,4,7} , ~3 = {b/.} , and

~ q m = q,, where from Table 4-7, $Cl, 3 ~CbL,3 '

q" = (485 .085 ) [ (4000 -p~ ' ) - ( 0 .4333 ) (30 -25 ) ] B/D, and q,~, = 0 (no SOb L ,3

wells) . T h e r e f o r e , subs t i tu t ion into Eq. 4 . 2 a y ie lds

4 m _ P 3 ) -- ( 0 .4333 ) (25 -- 25)] ( 1 1 . 1 0 3 7 ) [ ( P 2

+ ( 1 1 . 1 0 3 7 4 ) [ ( p 4 -- P 3 ) -- ( 0 .4333 ) (25 -- 25)1

+ ( 2 4 2 " 5 4 2 6 ) [ ( P 7 -- P3 ' ) -- (0 .4333) (15 -- 25)]

239123.0 [ ( ~ + 1 tp , + (485.0852) [ (4000- p~" ) - (0 .4333)(30- 25) ]+ 0 - ~ , ,3,3 - (3)3 ]-

(4 .152)

For g r i d b l o c k 5 , n = 5 , i = 1 , k = 2 , ~P5 = {1,6 ,9}, ~5 = {bw} ' a n d

Y--,q,~,.5 = q " w h e r e f rom T a b l e 4--7, q " = - 1 0 0 0 B/D, a n d q,'~5 = 0 ( the sCl, w , 5 ' scbw,5

le~5

Page 137: Petroleum Reservoir Simulation a Basic Approach

I 10 C h a p t e r 4 S i m u l a t i o n wi th a B l o c k - C e n t e r e d G r i d

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)]

113.5318 i(~b~,,+l ~ , +(0.115155)[(p9' - P~") - (0.4333)(5 - 15)] - 1000 + 0 = ~ , ,~,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)]

+(242.5426)I(p~ - P~") - (0.4333)(5 - 15)] + 0 + 0 = 23912____33.0 [(~)~+1 _ (~)7 ]. i

acAt

(4.154)

For gridblock11, n = l l , i = 3 , k = 3 , ~p~={7,10,12}, ~11={bv},

q m = m , ,,, ~_~ ....... qs%.,, 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)]

239123.0 q~ ,+l_(~b~, ] + ( l l . 1 0 3 7 4 ) [ ( p ~ - p ~ ) - ( 0 . 4 3 3 3 ) ( 5 - 5 ) ] + 0 + 0 = ~ 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

Page 138: Petroleum Reservoir Simulation a Basic Approach

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 res- ervoir properties vary spatially region-wise, then symmetry may exist. The use of sym- metry 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 (Abou- Kassem, Ertekin, and Lutchmansingh 1991). The smallest element of symmetry is a seg- ment 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 dimen- sions deal with gridblock size ( Ax, Ay, Az ) and gridblock elevation (Z). Reservoir rock properties deal with gridblock porosity ( ~b ) and permeability in the various direc- tions ( 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 sym- metry 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 symmetr ical elements. Consequently, Pl = P6 ' P: = P5, and P3 = P 4 • The modif ied problem is represented by the element of symmetry shown in Figure 4-15b, with the plane of sym- metry 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 symmet- rical 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.

Page 139: Petroleum Reservoir Simulation a Basic Approach

112 Chapter 4 Simulation with a Block-Centered Grid

.11 1.3: i. l ~ x

(a) Whole reservoir and plane of symmetry

(b) Smallest element of symmetry

Figure 4-15 Figure 4-17

~x I A A

(a) Whole reservoir and plane of symmetry

A A I I

3 I,N°-fowb°undary I 1 I 2 3}(No-flowbeundary

) X I

A 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).

B - -_

13 14

• 9 •1(3

• 5 • 6

1 2

),x

115 16

• 11 •12 - -B

. 7 • 8

3 4

B - -_ 4

1

} ~ x

(a) Whole reservoir and (a) Whole reservoir and planes of symmetry

No-flow boundary A No-flow boundary A B - " ~ I _ B B _ ~ I - - - B

I • 5 • 6 I No-flow boundary

i

1 2 I( 1 2 Y Y

T T ' )x A )x A

(b) Smallest element of symmetry

A I I

8 i ° I I

. . . . . I - - m

51 6 I

2 I 3

I I A

planes of symmetry

;! 5 ' ( No-flow boundary

(b) Smallest element of symmetry

B , m

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 grid- blocks. 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-

Page 140: Petroleum Reservoir Simulation a Basic Approach

4.6 Symmetry and Its Use in Solving Practical Problems 113

block 3, divides the reservoir into two symmetrical elements. Consequently, Pl = 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 geo-

metric factor for gridblock 3 in Figure 4-17a. Therefore, for gridblock 3, V~ =½Vb3 ,

qsc, -2-1qsc~, and Gw 3 =!2 G,,,,~. 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 hori-

zontal reservoir with two vertical planes of symmetry A-A and B-B. Plane A-A is a ver- tical 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 grid- blocks 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 = P 9 ' 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 par-

allel to the plane of symmetry. Therefore, Vb 2 =I V~ , qsc~ =½qsc2 , Gw2 =½Gw~ ; Vb, =½ Vb4 '

q~c=½qsc., Gw=½Gw4 ; Vbs=lVb5 ' q~c=¼qs~, G s=¼G ; G.=½Gy~.~; and

= ±G Because gridblocks 2, 4, and 5 fall on the boundaries of the element of a x 4 , 5 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 fac- tors 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 grid- blocks 1, 4, 7, and 10 are mirror images of gridblocks 3, 6, 9, and 12. Plane B-B is a ver- tical plane of symmetry that is parallel to the x-z plane (normal to the y direction) and

Page 141: Petroleum Reservoir Simulation a Basic Approach

114 Chapter 4 Simulation with 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 = Pl l , and P5 = P8 • The mod-

ified 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 b 2 ,

qsc2:½qsc2, Gw2=½Gw2; Vb,:½Vbs, qsc~:½q~,c~, Gw~=½G~; Vb,=½Vb~, qs,.,=¼q,cs,

Gw,=±G • =±V" = ± q , _1 = ± = ± G ; and 4 w 8 , Vbll 2 b l l , qs~,, 4 sclt Gw,-TGwl, ; Gyz, s 2Gyz,5 ; Gys, 8 2 y5,8

= ±G Because gridblocks 2, 5, 8, and 11 fall on the boundaries of the element of a v 8 1 1 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 fac- tors 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 reser- voir 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 ' P 6 = P 7 = 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 res- ervoir 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 = P 7 = 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 sym- metry 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, ,

Page 142: Petroleum Reservoir Simulation a Basic Approach

4.7 S u m m a r y 115

Y

10

7

4

1

) x

11

8

5

2

12

9

B 6

3

(a) Whole reservoir and planes of symmetry

Figure 4-19

No-flow boundary

B m m ~ 4

1 y •

T ,x

A

I

2 ~

I A

- B

No-flow boundary

(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 sym-

metry (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 7x7-~1 1 _ _ 1 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 modi- l_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 bound-

aries represent no-flow boundaries.

4.7 Summary This chapter presents reservoir discretization in Cartesian and radial-cylindrical coordi- nates 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 grid- blocks 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 loca- tions 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 equa- tions in either Table 4-2 or Table 4-3 can be used to calculate transmissibility geometric

Page 143: Petroleum Reservoir Simulation a Basic Approach

116 Chapter 4 Simulation with a Block-Centered Grid

D A N

B - -

\~13 14

% N /

2" /

/

2

,/ % "D C A

(a) Whole reservoir and planes of symmetry

C /

15• 1~¢," t

/ 1 1 / / 12 ,o •

/

/ , - - . B %

\ 7 8

% \

3

Y

N o _ f l o w ~ T - ~ x

/

A C

No-flow boundary

A

(b) Smallest element of symmetry

B -

Y

D A C \ I /

I i

~. I "/ / \ I Z %

\ I / X I _ /

4 "/IX 6 / / 5 i \ \

,/ I \ ,/ % / I

I

C A D

(a) Whole reservoir and planes of symmetry

A Y T x/'

No-flow ~ 2 q

/ /

C

C

No-flow boundary

(b) Smallest element of symmetry

- - B

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.

Page 144: Petroleum Reservoir Simulation a Basic Approach

4.8 Exercises 117

4.8

4-1

4-2

4-3

4-4

4-5

Exercises

What is the meaning of reservoir discretization into gridblocks?

Using your own words, describe how you discretize a reservoir of length L x along the x direction using n gridblocks.

Figure 4-5 shows a reservoir with regular boundaries.

(a) How many boundaries does this reservoir have along the x direction? Identify and name these boundaries.

(b) How many boundaries does this reservoir have along the y direction? Identify and name these boundaries.

(c) How many boundaries does this reservoir have along the z direction? Identify and name these boundaries.

(d) How many boundaries does this reservoir have 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?

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.

Page 145: Petroleum Reservoir Simulation a Basic Approach

118 Chapter 4 Simulation with a Block-Centered Grid

4-6 Consider fluid flow in the 2D horizontal reservoir shown in Figure 4-23.

No-flow boundary

No-flow bour y ~ ( 9 • 10

, .x 5 6 7 8 ' - ®

Pb~ -- 3000 psia

1 2 3 4

--~'bE -2 psi/ft

4-7

4-8

4-9

" Pbs = 3 0 0 0 ps ia

Figure 4-23 2D reservoir for Exercise 4-6,

(a) Write the appropriate flow equation for gridblock n in this reservoir.

(b) Write the flow equation for gridblock 1 by finding ~1 and ~1 and then using them to expand the equation in (a).

(c) Write the flow equation for gridblock 3 by finding ~O 3 and ~3 and then using them to expand the equation in (a).

(d) Write the flow equation for gridblock 5 by finding ~5 and ~5 and then using them to expand the equation in (a).

(e) Write the flow equation for gridblock 9 by finding ~9 and ~9 and then using them to expand the equation in (a).

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 -P2 ) • Aziz and Settari (1979) claim that the above equation

represents a second-order correct approximation for boundary pressure.

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.

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,

Page 146: Petroleum Reservoir Simulation a Basic Approach

4.8 Exercises 119

Z

pb w = 2501

80 STB/D

'low bounda ry

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.

z 175 STB/D

pb w = 200 ;b. = 80 STB/D

4-10

4-11

Figure 4-25 Discretized 1D reservoir in Exercise 4-9.

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 of-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.

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

Page 147: Petroleum Reservoir Simulation a Basic Approach

120 Chapter 4 Simulation with a Block-Centered Grid

Z qsc3 = ? STB/D l . . . . j p~ = 1500 psia

d-~- bw -0. boundary

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.

Z

pb w = 2701

150 STB/D

= 1900 psia

4-12

4-13

4-14

Figure 4-27 Discretized 1D reservoir in Exercise 4-11.

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.

Starting with Eq. 4.88c, which expresses the bulk volume of gridblock

(nr,j,k) in terms of r e and r~r_l/2, derive Eq. 4.88d, which expresses the

bulk volume in terms of a~g and re.

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.

Page 148: Petroleum Reservoir Simulation a Basic Approach

4.8 Exercises 121

4-15

Influx = 0.02 STB/D-ft 2

7 8 9 dp 0.10 psi/ft

b~ ~ • 4 5 ~ • 6

Y l 1 2 3

>x

Pbs = 3 2 0 0 psia I" "[

No-flow boundary

%% = -2000 STB/D

~ 0 ff

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 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.

Page 149: Petroleum Reservoir Simulation a Basic Approach

1000 STB/D

)undary

122 Chapter 4 Simulation with a Block-Centered Grid

Figure 4-30

T PbL=3000 psia ~r

Discretized 2D radial-cylindrical reservoir in Exercise 4-15.

Page 150: Petroleum Reservoir Simulation a Basic Approach

Chapter 5

Simulat ion wi th a Point -Dist r ibuted 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 con- struction of a point-distributed grid for a reservoir and the relationships between the dis- tances 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 coor- dinate 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 grid- points for a point-distributed grid fall on reservoir boundaries, not inside reservoir bound- aries 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 transmissi- bility 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 grid- points that span the entire reservoir length in the x direction. In other words, the first grid- point 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

Page 151: Petroleum Reservoir Simulation a Basic Approach

124 Chapter 5 Simulation with a Point-Distributed Grid

~1" AX1+1/21 ~1" AX2+1/2 ; r ~ "1 "~ Axnx-l/2 ;

1 2 1 3 onx-1 I nx,)

J I Right Boundary Left Boundary

Figure 5-1 Oiscretization of a 1D reservoir using a point-distributed grid.

Figure 5 - 2 focuses on gridpoint i and its neighboring gridpoints. It shows how these grid- points are related to each other. In addition, the f igure shows block dimensions ( Axi_ ~ ,

/~kXi ' /~ i+1 ) ' block boundaries ( Xi_l/2 , Xi+x/2 ), distances between gridpoint i and block boundar ies ( dx i , dx i. ), and d is tances be tween gr idpoints ( AXi_l/2 , Axi.~/2 ). B l o c k dimensions, block boundaries, and gridpoint locations satisfy the fol lowing relationships:

x 1 = 0 , x = L ~ , ( i . e . , x - x I = L ) ,

d X i = ~ l~ f i - l 12 , i = 2 , 3 . . . G

(}xi+ ~- 1/2/~i+1/2 , i = 1,2,3... G - 1

Xi+ 1 = X i "~-l~i t_l /2 , i = 1 , 2 , 3 . . . n x - 1

Xi-1/2 = X i - - t i N i = xi - - ~ Axi-l/2 , i = 2 ,3 . . . n (5.1)

Xi+ll2 = Xi "{-~X i, ~- X i "~ 1/22 z ~ 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~ -~" d X n = ~2 d ~ n x _ l l 2

I...,' AXi'l/2 ~.. I..,, AXi+I/2 ~.1

I~, 8xi- ~ ~ 8xi+ ,~n I . . . . I

I - I ~, Xi'l ~ Xi > Xi+l .,~ ,-~ AXi'l ~1~ Axi q( AXi+l r,

xi-1/2 xi+1/2

Figure 5-2 Gridpoint i and its neighboring gridpolnts In the xdirecUon.

Page 152: Petroleum Reservoir Simulation a Basic Approach

5.2 Reservoir Discretization 125

Figure 5-3 shows the discretization of a 2D reservoir into a 5x4 irregular grid. An irreg- ular 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 I I

] I • • d AY21/ 4 } :

) • • •

AYl 1/2_I " i ! ~ i " ' t ~ i ' '~ ' A A

I. AXlv2 ~1~ AX21/2 ~1~ AX31/2 ~1. AX41/2 ~1

Figure 5-3 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 prop-

erties to its six gridpoints ( i = l, 2, 3, 4, 5, 6 ). All gridpoints have the same eleva- tion because the reservoir is horizontal. The blocks that are represented by the

Page 153: Petroleum Reservoir Simulation a Basic Approach

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 dis-

tances between neighboring gridpoints are equal; i.e., z~ci~l/2 = 1000 ft

and A = A = Ay x z~. = 1200 x 75 = 90000 ft 2. Gridpoint 1 falls on the reser- Xl;l/2

voir 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.

~ Y ~x

150 STB/D

/ 1 2 I 3 I 4 I 5 I 6] I175f t

r " 1 " " !4

Figure 5-4 Discretized 1D reservoir in Example 5.1.

5.3 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 pre- sented 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 ( b e ), and those along the y axis are termed the reservoir south boundary ( b s )

Page 154: Petroleum Reservoir Simulation a Basic Approach

5.3 Flow Equation for Boundary Gridpoints 127

and the reservoir north boundary ( b u ). Reservoir boundaries along the z axis are termed the reservoir lower boundary ( b L ) and the reserwfir upper boundary ( b U ).

U

z~ N

W E x

k~ bN

I

, ~ m m I f s-

b w / / - ~ ,, bL

b U

S

°Y / Figure 5-5 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 ficti- tious 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 reser- voir, 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 1 D, 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~ ¢ th Z T, . . . . - P . . . . . . Z m - Z ; ? qm .~_ m n÷l n l,n [[Pl n ) - 7z,,, t , )] + ~ ...... qs~ - ° [ (3 ) . - ( )." ]

or, in terms of potentials, as

(5.2a)

" ~ T m((l)m __ o m qm + qm -- gbn ~/) n ÷ l __(.~)n 1 ~ n , . . . . . , o ) + Z ,,

leg:,, I~,,

(5.2b)

where q : = the set whose elements are the existing neighboring gridpoints in the reser-

voir, ~. = the set whose elements are the reservoir boundaries ( bL, bs, bw. be, bN, b v ) that

Page 155: Petroleum Reservoir Simulation a Basic Approach

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, . . . . . Z qm _1_ m ,- t,(i,j,k)l(Pl --Pi,j,k)--Y~,~i.j.k)( ~-Zij,~)]+ Y~ ..... (,,j,k) q"::k [E~Pi,j,k IE ~i,j,k

(5.2e) Vb,,k r~°+ , q~

It is important to recognize that the flow equations for interior gridpoints in a point-dis- tributed 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 com- pletely 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 grid- point.

It must be mentioned that reservoir blocks have a three-dimensional shape whether fluid flow is 1 D, 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 reser- voir 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 prob- lems, 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

Page 156: Petroleum Reservoir Simulation a Basic Approach

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 bound- aries. 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 grid- points, 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 1 D, 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 m Vb' . A ~ , . + ' _ ( q ~ ) T ] ( 5 . 3 ) T m (qbi_~-qb~)+T " (dO~+~-~m)+qs m = . I t s ) ,

Xi 1/2 i Xi+ll 2 ' a cat 1~ a

The above f low equation can be obtained f rom Eq. 5.2b for n = i , ~Pi = { i - 1 , i + 1 } ,

~i = { } and by observing that ~ qm = 0 for an interior gridpoint and 7~ = = T m , sct, i i41,i x 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 grid- point 1,

2V~ qb ,+1 q~ , - - ( ~ ) 1 1 ( 5 . 4 ) Vmx~ ~,2 (dido - - ~ml , ~ + Tmx,~,,2 (d#~ - ~'(' ) + 2q< ~ t [(n)l

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~ and q~ = 2%, . A d d i n g and s u b t r a c t i n g the f l o w

t T ~ . ~ m erm ~ .... t 2 - q b ) to the LHS of above equation gives

T" ¢( I )m-cI)?) -T m t ~ m - ~ l ) + 2 T m (cI)~' ~ m ' + 2 m 2Vb~ ./P,,+I .... , 0 *~, .... , 2 ........ _ - 1 ) q < = ~ t t ~ ) l - ( ) ~ 1 ( 5 " 5 )

Page 157: Petroleum Reservoir Simulation a Basic Approach

130 Chapter 5 Simulation with a Point-Distributed Grid

AX1+1/2 AX1+1/2

d " ' ' " o0 I

. . . . . . . . . . m . . . . .

I Left Boundary

/ / n Axnx-l /2 i Z~nx-l /2

on x .1 I nx l : nx+l o • m . . . . . d . . . . . . . .

I Right Boundary

Figure 5-6 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 - O7) - T ~ . . . . . . . . ,--2c~" - 0 lm )]+ Tmxl,l/2 ( O n ' - - O ? ) "~ q 2 1 2

Vb, ~b .+l _ (O)IB (5.6a) - a<at [(B)~ ]"

The first term on the LHS of Eq. 5.6a 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

m ( q,%.~ ) that transfers fluid through the reservoir west boundary to gridpoint 1 ; i.e.,

IT m (O . . . . . q,n ---- 1/2 . . . . . . . 0 - - I ~ l ) - - T~ . . . . (C l ) 2 - - ~ 0 7 )1 scb W ,1 - ~ ÷

Substitution of Eq. 5.7 into Eq. 5.6a yields

(5.7)

Va ~'~'°+~ -(~)11 q,, +Tm ( 0 r _ . , ~ ) + q m _ ( Z ~ ltB)l "?Cb W ,1 XI+I/2 $Cl (5.6b)

The above flow equation can be obtained from Eq. 5.2b for n = 1, ~Pl = {2}, ~l = { h w } ,

2; ° and by observing that qsm,, = q~% , and T~,~ = T" , , Xhl /2 °

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 grid- point n ,

[(~_),+l d~ r m ( ~ m _ i ~ m ) .~ ~,rn i ~ m - - ~ m ) ~_ 2q~ - - (B)'~ ]

n +1 n~ n (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 % ,

Page 158: Petroleum Reservoir Simulation a Basic Approach

5 .3 F l o w E q u a t i o n f o r B o u n d a r y G r i d p o i n t s 131

r n (~m _¢~m T m (t~,n f~m T z ¢qb" - qb m ) + ~ [T~ .... ( n +I )-- x ...... l -- n )] :gn x 1/2 \ nx--I n, n x - x nx n , - ~ x t

V~,,~ [(~_):[I _(~_): ]. (5.9a) +qm -- ~ t

The second term on the LHS of Eq. 5.9a represents the rate of fluid flow across the reser-

voir 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" ~ z (I)m T" qbm -,~"~ )1 q'~ = 1~2 ...... ( n +1 -- n ) - ( n -1 n~ SOb E ,n x n x ~ • x x Xn x -1/2 x

Substitution of Eq. 5.10 into Eq. 5.9a yields

(5.10)

Z m _ ] _ m . . ~ m Wb ~ f l n t l . . . . . . . - " - ( )7, J xn,_l/2 (lff~nmx-1 - - ~ n n t ) q ..... qsc ct A t (5.9b)

The above flow equation can be obtained from Eq. 5.2b for n = n x , ~,x - {nx - 1},

~n = {bE } and by observing that ~ q',~, = q " a n d T m = T m x ' ,n x SCb E,n x nx--l,nx xn x- t /2 "

For 2D reservoirs, the flow equation for interior gridpoint (i, j ) is given by Eq. 2.37,

T m (t~ 'n - O S j ) + T . . . . _(~m, T m ( ~ , , --(~mi,j) yi , j . l /2 \ i,j--I , Xi. 1/2,j ( t f f~ i - l , j i j ) "[- Xt,ll2,j \ i~'l j

~t, Vbi,j r/(/) .... 1 ~ ) n "[-Lmj .... ((I)i,j+ I -- CD ,': ) + q':,,: -- ~ tt-~)i,: -- (-~)i,: 1"

The above flow equation can be obtained from Eq. 5.2b for

(5.11)

n - (i,j), ~0~,: = {(i,j-1),(i-l,j),(i +l,j),(i,j +1)}, ~/,: = { }

and by observing that ~ qm = 0 for an interior gridpoint, T m = T m and sq,(i,j ) ( i , jq : l ) , ( i , j ) Yi,jill2 ~

T m = T m t~,.j ( i ; 1 , j ) , ( i , 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 transmissi- bility 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

Page 159: Petroleum Reservoir Simulation a Basic Approach

132 C h a p t e r 5 S imu la t i on wi th a P o i n t - D i s t r i b u t e d G r i d

m m iff~m m m m m -, m m T~ ...... (t~3,o - 3,1 ) + 2T~ ...... (~:.l - ~3,, ) + 2 ~ . . . . . . (lff~4,1 - - 1~3,1 )

2Vb~, rC~b.l.+l ~b . (5.12)

Adding and subtracting the flow term Ty~ ..... (O~2 - qb~l ) to the LHS of the above equa- tion gives

T m ¢¢brn m T m ( f I ) . . . . . . . . y . . . . . . . \ ~ 3 , 0 - ( ID3,1) - - y . . . . . . . \~3,2 -- ~3.1)] + 2T~ ...... (q~2,1 -- qb3,1)

+ 2 T m , ( ( ~ m m, 2 V b 3 1 [ - ( . ~ ] n + l __(( t~]n (5.13)

Dividing Eq. 5.13 by two results in the flow equation for the actual block represented by boundary gridpoint (3,1),

(5.14a) -I" Tx3 m. . . . . ( ( i ) 4ml ( I ) 3 1 ) + Z m + m - - wb~ . . . . ¢~ xn+l @ n

. . . . - - , Y .... . . . . (lff~3m2 - -1~3m' l ) q . . . . a + A t [ ( B )3'1 -(~)3,11.

The first term on the LHS of Eq. 5.14a 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 +,. > ) that transfers fluid through the reservoir south boundary to boundary gridpoint

(3,1); i.e.,

1 / f T m rthm _ ty~m ~__ T m m m q ..... . . , = / 2 1 y . . . . . . . ~,"1"3, 0 3 ,1 ; y . . . . . . . ( (I)3,2 - 1 ~ 3 , 1 ) 1

Substitution of Eq. 5.15 into Eq. 5.14a yields

(5.15)

m m m m qm + T m ( q b 2 1 _ d i ) 3 , 1 ) + T m (lff~)4 1 _ l f f~3 ,1 ) SCbs,(3,11 x3-1/2,1 , x3t 1/2,1 •

(~mx..]_ m Vb3,1 [ ( ~ n ÷ l ~) n +Tin (qbm~ - 31) q .... - t , B , 3 , 1 - ( ~ ) 3 1 ] '

Y3A41/2 -' . . . . , ( x c A t

The above flow equation can be obtained from Eq. 5.2b for

(5.14b)

n - (3,1), q~3,1 = {(2,1),(4,1),(3,2)}, ~3,1 = {bs},

E m m and by o b s e r v i n g tha t qm = qm , T~2,1~,(3,1 ~ = T m T~4,1),0.1~ = T m and $cI,(3,1) SC'bS,(3,D X3-112,1 ' X3~1/2,1 '

m T(3,2),(3,1) ~ Tm 1~'1

Y3,1+1/2

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-

Page 160: Petroleum Reservoir Simulation a Basic Approach

5.3 F low Equation f o r Boundary Gridpoints 133

bility in the y direction for the whole block are twice the bulk volume, well rate, and trans- missibility 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. Simi- larly, the f low equat ion for the actual b lock represen ted by gr idpoin t (1,3) can be expressed as

where

r y , O c~, . . . . i . + m --m ~ . m .. . . . . . . . " 1,2 - - q ) l 3 ) q*% ~, 3) + 11~ . . . . . (" 2,3 O 1 , 3 )

+ r m ( ¢~m qm E~.3 ff ~b .l. + l _ ( ~b ~,,1 . . . . \ 1 4 - - ( I ) lm3) - t - - - - t ' . - ' ~ " l 3 . . m.3 a .At B ' ~B ~1'3''

(5.16)

m m m m m m q,% ...... = ~ [ T _ xl ,/2,3 ( ( I ) o 3,- - 1 ~ 1 . 3 ) - ~ 7 ~ . . . , ( ( I )2 ,3 - 1 ~ 1 , 3 ) ] (5.17)

The f low equat ion given by Eq. 5.16b can be obta ined f rom Eq. 5.2b for n = (1,3),

~Pl,3 ={(1,2),(2,3),(1,4)} ~13 ={bw} and by o b s e r v i n g tha t ~ qZ =qm , ,- , SCI,(I,3) SCb W ,(1,3)

T(~'2),(1, 3) = r} i~ . . . . ' r (7 '4) , f l , 3) = r~i~ . . . . . . , and T(2,3),(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 equa- tion 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" (O1, o - O1,1 ) + 2T~ ..... (~o,1 - O1,1 ) + 2T~ ..... ( 2,1 - O11 ) Yl.I 1/2 + -, - +, '

4 " 4Vb,,, ~ n.-1 ~ n

+2g I . . . . . ((1)1P/2--1~)1~21) -}- qsct , 1 - - ~ c ~ t [ ( B ) l , 1 - ( B ) 1 . 1 ] "

(5.18)

m ~ m + T . . . . . . . Adding and subtracting 2T~ ...... (02,1 - O1,1 ) 2 ...... (01 = - O1,1 ) to the LHS of the above equation gives

m m " - O " ~ - T . . . . -(I)~1)]+21r~7, ' i (~I)01 --~I~)11)--r; ...... (~I)2,1 --~I)1,1)] 21r,~, , (O1,0 ll . . . . . . . (O1,2 . . . . . . - , ! 2 .±, _ , " 2, '

4Vb Ab .... 1 (q~ , , , +4T~1, ~(O2,-O' lnl)+4T~ 7 ..... (O1~2-O'1~l)+4q~,~ = ,' It--)11 - 3)111. (5.19)

~ , , o , " , a cat B ' '

Dividing the above equation by four results in the flow equation for the actual block repre- sented by boundary gridpoint (1,1),

Page 161: Petroleum Reservoir Simulation a Basic Approach

134 C h a p t e r 5 S i m u l a t i o n w i t h a P o i n t - D i s t r i b u t e d G r i d

~ [ T m [ c h i n _ ¢ ~ L 1 ) _ T m m --~ '1;~1 1 . . . . . ) - Z . . . . . l Y . . . . . . \"~"1.0 " "¢ . . . . . ((I)1'2 ) ] q - Y22[T£ . . . . . ( ( ~ 0 1 - - I~1,1" ~1 . . . . (1~2"1 - -1~1"1 ) ]

-1 -~* .... , ( ' 2 1 , -- *In,; ) -{- Ty~, ..... ((~1m2 --OPll)+ qm ' SCl'l -- a~tV~'l t'B"]'l|(-~ntl _ ( B ) I , I ] . ( / ) n

(5.20a) The above equation can be rewritten as

q . . . . + 77~ l, 1 ((I)21 - ( [DI ] ) -]- Tv~i'l .... ((~lDln,Z2 -- (~lml) -]- q " Sgb s ,(1,1 ~- qs% ,(I,l) " 4 2, " , SCI,I

Vb . . . . . (~ ,n+ l (J~ n - - ~ - l ~ - z ) , , -(~),,,1,

acAt B '

(5.20b)

where

1 m m m m m m qs%.( .... = l ~ 2 [ r y . . . . . . . ((I~1,0 - I ~ l l ) - T ~ . . . . . . . ( (I) l , 2 - ( I ) 1 , 1 ) ] (5.21)

m m T m . i m qs%.,1,,. = ~ [Tx'.', 112,, ((I)0,1 - - O 1 3 ) - - x . . . . . ~ -,. ( O 2 , 1 - - O 1 . 1 ) 1

Eq. 5.20b can be obtained from Eq. 5.2b h)r

n = ( l , l ) , ~01a = {(2,1),(1,2)}, ~.l ={bs,bw},

(5.22)

E m and by o b s e r v i n g tha t q,~,,,., . . . . =qs~'~bs,o,1)+q2,,(t,,, , 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, m" m - - p m ) + E qm ' +q~" - a,~At[(B~--),~H -(~),~]. t n ~Pl , n ",n n l~ q,. I ~

(5.23)

For interior gridpoints, g ) = { n - l ,n + ]} and ~" = { } . Therefore, ~ , qr, = 0 scl, n

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

Page 162: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment of Boundary Conditions 135

( k x = 15 md), and constants/~ and B. Therefore,

k A~ 15 x ( 1 2 0 0 x 7 5 ) T,~" = f l~ - 0 .001127x

ktBAx 10 x 1 x 1000 = 0.1521 STB/D-psi.

T~" T~ ~ T 3' = T 4 T~" = T " = 0.1521 STB/D-psi In addition, .z= ,3= .4 .5= .6 x

~ q " = 0 , a n d qm = 0 For gridpoint 2, n = 2 , ~2 = {1, 3} , ~2 = { } . . . . . . . ,~_ '

Therefore, substitution into Eq. 5.23 yields

( o . 1521 ) (p r - ) + (o.1521)( ; . - , ¢ ) = , , . , , , o - ( - p , l. (5.24)

For gridpoint 3, n = 3 F 3 = { 2 , 4 } ~ :3={ } ~ q " = 0 and qs~3 =0 i ~ ~ SC l , 3 ~ • Ic ~3

Therefore, substitution into Eq. 5.23 yields

m vb~ ..,~.,., _(_~£]. ( 0 . 1 5 2 1 ) ( p 2 - p~" ) + ( 0 . 1 5 2 1 ) ( p ~ " - P3 ) = ~ I t -~ )3

B - O:cA t /~ -

(5.25)

S 'q m = 0 and qs'~, = 0 . For gridpoint 4, n = 4 , F4 = {3 ,5} , ~ 4 = { } , ~ sc/,4 , l~4

Therefore, substitution into Eq. 5.23 yields

Vb4 .,, ~1) . . . . 1 _ _ ( ~ ) n l ] " (0.1521)(P3 - P4' ) + (0. ] 521)(p~ - P4 ) = ~ ~ ~~)4 B - a~,At t~

(5.26)

For gridpoint 5, n = 5 ~ 5 = { 4 , 6 } ~ s = { } ~.~q" = 0 ~ . , s c l , 5

and qm = -150 STB/D. Therefore, substitution into Eq. 5.23 yields sc 5

Vb5 r/q .... 1 ~) n

( O . 1 5 2 1 ) ( P 4 - P m ) + ( O . 1 5 2 1 ) ( P 6 ' - P ~ ) a,, zxt" lt--z)st~ - (~)5 ]. (5.27)

5.4 Treatment of Boundary Conditions

A reservoir boundary can be subject to one of four conditions: 1) no-flow boundary, 2) con- stant 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

Page 163: Petroleum Reservoir Simulation a Basic Approach

136 Chapter 5 Simulation with a Point-Distributed Grid

q2bb. = g e t 2 , . . . ( , I , " - O " m q,m ,. • " bP*" bP" b,bV* ( be* -- aPbP )1 (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 immediate ly 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 uncommon 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 " kIAt m T" (5.29a) b,bP*" "~]bP,bP** =[/~c ~ l b P . b p * = b,bP*

where l is the direct ion normal to reservoi r boundary b. Subst i tut ing Eq. 5.29a into Eq. 5.28a results in

q " = ~ T " (d9 . . . . ....... - b.b,* " bP'" -- dPb'* ) (5.28b)

In the following sections, we derive expressions for q,"$ ..... under various boundary condi- tions for a point-distributed grid in Cartesian coordinates and stress that this rate must pro- duce 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 pre- sented 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

Page 164: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment o f Boundary Conditions 137

ALbP, bp. b ALbP, bp*

L; " r "1 o b P . ~?bP I ,bP

. . .====..=1:. .====.1 | I Direction L }b

Boundary

Figure 5-7

I Definition of the terminology used in Eq. 5.28.

kx Ax m ,, q~,~., _- ~ ' / ' T " , . ~,.,,~ (0o' - 0; ' ) ] = ~[(#~ ~ ] , + . ~ (0o - 0~')1

kxA~ m 3 0 m kxA x ,. ~ 0 " k~ax " ( 0 ° - 0 7 ) - [tic --~1~+]/2 ~ ~ = -[fl~ - -~]L2 -~x

~--" [#c --'~]1÷1/2 2AX1H/2

(5.30)

dp dp b~ Cdx 1 I 12 I O " n x - l l nx

I Left Boundary Right Boundary

Figure 5-8 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 approx-

imated 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 k A m 3pJ"ew_7~z ~xxe w qs:~., = -[tic - -~] , ,2 : -[tic - -~] , ,2 [~x ]. (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

kxAx m ~O lb~ kxA~ m 3P Im __Tin Ox3-Z b~ ' qmscb~.,,,x : [ # c ~ l . . , . ~ - 1 . : [ /~c -~B-lnx,nr-l[~Xb~ ....... -1 . ]. (5.32)

In general, for a specified pressure gradient at the reservoir left (lower, south, or west) boundary,

k iA l ,, ~p 1" 0_~/b q: ..... =-l#c ~]b~bp*[~,, -~b%* 1 (5.33a)

Page 165: Petroleum Reservoir Simulation a Basic Approach

138 C h a p t e r 5 S imu la t ion wi th a P o i n t - D i s t r i b u t e d Gr id

and at the reservoir right (east, north, or upper) boundary,

kIZl ,. ~1 m ~ll b q " = [tic ~ ] b P , b p * [ -- 7b'~, bP* ] (5.33b) SCb'bP b '

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 reser- voir 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 speci- fied 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.,

Tbp,bp ~ qm - -

s~b .... ~ T m qsps~ (5.37) l,l*

lE~J b

where ~b ~-~ the set that contains all boundary gridpoints that fall on the reservoir boundary

in question and T m = transmissibility between boundary gridpoint l (or reservoir boundary l,l*

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

Page 166: Petroleum Reservoir Simulation a Basic Approach

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-Flow Boundary Condition

The no-flow boundary condition results from vanishing permeabil i ty 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 ( O0 om for gridpoint 1 and O" m = . n ~ - i = ( I ) ~ n n ~1 for gridpoint n~ ). In either case,

Eq. 5.28b for boundary gridpoint 1 reduces to

q. , 1 m m m m m = ~ T~,2 ((I) 0 - tI)~ ) = ~ (0)((I) 0 - (I) 2 ) = ~ T m (0 ) = 0 ( 5 . 3 8 ) SCb w ,I ~ ~ x t / 2

and for boundary gridpoint n x it reduces to

q " ~ / T " ( O m - O" O~ qb~ - ~ T m ( 0 ) = 0 ( 5 . 3 9 ) . . . . . . . . = / 2 . . . . . . . nx+l n - 1 ) = 1/~2 ( 0 ) ( n - I - - n - 1 ) - - / 2 . . . . . . . .

In general, for a reservoir no-flow boundary, Eq. 5.28b becomes

qm ..... = 0 ( 5 . 4 0 )

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 pres- sure ( 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 grid- point bP* (for example, gridpoint 2 and gridpoint n x - l in Figure 5-9). The flow equation for gridpoint 2 can be written as

T x m m m ~ ~ - m m ..... [ ( p ~ - p : ) - 7~+. . (Z, - Z 2 )l + T~. ,. l ( p~ - P2 ) - 72+.2 (Z3 - - Z2 )]

= v~2 [ ( ~ ) ~ ' - ( ~ ) ~ l . +qs~2 a C At

Similarly, the flow equation for gridpoint n x - 1 can be written as

(5.41a)

Page 167: Petroleum Reservoir Simulation a Basic Approach

140 C h a p t e r 5 S i m u l a t i o n w i t h a P o i n t - D i s t r i b u t e d G r i d

Tx m [ ( P 2 _ 2 - - p m _ I ) - - ~ " m 3/2(Z~ ~ - - Z ° 2)1 n x - 3 / 2 x x x x -- x "

v< (5.42a) +T~ ~ [(PbE -- P2-1)-- ~ ( Z - Z l)] + q~ = ' rcCPV*l - (~) : , 1 ].

" x , / 2 . x n . - 1 / 2 x x - SCnx , acAt ~,B,n~ 1

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 m ( 0 0 -- 0 7 ) -- T 'n (0 '~ - • 7 )] (5.7) S C b w , ' ~ X l - , / 2 Xl + 112

I I " I I

Left Boundary Right Boundary

Figure 5-9 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

en te r ing the bounda ry , T m ( 0 0 - 0 ' ~ ' ) must equa l the rate of f luid l eav ing the Xl 1/2

boundary, T" (O~ - O~ ) • i.e., X l + ] / 2

m m T m ( 0 0 - 0 ? ) = T m ( 0 1 - 0 2 ). X , - I / 2 X , + I / 2

Substituting Eq. 5.43 into Eq. 5.7 gives

(5.43)

qm = 1/2 [ - - T x : i/2 ( 0 2 l - O m ' ~ - - z m ( d ) m m _ T m ( 0 2 - - 0 1 )

- T ~ (cb m ,, - x~+ .~ , - -1 - O 2 )

( 5 . 4 4 a )

o r

qm =Tm [(P~ -P~)-Y~"+~/2(Z~ -Z2)] (5.44b) scl~ , I x I + I / 2

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 • cb ..... . . . . . . . . . -1 ) ( 5 . 4 5 a )

Page 168: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment o f Boundary Conditions 141

o r

-~ m m m r Z q~ T" [ ( P , , - P , , - ~ ) - 7 . - . 2 t . - Z 1)]

SdbE,n x Xn x 1 / 2 • x x • x -

with p,, = Po~:"

The general equation becomes

qm Tm ~m d~m = ( ~,, )1 scb,bv b,bP* bP *

o r

where

m m m Z q" =T" [(pbp--pbp*)--~/b,bP*( bP--Zbp*)] SCb,bP b,bP*

7b.bp"

(5.45b)

(5.46a)

(5.46b)

Tb m - k i A l m (5.29b) ,,b,,~ : [/~< 7B-ZT]b~j

= fluid gravity between boundary gridpoint bP and gridpoint bP*, and PbP = Pb "

Combining Eqs. 5.46b and 5.29b gives

q,, [^ ktA1 ] . . . . . . . . Z SC~,b p = t ic ~ ~,P*e* [ ( P b P - - PbP" ) - }lb,bP* t 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 grid-

point n x 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 grid-

point n x - 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- x>~,~ [ ( P ~ - P ~ ) - ~ % ~ l m ( Z 3 - Z 2 - -

+ q : : v~ A l(~)~+l_r¢'~,,~ • 2 (~c t - ~ B x 2 j

(5.41a)

Page 169: Petroleum Reservoir Simulation a Basic Approach

142 Chapter 5 Simulation with a Point-Distributed Grid

and that for gridpoint n x - l as

m tn \ nl ~ Z Tm [ ( P , , - 2 - P , 1 ) - - 7 n - 3 / o ( n_2-Zn 1)] X n ~ 3 / 2 x x x - x x

Wb I [ ( ~ n l l -- (~_)n x 1 ]" (5 .42a) +T'," ,,~[(Pb~ -P,',"-1)-7'."<1/2(Z. - Z _ l ) l+q" - ° ' - '

. . . . . . . . " ~ (x At "'B ,"'-]

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 Vb2 , r (J~ xn+l __ (~_)n ] , ( 5 . 4 1 b ) . . . . ttP3 - P 2 - 7 2 , 1 / 2 ( 2 3 - z 2 ) ] + q " + m _ + . . ,~.,~:_ q~ -- -7 I ts)2 • g~cAt B

where q~ = qm T . . . . = x .... [(Ptw -P2 )-~/1+1/2(21 --22)] and Eq. 5.42b for gr idpoint SOb w ,2 SCt~ w ,1 + .

n x - 1 becomes

m m m Z Tm [(P. -2 - P . - l ) - - ~ n -3/2( n x -2 -Zn -1 )] Xn~ 3 / 2 x x x

v~ (5.42b) ,,h -{- m ..... - . . . . . _ ( B ) n _1], q,% , + qs~':.= 1 -- ~ [['-B)n= 1

where qm = qm =Tm [(Pb. --P,'~'<)--Y,~' 1/2( Z. - Z -1)1 SOb E ,n~ -1 NCb E ,n x Xn x - 1 / ' 2 x x x x "

The following examples demonstrate the use of the general equation, Eq. 5.2a, and the appropriate expressions for q" to write the flow equations for boundary gridpoints in

$Cb,b P

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

Z Z . . . . . . . . +X"q,,, +qm Vb ~ ~ ,,.~p, - p . ) 2. . . . . . . . . . . . - ° [( ) ; 7 1 - ( )."]

z~. t~¢° ct c At (5.23)

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

, , , y~ =qm and write the flow equation. For n = l ~0, = {2} ~, = {b w } q~" "%., ,

Page 170: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment of Boundary Conditions 143

m qm = 0 In addition, T~. 2 = 0.1521 STB/D-psi from Example 5.2. Therefore, sub- x c I

stitution into Eq. 5.23 yields

+ m vb, _~, +l_(~);ld, (0.1521)(p~"-p~') q,c~, - ~z-~U.~) l

Furthermore, the RHS of Eq. 5.47 vanishes, resulting in

(5.47)

Vb, "'~'"+' -(~)7] (5.48)

n because p~,+l = Pl = P~ = 5000 psia.

7

r

Pbw = 500

150 STB/D

No-flow boundary

Figure 5-10 Discretized 1D reservoir in Example 5.3.

Combining Eqs. 5.47 and 5.48 and solving for qm yields ~Cb W ,1

m q,c,,~, = (0.1521)(5000 - p~' ) (5.49)

Note that Eq. 5.46c also gives an estimate for qm SCbw ,I

m ~ 15 X (1200 × 75) qsc~l =[tic ~ u ~ ] ~ ' 2 ( P l -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 pro- duces a result consistent with that obtained using the general flow equation for a boundary gridpoint.

, ~ , ,, =qm and For boundary gridpoint 6, n = 6 ~6 = {5} , ~'6 = {be} , q ....... s ...... ' 1¢~ 6

q" = 0 In addition, Ts, 6 = 0.1521 STB/D-psi from Example 5.2. Therefore, sub- sc 6

stitution into Eq. 5.23 yields

Page 171: Petroleum Reservoir Simulation a Basic Approach

~,.+1 o~ • .+ ..... m _ a At B (0.1521)(p~ -P6 ' ) q [(B)6 - ( )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 scb E ,6

Substitution into Eq. 5.51 results in the flow equation for boundary gridpoint 6,

(O .1521) (p~_p6)+O= Vb6 [ ( ~ ) 6 , 1 _ ( ~ ) 6 ] a At

(5.52)

150 STB/D

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.

Z

0 01 ps,/

144 Chapter 5 Simulation with a Point-Distributed Grid

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 T,? . . . . +q., Vb [(~_),,,+l _ (~)~ ] tntP~ --P, )+,~_,q .. . . . . . . . . . = " ~e~o. Z,t. a , A t

(5.23)

, qm =qm and For boundary gridpoint 1, n = 1 ~'1 = {2} , ~'1 = {bw } , Z ..... ,%., ,

m qs'~, = 0 . In addition, T~. 2 = 0.1521 STB/D-psi from Example 5.2. Therefore, sub-

stitution into Eq. 5.23 yields

+ m (0.1521)(p~ -p~ ' ) q,%, - a - ~ t

Page 172: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment of Boundary Conditions 145

where the flow rate of a fictitious well for specified pressure gradient at the reser- voir left boundary is estimated using Eq. 5.33a,

q',%., -l~c kxAx m ~P Imbw ~-~X bw = - ~ ] , , 2 [~xx - ~';','2 ] (5.54)

= - [0 .001127 x 15 x (1200 x 75)] [ -0 .1 - 0] = -152 .15 x ( -0 .1) = 15.215. 1 0 x 1

Substitution into Eq. 5.53 results in the flow equation for boundary gridpoint 1,

vb, r,~P,,.1 _ (~P)~ l (5.55) (0.1521)(p~ n - p~' ) + 15.215 = - - l~.--)1 a c A t B B

For boundary gridpoint 6, n = 6 , ~ 6 = { 5 } , ~'~6 = {bE } ' Z qm ,c,.6 =q,'~b~., , and l~6

qm = 0 In addition, T. ~ = 0.1521 STB/D-psi from Example 5.2. Therefore, sub- sc6 " 5,6

stitution into Eq. 5.23 yields

ttl Vb6 i1¢..-}1 _(~)n6] (5.56) (0.1521)(p~' - - p6 'n '+ ) qSCbl~ 6 - - - - IA-'E)6 ~' a c At /~ B

where the flow rate of fictitious well for a specified rate boundary is estimated

using Eq. 5.36; i.e., qm = 50 STB/D. SOb E ,6

Substitution into Eq. 5.56 results in the flow equat ion for boundary gddpoint 6,

(0.1521)(/,; - p : ) + 5 0 = vbo 1 (5.57) acAt

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

AXirlZ 2 = 250 if, Ayj~_l/2 = 300 if, h = 100 ft, k x = 270 md, a n d 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

Page 173: Petroleum Reservoir Simulation a Basic Approach

146 C h a p t e r 5 S i m u l a t i o n w i t h a P o i n t - D i s t r i b u t e d G r i d

No-flow boundary

qs%, = -500 STB/D

| I

16 17 18 19 20

12 13 14 11 • • • 15,

d'~- bE 0.1 psi/ft

7 8 9 Y 300 ft 6 • • 10 q - -

T ~ ~ ;00 ft x 1 2 3 5 No-flow boundary

Pbs = 3000 psia STB/D

Figure 5-12 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" qm . . . . . . C~cL~Vb" 0~"+1 ~_ tP, -- p,,m) + ,~, -- " - ' ' 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 xdirect ion ( k x = 270 md),

and /~ = 2 cp and B = ] RB/STB. Therefore,

T m = fl,, k ' A x - 0.001127x 270×(300×100) ,uBAx 2 x 1 × 250

= 18.2574 STB/D-psi.

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,

Page 174: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment o f Boundary Conditions 147

kyAy 220 x (250 x 100) T " = fl~ = 0 . 0 0 1 1 2 7 x = 10.3308 STB/D-psi.

,uBAy 2 x I x 300

In addition,

T6" =T7 ~ =T~ ~' =T9" =T]m =T]" =TI" =T~" =Tm =18 2574 STB/D-psi ,7 ,8 ,9 ,10 1,12 2,13 3,14 4,15 .~: '

because the gridpoints in the second and third rows have

A x = A y x h = 300x 100 ft 2. However,

T~ m = T~ ~ T~" Tj" T~" T~" T~ m T~" 1/22 T m 9 1287 STB/D psi ,2 ,3 = ,4 = ,5 = 6,17 = 7,18 = 8,19 = 9,2(/ = x ~--" "

because the gridpoints in the first and last rows have

A x = ( A y / 2 ) x h = 150x100 ft 2. Similarly,

T2 n = T ; 't =T1 m = r 3 n --~-T8 n =T1 m =T4" = r 9 n =T1 m = T m = 1 0 . 3 3 0 8 ,7 ,12 2,17 .8 ,13 3,18 ,9 ,14 4.19 y

STB/D-psi because the gridpoints in the second, third, and fourth columns have

Ay = A x x h = 250x100 ft 2, but

T~" =T~" =T1 m =T5 ~ =T~ m =T~" =1/2T"=51654STB/D-ps i ,6 ,11 1,16 ,10 0,15 5,20 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 where qm is obtained using Eq. 5.46c by discarding the Z scl,2 sc~ S,2 ' sob S,2 le~ 2

gravity term, resulting in

k .Ay m m qs m .... = [tic ~ ] 2 , 7 (Pb,. -- P7 ) = [0.001127 X

m = ( 1 0 . 3308 ) (3000 - P7 ).

220 x (250 x 100) 1(3000 - PT' ) 2 x I x (300) (5.58)

m In addition," T1, 2m = T~.3,,, = /2~ Tmx = 9.1287 STB/D-psi, T2, 7 = 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 )

+ ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - P 7 ) + 0 = Vh l (~)~+l_(~)~] . a~. At

(5.59)

Page 175: Petroleum Reservoir Simulation a Basic Approach

148 Chapter 5 Simulation with a Point-Distributed Grid

The above equation reduces to an identity equation m m because Pl -- P2 -- pm = 3000 psia, and the RHS vanishes 3

because p~' = p2 ÷1 = Pb, = 3000 psia. In other words, Eq. 5.59 does not intro-

duce 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 ~6={1,7 ,11} ~6={bw} and q" = 0 i , , sc 6 •

~ , q,, = q m where qm is obtained using Eq. 5.40 for the no-flow boundary; SCI. 6 SCbw,6 9 SCbw.6

1¢-~ 6

m i.e., qm = 0 In addition, T~. 6 =Tm =18 .2574 STB/D-psi, SC&w ,6 " x

m m 71,6 = Tl l ,6 - 1 / ~ 2 T m = 5 . 1 6 5 4 STB/D-psi, a n d V b 6 = (250 / 2) x 300 x100 ft 3.

Y

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,, ) + (18 .2574) (p 7 - p6 ) + ( 5 . 1 6 5 4 ) ( p , - p6 )

+o+o= v~o [(~_)6+1_(~)61 a c At

(5.6o)

Forboundarygr idpoint lO, n = 1 0 ~lo ={5,9,15} ~'~o ={b~:} and qm = 0 , , + SClO •

Z qm . 7_qm , where q" is estimated using Eq. 5.33b for the reservoir east SCI,IO SCb E ,tO SOb E .t0

l ~ O

boundary,

k A ~ , m ~ bE qm =[ t ic + . . . . . Opl m igZ . . . . . . . . - - ~ " I 1 0 ' 9 [ ~ X ' X 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, Tf = T m = 18.2574 STB/D-psi, Z~ ~' = TI m ~- ~ T " = 5.1654 ,10 x ,10 0.15 y

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 I ( (J~)tt+l , ~ ) . . . . a At , ,~ ,1o - t ~ ) l o l .

(5.62)

Page 176: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment of Boundary Conditions 149

For boundary gridpoint 18, n = 18 , ~'~ = {13,17,19} , ~'~8 = {bN } , and

qm, q8 = 0 " Z qs m,,," =qs"%, , 8 , where qs'~ .... . is estimated using Eq. 5.37 because

qsp,~ = - 5 0 0 STB/D is specif ied 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 Tl,';" q,psc

IE~,ObN

(5.63)

where ~Ob~ = {16,17,18,19,20}. Note that, using Eq. 5.29b,

ky Ay .., 220 x (250 x 100) ] T~'8",13 = [tic ~ y ] 1 8 , 1 3 = [0.001127 × 2 x l x 3 0 0 = 10.3308 STB/D-psi (5.64)

m m m m m Also, T~7.12 = T18,13 = 719 ,14 ~-- 10.3308 STB/D-psi, and T~6,11 = T~'o,15 = 5.1654

STB/D-psi. Substitution into Eq. 5.37 yields

10.3308 m

q~"~"" 5.1654 + 3 x 10.3308 + 5.1654 × ( -500) = -125 STB/D (5.65)

m m m = l / T " = 9.1287 STB/D-psi, 713 ,18 ~--- T m = 10.3308 , In addition, TI7.18 = Tin8 /2 x y

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"~ )

- 1 2 5 + 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

Page 177: Petroleum Reservoir Simulation a Basic Approach

150 C h a p t e r 5 S i m u l a t i o n w i t h a P o i n t - D i s t r i b u t e d G r i d

( 5 . 2 3 ) t~v. l~,, a c At

The data necessary to write flow equations for any boundary gridpoint were calcu- lated in Example 5.5. The following is a summary:

~ " = 18.2574 STB/D-psi

Ty m = 10.3308 STB/D-psi

T 6 = T7" = Ts" = T9 ~ = T1 m TIm T1 m T1 m T z 18 2 5 7 4 S T B / D psi ,7 ,8 ,9 ,10 1,12 ~- 2,13 ~- 3,14 ~ 4,15 ~ x ~ "

TL~ = T2m~ = T3" 4 = T4~5 = T16117 = TI7 ,18 = T18,19 = T191,2o = ~ T x m = 9 . 1 2 8 7 STB/D-psi

T2 n = T 7 n = T I m = T 3 m = T8 m Zl m T ~ = T 9 = Tl z = T m 10 3 3 0 8 S T B / D psi ,7 ,12 2,17 ,8 ,13 ~ 3,18 ~ ,9 ,14 4,19 y ~ "

T~,6 = T6.~ 1 = T1 z _- T~.I ° = Tin,,,15 = z = ~ T y = 5 . 1 6 5 4 S T B / D - p s i T15,20 1,16

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 = ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - P T ) SOb S ,2

q~, , , = ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - p~" )

qm = ( 1 0 . 3 3 0 8 ) ( 3 0 0 0 - - P 9 ' ) SCb~ ,4

q~)~.~ = 0 S T B / D for b P = 6 ,11

q m .... = 4 5 6 . 4 3 5 S T B / D for b P = 10 ,15

q,'~ ...... = - 1 2 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 b P = l , 5 where l * = 6 SCbF ,bP

a n d 5* = 10 or m o r e explicitly,

m q,%., = ( 5 . 1 6 5 4 ) ( 3 0 0 0 - P6" )

m qZ = ( 5 . 1 6 5 4 ) ( 3 0 0 0 - P m ) SOb S ,5

Page 178: Petroleum Reservoir Simulation a Basic Approach

5.4 Treatment of Boundary Conditions 151

q" = 0 STB/D for b P = 1,16 SOb W ,bP

q~,,~,~ = 0 S T B / D

q " = 2 2 8 . 2 1 7 5 S T B / D SOb E ,20

q" = - 6 2 . 5 S T B / D for bP = 16, 2 0 SCb N ,bP

For boundary gridpoint 1, n = 1 , ' ~ l = {2,6} , ~ l = { b s , b w } , q,~, = 0 , and

Z qm m + m = m "c,., =q,%., q % . , (5 .1654)(3000--P6)+0 STB/D.

m a . . . . . = ~ T m = In addition, T~. 2 = ~T~ = 9.1287 STB/D-psi, T1. 6 ~ 5.1654 STB/D-psi,

and Vb, = (250 / 2) X (300 / 2) X100 f t 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

_ v~, [(~)1+1_(~)~].

For boundary gridpoint 5, n = 5 , ~'5 = {4,10} , ~5 = {bs,bF.} ' q ~ = 0 , and

(5.67)

,, + m = m 0 m ~q~,5 =q'%5 qs%, ( 5 " 1 6 5 4 ) ( 3 0 0 0 - - p , 0 ) + 0 = ( 5 . 1 6 5 4 ) ( 3 0 0 - - P l o) STB/D.

m m In addition, T4. 5 = ~ T m = 9.1287 STB/D-psi, T~0.s = ~ T " = 5.1654 STB/D-psi, x y

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)

Page 179: Petroleum Reservoir Simulation a Basic Approach

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" = " +q~ . . . . = 0 - 6 2 . 5 STB/D. SCl,16 q,% ,16

/ ~ 1 6

ttt t t l In addition, TI7,16 = ~ T m = 9.1287 STB/D-psi, T~I,~ 6 = ~ T m = 5.1654

x y

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_ gbl6 r,(Pxn+l (P n - - P16 ) (9.1287)(p~ 7 -- P~6 ) + 0 -- 62.5 + 0 = ~ ttB)16 - ('n')16 ]" (5.~9)

For boundary gridpoint 20, n = 20 ~'2o = {15,19} ~:2o = {bE,bN } qm = 0 p ~ . ~ SC20

and ~ q" = qm +q" = 228.2175--62.5 STB/D. SOl,20 SOb E ,20 --S£'b N ,20

l~ zO

m 1 m m In addition, T~9.z ~ = ~ T" = 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 ft 3

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

vb~0 ,~,~+1 _ (~)~o 1. - ~ I t -L- ) o a cat 1t -

(5.70)

5.5 Calculation of Transmissibilities

The flow equations in Cartesian coordinates have transmissibilities in the x, y, and z direc- tions that are defined by Eq. 2.39 in Chapter 2,

1 (5.71a)

1 T ........ = Gy,.,~,,~.~ (--~)y,,, ........ (5.71b)

1 ~,.; ........ = G ........ (~-):~,,j ...... (5.71c)

Page 180: Petroleum Reservoir Simulation a Basic Approach

5.5 Calcu la t ion o f Transmiss ib i l i t ies 153

where the geometric factors G for anisotropic porous media and irregular gridpoint distri-

bution 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 for ID Xi+l/2

f low in the x d i rec t ion is the same as that p resen ted in Example 4.7 excep t

that 6 x i, = 6xi+ v = ~ AX~+l/2 for 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,

1 T j,~ = G~,~.j,, (~-~)r~,~.j.~ (5.72a)

1 (5.72b) T0, . . . . . . . . : G o i , j . . . . . . (fl~o)Oi,]-- . . . . . . .

1 T j ....... = G ( - - ~ ) . .... (5.72e)

where the geometric factors G for anisotropic porous media and irregular gridpoint distri- bution 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 Geometr ic Factors in Rectangular Grids (Ertekin el al. 20011

Direction Geometric Factor

X G 2flc

....... J'~ AxiT1/2j ~ I (Ax j k jk )+AxiT1/=j k I(A~ k x )

2flc Gyi,j ...... = AYi,j+l/z. ~ /(Ayi,j, k ky,.~.~ ) + Ayi,jTll2. k/(Ayi,~,], k kyi4;1,k )

G = 2E

Zl,j ........ Z~,, i jkT_l/2 / (A . j k k j ~ )+AZ/jk~I/2/(A k z ~ ~ ) ' , ~z, , ~l, , , , g i , j ,k ; I i ,j , T

Page 181: Petroleum Reservoir Simulation a Basic Approach

154 Chapter 5 Simulat ion with a Point -Dis tr ibuted Grid

Table 5 - 2 Geomet r ic Factors in Cyl indrical 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~ L . . . . .. ( r +,,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 . , 0,, o - 0 1 = 2 : r )

Oj+ 1 = O j +AOj+I/2 , j = l, 2, 3... n o - 1

0j</2 = 0 j + 1/z A0j+l/z , j = 1, 2, 3... n o - 1 (5.73)

A0j = 0j+l/2 -0 j_u2 , 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 neigh- bo r ing g r idpo in t s are equal (see E x a m p l e 4.8 and note tha t in this case there are n r - 1 spacings separating the n r gridpoints). Additionally, block boundaries for trans- missibility calculations are spaced logarithmically in r to warrant that the radial flow rates between neighboring gridpoints using the continuous and discretized forms of Darcy ' 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 ( r L i~1/2 ), 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)

Page 182: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculation o f Transmissibilities 155

rL _ r/+ 1 - r (5.75a) i~1/2

log e (r/. 1 ] r/)

r L - r i - r/-i ( 5 . 7 6 a ) i-1/2

log e ( r / / r _ 1 )

r 2 _ r/+l - r 2 i (5.77a) i+1/2 log , (~2+1 //r/2 )

where

and

/.2 2 r2 _ i - r-1 ( 5 . 7 8 a ) i- 1/2 log e (r~ 2 / r//2_l )

C~lg - k r ~ ) (5.79)

r~ = r w . ( 5 . 8 0 )

Note that gr idpoint l falls on the reservoir internal boundary ( r ) and gr idpoint n r falls on

the reservoir external boundary ( re ); therefore, r~ = r and r,,, = r e by defini t ion for a point-

d is t r ibuted grid. Fur the rmore , r~ 1/2 = r and r,,r+l/2 -- re def ine the internal b o u n d a r y for

gr idpoint 1 and the external boundary for gr idpoint n r that are used to calculate b lock bulk

volumes.

The bu lk vo lume of g r idpo in t (i, j , k) is ca lcula ted f rom

i,', /~2 Vb ,k = ( i+1/2 - - ~2-1/2 )(1/~2 m o j )z~kZ, k ( 5 . 8 1 a )

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 men t ioned that the geomet r ic factors in the r d i rect ion g iven 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 cknes s . The b l o c k t h i c k n e s s in

Table 5 - 2 is constant for all gr idpoints in l ayer k, whereas in Table 4 - 2 it m a y assume dif-

ferent values for the g r idb locks in l aye r k. This d i f ference is a resul t o f gr id const ruct ion in

b lock-cen te red and poin t -d i s t r ibu ted 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 and alg ( see E xampl e 4.10), resul t ing in

r ~ , / : = { (a ,g - 1 ) / [ l o g ~ ( a ~ ) 1 }r ( 5 . 7 5 b )

pL ~-]/2 = { (atg - 1 ) / [ a ~ log e ( a ~ ) ] }r i = (~[~)r~L+~/2 (5 .76b)

Page 183: Petroleum Reservoir Simulation a Basic Approach

156 C h a p t e r 5 S imu la t i on wi th a P o i n t - D i s t r i b u t e d Gr id

r~2+1/2 : {(a~ - 1)/[log e (a~) ] }r] (5.77b)

2 1 2 ( a 2 ~] iF 2 ~-1/2 = {(O~g -- )ttlr~lg l O g e , , g , ' , , i = (~a~g)F/2+l/2 , ( 5 . 7 8 b )

i., / 2 2 Vb, ~ = {(a~g - 1) 2 [a,g log, (a,g)] }r/(1/2 A0j )Az k (5.81b)

for i = 2, 3,...nr_ 1 .

Example 4.10 demonstrates that quotients r~/r I" r L I ri_ ~ r L / r~ r~+~ / r L i - l l 2 ~ i.-ll2 ~ i÷l l2 ' i+1/2 ~

and r t- e+~z2 / r,L-a~2 are functions of the logari thmic 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 Tab le 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

(2) Let

(3) Set

(4)

fret % -~,r )

(5.79)

: a i - l E r l~ i ( 5 . 8 2 )

where i = 1, 2, 3,...n r

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}Tw 2 (~2 A O j ) n z k ( 5 . 8 1 c )

for i = 1

and

Vb, .... = {1 - (a~g - 1) / [a~ log e (a~) ] }~ ( ~ a0 j )Azk (5.81d)

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.

r, = r ( 5 . 8 0 )

Page 184: Petroleum Reservoir Simulation a Basic Approach

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, ~ or G terms that describe properties of blocks that fall

~i 2 ~i , j ,nz ~ l l 2 '

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 , b p '

for boundary and interior gridpoints m a 2D single-well simulation problem.

Table 5 -3 Geometr ic Factors in Cylindrical Grids

Direction Geometric Factor

0

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,.,.,,

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 calcula- tions and calculate the bulk volumes.

Page 185: Petroleum Reservoir Simulation a Basic Approach

158 Chapter 5 Simulation with a Point-Distributed Grid

S o l u t i o n

(a) The external reservoir radius can be estimated from well

spacing, r = / 4 3 , 560 × 40//~ = 744.73 ft, and well radius, r w = 0.25 ft.

First, estimate a~ using Eq. 5.79,

= ( 7 4 4 7 3 ] '/~6-n

Second , according to Eq. 5.80, let r~ = r = 0.25 It. Third, ca lcula te the Ioca-

a i - l r Fo r t ion of t he 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 , ~ = ~ ~.

example , for i = 2 , r 2 = (4.9524) 2-~ x 0 . 2 5 = 1.2381 ft. Table 5 - 4 shows the

location of the other gddpoints along the r direction.

T a b l e 5 - 4

i

1 0.25

2 1.2381

3 6.1316

4 30.366

5 150.38 6 744.73

L r~, ri~l/~ - , a n d log. A r g u m e n t s in T a b l e 5 - 2 for E x a m p l e 5 . 7

r L r L i - l / 2 i+1 /2

0.6176

0.6176 3.0587

3.0587 15.148

75.016 371.51

15.148

75.018

371.51

2.005

2.005 2.005

2.005 2.005

r ' ~ ; m

2.005

2.005

2.005

2.005

2.005 2.005

~!'l"yr, '

2.470

2.470

2.470 2.470

2.470

d:,,S,

2.470

2.470

2.470

2.470

2.470

4.9524

4.9524 4.9524

4.9524

(b)

(c)

Block boundaries for transmissibility calculations ( r L r 1" ) are estimated i - 1 / 2 ~ i+1/2

using Eqs. 5.75a and 5.76a.

For i = 2 L _ r 2 + l / 2 r~ - r 2 6 . 1 3 1 6 - 1 . 2 3 8 1

l o g e ( r 3 / r 2) 1oge(6 .1316/1 .2381) = 3.0587 ft

r~.l/2 _ r2-r~ _ 1 . 2 3 8 1 - 0 . 2 5 = 0 . 6 1 7 6 ft l oge ( r 2 / r l ) loge (1 .2381/ 0.25)

Table 5-4 shows the boundaries for transmissibility calculations for the other gridpoints.

Table 5 - 4 shows the ca lcula ted va lues for r / rLi-l/2 ' ~+1 / rLi+l/2 ' rLi-1/2 / fi. 1 '

r L /r~ and r L / r I" which appear in the argument of log e terms in i . 1 / 2 ' i + 1 / 2 i - 1 1 2

Table 5-2 .

Page 186: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculation of Transmissibilities 159

(d) The block boundaries for bulk volume calculations ( r/_1/2, r~, 1/2 ) are esti-

mated using Eqs. 5.77a and 5.78a.

For i = 2 ,

t112

and

r 2 - r 2 (6 .1316) 2 - (1.2381) 2

lOge (r~ / r f ) 10ge[(6 .1316) 2 / (1 .2381) 2 ] - 1 1 . 2 7 0 7 ft2

r~ - r~ 2 - (1"2381)2 - ( 0 " 2 5 ) 2 = 0 .4595 ft 2.

r2_1,2 - loge(r22/r~ 2) loge [(1.2381) 2 / ( 0 . 2 5 ) z ]

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 - ( 407 .77 )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 r i r i l l 2 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 r l _ l / 2 = r w = 0.25

b r6+1/2 = r = 744 .73

Page 187: Petroleum Reservoir Simulation a Basic Approach

160 C h a p t e r 5 S imu la t ion wi th a Po in t -Di s t r ibu ted Gr id

Example 5.8 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, r 1 = 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, a s

shown in Example 5.7.

(b) The block boundar ies for transmissibility calculations ( r L r L ) are esti- i - l l 2 ~ i+1 /2

mated using Eqs. 5.75b and 5.76b, yielding

L r,+1/2 = { (~lg - 1) / [ log e (O~ts r )] }re = { (4.9524 -- 1)/[ log e (4.9524)] }re (5.83)

= 2.47045r,

r L i-1/2 = {(alg - - l ) / [ a lg lOge((-tlg)]}re = { (4"9524-1 ) / I4 "9524 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 rL rL / re-1 rL / re ' (c) Example 4.10 derives the ratios re~ i - i~2 ' r e + l / i+1 /2 ' i-l l2 ' i +1 /2

and r L i, 1/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)

(d)

Note that the values of the above ratios are the same as those reported in Table 5-4.

The block boundaries for bulk volume calculations ( re_l/2, re+l/2 ) are esti-

mated using Eqs. 5.77b and 5.78b, yielding

Page 188: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculation of Transmissibilities 161

r,2.1,2 = {(a~g - 1) / [ loge (aZg)] }r~ 2 = { ( (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 . 3 5 2 5 / ( 4 . 9 5 2 4 ) 2 }r~ 2 = (0.29978)r/2 (5.91)

Therefore,

r . l /2 = 4(7.3525)r /2 = (2.7116)r / (5 .92)

r~_~/2 = 4(0 .29978)r~ 2 = (0 .54752)r i (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 og e (a2g)] - l}rw 2 (1/~ 2 A0)Z~

= { [ ((4.9524) 2 - 1) / log e ((4.9524) z ) ] - 1}(0.25) 2 [ ~ (2~)] x 100 = 124.73t~ 3 (5.95)

l z - 1 ) / [ a ~ . Vb0 = { -- (C% log e (aZg)1 } ~ ( ~ A0)AZ

= {l - ( ( 4 . 9 5 2 4 ) 2 - l ) / [ (4 .9524) 2 1Oge( (4 .9524)2)1}(744 .73)2 [ ~ ( 2 z c ) l x l 0 0 (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.

Page 189: Petroleum Reservoir Simulation a Basic Approach

162 Chapter 5 Simulation with a Point-Distributed Grid

2000 STB/D

)w boundary

No-flow boundary

30 ft

psia

T ~r 'uL

Figure 5-13 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 ver-

tical 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 cal- culations are not needed if we use Eqs. 5.81 b, 5.81c, and 5.81d for bulk volume cal- culations 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-21584×10-3(62 .4) (32 .174) = 0.4333 psi/ft,

r = 0.25 ft, and the reservoi r external radius is e s t ima ted from well spac ing a s

= (20 × 43560 / zr) 1/2 = 526.60 ft. The reservoir ea s t (external) and upper

(top) boundar i e s a re no-flow boundar ies , the reservoir lower (bottom) boundary

has Ph,. = 4000 psia, and the reservoi r wes t (internal) boundary has

qspsc = - 2 0 0 0 B/D to reflect the effect of the product ion well (i.e., the well is

t rea ted a s a boundary condition).

Page 190: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculation of Transmissibilities 1 6 3

For the point-distributed grid shown in Figure 5-13, n r = 4 , n z = 3 ,

and Azk+l/: = h / ( n - 1 ) = 3 0 / ( 3 - 1 ) = 15 f t for k = 1,2 ; hence,

Az, = 1 5 / 2 = 7 . 5 f t for n = 1 , 2 , 3 , 4 ; Az, =15 ft for 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 a lg = ( 5 2 6 . 6 0 / 0 . 2 5 ) 1/~4-1~ = 1 2 . 8 1 8 8 ; r~ = r : 0 . 2 5 ft;

a n d r~ = ( 1 2 . 8 1 8 8 ) ~ i - 1 ~ ( 0 . 2 5 ) for i = 2 , 3 , 4 o r r 2 = 3 . 2 0 4 7 ft, r 3 = 4 1 . 0 8 0 ft, a n d

r 4 = 5 2 6 . 6 0 ft.

Table 5-6 Gridpoint Locations, Bulk Volumes, and Radial and Vertical Transmissibilities for Example 5.9

n i k r (ft)

1 1 1 0.25

2 2 1 3.2047

3 3 1 41.080

4 4 1 526.60

5 1 2 0.25

6 2 2 3.2047

7 3 2 41.080

8 4 2 526.60

9 1 3 0.25

10 2 3 3.2047

11 3 3 41.080

12 4 3 526.60

(ft) Z n

(ft) \

(fP) ris-l/2,k

(B/D-psi)

T Zi,k 41/2

(B/D-psi)

7.5 30 45.66941 6.245838 0.041176

7.5 30 7699.337 6.245838 6.941719

7.5 30 1265140. 6.245838 1140.650

30 7.5 5261005.

91.33882 15

6.245838

12.49168 15

4743.320

0.041176

15 15 15398.67 12.49168 6.941719

15

15

2530280.

10522011

45.66941

7699.337

1265140.

5261005.

7.5

7.5

7.5

12.49168

12.49168

6.245838

6.245838

6.245838

6.245838

15

15

7.5

1140.650

4743.320

0.041176

6.941719

1140.650

4743.320

Page 191: Petroleum Reservoir Simulation a Basic Approach

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

a n d A0 = 2 ~ .

Vb,,k = { [(a~g -- 1) / log e (a~g )1-1}1-.2, ( ~ AO)Az k

= { [ ( (12 .8188) 2 - 1 ) / log e ( ( 1 2 . 8 1 8 8 ) 2 )1 - 1}(0.25) 2 (1/2 X 2zr)Az k

= ( 6 . 0 8 9 2 6 8 5 ) k z k ,

i, - - 2 l 2 2 1 Vbk = {(a~g 1) 2 / [ a tg og e (alg)1 }r i ()~2 A0)A,?.k

= {( (12 .8188) 2 - 1) 2 / [ ( 1 2 . 8 1 8 8 ) 2 log , ( ( 1 2 . 8 1 8 8 ) 2 ) ] }ri 2 (1/2 X 2 ~ ) A z k

= (99.957858)r /2Azk,

for i = 2 , 3 and

vb,., = { 1 - (a~ - 1)/ la~, log e (a~g)1 }re 2 (/~2 A0)AZk

= {1 - ( ( 1 2 . 8 1 8 8 ) 2 - l ) / [ ( 1 2 . 8 1 8 8 ) 2 log , ( ( 1 2 . 8 1 8 8 ) 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 ~ ) = (2)G~, ...... (5.97)

where Gr, ........ is defined in Table 5-3. With A0 = 2~ and constant radial perme-

ability, 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)] (5 .98)

_ 2Jrf lckrAz k _ 2er (0 .001127)(150)Azk - ( 0 . 4 1 6 3 8 9 2 ) A z k.

log e (atg) loge (12 .8188)

Therefore, the transmissibility in the radial direction can be estimated by substi- tuting Eq. 5.98 into Eq. 5.97, resulting in

........ = (2)Gr, ...... = (2 ) (0 .4163892)Az~ = ( 0 . 8 3 2 7 7 8 4 ) A z k (5 .99)

The transmissibility in the vertical direction is defined by Eq. 5.72c, yielding

TZ ........ = O . . . . . . . . . . ( ) = G .......... ( ~ ) = (2)G z ......... (5.100)

where G is defined in Table 5-3 as ~hk=l/2

Page 192: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculat ion o f Transmissibi l i t ies 165

2fie (Vb"* / AZk ) (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; there- fore, the equation for the geometric factor reduces to

z ....... 2AZk~:I/2 AZkT1/2

(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

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,

( 5 . 1 0 2 )

( 5 . 1 0 3 )

Tb m

P,bP * qm

'cbbp ~ ' T " q,p,c Z__, l,l* l~O b

(5 .37 )

where T m = transmissibility in the radial direction between gridpoints bP and b,bP*

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 termi-

nology in Figure 5-7. From Table 5-6,

TY = T m = 1 2 . 4 9 1 6 8 B/D-ps i a n d TY = T m = 6 . 2 4 5 8 3 8 B/D-psi . b w ,6 ~,6 b w ,10 rgj o

The application of Eq. 5.37 results in

6 . 2 4 5 8 3 8 qm =

sc~.9 6 . 2 4 5 8 3 8 + 1 2 . 4 9 1 6 8 × ( - 2 0 0 0 ) = - 6 6 6 . 6 7 B/D

1 2 . 4 9 1 6 8 qm =

• c~., 6 . 2 4 5 8 3 8 + 1 2 . 4 9 1 6 8 × ( - 2 0 0 0 ) = - 1 3 3 3 . 3 3 B/D.

With this treatment of the production well, q" = 0 for each gridpoint (including 1, scn

5, and 9).

Page 193: Petroleum Reservoir Simulation a Basic Approach

1 6 6 Chap t e r 5 S imu la t ion wi th a P o i n t - D i s t r i b u t e d Gr id

Table 5 - 7 Contr ibut ion of Gridpoints to Wel l Rates and Fict i t ious Well Rates for Example 5.9

m n i k q,c°

(B/D)

1 1 1 0

2 2 1 0

3 3 1 0

4 4 1 0

5 1 2 0

6 2 2 0

7 3 2 0

8 4 2 0

9 1 3 0

10 2 3 0

11 3 3 0

12 4 3 0

qm qm SCb L ,n SCbw ,n

(B/D) (B/D)

( 0 . 0 4 1 1 7 6 ) [ ( 4 0 0 0 - p ~ ) - ( 0 . 4 3 3 3 ) ( 3 0 - 15) ] 0

( 6 . 9 4 1 7 1 9 ) [ ( 4 0 0 0 - P 6 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 15) ]

( 1 1 4 0 . 6 5 0 ) [ ( 4 0 0 0 - P 7 ) - ( 0 . 4 3 3 3 ) ( 3 0 - 15) ] 5

( 4 7 4 3 . 3 2 0 ) [ ( 4 0 0 0 - p ~ ) - ( 0 . 4 3 3 3 ) ( 3 0 - 15) ]

-1333.33

-666.67

qm qm scb E ,n SCb U ,n

(B/D) (B/D)

0

0

0

0

0 0

m m m For the reservoir lower boundary, Pl = P2 = P" 3 = P4 = 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 " [ ( 4 0 0 0 - Pb,o" ) - ( 0 . 4 3 3 3 ) ( 3 0 - 1 5 ) ] B /D ( 5 . 1 0 4 ) SCb L ,bP Zi,k+l/2

where according to Figure 5-13 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-

ar ies 'q m,c~," = 0 for n = 4, 8,12 and q ~ = 0 f o r n = 9 , 1 0 , 1 1 , 1 2 . T h e c o n t r i b u -

tions of gridpoints to the well rates and the fictitious well rates are summarized in Table 5-7.

The general form of the f low equation for gridpoint n is obtained from Eq. 5.2a,

Z T/~ [(p? - p . . . . . Z m _ Z m qm .~_ m Wb ~ n+l , ) - Y,,, t ~ )] + ~ ' ...... q'c - " [ (B) " - (B)n ] (5.2a)

Page 194: Petroleum Reservoir Simulation a Basic Approach

5.5 Calculation of Transmissibilities 167

For gridpoint 1, p~' = 4000 psia because gridpoint 1 falls on the constant pres-

sure boundary. Let us write the flow equation for this gridpoint. For gridpoint 1,

n = l i = l k = l ~01={2,5} ~={bL,b W} and q . . . . . . . ~L., +qs%,,

where from Table 5-7, q m .... = (0.041176)[(4000 -- p~' ) -- (0.4333)(30 -- 15)] B/D,

q" = 0 , and q,'~, = 0 . s c b w ,l

Therefore, substitution into Eq. 5.2a yields

(6.245838)[(p~' - p~' ) - ( 0 . 4333 ) (30 - 30)]

+(0.041176)[(p~' - p~' ) - (0.4333)(15 - 30)] (5.105)

+(0.041176)[(4000 - p~' ) - (0 .4333) (30-15) ] + 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 Pl = pm (5.107)

2

Eq. 5.107 does not introduce new knowledge because both gridpoints fall on the constant pressure bottom boundary, but it confirms that the flow equation for grid- point 1, as expressed by Eq. 5.105, is correct.

For gridpoint 3, P3 = 4000 psia because gridpoint 3 falls on the constant pres-

sure boundary. Again, let us write the flow equation for this gridpoint. For

gridpoint3, n = 3 i=3 , k = l ~ ' 3 = { 2 , 4 , 7 } , ~ 3 = { b L } , a n d ~,q,m, 3 = q " ' ' , $£b L ,3

l ~ 3

where from Table 5-7, q,'~ .... = (1140 .650) [ (4000- 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 m (5.108) 3 )-- (0.4333)(15-- 30)]

1265140~ t~ ~p "+1 - ( ~ )3]' +(1140.650)[(4000 - P7 ) - (0.4333)(30 - 15)] + 0 = [(~)3

Page 195: Petroleum Reservoir Simulation a Basic Approach

168 Chapter 5 Simulat ion with a Point -Dis tr ibuted 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

pm3 = '/2 (P7 + P7 ) (5.110)

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 , k = 2 , ~05={1,6,9}, ~ 5 = { b w } ,

Z qsc,.~ " = q~,%.~ = -1333.33 B/D, and q~ = 0 (the well is treated as a boundary

condition). Therefore , substi tution into Eq. 5 .2a yields

(0 .041176)[ (p~ ' - p~" ) - (0 .4333) (30 - 15)]

+ (12 .49168) [(p~' - p~' ) - (0 .4333)(15 - 15)]

+ (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 substitu- tion 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 coordi- nates both the well and the fictitious well have radial flow.

(5 .111)

For gridpoint 7, n = 7 ,

(interior gridpoint), and

yields

i = 3 k = 2 ~p7={3 ,6 ,8 ,11} ~ 7 = { } ~ q " = 0 i ~ ' ~ sct,7

l ~ 7

qm = 0 (no wells). Therefore, substitution into Eq. 5.2a sc 7

(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)]

,, m 2 5 3 0 2 8 0 ~p " + ' - ( ~ ) 7 ] " (5 .112) + ( 1 1 4 0 " 6 5 0 ) [ ( P l l - P 7 ) - ( 0 . 4 3 3 3 ) ( 0 - 1 5 ) ] + 0 + 0 - a - ~ [ (~)7

Page 196: Petroleum Reservoir Simulation a Basic Approach

5.6 Symmetry and Its Use in Solving Practical Problems 169

Forgridpoint 11, n = l l , i = 3 , k = 3 , ~.Pll ={7,10,12}, ~:11 ={by} ,

Z q" = q" and q" = 0 (no-flow boundary), and q" = 0 (no wells). SCl,I 1 SCb U , 11 SOb U ,11 SOl I

/E~ l l

Therefore, substitution into Eq. 8.2a yields

(1140.650)[(p 7 - p~ ) - (0.4333)(15 - 0)]

+(6.245838)[(pm - p,~ ) - (0.4333)(0 - 0)]

m m +(6.245838)[(P12 - P~I ) - (0.4333)(0 - 0)] + 0 + 0 - - - 1265140 r(q~V+l q~ .

a c k t L, B , n - ( ' B ) l l ].

(5.113)

5.6 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 mod- ified 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 seg- ments. Before solving the modified problem for one element of symmetry, however, sym- metry 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) reser- voir 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 ( k x , 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 sym- metry 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 sym- metry 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

Page 197: Petroleum Reservoir Simulation a Basic Approach

170 Chapter 5 Simulat ion with a Point -Dis tr ibuted 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 hori- zontal 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 bound- aries 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 no- flow boundary.

The second two examples show planes of symmetry 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 reser-

voir 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

--T Vb3 ' q'c3 2 'c3' and Gw3 2 w3 " Figure 5-16a. Therefore, for gridpoint 3, Vb, _1 =±q =± G 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 par-

A

I

) X I

A (a) Whole reservoir and plane of symmetry

A I

f l 2 3 ~ No-flow boundary

I ) X

A (b) Smallest element of symmetry

Figure 5-14 Figure 5-16

) x I

A (a) Whole reservoir and plane of symmetry

A I

i t, o-0o oun0a ) × 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).

Page 198: Petroleum Reservoir Simulation a Basic Approach

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 a

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 symmet-

rical elements. Consequently, Pl = P3 = P7 = P9 ' P 4 -= 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 para l le l to the plane of symmet ry . The re fo re , Vb 2 _7Vb2,_1 qsc~ =±q2 sc z ,

Gw~ =½Gw2 ; Vb, = l V b 4 ' qsc, = l q ~ , , Gw ' =½Gw,; Vb ~ =lVb~, qsc, = l q ~ , , Gw ~ =¼Gw,;

1 1 Gyz, s = "~ Gy2 , 5 ; and Gx,.~ = 7 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

13

9

g m,

5

y 1

L.x

10

6 •

2

11

• 7

3

16

12

8

4

. . B

(a) Whole reservoir and planes of symmetry

N o - f l o w boundary A

B -- ~ I _ B

!

~x A

(b) Smallest element of symmetry

Figure 5-15

Figure 5-17

B . . . . . . .

A I

7 8 I 9 I I I

4 5 I I I

Y 1 2 I

T " I ) A

(a) Whole reservoir and planes of symmetry

No-flow boundary A B ~ I--B ,4 5

No-flow boundary

1 2 Y

T ) x A

(b) Smallest element of symmetry

, - - B 6

3

20 reservoir with even gridpoints exhibiting two vertical planes of symmetry in the x and y directions (left),

2D reservoir with odd gridpoints exhibiting two vertical planes of symmetry in the x and y directions (right).

Page 199: Petroleum Reservoir Simulation a Basic Approach

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 bound- aries 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 sym- me t ry d iv ide the r e s e r v o i r into four s y m m e t r i c a l e lements• 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 grid- points 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, lib 2 =± V. 2 bz ,

q,c2:½qsc~, Gw2 : lGw 2 ; Vo, :lVb~, qsc5 :lq,cs, Gw, :½Gw, ; Vb, =lVo, , q,c, =¼qsc~ ,

• = ± E = ± q , = ± G • = ± G • - G~. =lGw~ , Vb, ' z ~,, q,c,, 4 .... G 4 W l l ' Gy2, , 2 y2 ,5 ' Gy,. ,- 7Gy,,~ ;and

__ 1G . Note also a plane of symmetry passing through a gridpoint results in a Gya, l I 2 YS, II

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 reser- voir 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.

C o n s e q u e n t l y , Pl = P 4 = P13 = P l6 , P2 = P3 = P14 -- P15 = P5 = P8 = P9 = P12 ,

P6 = P7 = P lo = Pll ' a n d P2 = P3 = P14 = P15 --- P5 = P8 = P9 = PlZ " 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 addi- tional 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•

Page 200: Petroleum Reservoir Simulation a Basic Approach

5.7 S u m m a r y 173

B - - - -

A I

"10 11T 12 I I

7 8 ~ 9

~ g

4 51 6 T I I

Y 1 2 I 3

T 1, x I A

(a) Whole reservoir and planes of symmetry

No-flow boundary

B ~ ~ - ~ S

I: I 'I, y 2

T I

A

A I

No-flow boundary

(b) Smal lest e lement of symmetry

Figure 5-18 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.

- T Vbl , In reference to gridpoints 1, 6, and 5 in Figure 5-19b and Figure 5-20b, Vb, _1

, - -8 Vb 5 q,c5 -~ qsc5 - ' vb, - ' , _1 Vb, - ' _1 q,c, =±2 q,q , Gw, - 7 Gw, ," - 7 Vb, , q,c, =7 qsc6 Gw, - 7 Gwo ," , '

_1 = ± G ; and = Note that the four planes of Gw, - g Gw, ; Gy,,~ =-Gyl, 2 ; Gy2, 5 2 Y2,5 Gx,,, Gx2~, "

symmetry (A-A, B-B, C-C and D-D) passing through gridblock 5 in Figure 5-20a result in

the factor of ¼ x ½ - l - g 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 modi-

1 X 1 is the number of vertical planes of symmetry passing fying factor equals ,~., 7 where n s p

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 bound- -,, aries represent no-flow boundaries.

5.7 Summary This chapter presents reservoir discretization in Cartesian and radial-cylindrical coordi- nates 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 calcula- tion of the transmissibility geometric factors in the three directions. For the radial-cylin- drical coordinate system used for single-well simulation, the equations that define gridpoint locations and the relationships between the distances separating gridpoints,

Page 201: Petroleum Reservoir Simulation a Basic Approach

174 Chapter 5 Simulation with a Point-Distributed Grid

D \

%%13 %,,

, 9

B _

5

J /

~x / 1 /

/ C

14

% \ \~10

% %

/ /

/ '6 /

/

2 A

15

f / 11 11 / /

/ "%

\

% %

/ C t

1 6 / / /

¢-

12 ,

- - . B

% %

4% %

~D

(a) Whole reservoir and planes of symmetry.

y A C

T }D x . / /

N o - f l o w ~ _ ,(

/ C

A (b) Smallest element of symmetry,

No-flow boundary

D \

%\7 %

g . . . . . 4 /

/ 5 /

/ Y /

T " / ) x 2 / / 1

/ C

(a) W h o l e re servo ir and

Y

T_,x No-flow ~ .

/

C A

A I

8 T I 9 / / /

I ¢

\ I / % / \ I /

% I /

/ I X 6

C /

- - B

No-flow boundary

(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 coor- dinates. The f low equation for any gridpoint has f low terms equal to the number of existing neighboring gridpoints and fictitious wells equal to the number of boundary con- ditions. 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 sym- metry. 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

A C /

/

I % % I \ [ X I I \ I 3%\

I \ D A

planes of symmetry.

Page 202: Petroleum Reservoir Simulation a Basic Approach

5.8 Ex e rc i s e s 175

boundaries and new interblock geometric factors, bulk volume, wellblock rate, and well- block geometric factors for boundary gridpoints are calculated prior to simulation.

5.8

5-1

5-2

5-3

5-4

5-5

Exercises

What is the meaning of reservoir discretization into gridpoints?

Using your own words, describe how you discretize a reservoir of length L x along the x direction using n gridpoints.

Figure 5-5 shows a reservoir with regular boundaries.

(a) How many boundaries does this reservoir have along the x direction? Identify and name these boundaries.

(b) How many boundaries does this reservoir have along the y direction? Identify and name these boundaries.

(c) How many boundaries does this reservoir have along the z direction? Identify and name these boundaries.

(d) How many boundaries does this reservoir have 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 ( ~0 n ) 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?

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).

Page 203: Petroleum Reservoir Simulation a Basic Approach

176 Chapter 5 Simulation with a Point-Distributed Grid

5-6

5-7

5-8

Pbw = 2000 psia %% = -100 STB/D

~X

Figure 5-21 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 ~P15 and ~15 and then

using them to expand the equation in (a).

(e) Write the flow equation for gridpoint 19 by finding ~P19 and ~19 and then using them to expand the equation in (a).

y

19 -20 2 1 " ~ No-flow boL

i ' 16 ( ~ 1 7 ~. 11 • 12 ....................

x "13 -14 15

dp _ = 3000 psia - - 16 • 7 • 8 (~) 9 10 ~ b--E -2 psi/ft Pbw

1 2 3 4 5 A A

Pbs = 3000 psia

Figure 5-22 2D reservoir for Exercise 5-6.

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.

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

Page 204: Petroleum Reservoir Simulation a Basic Approach

5.8 Exercises 177

Z

v

Pbw = 250q

80 STB/D

No-flow boundary

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

Pbw = 2 5 0

175 STB/D

= 80 STB/D "bE

5-9

5-10

Figure 5-24 Discretized 1D reservoir in Exercise 5-8.

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.

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.

Page 205: Petroleum Reservoir Simulation a Basic Approach

178 Chapter 5 Simulation with a Point-Distributed Grid

Z qsc3 = ? STB/D v P3 = 1500 psia

d~bw -0 No-flow boundary,

Figure 5-25

Z

L Pbw = 270

Discretized 1D reservoir in Exercise 5-9.

150 STB/D

: 1900 psia

5-11

Figure 5-26 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

d~bw 0.10 psi/ft

No-flow boundary Y

I ,x

v

7 8 9

1 2 3

No-flow boundary

%% = -2000 STB/D

300 ft

Pbs = 3200 psia

Figure 5-27 Discretized 2D reservoir in Exercise 5-11.

Page 206: Petroleum Reservoir Simulation a Basic Approach

5.8 Exerc i s e s 179

5-12

5-13

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

( n r , j , k ) •

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.

500 STB/D

undary

5-14

No-flow boundary

~ r

ow boundary

Figure 5-28 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.

Page 207: Petroleum Reservoir Simulation a Basic Approach

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.

Page 208: Petroleum Reservoir Simulation a Basic Approach

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 esti- mated 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 pre- sented 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 nec- essary 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

Gw~ qsc i - 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 B i 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

Page 209: Petroleum Reservoir Simulation a Basic Approach

182 Chapter 6 Well Representation in Simulators

Y 7 ; x

Local flow arround an injection well

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 consis- tent 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 prob- lems, 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

Specified well production rate

qsc, = 0 (6.2)

Specified well pressure gradient

qsc, = qspsc (6.3)

Page 210: Petroleum Reservoir Simulation a Basic Approach

6.2 Single-Block Wells 183

Specified well FBHP

2:r'flcr~k;q' hi ~r (6.4) qsq = - Bi~u~

Gwl q~c, - 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 Linear flow due to boundary condition

7 y x

Figure 6-2 Well at a boundary block in a block-centered grid.

Radial flow due to well Linear flow due to boundary condition

7 y x

Figure 6-3 Well at a boundary block in a point-distributed grid.

6.2.2 Treatment 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 simula- tion) 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 coordi- nates both real wells and fictitious wells have radial flow. Chapters 4 and 5 present equa- tions 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 var- ious well operating conditions, are given as follows:

Shut-in well

qsc, = 0 (6.5)

Page 211: Petroleum Reservoir Simulation a Basic Approach

184 Chapter 6 Well Representation in Simulators

Specified well production rate

q s q = q~psc

Well FBHP can be estimated from Equation 6.9, with qsps~ replacing q,~, .

Specified well pressure gradient

(6.6)

2~flcrwku~ hl ~rr qs~ - B 1 ~'L1 w

Specified well FBHP

Darcy 's Law for radial flow applies, i.e.,

(6.7)

2~fl ckHh qs~ = (Pe -- Pwi ) (6.8)

BktlOge(re /rw)

For a block-centered grid, consider the f low of fluid in the radial segment enclosed be tween the externa l radius r~ (the poin t r ep resen t ing g r i d b l o c k 1) and the well radius r w (the internal radius of gridblock 1). In this case, r e = r~, Pe = Pl, and qsc = qsc, • Therefore, Eq. 6.8 becomes

from which

2 attic k~, h 1

qsc, = Blf l l loge(rl/rw) (Pl -Pwl) (6.9a)

2zcflc ku, 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, dis-

carding 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 / r w ) = [t~lg log e ( a t g ) ] ( a l g - 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

b e c a u s e Pe ----P2 ' where

q s c I =

P.~ = Pl ,

2attic (kwh / Blz)~'2 (P2 - P,) (6.9b) loge(r 2/rw)

r = r 2 , and rj = r w . Eq. 6.9b is in the form of Eq. 6.8,

Page 212: Petroleum Reservoir Simulation a Basic Approach

6.2 Single-Block Wells 185

2~flc (kHh)l'2 (6 .10b) Gwl = loge(r 2 / r )

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 (r 2 / q ) = alg as given

by Eq. 5.74. Note that for constant permeabil i ty ( 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 equa- tion 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 s ingle-layer reservoir are related through the IPR (Inflow Performance Relat ionship) equation (Peaceman 1983),

Gw qsc - B/t ( p - Pwy) (6.11)

where

2~flcknh Gw = ( 6 . 1 2 ) [log e (req / r w ) -I- s]

Y

T Ay

Figure 6-4 Equivalent wellblock radius in a rectangular block showing anisotropy.

For anisotropic wellblock properties, k H is est imated f rom the geometr ic mean perme- ability,

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

Page 213: Petroleum Reservoir Simulation a Basic Approach

186 C h a p t e r 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

/ k 05 A x 2 0 28 [(ky x ) " ( ) + (kx / ky )0.5 (Ay)2 ]0.5 Teq ~ "

k 0.25 [(ky / k x )0.25 .~_ ( k x [ Y ) ] (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 well- block 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 pro- duction rate and obtain the wellblock production rate equation under various well oper- ating 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 ~= Ay . Therefore, Eqs. 6.14 and 6.13 can be

used to estimate the equivalent wellblock radius and horizontal permeability, respectively

Page 214: Petroleum Reservoir Simulation a Basic Approach

6.2 Single-Block Wells 187

Table 6-1 Dimensions, Permeabi l i t ies, and Skin Factors of Wel lb locks

Wellblock Well ID

Ax (ft) Ay (ft) h (ft) kx (md) ky (md) s

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 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 ]

and k . = [100 × 225] 0.5 = 150 md.

The wellblock geometric factor is estimated using Eq. 6.12,

2 ~ x 0.001127 × 150 x 30 G w = = 5.463 RB-cp/D-psi.

{log e [99.521/(3.5 / 12)] + 0}

Wel l W-2

The wellblock has k x = ky but Ax ~= Ay . Therefore, Eq. 6.15 can be used to esti-

mate the equivalent wellblock radius, req = 0.14 × [(208) 2 + (832) 2 ]0.5 = 120.065

f tandk H = k x = k y = 1 5 0 m d .

The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding

2~x0.001127x 150x30 G w = = 5.293 RB-cp/D-psi.

{log e [120.065/(3.5 / 12)] + 0}

Wel l 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 ]

and k H = [100 x 225] 0.5 = 150 md.

Page 215: Petroleum Reservoir Simulation a Basic Approach

188 Chapter 6 Well Representation in Simulators

The wellblock geometric factor is estimated by substituting values into Eq. 6.12, yielding

2~ x 0.001127 x 150 x 30 G w = = 5.627 RB-cp/D-psi.

{log e [83.995/(3.5 / 12)] + 0}

Well W-4

The wellblock has k, = ky and Ax = AZ . Therefore, Eq. 6.16 can be used to esti-

mate 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

2 ~ x 0 . 0 0 1 1 2 7 x 1 5 0 x 3 0 G w - = 5.647 RB-cp/D-psi.

{ log e [82.364/(3.5 / 12)] + 0}

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 geo- metric 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)

(b)

(c)

No mechanical well damage, i.e., s = 0.

Well damage resulting in s = +1.

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 per- meability,

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),

Page 216: Petroleum Reservoir Simulation a Basic Approach

6.2 Single-Block Wells 189

Gw = 2 ~ x 0 .001127 x 150 x 30

{log e [99 .521 / (3 .5 / 12)1 + O} - 5.463 RB-cp/D-psi.

(b) For s = +1 (positive skin),

2 ~ x 0 .001127 x 150 x 30 G W - = 4 .664 RB-cp/D-psi .

{log e [99 .521 / (3 .5 / 12)] + 1}

(c) For s = -1 (negative skin),

Cw = 2:rr x 0 .001127 x 150 x 30

{log e [99 .521 / (3 .5 / 12)1 - 1} = 6.594 RB-cp/D-psi.

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 stimu- lation 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,

q,,, - 2 ~ x 0 .001127 x (3.5 / 12) x 150 x 30

1 x 2 X 300 = - 1 3 9 4 . 1 STB/D.

(d) For a specified FBHP, Eq. 6.1 applies. Therefore,

Page 217: Petroleum Reservoir Simulation a Basic Approach

190 Chapter 6 Well Representation in Simulators

or

5.463 q,cl - 1 × ~ (Po - 2000)

qscl = -2.7315(p o - 2000) STB/D.

If, for example, the wellblock pressure is 3000 psia, then Eq. 6.17 predicts

(6.17)

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 proper-

ties: 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 equiv-

alent wellblock radius can be estimated using Eq. 6.15,

rq = 0 .14×[ (1000) 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

2 x × 0 . 0 0 1 1 2 7 x 1 5 x 7 5 Gw = {log e [218.687/ (3 .5 / 12)] + 0} = 1.203 RB-cp/D-psi.

Applying Eq. 6.1 gives

1.203 - 1 5 0 - 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)

Page 218: Petroleum Reservoir Simulation a Basic Approach

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 = 100 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 ft, r 3 ----- 1 2 . 2 9 1 4 ft, r 4 = 6 0 . 8 7 1 5 ft,

a n d r 5 -- 3 0 1 . 4 5 7 ft.

(a) For a specified pressure gradient, Eq. 6.7 applies. Therefore,

2re x 0.001127 x 0.25 x 233 × 100 x 200 = -5499.7 STB/D.

qsc, = 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 ) (P l - 2 0 0 0 )

or

qsc, = 158.1407(pl - 2000) STB/D

If, for example, the wellblock pressure is 2050 psia, then Eq. 6.19 predicts

qsc, = -158.1407(2050 - 2000) = -7907.0 STB/D.

( 6 . 1 9 )

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 dimen-

sions and properties: Ax = 250 ft, Ay = 300 ft, h = 100 ft, k x = 270 md,

Page 219: Petroleum Reservoir Simulation a Basic Approach

192 Chapter 6 Well Representation in Simulators

a n d ky = 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

[(220 / 270) 0.5 (250) 2 + (270 / 220) 0.5 ( 3 0 0 ) 2 ]0.5

% = 0.28 [(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

Cw = 22~ × 0.001127 x 243.72 x 100

{ l o g e [55.245/(3.5 / 12)] + 0}

Applying Eq. 6.1 gives

= 32.911 RB-cp/D-psi.

32.911

qsc9 - l x 2 - - (P9 --Pwj9 ) = -16"456(P9 -Pwy~ ) STB/D,

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 = P9 -- 243.1 psia (6.20)

6.3 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 reser- voir no-flow boundaries.

6.3.1 Ver t ica l Ef fec ts (F low Wi th in We l l bo re )

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 pres- sure can be expressed as

Page 220: Petroleum Reservoir Simulation a Basic Approach

6.3 Multiblock Wells 193

Pw~ = Pw/,,~ + 7wb ( Zi - Zref )

where P~b = 7c Pwbg

Psc and P wb =

B

Average FBHP can be used to obtain an estimate for ~ .

q s c

t

(6.21)

(6.22)

(6.23)

rWTret_~ - * ~ - - Z-ref ~ "

Pwfn~ ~ - :--Z n nl . . . . qs~o, 1 _ -¢.

Pwfn~ ~ -~_Zn2 A7R 2

~ ~ ~qscn2

Figure 6-5

Pwfn3 : ~ ~ Z n ~ ~ ~qs~na

~w = {nl 'n2'n3}

Cross-section showing pressures within vertical wellbore.

6.3 .2 W e l l b l o c k Contribution to Well Rate

In this case, the vertical well penetrates several blocks. Figure 6-5 shows a well that pene- trates 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 ~ ~0 w . 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

Specified well production rate

The contribution of wellblock

qsc~ : o (6.2)

i to the well production rate is given by Eq. 6.1,

Page 221: Petroleum Reservoir Simulation a Basic Approach

194 Chapter 6 Wel l Represen ta t ion in S imula tors

qsc, -

where Pw~ is given by Eq. 6.21.

Combining Eqs. 6.1 and 6.21 yields

G W ( P i - - Pw~ ) (6.1)

B i / l Z i

aw [P, - P~ir,j - ~wb (Z~ - Zre f )] (6.24)

q~" - B i fli

The sum of the production rates of all wellblocks must add up to the specified well pro- duction rate; i.e.,

qsesc = ~ q~c, (6.25) ie~p~

The FBHP of the well ( Pwire¢ ) can be estimated by combining Eqs. 6.24 and 6.25, yielding

pwL~ ----

G~ Z { (~ ) i [ P i - -~wb (Z i -Zr e f ) ] }q -q spsc ie~O W

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 well-

blocks. 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) pre-

sented 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 verti-

cally 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

qscl - - qspsc

leap w

(6.27)

Furthermore, if fluid properties are not sensitive to small pressure variations and all verti- cally stacked wellblocks are assumed to have the same equivalent well radius and skin factor, the above equation can be simplified to

Page 222: Petroleum Reservoir Simulation a Basic Approach

6.3 Multiblock Wells 195

(k~lh) i qsc, - ~_, (knh), qspsc (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 produc- tion rate is given by

q,c =

where F = ratio of wellblock i draws its fluid (see Section 6.3.3).

Specified well FBHP

The contribution of wellblock i

2erF~flcr, k,, h, ~p (6.30)

B i / , ~ i d r

area to the theoretical area from which the well with-

to the well production rate is given by Eq. 6.24,

a w i

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 grid- points 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,

Page 223: Petroleum Reservoir Simulation a Basic Approach

196 Chapter 6 Well Representation in Simulators

discretization in the radial direction results in r~ = r = 0.25 ft, r 2 = 3.2047 ft,

r 3 = 41.080 ft, and r 4 --- 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., Zre I = 0 ft.

(a) The well in this problem is completed in wellblocks 5 and 9; i.e., ~0 w = {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 - = 6.2458 B-cp/D-psi

Gw5 - log e (r 2 / r ) log e (3.2047 / 0.25)

and

2zcflckmh9 2z~ x 0.001127 x 1 5 0 x 7.5 G

w9 log, (r 2 / r w ) 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

and

q,c5 = ( ~ ) 5 + Gw (~)9

6.2458 (lx .5) q,p,c = 6.2458 3.1229

X2000 = 1333.33 B/D

qsc9 = (~p)5 Gw

3.12299

( 1 × 0 5 ) - - × 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.

Page 224: Petroleum Reservoir Simulation a Basic Approach

6.3 Multiblock Wells 197

6.2458 _3.1229 ( ~ _ _ _ )[3812.5 - 0.4333(15 - 0)] + ( ~ ) [ 3 7 8 9 . 7 - 0.4333(0 - 0)] 2000 1 x 0 . 5 i x 0 . 5

P ~ = 6.2458 3.1229

or

(c)

and

lxO.5 lxO.5

Pw:,e: = 3693.8 psia (6.31)

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 - 3693.8 - 0.4333(15 - 0)] = 1401.56 B/D i x 0 . 5

3 1229 = ( ~ ) [ 3 7 8 9 . 7 - 3693 .8 - 0 .4333(0- 0)] = 598.97 B/D qsc9 I X O . b

6.3.3 Est imat ion of the Wel lb lock Geomet 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-f low boundaries. Figure 6 -6 shows a discretized reservoir sur- rounded 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 fol- lowed 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

Page 225: Petroleum Reservoir Simulation a Basic Approach

198 Chapter 6 Well Representation in Simulators

"O E v

>,., 117 v '

Ax (ft) 200 300 350 250

.~_ ~..~ _ _ ~ - _ _ ~ _ _ . - )

142 ~ ~)E19

13

88

T -(~ 73

) x

)H32 33 34

26 27 28

20OA 21 22

16 14 15 OK

8 9 10

2 B 3 4

86 99 128

k x (md)

300 400

WC G' > " 35 36 1 250

_T 29 30 t 15o

1-- 23 24 200

17 18 D ( ) i i450 ~ ] ~

11 12 : 350

5 6 250

137 156

Figure 6-6 Single-layer reservoir penetrated by vertical wells.

wellblock i ( G~., ). Finally, Eq. 6.32 is used to estimate the geometric factor for well- block i ( Gw, ).

For vertically stacked wellblocks such as those shown in Figure 6-5, F~ = 1 , Ax = Ax i , and Ay = Ay i . 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 con- figurations. 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, ).

Page 226: Petroleum Reservoir Simulation a Basic Approach

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.

Ax i

Y

I " O (a)

Figure 6-7

Ax i

A~ ~ r e q i

4 4 2 , '

I- I"' re, I l ay i (C)

(b)

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 cal- culated. 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.

Ax i

l " ~x (a)

Figure 6-8

%' ; i ~ ! ~ . . . . . . . h 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 with- draws fluid that is four times the area of the hosting wellblock; i.e., Ax = 2Ax i and Ay= 2Ay i . Accordingly rq~ and G* w, are calculated. Finally, F~ = 1/4 as shown in

Page 227: Petroleum Reservoir Simulation a Basic Approach

200 Chapter 6 Well Representation in Simulators

y

I A x i A x i

> x (a)

AY i reqi

;-,".,,-'.

-27:. . . . . . 'T ,,' .-%( i AYi

~::--J . . . . . -L-f-

, / - f l a y i :_" . . . . . . l _ L _

/ Fi = 1/4

/%J req i

(c)

(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 Wel ls and Thei r Wel lb lock Dimensions and Proper t ies for Example 6 .8

Well ID Wellblock

Order

Wellblock Dimensions

(ft) Ay fit) h (ft)

W-A 20 300 200 40

W-B 2 300 250 40

W-D 18 400 450 40

W-F 400 6 250

Solution

Well W-A

40

Wellblock Permeabilities

k x (md) ky (md)

86 142

86 65

156 117

156 65

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. Well-

block 20 has k x = 86 md and ky = 142 md. Eqs. 6.14 and 6.13 are used to esti-

mate the equivalent wellblock radius and horizontal permeability, yielding

Page 228: Petroleum Reservoir Simulation a Basic Approach

6.3 Multiblock Wells 201

r = 0 . 2 8 I (142/86)°5(300)2 +(86/142)°5(200)21°5 - 53.217 ft .q2o [(142 / 86) o.25 + (86 / 142) o.25 ]

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

2at ×0 .001127 × 110.51 × 40 G~,2o {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 (configu-

ration 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 hori- zontal permeability, yielding

~'q2 = 0.28 [(65 / 86) 0.5 (300) 2 + (86 / 65) 0.5 ( 5 0 0 ) 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

2 ~ x 0.001127 x 74.766 × 40 G~'2 { 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 (Configu-

ration 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 per- meability, yielding

Page 229: Petroleum Reservoir Simulation a Basic Approach

202 Chapter 6 Well Representation in Simulators

and

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 ]

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* = 2Jrx0 .001127×135.10x40 = 6.632 RB-cp/D-psi. w'8 { 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

Feq6 - - " [(65 / 156) 0.25 + (156 / 65) 0.25 ]

and

k,6 = [156 x 6511 o.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 We l l R a t e a n d F B H P

If the F B H P of a wel l ( Pufr,r ) is specif ied, then the wel l p roduc t ion rate can be es t imated as the sum of p roduc t ion rates f rom all we l lb locks that are penet ra ted by the wel l ; i.e.,

Page 230: Petroleum Reservoir Simulation a Basic Approach

6.4 Practical Considerations Dealing with Modeling Well Operating Conditions 203

Table 6-3 Estimated Properties of Theoretical Wells and Wellblock Geometric Factors

Well- Well block Config.

ID # i

W-A 20

W-B 2 1

W-D 18 2

W-F 6 3

Theoretical Well

6x 6y k ky k., %' G;, (if) (~) (md) (md) (md) (if)

300 200 86 142 110.51 53.220 6.012

300 500 86 65 74.766 84.468 3.736

800 450 156 117 135.10 123.96 6.632

800 500 156 65 100.70 122.31 4.723

Wellblock

F i aw i

1 6.012

1.868

3.316

1.181

q,, : ~ q,c, (6.33) iEg,~

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 -~,+(Z, -Zrez)l}+qse,c

Pwyr,s = i ~ . t~ / z (6.26)

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-

Page 231: Petroleum Reservoir Simulation a Basic Approach

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 accord-

ingly 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 multi- blocks 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 repre- sents the IPR equation for a wellblock, and this equation can be used to estimate the pro- duction rate from the wellblock or the pressure in the well opposite the wellblock. In single- well 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 speci- fied 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 geo- metric factor is estimated using Eq. 6.32.

6.6 Exercises

6-1

6-2

A well penetrates the whole thickness of a single layer. Does fluid flow toward (or away from) the well linearly, radially, or spherically?

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?

Page 232: Petroleum Reservoir Simulation a Basic Approach

6.6 Exercises 205

6-3

6-4

6-5

6-6

6-7

6-8

(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?

You develop a model to simulate a 1 D, 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.

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.

What are the different well operating conditions? Write the well production rate equation for each well operating condition.

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 -

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.

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, W- H, W-I, W-J, and W-K. All aforementioned wells have open-hole completion and were drilled with a 5-inch bit.

Page 233: Petroleum Reservoir Simulation a Basic Approach

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 pre- sented 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 incorpo- rates 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 block- centered 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 Chap- ters 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 proper- ties 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 , , p g (7.1)

The equations used for the estimation of these properties for various fluids and rock porosity are presented next.

207

Page 234: Petroleum Reservoir Simulation a Basic Approach

208 Chapter 7 Single-Phase Flow Equation for Various Fluids

7.2.1 Incompressible Fluid

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,

p ~ f (p ) = constant, (7.2)

B ~ f (p ) = B ° _= 1, (7.3)

/~ ~ f (p ) = constant. (7.4)

7.2.2 Slightly Compressible Fluid

A slightly compress ible fluid has a small but constant compressibi l i ty (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 compress ible fluids. The pressure dependence of the density, FVF, and viscosity for slightly compressible fluids is expressed as:

p = p° [i + c (p - p°)] (7.5)

B ° B = ( 7 . 6 )

[1 + c(p - p° )]

/~ = [1 - c , (p - p° )] (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 vis- cosity of a compressible fluid increase as pressure increases but tend to level off at high pres- sures. 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 pres- sure dependencies of the density, FVF, and viscosity of natural gas are expressed as

pM (7.8) Pg zRT

B - P,c _ P S ~ T z (7.9) acP~ acT~,, P

Page 235: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase F low Equation in Mult i Dimensions 209

/~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 simu- lator, to calculate the density, FVF, and viscosity as functions of pressure over the pres- sure 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 den- sity 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),

~ z m [ ( p ~ , . . . . z m _ _ Z ~ ) l + g ' q , . + m Vb,, ..~b..+l q~ . - P . ) - 7~,,, t s q,c - a - ~ l t ~ ) n -- ( ~ ) . ] ( 7 . 1 2 ) l , n L - - a SOl, n n

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 reser- voir boundary, i.e., block n is an interior block, and hence

Page 236: Petroleum Reservoir Simulation a Basic Approach

210 Chapter 7 Single-Phase Flow Equation for Various Fluids

qm ..... = 0

Chapter 6 discusses the 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 accu- mulation term, represented by the RHS of Eq. 7.12, is presented for each type of fluid sep- arately 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" (Z, ~ qm + m,,, , , l,(i,j,k) -- Zi , j ,k ) ] -{- sct,ti,j,k ) qs, j IE~];i,j,k IE~i,j,k

- ~ t " B "''j'~ - (-B)"J" I.

(7.13)

7.3.1 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 n acAt [(_),,+1 _ ( 7 ) , ] = ~ [ p , -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~. , . q L . , , q~ n ---7-1~-:~n - - (7 to ] = 0 (7.15)

OSc Z3,t 1-1

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)

o r

Tt,(i,j,k~[(Pl--Pi4,~)--I'l,(i,j,~>(ZI--Zi,j,~)]+ ~ . q~c...j.~, +qs<i.k =0 (7.16b) lEIPi,j,k lEVi,j, k

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.

Page 237: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 211

7.3.1.1 Algorithm for Obtaining the Pressure Solution

The pressure distribution for an incompressible flow problem is obtained using the fol- lowing 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.

7.3.1.2 Material Balance Check for an Incompressible Fluid Flow Problem

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 round- off errors); i.e.,

N

~.~ (q,c,, + ~ q ...... ) = 0 (7.17a) n ~ l 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

n x ny n z

~ ~ , respectively. The resulting equation is i-1 j-1 k=l

Page 238: Petroleum Reservoir Simulation a Basic Approach

212 Chapter 7 Single-Phase Flow Equation for Various Fluids

n x ny n z

~,~F.,~_,(q.~<j. + ~_, q.~,.,.i.~))=O (7.17b) i-1 j= l k=l l e ~ 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 equa- tions. 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 alge- braic 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 pre- sents 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 gra- dient 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 condit ion 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 Ax = 300 ft, Ay = 350 ft, and h = 40 ft. The reservoir fluid properties are B = B ° = 1 RB/STB, p = 50 Ibm/ft 3, 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

The gr idblocks have the same d imens ions and rock propert ies. Therefore,

71, 2 = T2, 3 = 7_3,4 = T x , where

Page 239: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 213

qsc 4 -600 STB/D

J

pb w = 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

# B A x 0.5 x I x 300

production well in gridblock 4 only. Therefore, q,c~ = -600 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 pres- sure of 4000 psia. Therefore, Eq. 4.37c, can be used, yielding

kxA,: qsc,~., = [t ic , 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]

o r

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

(7.20)

2 8 . 4 0 0 4 ( p 2 - p~ ) + 5 6 . 8 0 0 8 ( 4 0 0 0 - p~ ) + 0 = 0

Page 240: Petroleum Reservoir Simulation a Basic Approach

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 va lues in this equat ion gives

28.4004(p2 - P3 ) + 28 .4004(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 , ~0 4 = {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 + ( -600) = 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 =3989.44 psia, P2 =3968.31 psia, p:~ =3947.18 psia, and

P4 = 3926.06 psia.

Page 241: Petroleum Reservoir Simulation a Basic Approach

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 = 0.14[(300)2 + ( 3 5 0 ) 2 ]0.5 = 64.537 ft

2 ~ × 0.001127 x 270 x 40 G w = = l 1.0845 RB-cp/D-psi

log e [64.537/(3 .5 / 12)] + 1.5

11.0845 - 6 0 0 - 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

pb w = 400q

Pl = Pbw

No-flow boundary

Figure 7-2 Discretlzed 1D reservoir in Example 7.2.

Page 242: Petroleum Reservoir Simulation a Basic Approach

216 Chapter 7 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)

For gridblock 3,

For gridblock 4,

28.4004p2 - 56.8008p3 -I- 28.4004p4 = 0 (7.25)

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 demon- strated in Example 7.1.

28.4004p3 - 28.4004p4 = 600 (7.27)

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

-56 .8008p2 + 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

Page 243: Petroleum Reservoir Simulation a Basic Approach

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

qsc 4 ?

J

pb w = 400 No-flow boundary

Figure 7-3 DiscreUzed 1D reservoir in Example 7.3.

Solution

From Example 7.1, the transmissibility and the flow rate across the reservoir left

boundary are obtained as T x = 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)

For gridblock 2,

For gridblock 3,

28.4004p~ - 56.8008p2 + 28 .4004p 3 = 0 (7.23)

28.4004P2 - 56.8008P3 + 28.4004P4 = 0 (7.25)

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

11.0845 q"" - 1 X 0 . ~ (P4 -- 3899) = -22.1690(P4 - 3899) (7.30)

For gridblock 4, the flow equat ion is obtained from Eq. 7.26 in Example 7.1,

Page 244: Petroleum Reservoir Simulation a Basic Approach

218 Chapter 7 Single-Phase Flow Equation for Various Fluids

?"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

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,%,., = 56 .8008(4000-p l ) = 56.8008(4000- 3989.44) = 599.816 STB/D.

(7.26)

(7.31)

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 _ pb W = 400 ~ bE - 0.2 psi/ft

Figure 7-4 DiscreUzed 1D reservoir in Example 7.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)

Page 245: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 219

q,cbE. =l/~c --~B--]41~X x k A .Op b, --7°a~xZb,: ] = 0 ' 0 0 1 1 2 7 ×

o r

270 x (350 x 40) [ -0 .2 - 7, x 0] 0 . 5 x l

q ....... = -1704.024 STB/D

The flow equations for the first three gridblocks are obtained as in Example 7.1.

For Gridblock 1,

For Gridblock 2,

For Gridblock 3,

-85.2012pl + 28.4004p2 = -227203.2

28.4004pl - 56.8008p2 + 28.4004p3 = 0

(7.21)

(7.23)

28.4004P2 - 56.8008P3 + 28.4004P4 = 0 (7.25)

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

Page 246: Petroleum Reservoir Simulation a Basic Approach

220 Chapter 7 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 .001127x (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, = -600 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 pres-

sure of 4000 psia. Therefore, qsc~,, can be estimated using Eq. 4.37c, which

yields

k~A. qsc~,, = lflc HB(Ax / 2) ]1 [ (Pb w -- P l ) -- • (Zb w -- Z l ) l

270 x (350 x 40) ] [(4000 = [0.001127 x b-~ ~--i x ~ - ~ - ) - pl ) - 0.34722 x ( 3 2 1 2 . 7 3 - 3182.34)]

o r

qsc~., = 56.8008(3989.448 - Pl ) STB/D

Gridblock 4 falls on the east boundary, which is a no-flow boundary. Therefore, Eq. 4.32 applies, giving qs%., = 0 STB/D.

(7.33)

Z

pb w = 40C

q~c.. = -600 STB/D

No-flow boundary

ZbE =2969.62 ft

Z4=3000 ft

Z3=3060.78 ft

Z2=3121.56 ft

Z1=3182.34 ft

Zbw =3212.73 ft

Figure 7-5 DiscreUzed 1D reservoir in Example 7.5.

Page 247: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase F low Equation in Mult i 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 56 - 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 56) ]

+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 + 28 .4004p3 = 0 (7 .37)

For gr idblock 3, n = 3 , q)3 = {2, 4 } , a n d ~3 = { } • T h e re fo r e , ~ 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 (3121 .56 - 3060 .78) ]

+28 .4004[ (P4 - P3 ) - 0 . 3 4 7 2 2 × (3000 - 3060 .78) ] + 0 = 0

or after factorizing and ordering the unknowns,

28 .4004p2 - 5 6 . 8 0 0 8 P 3 + 28 .4004P4 = 0 (7 .39)

Page 248: Petroleum Reservoir Simulation a Basic Approach

222 Chapter 7 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

Substitution of the va lues in this equat ion gives

(7.40)

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 equiv- alent wellblock radius using Eq. 6.15 followed by the wellblock geometric factor using Eq. 6.12 must be calculated, giving

re q = 0.14[(300)2 + (350)2 ]0.5 = 64.537 ft,

and

2at × 0.001127 × 270 × 40 G - = 11.0845

log e [64.537/(3 .5 / 12)] + 1.5 RB-cp/D-psi,

11.0845 - 6 0 0 - - - ( 3 8 5 2 . 1 9 - p , f , ) from which P,f, = 3825.13 psia.

I x 0 . 5

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.~,:,, + Z q,~,.,,)= (q.,c, +q,%.,)+(qsc2 +0)+(q.~c~ "{-0)-f'(qsc4 +q,%.4 ) n=l 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.

Page 249: Petroleum Reservoir Simulation a Basic Approach

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 pres- sure 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

respectively.

The flow equations for the first three gridblocks are obtained as in Example 7.1.

For gridblock 1,

-85 .2012P l + 28.4004P2 = -2 2 7 203 . 2

For gridblock 2,

For gridblock 3,

28.4004pl - 56.8008p2 + 28.4004P3 = 0

28.4004p2 - 56.8008P3 + 28.4004P4 = 0

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

(a)

and

(7.18)

(7.21)

(7.23)

(7.25)

T3,4 (P3 - P4 ) + qsc~,4 + qsc, = 0 (7.26)

The well is located at center of gridblock 4. The equation for the well produc-

tion 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 + (350)2 ]0.5 = 64.537 ft,

2 ~ × 0.001127 × 270 × 40 G w = = 11.0845 RB-cp/D-psi,

log e [64.537/(3.5 / 12)] + 1.5

Page 250: Petroleum Reservoir Simulation a Basic Approach

224 Chapter 7 Single-Phase Flow Equation for Various Fluids

o r

11.0845 qsc4 - l X 0.---------~ (P4 -- 3850)

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 =3952.94 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 req , Eq. 6.32 for G w , and

Eq. 6.1 for q s c 4 . 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 + (350)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

or

5.2315 qsc4 - l x 0 . ~ ( p 4 - 3 8 5 0 )

Page 251: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 225

/

pb w = 400q

Pwr = 3850 psia a =?

(a) Well is located at center of Gridblock 4.

No-flow boundary

7 y ~x

pb w = 4000 psia

Pwf = 3850 psia

qsc 4 ?

2 3 4

1 300 ff , , 300 ft

40 ft

No-flow boundary

(b) Well is located at east boundary of Gridblock 4.

7 y ~X

2 3 4 pb w = 4000 psia "--* • ' • ' ~[~.

PbE = 3850 psia

300 ft , 300 ft qsc 4 = 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 (7.46)

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, P3--3939.66 psia, and

P4 = 3915.52 psia. Substitution for P4 = 3915.52 into Eq. 7.45 yields

Page 252: Petroleum Reservoir Simulation a Basic Approach

226 Chapter 7 Single-Phase Flow Equation for Various Fluids

qsc4 = - 1 0 . 4 6 3 ( p 4 - 3850) = -10 .463(3915 .52 - 3850) = -685 .536

(c)

or

STB/D (7.47)

The well is treated as a boundary condition with the reservoir boundary pres- sure 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 ~ ~ 1 l tJ ts~u - P 4 ) - '~ X 01

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 = -218683 .08 (7.49)

The results of solving Eqs. 7.21, 7.23, 7.25, and 7.49 for the unknown pressures

are Pl = 3981.25 psia, P2 = 3943.75 psia, P3 = 3906.25 psia, and

P4 = 3868.75 psia.

Substitution for P4 = 3868.75 into Eq. 7.48 yields the rate of flow across the res-

ervoir 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, and 7.50 demon- strate that even for 1 D flow it is not appropriate to treat wells at reservoir ends as boundary conditions, that it is important to differentiate be tween physical wells and fictitious wells as discussed in Chapter 6, and that well performance and pres- sure distribution are affected by well location (within a block or on a reservoir no- flow 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

Page 253: Petroleum Reservoir Simulation a Basic Approach

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 N o - f l o w b o u n d a r i e s

¢

I. 350 ff . r r

(a) Gridblocks and wells. (b) Boundary conditions.

o i

/

Figure 7-7 Discretized 2D reservoir in Example 7.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. p B A x 3.5 x 1 × 350

Ayky (350 × 30) × 100 T],3 -- T2,4 = L = tic - 0.001127 × = 1.3524 STB/D-psi.

#BAy 3.5 × 1 × 250

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 = 0.281(100 / 150) o.5 (350) 2 + (150 / 100) o.5 (250) 2 ]o.5 _- 58.527 ft,

eq [(100 / 150) 0.25 + (150 / 100) o.25 ]

Page 254: Petroleum Reservoir Simulation a Basic Approach

228 Chapter 7 Single-Phase Flow Equation for Various Fluids

2 ~ x 0.001127 x 122.474 x 30 G w = = 4.7688

{log e [58.527/(3 / 12)] + 0}

For the well in gridblock 2, we apply Eq. 6.11, yielding

RB-cp/D-psi.

4.7688 q,~ - ~ (P2 - 2 0 0 0 ) = - 1 . 3 6 2 5 ( p 2 - 2 0 0 0 ) STB/D

For the well in gridblock 3, qs~3 = -600 STB/D. In addition, for the other grid-

blocks, 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

o r

k Ay q ....... = [fl~ /,tB(-~y / 2) ]~ [(Pbs - P~ ) - }'(Zb.~ - Z~ )]

100 X (350 X 30) . . . . . . . = I0.001127 x ~ x ~ - } - ~ - ) j t t euuu - p~ ) - 7 x 0]

qs%., = 2.7048(4000 - p~ ) STB/D

The reservoir west boundary is a constant rate boundary supplying fluid to grid-

block 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~. - p z ) - ~ ' x 0 ]

.5.D X l X [ZDU / Z)

o r

(7.51)

(7.52)

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 -70~xZb~ 150 x (250 x 30) [ - 0 3 7 x O ] qscb, ,~._ =[ t ic - - ~ J Z t ~ x x b ~ ] = 0 . 0 0 1 1 2 7 x 3 . 5 x l " -

o r

qscb~.2 = - 1 0 8 . 6 7 5 STB/D.

Gridblock 3 falls on the reservoir west and north boundaries . Both reservoir

boundar ies are no-flow boundaries . Therefore, q.,c~..~ = q,% 3 = 0 .

Page 255: Petroleum Reservoir Simulation a Basic Approach

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,

kxA x [oqp 3 .xZ h~ " 1 5 0 x ( 2 5 0 x 30) q ..... =[tic - - ~ - 1 4 ~xxh ~ - 7 1 = 0 . 0 0 1 1 2 7 x

. . 3.5x1

or

q ....... =-108.675 STB/D.

The north boundary is a constant rate boundary withdrawing fluid from

gridblock 4. Therefore, qs%., = -200 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 .0922P 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 cor responding values , this equat ion 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)

[--0.3 - }, x 0]

Page 256: Petroleum Reservoir Simulation a Basic Approach

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 equat ion 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 (7.59)

For gridblock 4, n = 4 , ~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 equat ion 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 grid- block 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

- 6 0 0 ~ ( 3 2 6 7 . 3 6 - p,¢~ ) , 1 x 3 . 5

Page 257: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 231

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 [(q,q +qs%.-Fqsc~wl)+(q,.:~ +q,%~ +q .... o) ] ~,(qsc +~,qsc, ) = - ' . . . . . J n - I " ,~e. " L+(q,c3 + q,%.~ + q ....... ) + (q,~, + q ....... + q,%., )

[ (0 + 615.721 + 500) + ( -1845 .12 + 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/ft 3, 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 use Eqs. 6.13, 6.16, 6.12, and 6.1 for k n , req,

G w , and qsc, respectively:

and

r eq

k M = 200 md,

= 0 . 1 9 8 x 4 0 0 = 79.200 R,

Page 258: Petroleum Reservoir Simulation a Basic Approach

232 Chapter 7 Single-Phase Flow Equation for Various Fluids

G,, = 2 ~ x 0.001127 × 200 x 50

{ log e [ 79 .200/ (3 / 12)] + 0}

The application of Eq. 6.1 gives

= 12.2974 RB-cp/D-psi.

o r

12.2974 - 1 0 0 0 = 1 x ~ (P7 - P,,f7 )

for wellblock 7,

P,f, = P7 - - 243.954 psia

12.2974 qs, - 1 x - ~ (P2 - 3500)

or q.~c2 = -4'0991(p2 -3500) STB/D

for wellblock 2, and

for wellblock 6.

qsc6 ----- - 4 . 0 9 9 1 ( p 6 - 3 5 0 0 ) STB/D

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

£ T I , , ( P , - P , ) + Z q , , , , . , +q,c,, = 0

For no-flow boundaries ( ~., q ...... = 0 ), Eq. 7.19 reduces to

Z T~,,,(p, -p,,)+q,,.° = 0 l eap n

For gridblock 2, n = 2 and '~0 2 = { 5 } . Therefore, applying Eq. 7.65 gives

Tz,5(p5 -p2 )+q , , :~ = 0

Upon substitution of the corresponding values, this equation becomes

3.7567(p5 - P2 ) - 4.0991(P2 - 3500) = 0

(7.62)

(7.63)

(7.64)

(7.19)

(7.65)

(7.66)

Page 259: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 233

qsc = -1000 STB/D ~k Pwf2 = 3500 psia m . . . . / p...~ = 3500 psia

"// i , / i 8 / / ) 1

/b.. A 1 ' ' / i ° ( / Jl

:;V i i//,x

I®l'lgY'un°ares I 7 I I

..................... 4 5 6 ................... ..................... ...................

(b) Boundary conditions.

(a) Gridblocks and wells.

Figure 7-8 Discretized 2D reservoir in Example 7.8.

After factorizing and ordering the unknowns, the equation becomes

-7 .8558p2 + 3.7567P5 = -14346 .97 (7.67)

For gridblock 4, n = 4 and ~P4 = {5, 7}. Therefore, applying Eq. 7.65 gives

T4,5 (P5 - - P 4 ) "}- 7"4,7 (P7 -- P4 ) + qsc 4 = 0 (7.68)

Upon substitution of the cor responding values , this equat ion 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 .5134p4 + 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 cor responding values , this equat ion 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 (7.71)

For gridblock 6, n = 6 and "/~6 = { 5 } o Therefore, applying Eq. 7.65 gives

Page 260: Petroleum Reservoir Simulation a Basic Approach

234 Chapter 7 Single-Phase Flow 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 . 7 5 6 7 p 5 - 7 . 8 5 5 8 P 6 = - 1 4 3 4 6 . 9 7 (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 cor responding values , this equat ion b e c o m e s

3 .7567(p 4 - P 7 ) + 3.7567(p 8 - P 7 ) - 1 0 0 0 : 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 = 3111.83 psia, P5 = 3244.93 psia,

P6 = 3378.02 psia, P7 ---- 2978.73 psia, and P8 -- 3111.83 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 sub- stituting 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

Page 261: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 235

Pwf7 = P7 -- 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. =500 .008+0+0+500 .008-1000+0 = 0.016. n=2 l ~ . 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 Compressib le 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~- ~ " (c+%)lp,," "+' - p " ] (7.78) acAt B"

Note that Eq. 7.78 reduces to Eq. 7.14 for an incompressible fluid where c = 0 . Substitu- tion of Eq. 7.78 into Eq. 7.12 yields the flow equation for slightly compressible fluids,

Z T, . . . . . . . Vbn ~ , (c + c¢ ) Ip~ f l " l,l[Pl --P, ) - T t , , ( Z t - Z n ) ] + Z q m + m . . . . . . . . q,c - - p, ] (7.79) t~,p. lc~° ° c:~ B° At

7.3.2.1 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 for- mulation 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 equa- tion (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.

Page 262: Petroleum Reservoir Simulation a Basic Approach

236 C h a p t e r 7 S i n g l e - P h a s e F l o w E q u a t i o n f o r Var ious F lu ids

Exp l i c i t f o r m u l a t i o n o f the f l o w equa t ion

The explicit formulation of the flow equation can be obtained from Eq. 7.79 if the argu- ment 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," " (Z q" + " ,,~,j,k) [ (P/ - P?,j,k ) - ~ l , ( i , j , k ) l - - Z i , j , k ) ] "1- 2 sct,o,j,k ) qsc. j , lE~,Oi,j,k IE~i,j , k

a c B ° A t , , - Pi,j.~ ]"

(7.80b)

t q • Stable numerical solution I ' ~ , • Unstable numerical solution i1~

,, , " ,

,,,

T i m e ~ / /

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 mathemati- cians, and it is not pursued further in this book.

Page 263: Petroleum Reservoir Simulation a Basic Approach

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 argu- ment 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

Z T . ~ I . . . . 1 _p,+X)_ , q,c = ~ C ¢ ) ) [ P ~ + I - - P ~ ] ,,, ltP, n Y t , , ( Z z - Z , ) ] + Z q ; £ ) , + ,+1 Vo,, (7.81a) u ozat

o r

Z T n. l ,¢ n+l n + l . n Z qn+l ..[_ n+l l,(i,j,k~ttPl -P~,j,~)-Y~,(~,j,k)( t--Zi,j,k)] + ~., ....... j~, qs<j~ IE~fll,j,k lE~i,j,k

(7.81b) Vbl,j. , ~)~,j,k (C "t- Cfb ) [ n--1 , ,

-- ~ 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 approxima- tion 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. There- fore, the pressure solution at current time level n+ 1 is obtained by solving simulta- neously 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 attrac- tive 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 f low 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 ~ F "~1/2 = ~ ( F n + F "*1) . Therefore, Eq. 7.79 becomes

1//2 2 T, . . . . . ) n T, n41 . . . . 1 n+l", n+l ,..ttP~ - P . -y,..(Z,-Z°)l+~ ,,. ttP, -P ° )--~',,n ( Z , - Z ) ] l~p,, l ~

n n¢l Vb~i~n(C"}-Ce? ) n+l n +~(Zq,,,~ +Zqs~,+l,)+~(q~c +q,c )= [P, --P,]"

(7.82a)

Page 264: Petroleum Reservoir Simulation a Basic Approach

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 -- pn ,1 - n+l ~ \ , .11_ ~ n~l .~_ n+l l . ) - Y l , . ( Z I - - L . ) I z ,q~c, . , q ....

(7.82b) Vb.d?~ (c +c* ) .1 Kj' q" " l,ltPt - -P , ) - -g t , ( t Z ) ] + q,c }" _ a - - ~ B = ( A t / 2 ) [ p * - p . ] - { ~ , T , , . . . . . . , Z - .._, .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 Crank- Nicolson 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 bound- aries (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 res- ervoir 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 esti- mated 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 t ime 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 +At 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) , f rom 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 pres- sure 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.

Page 265: Petroleum Reservoir Simulation a Basic Approach

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.

Page 266: Petroleum Reservoir Simulation a Basic Approach

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 ( CMr J ) 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 res- ervoir 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. I f reservoir blocks are identified using block order and the implicit formulation is used, the equations for material balance checks are

and

N V, ~ n+l _ (~_): ]

IM, : ,~--1 ~zf ~t [(B)" N Z Z °+1 (qsn£ 1 + qsc,,. ) n=l IE~n

(7.83)

~ - [(~-):+1 - (-~-)On ] n=l

CMB : n+l N ( 7 . 8 4 )

ZA,mZ(q:o +ZqL) m=l n=l 1 ~ .

where N = total number of blocks in the reservoir, Subscript n = block number, and super- script 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 mate- rial balance checks become

and

o V"o¢,,(C + % ) r ,,+, ,, . . . . . . . . . . . . [p,, -P,,]

n=l a cB °At IMn = N ( 7 . 8 5 )

~(q,~: l + x-, ,+, . . 2_~ qsc,.. )

n=l l~,,

a , B ° [P" - p° I CMB = n,l N ( 7 . 8 6 )

qm Z A I m Z ( q ~ c , + Z sc~,, ) m=l n=l l~n

Page 267: Petroleum Reservoir Simulation a Basic Approach

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 prob- lems using handheld calculators, compared to 0.999995 to 1.000005 used in numerical simulators.

The incrementa l mater ia l ba lance check at t ime level n + 1 , which is expressed by Eq. 7 .85 , can be d e r i v e d by w r i t i n g Eq. 7 . 8 1 a fo 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 Z l ' ~ T, n÷l n~l pn+l n Z (~-"~ n+l q_ n+l

• z~ ,,,, [(P~ - , ) -Y , , , ( , - Z , , ) I } + ~ L q ..... qs~. ) n=l le~p~ n=l l e ~

(7.87) g b . ~ n ( C + C 0 ) r n+ ' __pn

n n=l a~B° At 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

S" ~-" q-+, boundaries ( ,_~ z.., ..... ). The RHS of this equation represents the sum of the accumula- n=l lEE.

tion terms in all blocks in the reservoir. Therefore, Eq. 7.87 becomes

~ ( ~ " ~ n~-I "t- n + l ' , ~.~ Vbn~)n(C"lcC*) 2., q ...... qsc ) = [pn--1 _ pn ~ ]

n=l l~,, n ,=l acB °At

Dividing this equation by the term on the LHS yields

(7.88)

1 ~B°At P" -P~] : n=l (7.89) N

Z z n+l ~ n+l x tq,c,, +2 .~q ...... )

n= ' l ~ n

Comparing Eqs. 7.85 and 7.89 dictates that IM8 must be equal or close to one in order

to preserve the mater ia l balance. The equat ion for the cumula t ive mater ia l ba lance

check is obtained by writing Eq. 7.88 for all t ime 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

Page 268: Petroleum Reservoir Simulation a Basic Approach

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 ~_ n , . becomes ~ [~ (q;,+l + q~, ) + 2 . /2 tq ...... qs~, )].

n = l IE~.

Both Examples 7.9 and 7.10 demonstrate the application of the solution algorithm pre- sented 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-dis- tributed grid is used in Example 7.10. Example 7.11 presents the simulation of a heteroge- neous 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 .27, 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 (350x40)×270 = 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 ×10 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 , , 1 = _ 6 0 0 STB/D. sc 4

Gridblock 1 falls on the reservoir west boundary, which is kept at a constant pres-

sure of 4000 psia. Therefore, q"+~ ,c~., can be estimated using Eq. 4.37c, whose

application gives

Page 269: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 243

qsc4 -600 STB/D

J

pb w = 400, No-flow boundary

Figure 7-10 Discretized 1D reservoir in Example 7.9.

k x Ax q"+'%" = [fl~ l~B--~/2) 1' [ (p~ - p i l l ) - y ( Z b w - Z, )1 (7.90)

270 x (350 x40) . . . . . . . . . . 1 \

= [0.001127x O . S x l x O 0 / 2 ) ' - = - s - - - : -O-===: l t t4 t~ ' -P l ) - y x O ]

o r

q"+l = 56.8008(4000- p~"l) STB/D SCbw .t

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. SCb E .4

(7.91)

(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

v~ ~(c+c~) ~" T., l(pn~l , ' l x ~'q.+l _1_ , ' l . n + l n L , t,, t - P , ) + q,~ -= . . . . . . ac-----~t [ p , - p , ] (7.92)

1( ~ n l e~ n

For gridblock 1, n = 1,

and Eq. 7.92 becomes

T1.2 / n + l n + l x ] _ n + l q,~l tP2 - P l ) qs%~ + ,q -

~ , q,,+] : qn+l '~)l : {2} , and ~l = {bw } - Therefore, ~ ...... ,%.,

/ e~ t

v~ ¢~ (c + c~ ) [p~'+' - P ; ]

Substitution of the values in this equation gives

(7.93)

28.4004(p2+1 _ p~+l ) + 56.8008(4000 - p~+l ) + 0 = 2.2217[p~ +1 - 4000]

or after factorizing and ordering the unknowns,

Page 270: Petroleum Reservoir Simulation a Basic Approach

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 For 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 .92 b e c o m e s

T, ( n+l ~+1 . n+l q~+l 1,2 Pl - P 2 )+T2,3tP3 -P~"+I) + 0 + . s~ -

Substitution of the values in this equation gives

V~ ~)2 (c + c¢ ) [P2 +1 _ P2 l

acB°At (7 .95)

2 8 . 4 0 0 4 ( p ~ '~1 - p2 +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 a f t e r fac tor iz ing a n d o rde r i ng t h e u n k n o w n s ,

28 .4004p~ '+~ - 5 9 . 0 2 2 5 p ~ +~ + 2 8 . 4 0 0 4 P 3 +~ = - 8 8 8 6 . 8 6 (7 .96)

For gridblock 3,

Eq. 7.92 becomes

T2,3. n+l n+l x .1._ T. , n+l n+l x 0 -]- n+l -- tP2 - P3 ) 3,4 I, P4 -- P3 ) + qsc~

Subs t i tu t ion of t h e v a l u e s in th is e q u a t i o n g i v e s

n = 3 ~03 = {2 ,4 } and ~3 = { } Therefore, ~ q " + l = 0 and I , " sc l , 3

I E ~ 3

v~,¢;(c +c,) acB°At

[p~+l _ p ~ ] (7 .97)

28.4004(P2+1 n+l n+l - P3 ) + 2 8 . 4 0 0 4 ( p 4 - p3 +1 ) + 0 + 0 = 2 .2217[P3 +I - 40001

or after factorizing and ordering the unknowns,

28.4004P2 +l - 59.0225p~ '÷1 + 28.4004p~ .1 = -8886.86 ( 7 . 9 8 )

For gridblock 4, n = 4 , ~04 = {3} , and ~'4 = {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 ]

Subs t i tu t ion of t h e v a l u e s in th is e q u a t i o n g i v e s

(7 .99)

28.4004(P3÷I ,+1 - P 4 ) + 0 - 6 0 0 = 2 .2217[P4 +1 - 4 0 0 0 1

or after factorizing and ordering the unknowns,

28 .4004p~ '+1 - 30 .6221P4 +1 = - 8 2 8 6 . 8 6 (7 .100)

Page 271: Petroleum Reservoir Simulation a Basic Approach

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

a r e p l +l = 3993.75 psia, p~+~ = 3980.75 psia, p,,+13 = 3966.24 psia, and

p4 +1 = 3949.10 psia.

Next, the flow rate across the reservoir left boundary ( q"÷l ~%., ) is estimated using

Eq. 7.91, which gives

qn+l = 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. SCb w ,1

The material balance for a slightly compressible fluid and rock system is checked using Eq. 7.85, yielding

IMB

~ gt,.~)~ (cl-¢4~) [ p n + l

,=1 a cB °At " - p'~ ]

Vb ~)° ( C -~ C e~ ) 4

~ t ZtP"+I--P:]n=I

N 4 4 S,q,+, ,+1

~ , ( q , ~ , l + ~ q . + , ) ~ so° + E Z q , c , n SCl.n .n n = l l~e, , n = l 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 . 2 2 1 7 × 1 1 0 . 1 6 = = 0.99897 .

-244 .995

Therefore, the material balance check is satisfied.

(b) Second time step calculations ( n = 1, t,+ 1 = 2 day, and At = 1 day)

n n n Assign Pl = 3993.75 psia, P2 = 3980.75 psia, P3 = 3966.24 psia, and

P4 = 3949.10 psia. Because At is constant , the flow equat ion for each grid-

block in the second and succeeding time s teps 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,

-87 .4229p~ ' 1 + 28.4004p~ '÷1 = -236076 .16 (7.101)

Page 272: Petroleum Reservoir Simulation a Basic Approach

246 Chapter 7 Single-Phase Flow Equation for Various Fluids

I M B - -

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

For gridblock 3,

28.4004(p~ +1 ,,-~ l n+l -- P3 ) + 28"4004(p4 -- 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

For gridblock 4,

28.4004(P3 +1 n+l . - P 4 ) + 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

The results of solving Eqs. 7.101 through 7.104 for the unknown p r e s s u r e s a re

p~'+a = 3990.95 psia, p2 +1 = 3972.64 psia, p3 +~ = 3953.70 psia, and

p4 +~ = 3933.77 psia.

I qn+l Next, the flow rate across the reservoir left boundary, .~(~.~ ) is estimated using

Eq. 7.91, which gives

q,,+l = 56.8008(4000 - p l ÷~ ) = 56.8008(4000- 3990.95) = 514.047 STB/D. SCb w ,t

The material balance is checked using Eq. 7.85, yielding

Vb~)~(C~C~))~ . . . . l pn a BAt ,=ltP" ,1

4 4

Z q.:;~' + Z Z q"~i, n = l n = l le~n

~2 2 2 1 7 [ ( 3 9 9 0 . 9 5 - 3 9 9 3 . 7 5 ) + ( 3 9 7 2 . 6 4 - 3 9 8 0 . 7 5 ) ]1

= [ " L + ( 3 9 5 3 . 7 0 _ 3 9 6 6 . 2 4 ) + ( 3 9 3 3 . 7 7 _ 3 9 4 9 . 1 0 ) j j =

[ 0 + 0 + 0 - 6 0 0 ] + [ 5 1 4 . 0 4 7 + 0 + 0 + 0 ]

-2 .2217 × 38.78

-85 .953

(7.102)

(7.103)

(7.104)

= 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.

Page 273: Petroleum Reservoir Simulation a Basic Approach

Z

Pl = Pbw =

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

No-flow boundary

qsc 5 = -600 STB/D

Figure 7-11 Discretized 1D reservoir in Example 7.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.27, and c~ = 1 x l 0 -6 psi -1. Initially, the reser-

voir pressure is 4000 psia. Reservoir fluid properties are B = B ° = 1 RB/STB,

p = 50 Ibm/ft 3, ~ = 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 7- in 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. Per- form a material balance check.

Solut ion

The reservoir is discretized into five gridpoints, n x = 5 . The distance between the

gridpoints is zkxi+~/2 = 1200 / (5 -1 ) = 300 ft for i = ] , 2 ,3 ,4 . Therefore, block

sizes in the xdirect ion 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 x k x T~, 2 = T:, 3 = I"3, 4 = 14, 5 = T = tic #BAxi+,/2

(350 x 40) x 270 0.001127 x = 28.4004,

0 . 5 x l x 3 0 0

V b , ~ ( c + c ¢ ) _ (300 x 350 x 40) x0.27 x (1 x lO -5 + l x l O ~ ) = 2.2217

a c B ° A t 5.614583 x 1 x 1

Additionally,

V b . { b ~ ( c + % ) _ ( 1 5 0 x 3 5 0 x 4 0 ) x 0 . 2 7 x ( l x 1 0 5 + l x 1 0 - 6 )

a c B ° A t 5.614583 x 1 x l

for n = 2,3,4.

=1.11085 for n = l , 5 .

Page 274: Petroleum Reservoir Simulation a Basic Approach

248 Chapter 7 Single-Phase Flow Equation for Various Fluids

There is a production well in gridpoint 5 only. Therefore,

q,+l,q = qn+lsc2 = qn+ls~3 = q,+lsc4 = 0 and qs~. +1 = -600 STB/D.

Gridpoint 1 falls on the reservoir west boundary, which is kept at a constant pres- sure of 4000 psia. Therefore,

p~,+l = P~ = 4000 psia

In addition, q,+l ,%., can be estimated using Eq. 5.46c, whose application gives

kxAx n+l x " Z q"+~,%,l = [~C - ~ ] 1 , 2 [ (Pb W - - P 2 ) - - r t b W - Z 2 ) ]

270 x (350 = [0.001127 x x 40)][ (4000 - p~+~ ) - y x 0]

0 . 5 x l x 3 0 0

o r

(7.105)

(7.106)

ac B°At )[p~,+l -P~ ' ]

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.93)

and Eq. 7.92 becomes

TI " n+l _ p l+ l ) q.*l + n+l ,2 [P2 + qsq = SCbw ,1

q"+' = 2 8 . 4 0 0 4 ( 4 0 0 0 - p~+l ) STB/D (7.107) s c ~ a

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. SCb E ,5

(a) First time s tep calculations ( n = 0 , t.+ 1 = 1 day, and At = 1 day)

n n n Assign Pl =P2 = P " P" = 3 = 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

(c + E T'n+l/l,n tpln+l -- pnn+l x-[- ~-'~) ~ qn+lsc,,,, +qsn~c l = [p,~+l _p.] (7.92) l ~ . l ~ . " a c B ° At

"K~ q,,1 ,+1 For gridpoint 1, n = l , ~1 = {2 } , and ~~ = {b w } . Therefore, ,_, ..... = q,%.,

Page 275: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 249

which when solved for q"+~ results in Eq. 7.107. Therefore, we may conclude sc~ ,1

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,

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 - - ~ ' c B ° [ p ; + l -- P 2 ]

At

Substitution of the va lues in this equat ion gives

n = 2 ~O z = { l , 3 } and ~:z = { } Therefore, ~-'q"+~ = 0 and

(7.95)

28 .4004(4000 - p;'+~ ) + 28.4004(p3 '1 - p2 +1 ) + 0 + 0 = 2.2217[p2 +~ - 40001

or after factorizing and ordering the unknowns,

-59.0225p~ +1 + 28.4004p~ TM = -122488.46 (7.108)

For gridblock 3, n = 3 ~O 3= {2 ,4 } and ~3={ } .There fo re , ~,q"+ l = 0 and , i set, 3 IE~ 3

Eq. 7.92 b e c o m e s

T, ( n+l n+l . . . . . . 1 n+l ) _1._ 0 "}'- n+l -- z,3 P2 - P3 ) + 13,4 ~,P4 -- P3 qsc~

Substitution of the values in this equation gives

v,~ q~; (c + c, ) [p3 +1 _ p; ] a B°At

(7.97)

28.4004(P2 ~ 1 . ~-1 n+l n+l --P3 )+28"4004(P4 --P3 ) + 0 + 0 = 2 " 2 2 1 7 [ P 3 + 1 - 4 0 0 0 ]

or after factorizing and ordering the unknowns,

28.4004p~' 1 _ 59.0225p~,+1 + 28.4004p~ +1 = -8886.86 (7.98)

For gridblock 4,

Eq. 7.92 becomes

T3,4 ( p 3 ~1 n+l ,- n+l n tq x .t_ 0 ..~ n+l --t)4 )+T45(P5 -1°4 ) q s ~ 4 -

Substitution of the values in this equation gives

n = 4 , ~04 = {3, 5} , and ~:4 = { } . Therefore, ~ q",,,n+l = 0 and IC~ 4

go. ~b4 (C + C¢ ) [P4 '1 _ P4 ] a B°At

(7.109)

28.4004(P3 +1 .+1 .+1 . , 1 - P 4 )+28"4004(p5 - P 4 ) + 0 + 0 = 2 " 2 2 1 7 [ p ~ + 1 - 4 0 0 0 ]

or after factorizing and ordering the unknowns,

Page 276: Petroleum Reservoir Simulation a Basic Approach

250 Chapter 7 Single-Phase Flow Equation for Various Fluids

28.4004p~ '+1 - 59 .0225p4 +1 + 28.4004p~ '+1 = - 8 8 8 6 . 8 6 (7.110)

n+l qn+l For gridblock 5, n = 5 , ~05 = {4} , a n d ~5 = {b~: } . Therefore , 2_, qsc,. = .......

a n d Eq. 7 .92 b e c o m e s

vb,¢~(c+%) T3 " n+l __pn+l. + n + l + n ~ l _ _

4tP4 5 ) q,%~ qs~ , a,B°At

Substitution of the values in this equation gives

pn+l n 5 - P 5 ] (7 .111)

28.4004(p4+1 _ p,,+15 ) + 0 - 600 = 1.11085[p~ +1 - 40001

or after the factorizing and the ordering of unknowns,

28 .4004p4 +l 29.51 . . . . . 1 - xz3p5 = - 3 8 4 3 . 4 2 8 8 (7 .112)

The resul t s of solving Eqs. 7 .108, 7.98, 7.110, a n d 7 .112 for the unknown pres -

s u r e s a r e p 2 +1 = 3987 .49 psia, p,+l = 3974 .00 psia, p4 +1 = 3958 .48 psia, and 3

p~'+~ = 3939 .72 psia.

Next, the flow rate across the reservoir left boundary ( q"+l sc~., ) is estimated using

Eq. 7.107, which yields

q , , 1 : 2 8 . 4 0 0 4 ( 4 0 0 0 - p2 +1 ) = 2 8 . 4 0 0 4 ( 4 0 0 0 - 3987 .49) = 355 .289 STB/D. sctw ,t

The material balance for a slightly compressible fluid and rock system is checked using Eq. 7.85,

IMB =

~ v,o ¢~.(c+%) °,, ~ vb ~(c+%) n-1 acBOAt lP, _p~] ~f ,, IB~A t [ p , + l _ p , ; ]

N 5 5 ( n+l q.~l) Z q n , l + Z ~ q n + l

Z q,~ + Z sc, . . . . . . ,_._., sc,,. n=l I,E~,, n=l n - I le~,,

1.11085 x (4000 - 4000) + 2 .2217 × (3987 .49 - 4000) + 2 .2217 × (3974 .00 - 4 0 0 0 ) ]

/ _ 1+2 .2217 × (3958 .48 - 4000) + 1.11085 x (3939 .72 - 4000)

[ ( 0 + 0 + 0 + 0 - 6 0 0 ) + ( 3 5 5 . 2 8 9 + 0 + 0 + 0 + 0 ) ]

- 2 4 4 . 7 6 5 - - 1 .00022.

- 2 4 4 . 7 1 1

Therefore, the material balance check is satisfied.

(b) Second time step calculations ( n = 1 , t , ,+ l = 2 day, and At = 1 day)

Page 277: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 251

n n Assign P2 = 3987.49 psia, p" = 3974.00 psia, P4 = 3958.48 psia, and 3

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 accumu-

lation 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 p~+l 2 8 . 4 0 0 4 ( 4 0 0 0 - - Pa ) + 28"4004(p3 - ) + 0 + 0 = 2 .2217[P2 +1 -- 3987 .49 ]

or after factorizing and ordering the unknowns,

- 5 9 . 0 2 2 5 P 2 +1 + 28 .4004p~ '+1 = - 1 2 2 4 6 0 . 6 6 7 (7 .113)

For g r idb lock 3,

28.4004(p~ +1 n * l n + l . = - - -P3 )+28-4004(p4 -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)

For g r idb lock 4,

n+l n+l 2 8 . 4 0 0 4 ( p ~ +' - P4 ) + 28 .4004 (p5 - P4 + ' ) + 0 + 0 = 2 .2217 [p4 +' - 3958 .48 ]

or after factorizing and ordering the unknowns,

2 8 . 4 0 0 4 p ~ +~ - 5 9 . 0 2 2 5 p ~ +~ + 28 .4004p~ '~1 = - 8 7 9 4 . 6 2 0 0 (7 .115)

For g r idb lock 5,

2 8 . 4 0 0 4 ( P 4 +~ - p~'+~ ) + 0 - 6 0 0 = 1 .11085[p~ '+1 - 3939 .72 ]

or after factorizing and ordering the unknowns,

2 8 . 4 0 0 4 p 4 .1 - 29 .51125p~ '+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 pres-

sures 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

Page 278: Petroleum Reservoir Simulation a Basic Approach

252 Chapter 7 Single-Phase Flow Equation for Various Fluids

q , , l ---~ 28.4004(4000 - p ~ + l ) = 28.4004(4000 -- 3981.91) = 513.763 STB/D sc~ w ,,

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 ~ M B 5 5

Z q"+l + Z "~-" q"+l s c n i__.d scl, n

n=l n=l 16~n

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 - 3958.48) / / /

_ [+1.11085 x (3923.52 - 3939.72) ] _ - 86 .103

[(0 + 0 + 0 + 0 - 600) + (513.763 + 0 + 0 + 0 + 0)] - 8 6 . 2 3 7

= 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 / n+l n+l (C "}- C o ) 1In [,Pl Pn ) + Z q n+l + n+l Vb. q~;, , - ..... q,c = d [p,+l, - p." ] (7.92)

i,,~. t~, " 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

(1__ = 1 2fl C T.,._+I L ..... = Gx' .... pB )~' .... I~B Ax, /(Ax, k, ) + ~iT1/(A,,, k.,,,, ) (7.117)

Page 279: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 253

No-flow boundary qsc4 -400 STB/D

No-flow boundary

Figure 7-12 Discretized 1D reservoir in Example 7.11.

Therefore,

1 2x0 .001127 T~'2 1 . 5 x l X 400/[(500 x 50) x 273] + 300/[(500 x 50) x 248]

- 14.0442 STB/D-psi

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 x10 -5 +0 )

acB° At Similarly,

5 . 6 1 4 5 8 3 x l x 5 - 1.87013 STB/D-psi

G (c acB°At

- 1.13544 STB/D-psi

acB°At - 0.333952 STB/D-psi

Vb' ~4(c +%) - 1.11317 STB/D-psi a B°At

a B°At - 0.723562 STB/D-psi

Page 280: Petroleum Reservoir Simulation a Basic Approach

254 Chapter 7 Single-Phase Flow Equation for Various Fluids

There is a production well in gridblock 4 only. Therefore, qn+l = -400 STB/D and s c 4

q,,+l = q,+l = q,+l = q,+l = 0 . No-flow boundary condit ions imply q,+l = 0 and SOl sc2 '~c3 so5 SCb W ,1

q .+ l = 0 SCb E .5

For no-flow boundaries, Eq. 7.92 reduces to

Vb, dp~ (c + c¢ ) [P"+' _ P,", ] (7.118) ~ '~ T n+l ( n*] n+l- q.+l = Z--J l,n P~ - Pn ) + sc.

l~v,,, ct c B ° At

(a) First time step calculations ( n = 0 , t÷~ = 5 days, and At -- 5 days)

n n n n Assign Pl = P2 = P3 = P4 = P" = 5 Pi, = 3 0 0 0 psia.

For gridblock 1, n = 1 and ~,~ = {2}. Therefore, Eq. 7.118 b e c o m e s

x n + l Vbl (p~ (C + Ce~ ) [ P l +1 n T1,2(P2 ÷1 - P ~ ' l ) + q , c ~ = a BOAt - P l ] ( 7 . 1 1 9 )

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 = -5610 .39 (7.120)

For gridblock 2, n = 2 and ~'2 = {1,3} . Therefore, Eq. 7.118 becom es

, .+~. + .+l Vb~ q~ (c + c¢ ) [P~+' _ P~ ] (7 .121) T l z ( P ; * I - p 2 ~ I ) + T 2 , 3 ( P ; * I - P 2 ) q s ~ - a BOAt

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 V b 3 ~ l ) 3 ( c ] - e * ) n.~l - - P3 ) -}- T 3 4 (P4 -- P3 ) q,~ -- [P3 -- P3 l (7.123)

, . a B°At

Substitution of the values in this equation gives

Page 281: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 2 5 5

1 5 . 7 1 3 l (p2 *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,

15 .713 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 . 1 2 4 )

For g r idb lock 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 n+l . . . . +1 . + l ) + °+, Vb, 0 ] ( C + C ~ ) [ p 4 . , ° ,4 I.P3 - - P4 ) "}- 14,5 tP5 - P4 q,c~. = o - P4 ] ( 7 . 1 2 5 )

a c B At

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 . 1 2 6 )

For gridblock 5, n = 5 and ~'4 = {4 } . Therefore, Eq. 7.118 becomes

o

. . . . 1 -- p , , ,1- ,+I Vb5 05 (C + C¢ ) IPs* ' -- P~ ] ( 7 . 1 2 7 ) q,stP4 5 )+qsc~- 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 = - 2 1 7 0 . 6 8 6 ( 7 . 1 2 8 )

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 = ]0 days, and At = 5 days)

Assign p~' =2936.80 psia, p~ =2928.38 psia, p~ =2915.68 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 reser-

voirs 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

Page 282: Petroleum Reservoir Simulation a Basic Approach

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 Vb.~P~(C"I-c~P) . so. ~ P° ]

For gridblock 1,

14.0442(p 2 ' ' - p l +' ) + 0 = 1.870131p~'*' - 2936.801 (7.129)

or after factorizing and ordering the unknowns,

-15.9143p~ '+1 + 14.0442p~ +1 = -5492 .20 (7.130)

For gridblock 2,

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)

or after factorizing and 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 n+l + ,+1 _p,~l --P3 ) 21"0847(p4 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 = -973 . 6972 (7.134)

For gridblock 4,

21.0847(p~ '+' - P4"~1 ) + 20 .1622(p 5"÷' - P4"+1)- 400 = 1.11317[p4 +1 - 2904.88] (7.135)

or after factorizing and ordering the unknowns,

21.0847p~ '+1 - 42.3601p4 +1 + 20.1622p~ '÷1 = -2833 .63 (7.136)

For gridblock 5,

20.1622(p4 +1 - p~'+' ) + 0 = 0.723562Ip~'+' - 2908.1801 (7.137)

or after factorizing and ordering the unknowns,

20.1622p~" - 20.8857p~ '+1 = -2104 .248 (7.138)

The results of solving Eqs. 7.130, 7.132, 7.134, 7.136, and 7.138 for the unknown

pressures 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, and 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 pro- duce fluid at the specified rate and the well is switched to operation under a con- stant FBHP of 1500 psia. Observe also that reservoir pressure declines steadily

Page 283: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 257

Table 7-1 Per formance of the Reservoir Described in Example 7.11

Time (day)

10

15

20

25

30

35

40

45

50

55

60

65

70

75

80

85

90

95

100

105

110

115

120

125

130

135

Pl (psla)

3000

2936.80

2861.76

2784.83

2707.61

2630.34

2553.07

2475.79

2398.52

2321.24

2243.97

2166.69

2089.41

2012.14

1934.86

1857.59

1780.31

1703.03

1625.76

1557.58

1524.61

1510.35

1504.34

1501.82

1500.76

1500.32

1500.13

1500.06

P2 (psla)

3000

2928.38

2851.77

2774.59

2697.33

2620.06

2542.78

2465.50

2388.23

2310.95

2233.68

2156.40

2079.12

2001.85

1924.57

1847.30

1770.02

1692.74

1615.47

1548.51

1520.22

1508.46

1503.54

1501.48

1500.62

1500.26

1500.11

1500.05

}9 3

(psia)

3000

2915.68

2837.30

2759.86

2682.56

2605.28

2528.00

2450.72

2373.45

2296.17

2218.90

2141.62

2064.34

1987.07

1909.79

1832.52

1755.24

1677.96

1600.69

1535.55

1514.26

1505.91

1502.47

1501.03

1500.43

1500.18

1500.08

1500.03

P4 (psia)

3000

2904.88

2825.28

2747.65

2670.32

2593.04

2515.76

2438.48

2361.21

2283.93

2206.66

2129.38

2052.10

1974.83

1897.55

1820.28

1743.00

1665.72

1588.45

1524.87

1509.47

1503.88

1501.61

1500.68

1500.28

1500.12

1500.05

1500.02

P5 (psia)

3000

2908.18

2828.15

2750.44

2673.10

2595.81

2518.53

2441.26

2363.98

2286.71

2209.43

2132.15

2054.88

1977.60

1900.33

1823.05

1745.77

1668.50

1591.22

1527.17

1510.08

1504.09

1501.70

1500.71

1500.30

1500.12

1500.05

1500.02

qsc 4

(STB/D)

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-400

-342.399

-130.389

-53.378

-22.229

-9.294

-3.890

-1.628

-0.682

-0.285

(psia)

3000

2875.83

2796.23

2718.60

2641.27

2563.98

2486.71

2409.43

2332.15

2254.88

2177.60

2100.33

2023.05

1945.78

1868.50

1791.22

1713.95

1636.67

1559.40

1500.00

1500.00

1500.00

1500.00

1500.00

1500.00

1500.00

1500.00

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.

Page 284: Petroleum Reservoir Simulation a Basic Approach

2 5 8 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, and 0.23, respectively. The flowing fluid has FVF, compressibility, and viscosity of 1

RB/B, l x l O-5 psi -1, and 0.5 cp, respectively. The reservoir external boundaries are no-flow boundaries. The well has open well completion and is placed on production at a rate of 2000 B/D. Initial reservoir pressure is 4000 psia. The reservoir can be simulated using five gridblocks in the radial direction as shown in Figure 7-13. Find the pressure distribution in the reservoir after one day and three days, and check the material balance each time step. Use single time steps to advance the solution from one time to another.

2000 STB/D

• • • T~30 ft

I" ?° z trw re I )r

Figure "/-13 Discretizefl 1D reservoir in Example 7.12.

Solution

The reservoir external radius is estimated from well spacing as

r = (20 x 43560 / Jr) 1/2 = 526.6040 ft. The well in wellblock 1 has r = 0.25 It.

Therefore, using Eq. 4.86 yields C:ig = (526.6040 / 0.25) 1/5 = 4.6207112

The location of gridblock 1 in the radial direction is calculated using Eq. 4.87, which yields

5 = [(4.6207112) log, (4.6207112)/(4.6207112 - ])] × 0.25 = 0.4883173 It.

The locations of gridblocks 2, 3, 4, and 5 in the radial direction are calculated using Eq. 4.122, which gives

r = (4.6207112) ~i-~ (0.4883173) ( 7 . 1 3 9 )

for i = 2 , 3 , 4 , 5 o r r 2 = 2 . 2 5 6 4 It, r 3 = 1 0 . 4 2 6 0 It, r 4 -- 4 8 . 1 7 5 8 ft, a n d

r 5 = 2 2 2 . 6 0 6 3 ft.

The gridblock bulk volumes are calculated using Eq. 4.88b, yielding

Page 285: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 259

Vb, = {(4 .62071122 -- 1) 2 / [4 .62071122 log e (4 .62071122 )] }r~ 2 ( ~ X 2Jr) X 30

= (298.61847)r~ 2

for i = 1, 2 , 3 , 4 a n d Eq. 4 .88d for i = 5,

V.o, = { 1 - [ log , ( 4 . 6 2 0 7 1 1 2 ) / ( 4 . 6 2 0 7 1 1 2 - 1)]2 [4 .62071122 - 1]

/ [ ( 4 . 6207112 ) °- log , (4 .62071122 )] } (526 .6040) 2 ( ~ × 2 ~ ) × 30

= 0 . 2 4 6 8 1 7 7 8 × l08

Table 7 -2 lists gridblock bulk volumes.

T a b l e 7 - 2

(7.140a)

(7 .140b )

G r i d b l o c k Bulk V o l u m e s and C o e f f i c i e n t s of t h e A c c u m u l a t i o n T e r m

n i r

(ft)

1 1 0.4883

2 2 2.2564

3 3 10.4260

4 4 48.1758

5 5 222.6063

\ (ft 3)

142.41339

3040.6644

64921.142

1386129.5

24681778.

v.,¢](c+c,) a~ B ° A t

At~ = 1 day

58.339292x10 --6

0.00124560063

0.026594785

0.56782451

10.110829

At 2 = 2 days

29.169646xl 0 -6

0.62280032x10 -3

0.01329739

0.28391226

5.0554145

The transmissibility in the rdirection is defined by Eq. 4.79a, which gives

1 ] T ...... = G .... ( ~ ) = Gr, ..... ( ~ ) = (2)G~ ...... (%141)

where G .... is defined in Table 4-3. With A0 = 2~ and constant radial perme-

ability, the equation for the geometric factor reduces to

2 / krAZ G~. .... = log e { [aig log e ( a l g ) / ( a l g - 1)] × [ ( a t ~ - 1) / log e (a lg ) l }

_ 2Jrfl,. k r Az _ 2J r (0 .001127 ) (150)(30) = 2 0 . 8 1 9 4 4 6

l o g ~ ( a , ) loge (4 .6207112 )

(7 .142)

for all values of i .

Page 286: Petroleum Reservoir Simulation a Basic Approach

260 Chapter 7 Single-Phase F l o w Equat ion f o r Various Fluids

Therefore, transmissibility in the radial direction can be estimated by substituting Eq. 4.142 into Eq. 4.141, yielding

L = ( 2 ) G . . . . = (2)(20.819446) = 41.6388914 (7.143)

for all values of i , or

T~, 2 = T2, 3 = T3, 4 = T4, , = T = 41.6388914 B/D-psi (7.144)

Note that gridblocks 2, 3, and 4 are interior gridblocks and gridblocks 1 and 5 have

no-flow boundaries; i.e., q,+l = 0 and q"+~ = 0 . Therefore, ~ q,~+l = 0 for SOb W ,1 SCb E ,5 ,n

all gridblocks. There is a well in wellblock 1" i.e., q,+l = -2000 B/D and ' s c 1

qn~l = q , , 1 = qn~l = qsn.+l = 0 • ~c 2 s c 3 s c 4 . •

The genera l form of the flow equat ion for gridblock n in this 1D reservoir is obtained from Eq. 7.81a by discarding the gravity term and noting that

Z q"+l = 0 for all gridblocks, resulting in SCl,n

l e ~ .

v~ ~(c+%) V T , n + l ( p n + l n 4 l q. . l _~ [pn41 -p."l

l,n l - P , , )+ ~.~. ° l~w. a c B ° At

(7.118)

(a) First time step calculations ( n = 0 , t,,+l = 1 day, and At = At 1 = l day)

n n n

Assign Pl = P ~ =P3 = P4 = P" = 5 p~. = 4000 psia.

Vb~qOi(c+%) _ 142.41339 X 0.23 x (l ×10 -5 + 0 )

acB°At~ 5.614583 x I x 1 = 58.339292 × 10 -~ STB/D-psi.

The calculated values of Vb" q~' (c + c¢ ) acB°At l

Table 7 -2 .

for n = 1, 2, 3, 4, 5 are reported in

For gridblock 1, n = l and ~ l = {2 } . Therefore, Eq. 7.118 becomes

~ 2 " "+' . , , . + °~, v b , ¢ i ( c + c , ) tP2 - Pl ) qs,,, -

' a B°A t

Substitution of the values in this equation gives

Ip~ ~l - p ~ ' ] (7.119)

4] n+l • 6388914(p 2 - p ~ ' ~ l ) - 2 0 0 0 = 5 8 . 3 3 9 2 9 2 × 1 0 - 6 [ p 1 + l - 4 0 0 ( I ]

or after factorizing and ordering the unknowns,

Page 287: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 261

- 4 1 . 6 3 8 9 4 9 7 P l +1 + 41.6388914p~ +1 = 1999.76664 (7.145)

For gddblock 2, n = 2 and ~'2 = {1,3}. Therefore, Eq. 7.118 becom es

T I " .+1 .,1 ~+l ~+l.+ .+l Vb~dPR(C+Cc')[p2*l .2[Pl --P2 )+Tz,3(P3 --P2 ) q,c2 = crcB'At - -P2] (7.121)

Substitution of the values in this equation gives

41.6388914(p~,+1 ,+1 ,+1 ,+1 = 1.24560063 x 10-31P2 +1 - 4 0 0 0 ] - P 2 )+41"6388914(P3 - P 2 ) + 0

or after factorizing and ordering the unknowns,

14 .+1 14 .~1 41.63889 Pl -83 -2790283P2 +~ +41"63889 P3 =--4 .98240254 (7.146)

For gridblock 3, n = 3 and ~03 = {2, 4} . Therefore, Eq. 7.118 becom es

T2zn+l n+l ., ? , l x + n41 Vb3~l)3(c+edP)[ ,3 I 'P2 -- P3 ) + T34 ( P 4 +1 - P3 ) q.,c, - ~ P3"~' - P 3 ] ( 7 . 1 2 3 )

Substitution of the values in this equation gives

41.6388914(p~+1 _p.+l 14 .,1 = 3 )+41.63889 (P4 -P3+~) +0 0"026594785[P3 + ' -4000]

or after factorizing and ordering the unknowns,

41.6388914p2 -83 .3043775P3 ~1 14 ,m ,+l +4 1 .6 3 8 8 9 P4 ---- -106 .379139 (7.147)

For gddblock 4, n = 4 and ~4 = {3, 5} . Therefore, Eq. 7.118 becom es

Vb4 ~)4 (C + C O ) [ P 4 ' 1 _ P4 ] (7.125) T34(p,,~1 n,~l . . . . . 1 n~l q,,+l _ , 3 --P4 )+14,51"P5 - - P 4 ) + SC 4 acBOAt

Substitution of the va lues in this equat ion gives

4 n+l n ~ l 41.6388914(p~"1 __ p2.l ) + 41.638891 (P5 - P4 ) + 0 = 0.5678245 l[p~ +l - 4000]

or after factorizing and ordering the unknowns,

41.6388914P3 +1 _83 .8456072P4 +1 + 41.6388914p~ TM = - 2 2 7 1 . 2 9 8 0 5 (7.148)

For gridblock 5, n = 5 and ~P4 = {4}. Therefore, Eq. 7.118 b e c o m e s

\ + n.l Vbs~;(C+C(~) . n+l T45(P4*l-p; *~) q ..... - - - IP5 -P ~ ' ] (7.127)

,. . a B°At

Substitution of the values in this equation gives

41.6388914(p4 *l - p5 +' ) + 0 = 10.1108291p~ TM - 40001

Page 288: Petroleum Reservoir Simulation a Basic Approach

262 Chapter 7 Single-Phase Flow Equation for Various Fluids

or after factorizing and ordering the unknowns,

41.6388914p4 +1 - 51.7497205p~ +1 = -40443 .3168 (7.149)

The results of solving Eqs. 7.145, 7.146, 7.147, 7.148, and 7.149 for the u n known

pressures are p~'~l = 3627.20 psia, p~+] = 3675.23 psia, P"+13 = 3723.25 psia,

p~+] = 3771.09 psia, and p;+] = 3815.82 psia.

We apply Eq. 7.85 to check the material balance for the first time step.

- - - : - - lp, - p ~ l ,=1 a B At

IM1~ = 5 5

Z q"c',, 1 + Z Z q:c~'. n=l n=l I( ~ n

58.339292 x 10 -6 x (3627.20 - 4000) + 1.24560063 x 10 -3 × (3675.23 - 4000)]

l+0 .026594785 x (3723.25 - 4000) + 0.56782451 x (3771.09 - 4000)

_ L+lO.110829 x (3815.82 - 4000) J

[ ( 0 + 0 + 0 + 0 - 2 0 0 0 ) + ( 0 + 0 + 0 + 0 + 0 ) ]

- 1999 .9796 - - 0.999990.

- 2 0 0 0

Therefore, the mater ia lbalanceis satisfied.

(b) Second time step calculations ( n = 1, t,+ 1 = 3 days, and At = A t 2 = 2

days)

Assign P l = 3627.20 psia, P2 = 3675.23 psia, P"=3 3723.25 psia,

n p, = 3771.09 psia, and P"5 = 3815.82 psia.

Vb, ~b~ (c + % ) _ 142.41339 x 0.23 x (1 x 10 -5 + 0)

acB°At2 5.614583 × 1 x 2 = 29.169646 x 10 -6 STB/D-psi.

vbOi(c+c,) The calculated values of ' for i = 1, 2, 3, 4, 5 are reported in Table 7-2.

o

acB At 2

The gridblock flow equations for the second time step are obtained by applying Eq. 7.118.

For gridblock 1,

4 ,,+1 p l ~'1 x 6 n t l 1.6388914(p 2 - ) - 2 0 0 0 = 2 9 . 1 6 9 6 4 6 l0 [Pl - 3 6 2 7 . 2 0 ]

or after factorizing and ordering the unknowns,

- 4 1 . 6 3 8 9 2 0 5 P l +1 +41 .6388914p~ '1 = 1999.89420 (7.150)

Page 289: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 263

For gridblock 2,

41.6388914(p~,+1 rill n+l .4-1. --P2 )+41.6388914(P3 --P2 )4 -0

= 0.62280032 x 10 -3 [p~+l _ 3675.23]

or after factorizing and ordering the unknowns,

41.6388914p~ '+1 - 83.2784055P2 +1 +41 .6388914p~ ~l = - 2 . 2 8 8 9 3 2 8 4 (7.151)

For gridblock 3,

41.6388914(p~ +1 - p~'+l ) + 41.6388914(P4 +l - p3 'a ) + 0 = 0.01329739[p; ' '~ - 3723.25]

or after factorizing and ordering the unknowns,

41.6388914P2 +l -83 .2910801P3 '1 +41 .6388914p~ +1 = -49 .5095063 (7.152)

For gridblock 4,

41.6388914(P3 +1 - p4 +l ) + 41 .6388914(p ; '+1 - p 4 ~1 ) 4- 0 = 0.28391226[p2 +l - 3771.09]

or after factorizing and ordering the unknowns,

4 n+l 41.6388914p5 +1 --1070.65989 (7.153) 41.638891 P3 --83"561695P4 +l + =

For gridblock 5,

41.6388914(p~ +1 - p5 +1) + 0 = 5.0554145[p~ '1 - 3815.82]

or after factorizing and ordering the unknowns,

41.6388914p~ +l - 46.6943060P5 *~ = -19290 .5407 (7.154)

The results of solving Eqs. 7.150, 7.151,7.152, 7.153, and 7.154 for the unknown

pressures are p~'+l = 3252.93 psia, p2 +~ = 3300.96 psia, pn+~3 = 3348.99 psia,

p4 "~ = 3396.89 psia, a n d p 5 +1 = 3442.25 psia.

We apply Eq. 7.85 to check the material balance for the second time step.

I M B

a,B'At P" -P~] 5 5

Z q n * l + Z Z q ntl sc n sol, n

n=l n=l Ic~.

29.169646 x 10 -6 X (3252.93 - 3627.20) + 0 .62280032 x 10 -3 X (3300.96 - 3675.23)]

/+O.O1329739 x (3348.99 - 3723.25) + 0 .28391226 x (3396.89 - 3771.09) /

= [+5 .0554145 x ( 3 4 4 2 . 2 5 - 3815.82) J

I ( 0 + 0 + 0 + 0 - 2 0 0 0 ) + ( 0 + 0 + 0 + 0 + 0 ) 1

Page 290: Petroleum Reservoir Simulation a Basic Approach

264 Chapter 7 S ingle-Phase F low Equat ion f o r Various Fluids

-2000.0119

-2000 -1 .000006.

Therefore, the material balance is satisfied.

7.3.3 Compressible Fluid Flow Equation

The density, FVF, and viscosity of compressible fluids at reservoir temperature are func- tions of pressure. Such dependence, however, is not as weak as the case in slightly com- pressible fluids. In this context, the FVF, viscosity, and density that appear on the LHS of the flow equation (Eq. 7.12) can be assumed constant but are updated at least once at the beginning of every time step. The accumulat ion term is expressed in terms of pressure change over a time step such that the material balance is preserved. The following expan- sion preserves material balance:

a , At /5 (7.155a)

where ( f rO, is the chord slope of ( / ~ )n between the new pressure ( p , ) and the old g g

pressure ( p" ). This chord slope is evaluated at the current time level but is one iteration

lagging behind; i.e.,

(v) (v) (B~g)nt- : " l ( ~ ) n + l - ( ~ ) : l / r " O ~n ] [Pnn+l __ on ]n

As shown in Section 10.4.1, the RHS of Eq. 7.156a can be expanded as

(7.156a)

• (~n(~) 1 ( 1 V + l dV (Bg)" = (7.156b)

where again ( ~ - ) ' and q~,' are defined as the chord slopes estimated between values at gn

(v) the current time level at old iteration n + 1 and old time level n,

and

1 , 1 1 / . ~+i . ( - i f - ) = ( (,, B . ) tP. - P . ) go a n* l g,,

gn

(7.157)

(v) (v) • /., n+l __pn q),, = (q)'2 +j - (b~) tP. . ) = (bl, c , (7.158)

Page 291: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 265

Alternatively, the accumulation term can be expressed in terms of pressure change over a time step using Eq. 7.9 and by observing that the contribution of rock compressibility is negligible compared to that of gas compressibility, resulting in

Vb~ (J~ n+l (~B)nn] Vb (/) ~ 1 1 jcA (To - = ~ - - ~ [~,,+1 Og. ]

n+l n _ Vb,,~b°" c s c P , a T "+' P" Vb q~'T'c P"+i P~]" (7.155b) ( ) [ n+l n ] = n [

acAt o z, z", P,cT At z, z n

If we adopted the approximation given by Eq. 7.155b, then the flow equation for com- pressible fluids becomes

m n Z qm + m Vb~)~Tsc pnn+l n Z T ' m [ ( P 7 --Pn ) - - r tn ( , - Z n ) ] - t - Z sc,.. q,c - " [z~ P" l,n , +1 - - - 1 " (7.159)

In this book, however, we adopt the approximation given by Eq. 7.155a, which is consis- tent with the treatment of multiphase flow in Chapter 10. The resulting flow equation for compressible fluids becomes

2 T,, . . . . . , Z qm _1_ ra Vb . ~) . . . . . 1 tnttPz --P, )--7~,( l - -Zn)]J~-Z .... q,~ m = " t _ ~ ) . t P . - P~ ] ( 7 . 1 6 0 ) ~w. ze~° " acAt

where (-B--), is defined by Eq. 7.156b. g

7.3.3.1 Formulat ions of Compress ib le Fluid Flow Equat ion

The time level m in Eq. 7.160 is approximated in reservoir simulation in one of three ways, like in the case for slightly compressible fluids. The resulting equation is commonly known as the explicit formulation of the flow equation (or forward-central-difference equation), the implicit formulation of the flow equation (or backward-central-difference equation), and the Crank-Nicolson formulation of the flow equation (or second order-cen- tral-difference equation).

Explicit formulation of the flow equation

The explicit formulation of the flow equation can be obtained from Eq. 7,160 if the argu- ment F m (defined in Section 2.6.3) is dated at old time level tn; i.e., t m _= t n , and as a result F m -- F n . Therefore, Eq. 7.160 reduces to

Vb / ~) . . . . . 1 n 2 T, . . . . -- p" " - Z )] + y_, q,"~, + q" = " t i f f ) , tP, - P, ] (7.161a) l,. ttPz n ) -- ~]l,n (Zl . . . . . feW. Is~. a C At

o r

Page 292: Petroleum Reservoir Simulation a Basic Approach

266 Chapter 7 S ingle-Phase F low Equat ion f o r Various Fluids

Z T. . . . . . ?" (Zz , , ~,~ q" + " t,(i,j,k~ ttPz - P i , j , k ) - l,(i,j,k) - - Zi i k )] + sc~,~,,,,~ q~ j IE~Oi,j,k lE~i , j ,~

(7a61h) _~ g b , k z ~ ) . . . . . 1 n

*"' t - - ) ~ , j , k t p~j ,~ - p~ j k ]. a At Bg "

In addition to the remarks related to the explicit formulation method mentioned in Section 7.3.2.1, the solution of Eq. 7.161 requires iterations to remove the nonlinearity of

(v) ~ p

the equation exhibited by B n+~g. in the definition of (~---), on the RHS of the equation. g

Impl ic i t formula t ion o f the f l o w equation

The implicit formulation of the flow equation can be obtained from Eq. 7.160 if the argu- ment F m (defined in Section 2.6.3) is dated at new time level t "+~ ; i.e., t" -- t "+~ , and as a result F m _~ F n+l . Therefore, Eq. 7.160 reduces to

Z Tn+I r / n+l n+l n , ttP~ -Pn ) - ~ t , , ( Z ~ - Z ) ] + ~ q ' + ~ +q"*t~ , , SOl, n SC n

or

V b z ~ ~pr n+l " t--g-), lP, - P," ] (7.162a)

aoAt

Z T n+l rr n+l n+l, n "Z qn+l + n~l l,(i,j,k) t~Pt --Pi , j ,k)-- ~t,(i,j,k) ( I -- Zi,j,k)] + Z sc~,~,~,k) qscjk

IE~Oi,j,k IE~i , j ,k

(7.162b)

i,, ( B g ) i j k [ P i j k - - P i j k ] " ctcAt . . . . . .

In this equation, dating fluid gravity at old time level n instead of time level n +1 does not introduce any noticeable errors (Coats et al. 1974). Unlike Eq. 7.81 for slightly compress- ible fluids, Eq. 7.162 is a nonlinear equation due to the dependence of transmissibility

T?+~ ~ , ( ~,n ) and (~---), on the pressure solution. These nonlinear terms present a serious g

numerical problem. Chapter 8 discusses the linearization of these terms in space and time. The time linearization, however, introduces additional truncation errors that depend on time steps. Thus, time linearization reduces the accuracy of solution and generally restricts time step. This leads to the erasing of the advantage of unconditional stability associated with the implicit formulation method mentioned in Section 7.3.2.1.

Crank-Nicolson Formula t ion o f the F low Equat ion

The Crank-Nicolson formulation of the flow equation can be obtained from Eq. 7.160 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 selected in order to make the RHS of Eq. 7.160 a second-

order approximation in time. In the engineering approach, however, the argument F m

can be approximated as F m --- F ~+1/2 = 1/2 ( F ~ + F n + l ) . Therefore, Eq. 7.160 becomes

Page 293: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 267

1/2 ~ T . . . . . . Z T~+I . . . . 1 n+l " , n + l / ~ , , , t t p , -P , ) -T , , , ( t - Z , ) ] + ~ , ,,, ttp, --Pn ) ~',,n t L t - Z n )]

,+1.° 1 q,c + q,c° ) = + l/2(Z + Z )+1/2( n n + , . _ gb. ('-~g)n" ~ . . . . . [Pn I -- Pnn 1.

Eq. 7.163a can be rewritten in the form of Eq. 7.162 as

Z T'n+l . . . . ' n+l. n+l.-- Z )1 + ~-" q"+' + "+' l,. [ tPt - P . ) - Y t , , , t L t - ~ .c,. qs,.

rb e ~ . . . . . . 1 = " t_~),tP,, -P'~]

a (At / 2)

n n _[_ n ,n - { Z T.",,,, [(P7 - P, ) - Y,,, (Z, - Z )] ~ q,c, + qsc}.",,

(7.163a)

(7.163b)

7.3.3.2 Advancing the Pressure Solution in Time

The pressure distribution in a compressible flow problem changes with time, as is the case with slightly compressible fluid flow. Therefore, a compressible fluid flow problem has an unsteady-state solution and the pressure solution is obtained in the same way as that for slightly compressible fluid flow discussed in Section 7.3.2.2, with a few exceptions. These include the following: (1) initialization may require iteration because gas gravity is a func- tion of pressure; (2) transmissibilities in step 1 are not kept constant but rather are calcu- lated at the upstream blocks and updated at the beginning of each time step; (3) Eq. 7.161, 7.162, or 7.163 is used instead of Eq. 7.80, 7.81, or 7.82 in step 4; (4) an additional step immediately before step 5 is added to linearize the flow equations for compressible fluid (discussed in Chapter 8); and (5) obtaining the pressure solution may require iterations because the flow equation for compressible fluid is nonlinear compared to the almost- linear flow equation for slightly compressible fluid.

7.3.3.3 Material Balance Check for a Compressible Fluid Flow Problem

For the implicit formulation, the incremental and cumulative material balance checks for compressible fluid flow problems are given by Eqs. 7.83 and 7.84, where the rock porosity is defined by Eq. 7.11 and FVF is for natural gas, yielding

N V~o 4,.+, ~ . .~, ~ [ ( ~ ) ° .-1 acAt 171g

g (7.164) IMB = N Z ~ n+l+Zqn+l ) n-1 l ~ .

and

Page 294: Petroleum Reservoir Simulation a Basic Approach

268 Chapter 7 Single-Phase Flow Equation for Various Fluids

NV,

n=l a c /~g g CMB ~ n+l N

qm Z AtmZ(qs;. + Z ...... ) m=l n=l IE~n

( 7 . 1 6 5 )

where N = total number of blocks in the reservoir.

The fol lowing example presents a single-well simulation of a natural-gas reservoir. It demonstrates the iterative nature of the solution method within individual time steps and the progression of the solution in time.

Example 7.13 A vertical well is drilled on 20-acre spacing in a natural gas reservoir. The reservoir is described by four gridblocks in the radial direction as shown in Figure 7-14. The reservoir is horizontal and has 30 ft net thickness and homogeneous and isotropic rock properties with k = 15 md and ~ = O. 13 Initially, reservoir pressure is 4015 psia. Gas FVF and viscosity dependence on pressure are presented in Table 7-3. The reservoir external boundaries are sealed off to fluid flow. Well diameter is 6 in. The well produces 1 MMscf/D with a minimum FBHP of 515 psia. Find the pressure distribution in the reservoir every month (30.42 days) for two years. Take time steps of 30.42 days.

Solution

The interblock geometric factors in the radial direction and the gridblock bulk vol- umes can be calculated exactly as in Example 7.12. Alternatively, gridblock boundaries are estimated using Eqs. 4.82a, 4.83a, 4.84a, and 4.85a, followed by estimating gridblock bulk volumes using Eqs. 4.88a and 4.88c and interblock geo- metric factors using Table 4-2. The gridblock boundaries, bulk volume, and geo- metric factors are presented in Table 7-4.

For single-well simulation in a horizontal reservoir ( Z = constant) with no-flow

boundaries ( ~ q"+] = 0 ), Eq. 7.162a reduces to SCl,n

, ~ ,-..,+, . . . . , ,,+,..+ ,,+, v~ ( ~ ) . [ p , ? , 5 , . [tP~ - P ~ )l q~c - ° - - - p . " ] ( 7 . 1 6 6 a )

t~,, " acAt

The gas in this reservoir flows toward the well in gridblock 1. Therefore, gridblock 4 is upstream to gridblock 3, gridblock 3 is upstream to gridblock 2, and gridblock 2 is upstream to gridblock 1. In solving this problem, we use the implicit formulation with simple iteration (Section 8.4.1.2) and upstream weighting (Sec- tion 8.4.1.1) of the pressure-dependent terms in transmissibility. Placing the itera- tion level, Eq. 6.166a becomes

Z T'n+l . . . . 1 __ pff+l q.+l . ,.. I(p, ) ]+ ~c. - t~-) .[P. -P'~] (7.166b) l~. acAt g

Page 295: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 269

Table 7 -3 Gas FVF and Viscosity for Example 7.13

Pressure (psia) GFVF (RB/scf) Gas Viscosity (cp)

215.00 0.016654 0.0126

415.00 0.008141 0.0129

615.00 0.005371 0.0132

815.00 0.003956 0.0135

1015.00 0.003114 0.0138

1215.00 0.002544 0.0143

1415.00 0.002149 0.0147

1615.00 0.001857 0.0152

1815.00 0.001630 0.0156

2015.00 0.001459 0.0161

2215.00 0.001318 0.0167

2415.00 0.001201 0.0173

2615.00 0.001109 0.0180

2815.00 0.001032 0.0186

3015.00 0.000972 0.0192

3215.00 0.000922 0.0198

3415.00 0.000878 0.0204

3615.00 0.000840 0.0211

3815.00 0.000808 0.0217

4015.00 0.000779 0.0223

(a) First time step calculations ( n = 0 , tn+ 1 = 30.42 days, and At = 30.42 days)

Assign p~' = p~ = P3 = P4 = Pi, = 4015 psia.

(v)

For the first iteration ( v = 0 ), assume p~i ÷1 = p" = 4015 psia for n = 1,2,3,4.

Table 7-5 presents the estimated values of FVF and viscosity using linear

Page 296: Petroleum Reservoir Simulation a Basic Approach

270 Chapter 7 Single-Phase Flow Equation for Various Fluids

Table 7-4 Gridblock Locations, Boundaries, Bulk Bolumes, and Interblock Geometr ic Factors for Example 7.13

1 1

2 2

3 3

4 4

r L L ~ .... V~ i - 1 1 2 ~+1/2 ~ 1/2 ~+1/2 i .

(ft) (n) (if) (ft) (if) (RB-cp/D- psi) (ft3)

0,5611 0,2500 1.6937 0,2837 1.9221 1.6655557 340.59522

3.8014 1.6937 11.4739 1,9221 13,0213 1.6655557 15631,859

25.7532 11.4739 77,7317 13,0213 88,2144 1,6655557 717435,23

174,4683 77,7317 526,6040 68.2144 526.6040 1.6655557 25402604

1 MMscf/D

1"1 "4 I1 Z

re

Figure 7-14 Discretized 1D reservoir in Example 7.13.

interpolation within table entries, chord slope (~-g)n, and a----~t~-g ). for all grid

blocks. It should be mentioned, however, that the calculation of (~ - ) " used a

(v)

perturbed value of p"< = p" - e = p~ - 1 = 4015-1 = 40]4 psia for n = 1,2,3,4

only for the first iteration.

For example, for gridblock 1,

(~21 _(~)~ 0.13 0.13

(~-)~g -- \B; i~l - P l (0"00077914 ) - (0"000779) ~ - 4015

Page 297: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 271

and

Vb, , ~ . , 3 4 0 . 5 9 5 2 2 x 0 . 0 3 1 0 5 6 7 2

a ~ ' f f - g h = 5 . 6 1 4 5 8 3 × 3 0 . 4 2 - 0 .06193233

(v) (v) (v)

T " + I = T "+1 = G . 1 , ,+~=1.6655557× 1 =95877 .5281 rl,2 ~],2 12 rl .... "~ tB "2 (0 .0223000 x 0 .00077900 )

for upstream weighting of transmissibility.

Table 7 -5 Est imated Gridblock FVF, Viscosity, and Chord Slope at Old I terat ion v = 0

Block n

(07

pn "+~ (psia)

ng (RB/scf)

j u g

(cp) n / (q~/ ~).

Vb. q~ ,

a At (B--~ -)"

1 4015 0.00077900 0.0223000 0.03105672 0.06193233

2 4015 0.00077900 0.0223000 0.03105672 2.842428

3 4015 0.00077900 0.0223000 0.03105672 130.4553

4 4015 0.00077900 0.0223000 0.03105672 4619.097

(v) (v) (v)

T n+l = T "+1 = T n+l Therefore, r,.2 12 r2'313 r3.4 14 = 9 5 8 7 7 . 5 2 8 1 scf/D-psi. Note that ups t ream

weighting is not evident for the first iteration in the first time step because all grid- block pressures are equal.

For gridblock 1, n = 1 and ~1 = {2} . Therefore, Eq. 7.166b becomes

(p;+, _ p?+, ) + q,+l _ "'~-x . . . . +1 n sc, a c A t t )ltPl - - P l ] (7.167) 2,1

2

Substitution of the values in this equation gives

(v+l) (v+l) (v+l)

95877.5281(p2 +1 - p l +1 ) - 106 = 0 .06193233[p1 +~ - 4015]

or after factorizing and ordering the unknowns,

(v+l) (v+l)

-95877 .5900Pl "+1 + 95877.528 lP2 +1 = 999751.1342 (7.168)

For gridblock 2, n = 2 and ~2 = {1,3} . Therefore, Eq. 7 .166b b e c o m e s

T 'n+ l ) 3,2 Iv+l) q.+a Vb z . t p (~+1) '"' (Pl '~-~ ('~-'l~ +T~?I (P3~-~]-p2+1) + s¢= a~ A t t ) , [ ,+1 . 1,2 2 - - Pz - 2 P2 - P2 ] (7.169)

Page 298: Petroleum Reservoir Simulation a Basic Approach

272 Chapter 7 Single-Phase Flow Equation for Various Fluids

Substitution of the values in this equation gives

(v+l) (r+l) (r+l) (v+l) (v+l)

95877.528 l ( p l +l - p2 +a ) + 95877.528 l (p3 +l - p~+l ) + 0 = 2.842428[p2 +1 - 4015]

or after factorizing anti ordering the unknowns,

(v+l) (~+1) {v+l)

95877 .5281p l +1 -191757 .899p~ '+l +95877 .5281P3 +1 = - 1 1 4 1 2 . 3 4 9 6 (7.170)

For gridblock 3, n = 3 and ~3 = {2,4}. Therefore, Eq. 7.166b becomes

T(r),3 (v+l) (v-}l) (v) 4 (v+,) (v+l) V b ~ (v+,) n + l ( n+ l n + l n+ l z n + l pn+l x n + l 3 5 w t n + l n

P2 --P3 )+T4a - 3 acAt t~g tP4 ) + q ~ - - - (-Z-)3 [P3 - P3 ] 3

Substitution of the values in this equation gives

(7.171)

(v+l) (v+l) (v+l) (v+l) (v+l)

95877 .5281(p ; +1 - p3 n+l ) + 95877.5281(p4 +a - p3 +1 ) + 0 = 130.4553[P3 +1 - 4015]

or after factorizing and ordering the unknowns,

(~+1) (v+l) (v+l)

95877.528 lP2 +l - 191885.51 lP3 +1 + 95877.528 lp~ '+l = -523777 .862 (7.172)

For gridblock 4, n = 4 and ~)4 = {3} . Therefore, Eq. 7.166b becomes

(v) 4 (v+l) (v+l) V,_ ~ (v+l) T n + l ( p ; + l . + 1 x ..[_ n + l v4 5 °" ,' n + l n 3,4 --P4 ) qsc4 -- - - ( ~ - ) 4 [ P 4 - - P 4 ]

aoAt t~

Substitution of the values in this equation gives

(7.173)

(v+l) (v+l) (v+l)

95877.528 l(p3 "+1 - p4 +1 ) + 0 = 4619.097[p2 +~ - 40151

or after factorizing and ordering the unknowns,

(v+l) (v+l)

95877.5281P3 +l - 100496.626p~ +1 = - 1 8 5 4 5 6 7 6 . 2 (7.174)

The results of solving Eqs. 7.168, 7.170, 7.172, and 7.174 for the unknown pres- (1) (1) (I)

sures are p~,+a = 3773.90 psia, p2 +a = 3784.33 psia, p~,+l = 3794.75 psia, and

(1) n + l

P4 = 3804.87 psia. (1)

For the second iteration ( v + 1 = 2 ), we use pn+l to es t imate the va lues of FVF

4, , anti viscosity using linear interpolation within table entries, chord s lope Of f - ) , ,

g

and " ( )" for gritiblock n. Table 7 - 6 lists t he se values . a At

Page 299: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 273

Table 7 -6 Est imated Gridblock FVF, Viscosity, and Chord Slope at Old I terat ion v = 1

Block n

2

3

(1) p~+l

(psia)

3773.90

3784.33

3794.75

3804.87

B g

(RB/scf)

0.00081458

0.00081291

0.00081124

0.00080962

(cp)

0.0215767

0.0216080

0.0216392

0.0216696

(~, / B ):

0.03022975

0.03017631

0.03011173

0.03003771

0.0602832

2.761849

126.4858

4467.390

For example, for gridblock 1,

(~y~.~ _ (~)~, ~ 0.13 )_ ~ 0 " 1 3

• B (0 .00081458 (0 .000779) = 0 .03022975 , (.~-)!(P = " B ' l

,+1 , 3773.90 - 4015 g Pl -- Pl

,',, , , , 3 4 0 . 5 9 5 2 2 x 0 . 0 3 0 2 2 9 7 5 _ 0 . 0 6 0 2 8 3 2 a--~t-~g ) '= 5.614583 X 30.42

(v) (v) (v) T n+l = T n+l (l '~n+l

~" ~" I~ = G .. . . , B , ~

= 1.6655557 × ( 1 ) = 94820.8191 0.0216080 x 0.00081291

for ups t ream weighting of transmissibility.

(v) (v) T.+~ Tn+l Similarly, r3.2 13 = 94878.4477 SCffD-psi and "'3 4 = 94935.0267 scf/D-osL

For gridblock 1, n = 1. Substituting the values in Eq. 7.167 gives

(v+l) (v+l) (v+l)

94820.8191(p ; ÷1 - p ~ + l ) - 1 0 6 = 0 . 0 6 0 2 8 3 2 [ p l +1 --4015]

or after factorizing and ordering the unknowns,

(v+l) (v+l)

-94820 .8794p~ ÷~ + 94820.8191p2 "÷1 = 999757.963

For gridblock 2, n = 2 . Substituting the values in Eq. 7.169 gives

(v÷I) (v+l) (v+l) (v+t) (v+I)

94820.8191(p,,+1 _ p~+l ) + 94878.4477(p3+1 _ p~+~ ) + 0 = 2.761849[p~ '+~ - 4015]

or after factorizing and ordering the unknowns,

(7.175)

Page 300: Petroleum Reservoir Simulation a Basic Approach

274 Chapter 7 Single-Phase Flow Equation for Various Fluids

(u+l) (v+l) (r+l)

94820.8191pl "+1 - 189702.029p~ +1 + 94878.4477P3 +1 = - 1 1 0 8 8 . 8 2 5 2 (7.176)

For gridblock 3, n = 3. Substituting the values in Eq. 7.171 gives

(v+l) (v+l) (v+t) (v+l) (v+l)

94878.4477(p~+1 _ P"+I = 3 ) + 9 4 9 3 5 " 0 2 6 7 ( p 4 ÷ l - p 3 + I ) + O 126"4858[p~ + 1 - 4 0 1 5 ]

or after factorizing and ordering the unknowns,

(v+l) (v+l) (r+l)

94878.4477P2 +1 - 189939.960P3 '+1 + 94935.0267P4 +1 = - 5 0 7 8 4 0 . 4 0 6 (7.177)

For gridblock 4, n = 4 . Substituting the values in Eq. 7.173 gives

(v+l) (v+l) (v+l)

94935.0267(p3 +1 - p4 +~ ) + 0 = 4467.390[P4 +1 - 40151

or after factorizing and ordering the unknowns,

(v+I) (v+l)

94935.0267p~ +~ - 9 9 4 0 2 . 4 1 6 7 p ~ '+1 = - 1 7 9 3 6 5 7 0 . 6 (7.178)

The results of solving Eqs. 7.175, 7.176, 7.177, and 7.178 for the unknown pres- (2) (2) (2)

su res are p~+l = 3766.44 psia, p,+12 = 3776.99 psia, p~+l = 3787.52 psia, and

(2) n + l P4 ---- 3797.75 psia.

The iterations continue until the convergence criterion is satisfied. The successive iterations for the first t ime s tep are shown in Table 7-7 . It can be s e e n that it took three iterations to converge . The c o n v e r g e n c e criterion was se t a s

(v+l) (v) n+l pn+l

l<n<-N max Pn p ~ " -< 0.001. (7.179)

After reaching convergence, time is incremented by At = 30.42 days and the

above procedure is repeated. The converged solutions at various times up to two years of simulation time are shown in Table 7-8. Inspection of the simulation results reported in Table 7-8 reveals that the well switched to a constant FBHP of 500 psia after 21 months because the reservoir does not have the capacity to pro- duce gas at the specified rate of 1 MMscf/D.

T a b l e 7 - 7 T h e P r e s s u r e So lu t ion at t.+l = 30.42 Days for S u c c e s s i v e I t e r a t i o n s

v p~+l (psia) p~+l (psia) pn+13 (psia) p~+l (psia)

1 3773.90 3784.33 3794.75 3804.87

2 3766.44 3776.99 3787.52 3797.75

3 3766.82 3777.37 3787.91 3798.14

Page 301: Petroleum Reservoir Simulation a Basic Approach

7.3 General Single-Phase Flow Equation in Multi Dimensions 275

Table 7 -8 The Converged Pressure Solution and Gas Product ion at Various T imes

Time n + 1 (day)

p~+l n+l p n + l n+l n+l n+l V P2 3 P4 Pw~ qgsc

(psia) (psia) (psia) (psia) (psia) (MMscf/D)

Cumulative production (MMMscf)

22 669.24 4 531.46 567.57 601.01

23 699.66 4 523.60 543.17 561.98

24 730.08 3 519.68 530.53 541.13

1 30.42 3 3766.82 3777.37 3787.91 3798.14 3762.36 -1.000000

2 60.84 3 3556.34 3567.01 3577.67 3588.02 3551.82 -1.000000

3 91.26 3 3362.00 3372.80 3383.58 3394.05 3357.43 -1.000000

4 121.68 3 3176.08 3187.08 3198.06 3208.723171.43 -1.000000

5 152.10 3 2995.56 3006.78 3017.97 3028.85 2990.81 -1.000000

6 182.52 3 2827.23 2838.72 2850.18 2861.32 2822.36 -1.000000

7 212.94 3 2673.43 2685.26 2697.06 2708.50 2668.42-1.000000

8 243.36 2 2524.28 2536.47 2548.62 2560.41 2519.12 -1.000000

9 273.78 3 2375.01 2387.59 2400.12 2412.25 2369.67:-1.000000

10 304.20 3 2241.26 2254.33!2267.35 2279.97 2235.71 -1.000000

11 334.62 3 2103.68 2117.34 2130.93 2144.09 2097.88 -1.000000

12 365.04 3 1961.05 1975.39 1989.65 2003.42 1954.95 -1.000000

13 395.46 3 1821.72 1836.86 1851.91 1866.47 1815.29 -1.000000

14 425.88 3 1684.94 1701.18 1717.27 1732.78 1678.02 -1.000000

15 456.30 3 1543.26 1560.78 1578.11 1594.79 1535.78 -1.000000

16 486.72 4 1403.75 1422.64 1441.34 1459.36 1395.67i-1.000000

17 517.14 3 1263.19 1284.07 1304.65 1324.36 1254.24 -1.000000

18 547.56 3 1114.51 1137.93 1160.87 1182.74 1104.42 -1.000000

19 577.98 4 964.49 991.04 1016.79 1041.39 952.91 -1.000000

20 608.40 4 812.91 844.10 874.32 902.83 799.30 -1.000000

21 638.82 3 645.89 684.85 721.84 755.98 628.58 -1.000000

631.84 515.00 -0.759957

579.67 515.00 -0.391107

551.32 515.00 -0.211379

-0.0304200

-0.0608400

-0.0912600

-0.121680

-0.152100

-0.182520

-0.212940

-0.243360

-0.273780

-0.304200

-0.334620

-0.365040

-0.395460

-0.42588O

-0.456300

-0.486720

-0.517140

-0.547560

-0.577980

-0.608400

-0.638820

-0.661938

-0.673835

-0.680266

Page 302: Petroleum Reservoir Simulation a Basic Approach

276 Chapter 7 Single-Phase Flow Equation for Various Fluids

7.4 Summary Reservoir fluids are incompressible, slightly compressible, or compressible. The flow equation for an incompressible fluid in an incompressible porous media is described by Eq. 7.16. Reservoir pressure in this case has steady-state behavior and can be obtained using the algorithm presented in Section 7.3.1.1. For a slightly compressible fluid, the flow equation can be expressed using explicit formulation (Eq. 7.80), implicit formulation (Eq. 7.81), or the Crank-Nicolson formulation (Eq. 7.82). For a compressible fluid (nat- ural gas), the flow equation can be expressed using explicit formulation (Eq. 7.161), implicit formulation (Eq. 7.162), or the Crank-Nicolson formulation (Eq. 7.163). Reser- voir pressure for slightly compressible and compressible fluids has unsteady-state behavior. The pressure solution is obtained by marching in time from the initial conditions to the desired time using time steps. Advancing the pressure solution one time step is obtained using the algorithms presented in Section 7.3.2.2 for a slightly compressible fluid or that presented in Section 7.3.3.2 for a compressible fluid. Material balance is checked every time a pressure solution is obtained. Eq. 7.17 applies to incompressible fluid flow. Eqs. 7.83 and 7.84 (or Eqs. 7.85 and 7.86) apply to slightly compressible fluid flow, and Eqs. 7.164 and 7.165 apply to compressible fluid flow. The incremental material balance checks, however, are more accurate than the cumulative material balance checks.

7.5

7-1

7-2

7-3

7-4

7-5

7-6

7-7

7-8

7-9

Exercises

Examine the various terms in Eq. 7.16a for incompressible fluid flow and then give justification for describing it as a linear equation.

Examine Eq. 7.81 a for a slightly compressible fluid and then give justification and conditions under which it can be considered a linear equation.

Examine Eq. 7.162a for a compressible fluid and then give justification for describing it as a nonlinear equation.

Explain why Eq. 7.80a is explicit, whereas Eq. 7.81a is implicit.

A 1D reservoir consists of four gridblocks ( N = 4 ) and contains an incompressible fluid. The reservoir boundaries can be subject to any condition. Write the flow equation for each individual gridblock. Add up all flow equations and prove that the material balance for this reservoir is given by Eq. 7.17a for N = 4 .

Repeat the procedure in Exercise 7-5 and prove that the incremental material balance for this reservoir is given by Eq. 7.85 for a slightly compressible fluid using the implicit formulation.

In order, list all the steps necessary to advance the pressure solution in time for compressible fluid flow in reservoirs.

Start with Eq. 7.88 and derive Eq. 7.86 as outlined in the text.

The estimation of transmissibility in incompressible fluid flow and in slightly compressible fluid flow, as presented in this chapter, does not

Page 303: Petroleum Reservoir Simulation a Basic Approach

7 . 5 E x e r c i s e s 277

7-10

7-11

7-12

7-13

7-14

7-15

mention or make use of upstream weighting. Explain why weighting (or upstream weighting) of transmissibility is not needed in these two cases.

Consider the single-phase flow of slightly compressible oil in the 2D horizontal homogeneous reservoir shown in Figure 7-15a. The reservoir is volumetric, i.e., it has no-flow boundaries. Initial reservoir pressure is 4000 psia. Gridblock 5 houses a 7-in well at its center, which produces at a constant rate of 50 STB/D. Gridblock dimensions and properties are Ax = Ay = 350 ft, h = 20 ft, k = ky - - 120 md, and q~ = 0.25. Oil

properties are 13 o = B~ = 1 RB/~TB, c o = 7 × 1 0 -6 psi -1, Ito = 6 cp, and c = 0 psi -1. Using the single-phase simulator, report the pressure

distribution in the reservoir shown in Figure 7-15a and the well FBHP at 10 days, 20 days, and 50 days. Use single time steps to advance the solution from one time to the next.

Consider the flow problem presented in Exercise 7-10. In addition, consider symmetry about the two vertical planes passing through the center of gridblock 5 and perpendicular to either the x axis or y axis. Using the element of symmetry shown in Figure 7-15b, estimate the pressure distribution in the reservoir and the well FBHP at 10 days, 20 days, and 50 days.

Consider the fluid flow problem described in Exercise 7-10. This time consider symmetry only about the two diagonal planes passing through the center of gridblock 5. Using the element of symmetry shown in Figure 7-15c, estimate the pressure distribution in the reservoir and the well FBHP at 10 days, 20 days, and 50 days.

Consider the fluid flow problem described in Exercise 7-10. This time consider symmetry about all four planes passing through the center of gridblock 5. Using the smallest element of symmetry shown in Figure 7-15d, estimate the pressure distribution in the reservoir and the well FBHP at 10 days, 20 days, and 50 days.

A single-phase fluid reservoir is described by three equal gridblocks as shown in Figure 7-16. The reservoir is horizontal and has homogeneous and isotropic rock properties, k = 270 md and q~ = 0.27. Gridblock dimensions are Ax = 400 ft, Ay = 650 ft, and h = 60 ft. Reservoir fluid properties are B = 1 RB/STB and ~ -- 1 cp. The reservoir left boundary is kept constant

at 3000 psia, and the reservoir right boundary is kept at a pressure gradient of --0.2 psi/ft. Two 7-in vertical wells were drilled at the center of gridblocks 1 and 3. The well in gridblock 1 injects 300 STB/D of fluid and the well in gridblock 3 produces 600 STB/D of fluid. Both wells have zero skin. Assume that the reservoir rock and fluid are incompressible. Find the pressure distribution in the reservoir.

A 0.5-ft diameter oil well is drilled on 10-acre spacing. The reservoir thickness, horizontal permeability, and porosity are 50 ft, 200 md, and 0.15, respectively. The oil has FVF, compressibility, and viscosity of 1 RB/STB,

Page 304: Petroleum Reservoir Simulation a Basic Approach

278 Chapter 7 Single-Phase Flow Equation for Various Fluids

(b) Element of symmetry

in Exercise 7.11.

Figure 7-15

(a) Discretized 2D reservoir in Exercise 7.10.

5

(c) Element of symmetry

in Exercise 7.12.

(d) Element of symmetry

in Exercise 7.13.

2D reservoir and elements of symmetry in Exercises 7-10 through 7-13.

J

pb w = 3001

- - " ~ , ' ~p , O - I -D I I - ~ ,

qsc3 -600 STB/D

dp - 0.2 psi/ft dx bE

7-16

Figure 7-16 Discretized 1D reservoir in Exercise 7-14.

5 x 10 4 psi -1, and 3 cp, respectively. The reservoir external boundaries are no-flow boundaries. The well has open well completion and is placed on production at a rate of 100 STB/D. Initial reservoir pressure is 4000 psia. The reservoir can be simulated using three gridblocks in the radial direction as shown in Figure 7-17. Use single time steps to advance the solution from one time to another. Find the pressure distribution in the reservoir after five days. Find the FBHP of the well after five days. Check the material balance. Write the final form of the flow equations for this reservoir after ten days.

A 0.5-ft diameter oil well is drilled on 30-acre spacing. The reservoir thickness, horizontal permeability, and porosity are 50 ft, 210 md, and 0.17,

Page 305: Petroleum Reservoir Simulation a Basic Approach

7.5 Exercises 279

100 STB/D

7-17

2 . 115° re i ~ r

Figure 7-17 DiscreUzed 1D reservoir in Exercise 7-15.

respectively. The oil has FVF, compressibility, and viscosity of l RB/STB, 5x 10 4 psi -1, and 5 cp, respectively. The reservoir external boundaries are no-flow boundaries. The well has open well completion and is placed on production at a rate of 1500 STB/D. Initial reservoir pressure is 3500 psia. The reservoir can be simulated using four gridblocks in the radial direction as shown in Figure 7-18. Use single time steps to advance the solution from one time to another. Find the pressure distribution in the reservoir and the FBHP of the well after one day and three days. Check the material balance.

1500 STB/D

l'l" II Z

p ~,r

Figure 7-18 Discretized 1D reservoir in Exercise 7-16.

A single-phase fluid reservoir is discretized into four equal gridblocks as shown in Figure 7-19. The reservoir is horizontal and has k = 70 md. Gridblock dimensions are Ax -- 400 ft, Ay = 900 ft, and h = 25 ft. Reservoir fluid properties are B = 1 RB/STB and /~ = 1.5 cp. The reservoir left boundary is kept at a constant pressure of 2600 psia, and the reservoir

Page 306: Petroleum Reservoir Simulation a Basic Approach

280 Chapter 7 Single-Phase Flow Equation for Various Fluids

J

Pwf = 1000 psia

dp _ pb w = 260 ~ bE 0,1 psi/ft

Figure 7-19 DiscreUzed 1D reservoir in Exercise 7-17.

right boundary is kept at a constant pressure gradient o f - 0 . 2 psi/ft. A 6-in vertical well located at the center of gridblock 3 produces fluid under a constant FBHP of 1000 psia. Assuming that the reservoir rock and fluid are incompressible, calculate the pressure distribution in the reservoir. Estimate the well production rate and the rates of fluid crossing the reservoir external boundaries. Perform a material balance check.

7-18 Consider the reservoir shown in Figure 7-20. The reservoir is discretized into four equal gridblocks with Ax = 300 ft, Ay = 600 ft, h = 30 ft, and k = 180 md. The elevations of the center of gridblocks 1, 2, 3, and 4 are

respectively 3532.34 ft, 3471.56 ft, 3410.78 ft, and 3350.56 ft below sea level. The fluid FVF, viscosity, and density are 1 RB/STB, 2.4 cp, and 45 lbrn/ft3; respectively. The centers of the reservoir west and east boundaries are respectively 3562.73 ft and 3319.62 ft below sea level. The reservoir west boundary is sealed off to flow, and the reservoir east boundary is prescribed at a constant pressure gradient of 0.2 psi/ft. The reservoir has two 6-in wells. The first well is located at the center of gridblock 1 and injects fluid at a rate of 320 STB/D. The second well is located at the center of gridblock 3 and produces fluid under a constant FBHP of 1200 psia. Assuming that the reservoir rock and fluid are incompressible, calculate the reservoir pressure distribution, the FBHP of the well in gridblock 1, and the production rate the well in gridblock 3. Perform a material balance check.

7-19 Perform a single-well simulation of the reservoir described in Exercise 7-16 assuming that the reservoir can be described using four gridpoints.

7-20 Consider the 2D single-phase flow of incompressible oil taking place in the inclined, homogeneous reservoir shown in Figure 7-21. The reservoir east and north boundaries receive a constant influx of 0.02 STB/D-ft 2 from a neighboring reservoir. The reservoir west and south boundaries are no-flow boundaries. The elevation below sea level of the center of gridblocks 1, 2, 3, and 4 are respectively 2000 ft, 1700 ft, 1700 ft, and 1400 ft. The pressure of gridblock 1 is kept at 1000 psia. The gridblock properties are zXx = Ay = 600 ft, h = 40 ft, and k x = ky = 500 md. Oil density and

viscosity are 37 lbndft 3 and 4 cp, respectively. Calculate the pressure of gridblocks 2, 3, and 4. Then, estimate the production rate of the well using

Page 307: Petroleum Reservoir Simulation a Basic Approach

7.5 E x e r c i s e s 281

z

No-f low b,

dp _ bE 0.2 psi/ft

ZbE =3319.62 ft

Z4=3350.56 ft

Z3=3410.78 ft

Z2=3471.56 ft

Z1=3532.34 ft

Zbw =3562.73 ft

Figure 7-20 Discretized 1D reservoir in Exercise 7-18.

the flow equation for gridblock 1, carry out a material balance check for your results, and estimate the FBHP of the well given that the well radius is 6 in. Consider symmetry about the vertical plane that passes through the centers of gridblocks 1 and 4.

I

z

Figure 7-21 DiscreUzed 2D reservoir in Exercise 7-20.

7-21 Consider the one-dimensional inclined reservoir shown in Figure 7-22. The reservoir is volumetric and homogeneous. The reservoir contains a production well located in gridblock 2. At the time of discovery (t = 0), the fluids were in hydrodynamic equil ibrium and the pressure of gridblock 2 was 3,000 psia. All gridblocks have Ax = 400 ft, w = 200 ft, h = 80 ft, k = 222 md, and q~ = 0 .20 . The well in gridblock 2 is produced at a rate of

200 STB/D, and fluid properties are kto = 2 cp, B ° = B ° = 1 RB/STB, Po = 45 lbm/ft 3, and c o = 5 × 10 -s psi -1. Estimate the initial pressure

distribution in the reservoir. Find the well FBHP and pressure distribution in the system at fifty days and one hundred days using the implici t formulation. Check the material balance every time step.

Page 308: Petroleum Reservoir Simulation a Basic Approach

282 Chapter 7 Single-Phase Flow Equation for Various Fluids

7-22 Consider the single-well simulation problem presented in Example 7.13. Solve the problem again but this time the reservoir is discretized into four gridpoints in the radial direction as shown in Figure 7-23.

7-23 If the reservoir described in Exercise 7-21 is horizontal as shown in Figure 7-24, observe and use the symmetry about the vertical plane that passes through the center of gridblock 2 and solve the problem.

Z

No-flow b,

Figure 7-22

No-flow boundary

Z3=3500ft

Z2=3700

Z1=3900

Discretized reservoir in Exercise 7-21.

1 MMscf/D

, boundary

~0 ft

Figure 7-23

7

No-flow b,

No-flow boundary

) , r

Discretized reservoir in Exercise 7-22.

200 STB/D

~-flow boundary

Figure 7-24 Discretized 1D reservoir in Exercise 7-23.

Page 309: Petroleum Reservoir Simulation a Basic Approach

Chapter 8

Linearization of Flow Equations

8.1 Introduction

The flow equations presented in Chapter 7 are generally nonlinear. To obtain the pressure distribution in the reservoir, these equations are linearized in order to use linear equation solvers. In this chapter, we aim at obtaining the linearized flow equation for an arbitrary gridblock (or gridpoint). To achieve this objective, we identify the nonlinear terms in the flow equations, present methods of linearizing these terms in space and time, and subse- quently present the linearized flow equation for single-phase flow problems. In order to sim- plify the presentation of concepts, we use the implicit formulation of the 1D flow equation in the x direction and use a block-centered grid in discretizing the reservoir. We first discuss the incompressible fluid flow equation that exhibits linearity, then the implicit formulation for the slightly compressible fluid flow equation that exhibits very weak nonlinearity, and finally the implicit formulation for the compressible fluid flow equation that exhibits a higher degree of nonlinearity. Although single-phase flow equations exhibit different degrees of nonlinearity, these equations are usually classified as having weak nonlinearities.

8.2 Nonlinear Terms in Flow Equations

The terms composing any flow equation include interblock flow terms, the accumulation term, the well production rate term, and fictitious well rate terms reflecting flow across reservoir boundaries for boundary blocks. The number of interblock flow terms equals the number of all the existing neighboring blocks. The number of fictitious welt rate terms equals the number of block boundaries that fall on reservoir boundaries. For any boundary block, the number of existing neighboring blocks and the number of fictitious wells always add up to two, four, or six for 1D, 2D, or 3D flow, respectively. In single-phase flow problems, if the coefficients of unknown block pressures in the flow equation depend on block pressure, the algebraic equation is termed nonlinear; otherwise, the equation is linear. Therefore, the terms that may exhibit pressure dependence include transmissibili- ties, the well production rate, fictitious well rates, and the coefficient of block pressure in the accumulation term. This is true for equations in the mathematical approach. In the engineering approach, however, interblock flow terms, the well production rate, and ficti- tious well rates receive the same treatment, i.e., block pressures contributing to flow potential (the pressure difference) in any term are treated implicitly as demonstrated in Chapter 7. Therefore, the nonlinear terms include transmissibilities in interblock flow terms and fictitious well rates, the coefficient of pressure drop in the well production rate term, and the coefficient of block pressure difference in the accumulation term.

283

Page 310: Petroleum Reservoir Simulation a Basic Approach

284 Chapter 8 Linearization o f F low Equations

8.3 Nonlinearity of Flow Equations For Various Fluids

In this section, we examine the nonlinearity of the flow equations for slightly compress- ible and compress ib le fluids. The flow equation for incompress ib le fluids is linear. We examine the pressure dependence of the various terms in a f low equation, namely, the interblock flow terms, the accumulation term, the well production rate term, and the ficti- tious well rate terms.

8.3.1 kinearity of the Incompressible Fluid Flow Equation

The 1D flow equation in the x direction for an incompressible fluid can be obtained from Eq. 7.16a, which states

Z Tt,n[(Pt -Pn)-~",,n(Zt -Zn)]+ Z qsc,. +q.c° = 0 (8.1)

where ~0 n = { n - l , n + l } , ~, = {} , {bw} , or {be} , and n = 1,2,3 ..... n x

For gridblock 1,

Tx ..... [ (P2 - Pl ) - ~1+I/2 (Z2 - Z l )] "~- qsc,,,,, + q,c, = 0 (8.2a)

For gridblock i = 2, 3, ...n x - 1,

T ..... [(Pi-1 - Pi ) - 7i-1/2 (Zi 1 - Zi )] + T ..... [(P +1 - P~ ) - 7e+1/2 (Z~+l - Z~ )] + qsc, = 0 (8.2b)

For gridblock n x ,

T [(Pn 1--Pn )--'}"n l/2(Zn 1-Zn ) ] + q .... +q,c = 0 (8.2e) X n x 1/2 x x x - - x - - x , n x n x

Transmissibil i ty T ..... is expressed as Eq. 2.39a,

kxA x I 1 T ..... = (tic - - f f - ~ ) = G..,,= (~-~)x, .... (8.3a)

x i

geometric factor G ...... is defined in Table 4-1 for a block-centered grid,

2fl~ (8.4) G ...... Ax~/(A~,, k ) + Ax,= 1 / (A , kx,~, )

the well production rate ( q,c, ) is est imated according to the well operating condit ion as

discussed in Chapter 6, and fictitious well rates ( qsc~,, q,c~ .... ) are estimated according to

the type of boundary condition as discussed in Chapter 4. Note that Tx,,,,~ and G,,,,,~ are

functions of the space between gridblocks i and i -T- 1 only. It should be mentioned that a

numerical value for the well production rate could be calculated for well operating condi-

tions other than a specified FBHP. Similarly, a numerical value for a fictitious well flow

Page 311: Petroleum Reservoir Simulation a Basic Approach

8 .3 N o n l i n e a r i t y o f F l o w E q u a t i o n s F o r V a r i o u s F l u i d s 285

rate can be calculated for boundary conditions other than a specified pressure boundary. In

such cases, both the well production rate and fictitious well rate are known quantities and,

as a result, can be moved to the RHS of the flow equation (Eq. 8.2). Otherwise, the well

production rate and fictitious well rate are functions of block pressure ( pe ) and, as a

result, part of the rate equations appear in the coefficient of p~ and the other part has to be

moved to the RHS of the flow equation (Eq. 8.2). The FVF, viscosity, and gravity of an

incompress ib le fluid are not funct ions of pressure. Therefore , t ransmissibi l i t ies and

gravity are not functions of pressure; consequently, Eq. 8.2 represents a system of n

linear algebraic equations. This system of linear equations can be solved for the unknown

pressures ( P l , P2, P3 . . . . P,x ) by the algorithm presented in Section 7.3.1.1.

8.3.2 Nonlinearity of the Slightly Compressible Fluid Flow Equation

The implicit flow equation for a slightly compressible fluid is expressed as Eq. 7.81a,

E Tn+I r . n+l n+l n Z xl _[_ ~ n+l d- n+l = z., t tPt - P , ) - - ~ l , n ( Z l - - n )1 L q ..... q~ c~ B ° A t ) [p,,,+l _ p~ ]

where the FVF, viscosity, and density are described by Eqs. 7.5 through 7.7,

(8.5)

B ° B - ( 8 . 6 )

[1 + c ( p - p° )]

o /z

# : (8.7) [1 - c~ ( p - p ° )]

p - p° [1 + c ( p - p° )] (8.8)

The numerical values of c and c~ for slightly compressible fluids are in the order of mag-

nitude of 10 -6 to 10 -5. Consequently, the effect of pressure variation on the FVF, vis- cosity, and gravity can be neglected without introducing noticeable errors. Simply stated

B =- B ° , /t _=/Z, and p = p° and, in turn, transmissibilities and gravity are independent

of pressure (i.e., T. n+l~,. =- T t,,, and 7t,," -= ~l,n ). Therefore, Eq. 8.5 simplifies to

n+l Z xl ..[_ ~ n+l ..[_ n+l Vb ~/~ (C + C(p ) [p~1+1 E T L , [ ( P t - P ~ + I ) - Y ~ , ( Z t - n)J 2_,qsc, qsc -- ° --p~] (8.9) t~,, ' I~,, " " a c B ° A t

Eq. 8.9 is a linear algebraic equation because the coefficients of the unknown pressures at time level n + 1 are independent of pressure.

Page 312: Petroleum Reservoir Simulation a Basic Approach

286 Chapter 8 Linearization o f Flow Equations

The 1D flow equation in the x direction for a slightly compressible fluid is obtained from Eq. 8.9 in the same way that was described in the previous section.

For gridblock 1,

+ r ~ n+l - - Z x~ -t- n + l , _}_ n + l Tx .... l~.P2 -- Pl +1)- Yl+,/2 (Z2 1)1 q~%, q,~, -

For gridblock i = 2, 3 , . . .n - 1,

v~, ¢ [ (c + c,) [p~,+l _ p ; ]

acB° At (8.10a)

_ p n + l ) r~ .,+~ . + 1 . Tx, ,,2 [(p~]l i -,/i_l,2(Zi_, - Z / ) ] + T ..... ttPi+l -P~ ) -~+1 /2 (Z ,1 - Z i ) ]

(8.lOb) + ,,+~ K ~i(c + c~,) °+1

q,c - ~ [Pi -P~]" ' a e t

For gridblock n ,

"+~ - P"+~) qsc [(Pnx-1 n~ Yn,-l /z(Zn, 1 - Z n )]+qn+l + n+l T n x 1/2 - - x SCbE,n x n x

(8.10e)

x a B°At tP"x - P , ].

In the above equation, T ..... and G ...... for a block-centered grid are defined by Eqs. 8.3a and 8.4,

kxa ~ I 1 T ..... = (tic u---~~) = G ...... ( -~ )x , .... (8.3a)

x I / 2 z+

2fl~ (8.4) G ...... = 2~xi I(Ax, kx, ) + ~kXiT 1 /(Ax,+, k )

Here again, the well production rate ( q,+l n+l sc, ) and fictitious well rates ( q,+l .,c~.,, qs%... ) are

handled in exactly the same way as discussed in the previous section. The resulting set of

n l i n e a r a l g e b r a i c e q u a t i o n s c a n be s o l v e d f o r t he u n k n o w n p r e s s u r e s

n + l n+ l , p n + l n + l ( Pl , Pz 3 .... p,. ) by the algorithm presented in Section 7.3.2.2.

Although both Eqs. 8.2 and 8.10 represent a set of linear algebraic equations, there is a basic difference between them. While in Eq. 8.2 reservoir pressure depends on space (location) only, in Eq. 8.10 reservoir pressure depends on both the space and time. The impl ica t ion of this d i f fe rence is that the f low equat ion for an incompress ib le fluid (Eq. 8.2) has a steady-state solution (i.e., a solution that is independent of time), whereas the flow equation for a slightly compressible fluid (Eq. 8.10) has an unsteady-state solu- tion (i.e., a solution that is dependent on time). It should be mentioned that the pressure solution for Eq. 8.10 at any time step is obtained without iteration because the equation is linear.

Page 313: Petroleum Reservoir Simulation a Basic Approach

8.3 Nonl inear i ty o f F low Equat ions For Various Fluids 287

We must reiterate that the linearity of Eq. 8.9 is the result of neglecting the pressure dependence of FVF and viscosity in transmissibility, the well production rate, and the fic- titious well rates on the LHS of Eq. 8.5. If Eqs. 8.6 and 8.7 are used to reflect such pres- sure dependence, the result ing flow equation becomes nonlinear. In conclusion, understanding the behavior of fluid properties has led to devising a practical way of linear- izing the flow equation for a slightly compressible fluid.

8.3.3 Nonlinearity of the Compressible Fluid Flow Equation

The implicit flow equation for a compressible fluid is expressed as Eq. 7.162a,

E T'n+l . . . . 1 -- on+l ) n Z ,1 q_ ~ n+l n+l gb , ~ . . . . . 1 n ~,. l tP~ . - Y l , . (Zz - . ) 1 2 . . qs..,,. + q,c = ° t ~ g g ) , tPn -- P . ]

ze~. ~ee. ° a cAt

The pressure dependence of density is expressed as Eq. 7.9,

(8.11)

Psc (8.12) Dg -- a c B g

in addition, gas FVF and viscosity are presented in a tabular form as functions of pressure at reservoir temperature,

Bg : f ( p ) (8.13)

/~g = f ( p ) (8 .14)

As mentioned in Chapter 7, 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 low pressure to high pressure. Consequently, interblock transmissibilities, gas gravity, the coefficient of pressure in accumulation term, well production, and transmissibility in fictitious well terms are all functions of unknown block pressures. Therefore, Eq. 8.11 is nonlinear. The solution of this equation requires linearization of nonlinear terms in both space and time.

The 1D flow equation in the x direction for a compressible fluid can be obtained from Eq. 8.11 in the same way that was described in Section 8.3.1.

For gridblock 1,

Txn+l . . . . 1 n+l n Z ,1+ ,+1 q,+a = Vb, d ? . . . . . 1 , ..... [~P2 - - P l ) - ~ ] 1 + 1 / 2 ( Z 2 - 1 )] qscow.t "t- sct c ( eA t ~.'-~g)l[Pl - P l ] ( 8 , 1 5 a )

For gridblock i = 2, 3,...n x - 1,

Page 314: Petroleum Reservoir Simulation a Basic Approach

288 Chapter 8 Linearizat ion o f F low Equat ions

.T"+I - . < . + i . . " Z Z ) 1 + Tn+l r , " n+l n+l x n

l tP i -1- -Pi )--Yi-1/2 ( i - I - i-. --x+,,2ttPi+l--Pi )-7i+l/2(Zi+i-Zi)] x i 112 i

+ °,+' _ . . . . . . 1 q,~ a~tt-"~g )i[pi __pn].

(8.15b)

For gridblock n x ,

Tn+l r z n+l n + l - , Z q,+l .~_ n+l l t P . - 1 - P . ) - Y . </2( . - 1 - Z n )]'Jr q,,c Xn x -1/2 x x x x x 8CbE ,nx nx

(8.15c) [ p n + , _ p . ].

- (Bg)" acAt ,x x

In the above equation, T "+1 and G for a block-centered grid are defined by Eqs. 8.3b Xia: l l2 x i~ , l l2

and 8.4,

k k I n+ l |

T"+lx,~,,~ = (tic ~" x ),,, .... = G"I'~' (--~u )"~-i,~ ,= (8.3b)

2tic (8.4) G ...... Ax, / (A kx, ) + Ax,~_l/(A.,., k )

where B and /~ stand for Bg and ~ g , respectively.

Here again, the well production rate ( qn+l . + 1 sc, ) and fictitious well rates ( q"< s% 1 ' qs%,.~ ) are

handled in exactly the same way as discussed in Section 8.3.1. In addition, interblock

transmissibility (Eq. 8.3b) is a function of the space between gridblocks i and i -T- 1 and

time. The resulting set of n nonlinear algebraic equations has to be linearized prior to

n+l n+l n+l n+l being solved for the unknown pressures ~ p~ , P2 , P3 . . . . p,~ ). The algorithm outlined

in Section 7.3.3.2 uses simple iteration on transmissibility to linearize flow equations. This essentially involves transmissibility values being used from n th time step. The fol- lowing section presents other methods of linearization. It should be mentioned that even though the solutions of Eqs. 8.10 and 8.15 are time-dependent, the solution of Eq. 8.10 requires no iteration because of the linearity of the equation, while the solution of Eq. 8.15 requires iteration to remove the nonlinearity due to time. In addition, while the pressure coefficients in Eq. 8.10 are constant (i.e., they do not change from one time step to another), the pressure coefficients in Eq. 8.15 are not constant and need to be updated at least once at the beginning of each time step.

8.4 Linearization of Nonlinear Terms

In this section, we present the various methods used to treat nonlinearities. Although the methods of linearization presented here may not be required because nonlinearities in single-phase flow are weak, these linearization methods are needed for the simulation of

Page 315: Petroleum Reservoir Simulation a Basic Approach

8.4 Linearization of Nonlinear Terms 289

multiphase flow in petroleum reservoirs that is presented in Chapter 10. Nonlinear terms have to be approximated in both space and time. Linearization in space defines the location where the nonlinearity is to be evaluated and which reservoir blocks should be used in its estimation. Linearization in time implies how the term is approximated in order to reflect its value at the current time level where the pressure solution is unknown. Figure 8-1 sketches three commonly used linearization methods as they apply to a nonlinearity 09 that is a function of one variable (p): (a) the explicit method (Figure 8-1a), (b) the simple-itera- tion method (Figure 8-1b), and (c) the fully-implicit method (Figure 8-1c).

Each figure shows the improvements in the linearized value of the nonlinearity as iteration progresses from the first iteration (v = 0) to the second iteration (v = 1) and so on until the pressure converges to p,+l. Iteration on pressure in the case of a compressible fluid only is necessary in order to satisfy the material balance and remove the nonlinearity of the accumulation term due to time. In Figure 8-1, the value of the nonlinearity at time level n (the beginning of the time step) is represented by an empty circle, its value at time level n+l (after reaching convergence) is represented by a solid circle, and its value at any iteration is represented by an empty square at that iteration. Note that the explicit method, sketched in Figure 8-1a, does not provide for any improvement in the value of the nonlin- earity as iteration progresses. The simple-iteration method, sketched in Figure 8-1b, pro- vides for improvement in the value of nonlinearity in step-wise fashion. In the fully implicit treatment, presented Figure 8-1c, the improved value of the nonlinearity, as itera- tion progresses, falls on the tangent of the nonlinearity at the previous iteration. Other lin- earization methods, such as the linearized-implicit method (MacDonald and Coats 1970) and the semi-implicit method of Nolen and Berry (1972), are not applicable to single- phase flow. They are used in multiphase flow to deal with nonlinearities due to fluid satu- ration only. The treatments of the various nonlinear terms that appear in single-phase flow equations are presented in Sections 8.4.1 to 8.4.4.

f (p ) f (P) f (P)

f{p,÷~) f(pn*l) f(p"*~)

f(p~) S - - i Y ~ Y T

I I I I

I I I I I I I I P" p11~ p1~ p18+~ p'°+~

(a) Explicit l inearizat ion.

/ f(pn) f(pn) - - I I

I I

=p I I ~ p pn p~1~ pn(~ ~ pn÷~

(C) Fully implicit l inearizat ion.

Convergence of different methods of linearization.

I I

/ / I I I I I I I I I I I I ~ p

P" p~1~ p?,~ p~ P~÷~

(b} Simple- i terat ion l inearizat ion.

Figure 8-1

8.4.1 Linearization of Transmissibilities

Transmissibilities at time level n+l are expressed by Eq. 8.3b,

Page 316: Petroleum Reservoir Simulation a Basic Approach

290 Chapter 8 Linearization of Flow Equations

k A I "+1 1 n+l - - G f n + l (8.16)

, +

where G x, .... is defined by Eq. 8.4 for a block-centered grid and f,+lp,~,,2 is defined as

1 n+l f;~=+l/2 = (~--B) ....... (8.17)

Therefore, linearization of transmissibility reduces to linearization o f f n+l . The function PIT1/2

fp is evaluated at block boundaries xiT1/2 and at time level n + 1 , where the pressure

solution is not known. Therefore, fp needs to be expressed as a function of the pressure

of the blocks on both sides of the specific block boundary and at some known time. These

approximations are termed linearization in space and linearization in time.

8.4.1.1 Linearization of fp in Space

There are several methods used to approximate fp i n space.

With single-point upstream weighting,

L, .... --L,

if block i is upstream to block i-y- 1 , or

if block i i -T- 1 is used to determine the upstream and downstream blocks.

With average function value weighting,

s., .... +s.,+,)

With average pressure value weighting,

fp, . . . . = f ( f i ) = 1 //x(F)B(F)

where

(8.18a)

fp ..... = fp,;, (8.18b)

is downstream to block i -y- 1. The potential difference between blocks i and

f i = ~ (Pi + PIT-1 )"

With average function components value weighting,

fp ..... = f ( f i ) = 1 / ~B

where

(8.19)

(8.20)

(8.21)

(8.22)

Page 317: Petroleum Reservoir Simulation a Basic Approach

8.4 Linearization of Nonlinear Terms 291

~= k t (P i ) + / ~ ( P , + l ) ( 8 . 2 3 )

= B(p , ) + B(p,T1 ) (8.24) 2

Once fp is linearized in space as in Eqs. 8.18 through 8.24, then the space-linearized transmlssibility is obtained by applying Eq. 8.16,

T ..... = Gx,+,, 2 fp ..... (8.25)

8.4.1.2 Linearization of fp in Time

The effect of the nonlinearity of fp on the stability of the solution depends on the magni- tude of the pressure change over a time step. The methods of time linearization presented earlier in Figure 8-1 may be used to approximate fp in time. Note that fp is a function of the pressures of the blocks that surround a block boundary as mentioned in the previous

section; i.e., fp = f(Pi, Pi~l) "

With the explicit method (see Figure 8-1a), the nonlinearity is evaluated at the beginning of the time step (at time level n),

I ; ' + ' - l ; ..... f " " ..... " = ( P i , P,~I) (8.26)

With the simple-iteration method (see Figure 8-1b), the nonlinearity is evaluated one iter- ation behind the pressure solution,

(v) (v) (v) f.+l f . ,+1 ,+1 (8.27) f.÷l __~p ..... = tP~ ,PgT1)" J Pi+l/2

With the fully implicit method (see Figure 8-1c), the nonlinearity is approximated by its value at iteration level v plus a term that depends on the rate of change of pressure over

iteration,

(v)

= f n + l f . n+l n+l~ fjn+l n+l ", p ..... - - ~ P,~II2 -~ [,Pi ' Piz-1 ) + 5pii {,Pi -- Pi )

(8.28) (v)

~ f .,n+l (~1) ( P i , P i l l ) ,I+)1

+ ~ [ (Piwl -Piwl)"

is linearized in time as in Eqs. 8.26 through 8.28, then the time-linearized trans-

Tx n+l = G fn+l (8.29) iTl12 Xi~l/2 J PiTll2

Once f p missibility is obtained by applying Eq. 8.16,

Page 318: Petroleum Reservoir Simulation a Basic Approach

292 C h a p t e r 8 L i n e a r i z a t i o n o f F l o w E q u a t i o n s

8.4.2 Linearization of Well Production Rates

A wellblock production rate is evaluated in space at the gridblock (or gridpoint) for which the flow equation is written. Linearization in time of the wellblock production rate involves first linearizing the wellblock production rate equation and then substituting the result in the linearized flow equation for the wellblock. This method of linearization, which is usually used in reservoir simulation, parallels the linearization of transmissibility.

8.4.2.1 Well Production Rate Linearization in the Mathematical Approach

The following methods may be used to approximate the wellblock production rate in time.

With the explicit method (see Figure 8-1a),

n+l ~ q,~ q,c,

With the simple-iteration method (see Figure 8-1b),

(v) qn+l ~ qn+l

s c i s c i

With the fully-implicit method (see Figure 8-1c),

(8.30a)

(8.31a)

(v) d In+l

~v+,~ ~v, aq,c ' (p,2+l ~ ~, (8.32) q.+l n+l _ qn+l A- -- pn+l) so, = q,c, = ,~, dp i i i

Another method of wellblock production rate linearization in time involves substituting the appropriate wellblock production rate equation given in Chapter 6 into the flow equa- tion for the wellblock prior to linearization and subsequently linearizing the resulting flow equation. That is to say, the wellblock production rate and interblock flow terms receive identical linearization treatments. For a well operating under a FBHP specification, this method results in the implicit treatment of wellblock pressure compared to the explicit treatments provided by the explicit method (Eq. 8.30a) and simple-iteration method (Eq. 8.3 la). This method of linearization is identical to the linearization method used in the engineering approach and is presented in the next section.

8.4.2.2 Well Production Rate Linearization in the Engineering Approach

The following methods may be used to approximate a wellblock production rate in time.

With the explicit transmissibility method,

n qn+lsc, ~ - aw , ( )~ (pn+l _ P ~ )

With the simple iteration on transmissibility method,

(8.30b)

(8.31b)

Page 319: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 293

With the fully-implicit method,

(v)

d n+l ~+,, ~v, oq,c ' (p~2+'1' p•;', (8.32) qs.+l = q.+l q.+l +

- so, = sc~ d p i i i )

In Eqs. 8.30b, 8.31b, and 8.32, the well is operated under a specified FBHP. Well produc- tion rate linearizations with Eqs. 8.30b and 8.3 lb provide tremendous improvement in sta- bility over the linearization with Eqs. 8.30a and 8.31a. This is the case because the

primary nonlinearity of the production rate is due to the ( p,÷li - - Pw~" ) term; the contribu-

1 n+l tion of the (-~--)i term to nonlinearity is secondary.

8.4.3 Linearization of Fictitious Well Rates

In Chapters 4 and 5, we showed that a fictitious well rate is nothing but an interblock flow term between a reservoir boundary and a boundary block. Therefore, the linearization of fictitious well rates is similar to the linearization of interblock flow terms. For a block- centered grid, however, the coefficient of pressure drop depends on the pressure of the boundary block only; hence, a fictitious well rate can be linearized the same way as a well production rate (Section 8.4.2).

8.4.4 Linearization of Coefficients in Accumulation Term

The coefficient of pressure change in the accumulation term exhibits nonlinearity for a compressible fluid only (Eq. 8.11). This nonlinearity results from the pressure dependence

(v) ~ P of Bn+lgr~ in the definition of (~ - ) , given by Eq. 7.156a, as can be noted in Eq. 7.157. Lin- g

(v)

earization in space involves evaluating B .+'~° and hence (~-)~' at the pressure of the grid- g

block (or gridpoint) for which the flow equation is written (gridblock n). Linearization in (v)

time uses simple iteration; i.e., B .÷~ is evaluated at the current block pressure with one gn

iteration lagging behind.

8.5 Linearized Flow Equations in Time

As mentioned earlier in this chapter, the flow equation for a compressible fluid exhibits the highest degree of nonlinearity among single-phase flow equations. Therefore, we choose this equation in 1D flow (Eq. 8.15) to demonstrate the various methods of linear- izing flow equations. For each method presented in Section 8.4, we present the final form of the equation for an interior block (Eq. 8.15b). This final form is written for all

Page 320: Petroleum Reservoir Simulation a Basic Approach

294 Chapter 8 Linearization o f F low Equations

gridblocks in the reservoir. For boundary blocks, the final form must be modified, as dis- cussed in Chapters 4 and 5, to reflect specified boundary conditions for the given problem. The resulting system of equations is then solved using linear equation solvers such as those presented in Chapter 9.

8.5.1 Explicit Method

In the explicit method, transmissibilities, well production rates, gravities, and fictitious well rates if present are dated at the old time level (time level n). We still have to iterate on

( ~ ) , ' , the pressure dependent function in the coefficient of the accumulation term. ~ J

g

Applying these assumptions, Eq. 8.15b becomes

T . . . . . 1 ~+1. ~ Z " Z x, ,,2 [l 'Pi-1--Pi ) - -Y i - I /2 ( i l - Z i ) ] - ~ T T , / 2 [[,Pi+ln+l __pn+l)__Yi+l/2(i i + 1 - Z i ) ]

(8.33) +q~c Vb ~ . . . . 1 - ' (~g) , tP , - P ? ] .

a At

Placing the iteration levels and rearranging terms, we obtain the final form of the flow equation for interior block i ,

, - , Vb, . q5 . . . ';;7 ° ,v+,~.+, T?l 'gl+l -- [Tx ~, ,12 -1- TX7 112 * - - ~"-~--)i ]Pi J[- TX .. . . . Piq-' Xi-UZ p i - I i i+ a c A t IJg

(8.34)

" z ° n ] n V~, . ~ . , ° = [ T ~ n , / 2 ? i - 1 / 2 ( , i - l - Z i ) 3 t - T ~ .. . . . 7 i + l / 2 ( Z i + l - Z i ) - q ' ~ ' a A t t-~g)~ Pi •

The unknowns in Eq. 8.34, which reflects explicit treatment of transmissibilities and the

well production rate in the flow equation for block i , are the pressures of blocks i - 1, (v+l)

~'" p~,~],and n+l ). i , and i+1 at time leveln+l and current iteration v + l ( pin11 , i Pi+l

For the explicit treatment of nonlinearities, the general equation for block n in multidi- mensional flow has the form

(v+l) Z v , ' o+l_{Zv" vb ~ , ,;;,; t,.Pt t,, + " ( ).}P.

= { Z T," " q" - q " [ , . ° 7 , , . ( z , - z ) 1 - ~ .c, . . . . . . . - - - V b n / ~) \ p n /

a c At (B-~)" p" 1.

(8.35)

8.5.2 Simple-Iteration Method

In the simple-iteration method, transmissibilities, well production rates, and fictitious well rates if present are dated at the current time level (time level n+l) with one iteration lag- ging behind. Gravities are dated at the old time level as mentioned in Chapter 7. We still

Page 321: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 295

a ~ have to iterate on ( ~ - ) : , the pressure dependent function in the coefficient of the accu-

g

mulation term. Applying these assumptions and placing the iteration levels, Eq. 8.15b becomes

(v) (v+l) (v+l) (v) (v+l) (v+l) Txn+ l . . . . 1 n+l n Z - Z ) l + T "+1 . . . . 1 n+l n Z

..... [tPi-1 --Pi ) - - Y i - 1 / 2 ( i-1 i-- x, .... t t P i + l --Pi ) - - Y i + l / 2 ( i + l - Z i )]

(v) Vb " ¢ x t r ~+1 ) - ,

' acAt tBg)i|Pi---- ~ p ~ ~ ~

(8.36)

Rearranging terms in Eq. 8.36, we obtain the final form of the flow equation for interior block i ,

(v) (~+1) (v) (v) V~ ¢~ (v+]) (v) (v+l) Tn+l n+l n+l + Tn+l ", 5" , n+l + Tn+l n+l

,- + - - (--~--)~ IP~ ...... P~+I ..... P,-I - [T£ ,2 x, .... a cat /~ (8.37)

(v) Cv) (v) Vb / ~ xP n [ T n + l n Z Tn+I n "Z qn+l i

= x,_l, 2 ~ ] i - 1 / 2 ( i - 1 - Z i ) q - x.,+,t2~/i+l/2t i + 1 - Z i ) ] - sc, (~c A t t-~8)'P'" The unknowns in Eq. 8.37, which reflects the simple-iteration treatment of transmissibili-

ties and the well production rate in the flow equation for block i , are the pressures of

(~+') p(~+?, and blocks i - 1 , i ,and i+1 at time level n+l and current iteration v + l (pi,~a ,

(v+l) p,+l ).

i+1

For the simple-iteration treatment of nonlinearities, the general equation for block n in multidimensional flow has the form

(v) (v+l) (v) Vb ~ (v+l) T n+l n+l r ~-'~ T n+l + n - W -P ~ n+l

L t,., Pz - i L z. - - - - : - t ~ - ) . l P . le~n lelp n ' ~ c l ~ t 12~g

(v) (v) (v) .~-"~ r T n + l n / Z ~ q n + l qn+l gb . ~) . . . .

=/2~ll~w. l,, Yt,,,t l--Zn)] -IE~n.._, ,c,,,, - , c . - cccA t - ~ g ) , P , I

(8.38)

8.5.3 Explicit Transmissibility Method

In the explicit transmissibility method, transmissibilities and coefficient of pressure drop in well production rate term are dated at old time level (time level n). One still has to

on ( ~ ) i " , the pressure dependent function in the coefficient of accumulation term. iterate g

Applying these assumptions, Eq. 8.15b becomes

Page 322: Petroleum Reservoir Simulation a Basic Approach

296 Chapter 8 Linearization o f F low Equations

T n r [ n + l n + l x n : Z r / n + l n + l n [ tP i -1 - -P i )--~i-112( , 1 -Zs ) ]+T" .2[ tP ,+I - P i ) - ~ i + l l 2 ( Z i + a - Z i ) ] xi 1/2 i+

n Wbl : ~) . . . . . 1 ( 8 . 3 9 )

_Gw, ( )7 ( p n + l - - Pwf, ) = ~ (--B-~g)i lPi -- pn l

By placing the iteration levels and rearranging the terms, we obtain the final form of the flow equation for interior block i ,

(v+l) V~ rh 1 (~+l) (v+~) Tn,,2 n+l Tnl,2 Tn + °a-~t '~ "'+G ~ "w, Xa'lt~" . . . . . 1 ]_TxT,/2 n+l Pi-1 - [ x + t )i t'-~--~,,)i lPi Pi+l t - t- Xi+l/2 i+

(8.40)

= [ T ~ n ' t 2 ~ i ~ l / 2 ( Z i - l - Z i ) - l - T x ~ + m } t ; 1 / 2 ( Z i + l - Z i ) ] - G w ' );'P~f" a At t-ff~g)iPi.

The wellblock in Eq. 8.40 operates under a specified FBHP. The unknowns in Eq. 8.40 are

the pressures of blocks i - 1 , i , and i+1 at time level n+l and current iteration v + l ( r + l ) ( v+ l ) ( v + l )

p.+l , .+1 and .+1 ). i 1 Pi ' Pi+l

The general flow equation for interior block n in multidimensional flow using explicit transmissibilities can be expressed as

K 1 ( ; ; 7 . - - ° , ,

l,nPl - - [ E Tl; n'-------~(-Z--)n + G w t ~ ) n J P n l ~ n leap n acl~t 12~g n

= ETft , .~' .I" " " Z I - Z ) - O (_~)npnf,, Vo"----U-l.--).Pn.'~b, n ' acAt B l e ~o . t v¢

(8.41)

8.5.4 Simple Iteration on Transmissibility Method

In the simple iteration on transmissibility method, transmissibilities and the coefficient of pressure drop in a production rate term are dated at the current time level (time level n+l) with one iteration lagging behind. Gravities are dated at the old time level as mentioned in

Chapter 7. We still have to iterate on ( ~ ) [ , the pressure dependent function in the coef- g

ficient of the accumulation term. Applying these assumptions and placing the iteration levels, Eq. 8.15b becomes

(v) ( v + l ) ( v + D iv ) i v + l ) ( v+ l )

Tn+I [(pT_+ll __ pin+l n Z Tn+l . . . . 1 _ P n+l n Z ) - 7 i - 1 / 2 ( i - I - Z i ) ] + x + , , ~ t t P i + l i ) - ~ ] i + 1 / 2 ( i + l - Z i )] Xi 1/2 I

(8.42) 1 '~ .... ' V b gh ( " + " z x n + ] / n + l n i / ~ \ / r n + l n

-Gw, t-ff )i tp, -Pwl,) = -Pi ].

The final form of the flow equation for interior block i is obtained by rearranging the terms, yielding

Page 323: Petroleum Reservoir Simulation a Basic Approach

8.5 Linear ized Flow Equat ions in Time 297

(v) (v+l) (v) (r+l) (v) (v+l) (u) iv) Vb - (~ - ! ~ ( 1 . _ ~ _ ) n + l a n+l Tn+l n + l Tn+l ,+1 _ I T , + 1 +Tn+1 + '. ( - - ) i + t G + ]Pi x +m Pi+l x, m P i - I L ,, ,2 x ..... acAt Bg " B I ~ " '

(8.43)

=[T£ . . . . ").,i_l/2(Zi_l - Z i ) + T "+1 " Z (__)n.+lpn n + l n ~/i+1/2( i + 1 - Z i ) ] - G w . . . . . . . . . B l . . , wf~ --"7- At t l : tg) iPi •

The unknowns in Eq. 8.43 are the pressures of blocks i - 1, i , and i + 1 at t ime level

(~+') p~;'l' , and p~+~l' ). n+ 1 and current iteration v + 1 ( pi,_~ , i i+l

The general flow equation for interior block n in multidimensional flow using simple iter- ation on transmissibilities can be expressed as

(v) iv+l)

Z T'(n:l :+'1) -- [ Z T'~+)I Vb " ~)', (~)n+l~ n+ l ~,,, P~ t,, + " (-~8 ). + Gw ]P.

~ . ~v,,, ~ " "B / i f "

l,n 71,n(ZI-Z.)-Gw Pwy,, = - ~ t-~g). P . . ~v,, "" B ~ ' " a c At

(8.44)

8.5.5 Newton's Iteration (Fully Implicit) Method

In the fully implicit method, transmissibilities, well production rates, and fictitious well rates if present are dated at the current t ime level (time level n+l) . Gravities are dated at the old t ime level as mentioned in Chapter 7. By dating nonlinear terms and unknown pressures at the current time level and the current iteration and using the old iteration level

in calculating ( i f - ) / ' , Eq. 8.15b becomes g

(v+l) o+1) (v+i) (v+l) (v+l) (v+l) Tn+l r. n + l __pn+l n Z Z)I+Tn+I r / n + l n + l x n / Z

[tPi-1 i ) - ~ i 1 / 2 ( i - l - i . . . . ,2ttPi+l --Pi )--~i+1/2 t i + l - Z i )] xi 1/2 t+ (8.45)

+ %1 _ v , . . q~ .,r ',;;; q,~, o(,~.At ~.'-~g ) i [p i -- P ; ]"

The first, second, and third terms on the LHS of Eq. 8.45 can be approximated using the fully implicit method as

(~+1) (~+1) (v+l) (v) (v) (v) zn+l r / n+l n+l Tn+l r. n+l n+l ) n - - ,T n Z

..... [tPi~-I --Pl --~igl/2(ZiT-1 Z i ) ] ~ x , ,2t tPm --Pi ) - - ~ i T - 1 / 2 ( i g l - Z i )] (v) (v)

3 T ]n+l (v) ~ n+l (v) (v) (r+l) (v+l) (v) n+l (8.46) "t- . . . . 1 n+l- n " Z [ . . . . . . (pin+l _ p?+l ) + (Pi;+l 1 -- PiT-I )1

t t P i ; l - P i ) - 7 i = 1 / 2 t i T - 1 - Z i ) ] 3 p i opiwa l

iv) (v+l) (v) (v+l) (~) n+l n+l n+l

+ T n + l [(Pi+I 1 - Piz-x ) - ( -- Pi )1' Pi

Page 324: Petroleum Reservoir Simulation a Basic Approach

298 Chapter 8 Linearization o f F low Equations

(v)

d In+l Uqsc, (.~) (v)

q"+l _= + (Pi - P i ) sc, sc, dp i

The RHS of Eq. 8.45 can be rewri t ten as

(8.32)

V b l tg (~+]) V~ rg (~+J) (~) (~) ,~ T \ l r n + l n oi / ~ x l r z n + l n + l x . ~ _ [ n + l

a ~ [ t ~ ) , t P , - P i 1= a - - ~ t ~ ) , t t p , - P , ) (Pi --P?)]" (8.47)

Subst i tu t ion o f Eqs. 8.32, 8.46, and 8.47 into Eq. 8.45 and col lec t ing terms y ie lds the f inal fo rm for the ful ly impl ic i t f low equat ion for inter ior g r idb lock i ,

(v)

3T I n+l (v) (v) (v) (v+l) /T~+I + . . . . 1 - - p n + l ) n Z xi . . . . . x . , , : ltPi-1 i -~/i-1/2( i - i - Z i ) ] T [ 1"6Pi-ln+l

'- ° P " l I

(v) ~T I n+l (v) (v) (v) (v)

n + l n + l xi I/2 _[_ n + l n z r; , - - P i ) - - ~ i -1 /2 ( i-1 - x. l /e - - [ ( P i 1 i

up,

(v) (v)

(.) (v) b T ]n+l d In+l . . . . . 1 -- pn+l n Z - Zi )] - - ~ - ~ l - Oqsci

-ttPi+l i ) - ~ / + 1 / 2 ( ,+1 . . . . . . oPi I dpi

Vb . ""a ;7; + ' t--z-kl P~

a At

(v)

~ n + l (v) (v) (v) (v+l)

+/Tn+l + r , n+l pn+l) n Z - Z i ) ] I Pi+l " x.+.2 t t P i+ l - i " - - Y i + l / 2 ( i+1 " 6 n + l

' °P ,+ l I

(~) (v) (v) (v) (v) (v) n + l _ _ / T ~ : I _ p n + l n - - T n + l rz n+l n+l. n z Z

- - - x t n [ ( P i - x i ) - • i l / 2 ( Z i - i Zi )]~ xl .... [ [ P , + I - P i )-Yi+l/2[ i + x - Z i ) ]

(v) (v) +qn+l Vb z ~) . . . . +1 t J, tp, -p? ) } . (8.48) ~' a At

The unknowns in Eq. 8.48, which ref lects the ful ly impl ic i t t rea tment of nonl inear i t ies in

the f low equat ion for in ter ior b lock i , are the pressure changes over an i terat ion in b locks

(v) (v+l) (v) (v+l) (v) i - 1 , i , and i + 1 [( p~+'~ ,+/) , ( ,+1 n+l ), and ( n+l _ pn+l )]. No te that for the

i-1 - - P i - 1 P i - - P i P i+l i+1

f i rs t i t e r a t ion ( v = 0 ), p,'~'l , for i = 1, 2, 3,.. .n x and the f i r s t -o rde r de r iva t i ve s are i ~ Pi

evalua ted at o ld t ime level n.

The ful ly impl ic i t me thod genera l equat ion for b lock n has the fo rm

Page 325: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 299

(v) (v)

<,) (- (~, ~)T I "+1 ~)q I"+1 (~*~) n+l n+l n Z - Z "" l,n l - ........ } ~ p n + l

E {Tt,n +[(p;+l--Pn )--Y,,n( / n)]-~p t + E 0p, ---I

(v) (v) (, (v) (,, 3Tl,, "+1) 3q,~, [n+l

( r n + l r / n+l n + l \ n / Z __l~' ~ - {~ . , x ,,, - t t p , - p , )--Y,,nt , - Z ) ] Op, le~p.

(r)

dqsc° n+l "1- Vb" :~)xt'd__ 'n+l) f~ - '~ T, n(+)l rz 2+)1 n(+'l" n / z - Zn)] t f f [ ) , t P, = - ~ z ~ l,, ttPl - P , ) - ~ l , ° t l

dp. a At l~v,,

(v) (v) gb : ~) x t / ~I+)1 ."1-~ T M n+l _[.. n+l n n L q ..... qsc----[-~g)ntPn--P.)}" t<. " a At

(8.49a)

(v)

qsc ] Note that the summation term ~ ~ in Eq. 8.49a contributes a maximum of one

n

term for neighboring block I if and only if block n is a boundary block and block l falls

3qs~ bq . . . . next to reservoir boundary m. In addition, m., and . are obtained from the flow ~p, ~pn

rate equation of the fictitious well, which depends on the prevailing boundary condition. Note also that Eq. 8.49a does not produce a symmetric matrix because of the term

(v) (v) (v) ~ T , [n+l

-p;+l)-y,:(Z, - z [(p?+l oP, I

Coats, Ramesh, and Winestock (1977) derived the fully implicit equations for their steam model without conservative expansions of the accumulation terms. Although their equations do not conserve the material balance during iterations, they preserve it at con- vergence. Their method of obtaining the fully implicit iterative equation is applied here for the compressible fluid described by the implicit form of Eq. 7.12. This equation is written in a residual from at time level n + 1, i.e., all terms are placed on one side of the equation and the other side is zero. Each term at time level n + 1 in the resulting equa- tion is approximated by its value at the current iteration level v + 1, which in turn can be approximated by its value at the last iteration level v, plus a linear combination of the unknowns arising from partial differentiation with respect to all unknown pressures. The unknown quantities in the resulting equation are the changes over an iteration of all the unknown pressures in the original equation. The resulting fully implicit iterative equation for block n is

Page 326: Petroleum Reservoir Simulation a Basic Approach

300 Chapter 8 Linearization o f Flow Equations

(v) (v)

{T,,+I _pnn+l) n Z - Z n ) ] - @ + Z l,n +[(p/+l --Ytn( , . Z "-~'-[s% . . . . . lOp, 1

(v) (v) (~) (,, (v) 0T. [,,+1) ~ 0q,c ' [n+l

( T n + l n + l . n / z l,n / Z @ --{,e~.Z \ l,n -- [ (p?+l -- Pn ) - - • l , n ( l - - Zn )1 ~Pn - - 7 ~ ( 8 . 4 9 b )

(v) (v) n+l n+l (v) (v) (v)

d q , ~ Vb ~) • ~ (~ (n+ll) = - - { Z T'n+l . . . . l n+l n " + " ( ), I P, ,,n [(Pl --P, ) - Y t , , ( Z z - Z )]

dPn a At -~g l~v°

(v) (v) Vb ~ (v) ~ ) +~-" q,+, + ,+, ,, r ( 5v ) n + l - - ( ~ - - ) n n ] } . L.~ sq, n qSC n ( ~ c ] ~ t L - B g : n g

Eq. 8.49b is similar to Eq. 8.49a with two exceptions that are related to the accumulation term. First, while Eq. 8.49a preserves material balance at every current iteration, Eq. 8.49b

preserves material balance only at convergence. Second, the term (-~---), in Eq. 8.49a rep- g

resents the chord slope that results from a conservative expansion, whereas the term (v)

(-2-), in Eq. 8.49b represents the slope of ( ) , , both terms being evaluated at last D g

Vb. ¢h (~) - - ' / ~ t n + l - - pn iteration level v. Third, the last term on the RHS of Eq. 8.49a, ( ) is , g ) o ( p . . ,

(v) replaced with V'o,, [(q~)n+l _( )n"l in Eq. 8.49b. For single-phase flow, where the

a At ~ ' B "" g

accumulation term is a function of pressure only, these two terms are equal because both represent the accumulation term evaluated at the last iteration.

The next set of examples demonstrates the mechanics of implementing the explicit method, simple iteration method, and fully implicit method of linearization in solving the equations for single-well simulation. It should be noted that the simple iteration and fully implicit methods produce close results because, contrary to the explicit method, the trans- missibility in both methods is updated every iteration. All methods in this problem show the same convergence property for a time step of one month because, over the pressure range 1515 to 4015 psia, the product p B is approximately a straight line having a small slope (--4.5x10 ~i cp-RB/scf-psi).

Example 8.1 Consider the reservoir described in Example 7.13, where a 6-in vertical well is drilled on 20-acre spacing in a natural gas reservoir. The reservoir is described by four gridblocks in the radial direction as shown in Figure 8-2. The reservoir is horizontal and has 30-ft net thickness and homogeneous and isotropic

Page 327: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 301

rock properties with k = 15 md and q) = O. 13. Initially, reservoir pressure is

4015 psia. Table 8-1 presents gas FVF and viscosity dependence on pressure. The external reservoir boundaries are sealed to fluid flow. Let the well produce with a FBHP of 1515 psia. Find the pressure distribution in the reservoir after one month (30.42 days) using a single time step. Solve the problem using the implicit formulation with the explicit transmissibility method of linearization and present the simulation results up to six months.

= 1515 psia Pwf 1

I ", I I 1"1" I % re

i ~ r

Figure 8-2 DiscreUzed 1D reservoir in Example 8.1.

Solution

Gridblock locations, bulk volumes, and geometric factors in the radial direction are calculated in exactly the same way as in Example 7.12. The results are presented in Table 8-2.

For single-well simulation in a horizontal reservoir ( Z = constant) with no-flow

boundaries ( y__, qn+l = 0 ), the implicit flow equation with explicit transmissibility is SCI,n

obta ined from Eq. 8.41. For gridblock n with a well operat ing under a specif ied

FBHP,

) . ] P . t~..Pt l,. +---~-". t - : - -L +Gw ( . .+1

1 . . v~o , ~ , , °

For gridblock n without a well,

(8.50a)

Page 328: Petroleum Reservoir Simulation a Basic Approach

302 Chapter 8 Linearization of Flow Equations

Table 8-1 Gas FVF and Viscosi ty in Example 8.1

Pressure (psia) GFVF (RB/scf) Gas Viscosity (cp)

215.00 0.016654 0.0126

415.00 0.008141 0.0129

615.00 0.005371 0.0132

815.00 0.003956 0.0135

1015.00 0.003114 0.0138

1215.00 0.002544 0.0143

1415.00 0.002149 0.0147

1615.00 0.001857 0.0152

1815.00 0.001630 0.0156

2015.00 0.001459 0.0161

2215.00 0.001318 0.0167

2415.00 0.001201 0.0173

2615.00 0.001109 0.0180

2815.00 0.001032 0.0186

3015.00 0.000972 0.0192

3215.00 0.000922 0.0198

3415.00 0.000878 0.0204

3615.00 0.000840 0.0211

3815.00 0.000808 0.0217

4015.00 0.000779 0.0223

Table 8 - 2 Gr idblock Locat ions, Bulk Volumes, and Geomet r ic Factors

n i 5 (~) G~ .... (RB-cp/D-psi) Vb ° (if3)

1 1 0.5611 1,6655557 340,59522

2 2 3,8014 1.6655557 15631.859

3 3 25.7532 1.6655557 717435.23

4 4 174.4683 1.6655557 25402604

Page 329: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 303

(v+l) (v+l) Xr." vbn .4, . . . . , v , ,,nP, z, + ~ c A t t ~ ) , ] p " - a - - - ~ t ~ ) , p . {8.50b)

lemon le~.

The gas in this reservoir flows toward the well in gridblock 1. Therefore, gridblock 4 is upstream to gridblock 3, gridblock 3 is upstream to gridblock 2, and gridblock 2 is upstream to gridblock 1. In solving this problem, we use upstream weighting (Section 8.4.1.1) of the pressure dependent terms in transmissibility.

First t ime step calculat ions ( n = 0 , tn+ 1 = 30.42 days, and At = 30.42 days)

Assign Pl = P" " " 2 = P3 = P4 = Pin = 4015 psia.

(v)

For the first iteration ( v = 0 ), a s s u m e pn+ l = pn = 4015 psia for n = 1,2,3,4. In

addition, we estimate " B "" between p, and p, - e where e = 1 psi. Table 8-3

presents the estimated values of the FVF and viscosity using linear interpolation

q~, vb ¢, , within table entries, chord slope (~---),, and ° ( ~ - ) , for all gridblocks at the

g acAt g

first iteration. Note that at p = 4014 psia, Bg = 0.00077914 RB/scf and

ktg = 0.0222970 cp. For example, for gridblock 1,

c~.~2, ~ ° 0.13 0.13

( ~ ' = "~ '~ - (~)~ - ( 0 " 0 0 0 7 7 9 1 4 ) - ( 0 " 0 0 0 7 7 9 ) = 0 . 0 3 1 0 5 6 7 " Bg .'1 p~+~ _ p~ 4 0 1 4 - 4015

Vb 1 q~ , = 3 4 0 . 5 9 5 2 2 × 0 . 0 3 1 0 5 6 7 = 0 . 0 6 1 9 3 2 3

acAt (Bg)l 5 . 6 1 4 5 8 3 X 30 .42

1 1 Tr2n 2 T~I2 2 * ,t = = G r l ,/2 ( )2 = 1 .6655557 X ( 0 . 0 2 2 3 0 0 0 × 0 . 0 0 0 7 7 9 0 0 ) =

95877 .5281

for upstream weighting of transmissibility.

In addition, for the production well in wellblock 1, Gw, is calculated using

Eq. 6.10a, yielding

2 × ~ x 0 . 0 0 1 1 2 7 x 1 5 x 3 0 Gw, = 10ge(0"561110"25) -- 3 . 9 4 1 5 7 2

1 . 1 Gw, (~-~)1 = 3 . 9 4 1 5 7 2 x ( 0 . 0 2 2 3 0 0 0 x 0 . 0 0 0 7 7 9 0 0 .) = 2 2 6 8 9 6 . 1 6 scf /D-ps i .

Page 330: Petroleum Reservoir Simulation a Basic Approach

304 Chapter 8 Linearization of Flow Equations

Therefore, T" 2 = T.Tz. = T" = 95877.5281 scf/D-psi. Note also that T" = T" rl'2 3 r3'4 4 rL~ r", t "

For gridblock 1, n = 1 and go I = {2 } . Therefore, Eq. 8.50a becomes

-[T2",,12 +---~(~-)l +t_r (~)1 ]Pl + T;",,I 2 P2 Bg ( 1 . . Vb, . ~ b . .

= - G w I B-~)l Pwfl t--~g )l Pl " ac At

Substitution of the va lues in this equat ion gives

(8.51)

(v+l) (v+l)

- [ 9 5 8 7 7 . 5 2 8 1 + 0.0619323 + 226896 .16]P l +1 + 95877.5281P2 +~

= - 2 2 6 8 9 6 . 1 6 x 1515 - 0 .0619323 x 4015

or after simplification,

(v+l) (v+l)

-322773 .749p l "+1 + 95877.5281p~ '+1 = -343747929 . (8.52)

For gridblock 2, n = 2 and ~2 = {1,3} . Therefore, Eq. 8.50b becomes

(v+l) V~ //~ (v+l) (v+l)

°122 pc+'- <°1,: 2 +T;I 1 p2 + T:I p "+',23 3 - -

Substitution of the values in this equation gives

~ i ( ~ xP n

a At ~,~-g )2P2. (8.53)

(v+l) (v+l)

95877.528 l P l < - [95877.5281 + 95877.5281 + 2.84243[P2 +1 (v+l)

+95877.5281p2 +1 = -2 .84243 x 4015

or after simplification,

(v+l) (v+l) (v+l)

95877.5281Pl '< - 191757.899P2 +1 + 95877.5281p2 ÷1 = - 1 1 4 1 2 . 3 4 9 6 (8.54)

For gridblock 3, n = 3 and ga 3 = {2 ,4 } . Therefore, Eq. 8.50b becomes

r2~' -[T2,33 4 acat 15g 3 2 +T~,3 * ~ t - ~ - - ) 3 1 P 3 +T~,34P4

Substitution of the values in this equation gives

~ 1 ~ xP n

a c At (ff-g)3 P 3 • (8.55)

(v+l) (v+l) (v+t)

95877.5281P2 < - [95877.5281 + 95877.5281 + 130.455]P3 +1 + 95877.528 lP4 +1

= -130 .455 x 4015

or after simplification,

Page 331: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 305

Table 8 -3 Est imated Gridblock FVF, Viscosity, and Chord Slope at Old I terat ion v = 0

Block ~°~ n+l P.

n (psia)

1

2

3

4

B g

(RB/scf)

~ g

(cp)

4015 0.00077900 0.0223000

4015 0.00077900 0.0223000

4015 0.00077900 0.0223000

(0 / 8 ): Vbn / (~ x t

0.0310567 0.0619323

0.0310567 2.84243

0.0310567 130.455

4015 0.00077900 0.0223000 0.0310567 4619.10

(v+l) (v+l) (v+l)

95877.5281P2 "+1 - 191885.51 lP "+13 + 95877"5281p~ +1 = -523777 .862 (8.56)

For gridblock 4, n = 4 and ~O 4 = {3} . Therefore, Eq. 8.50b becomes

(v+l) V, .4~ (v+l) .n . l b4 . ~ / / . . . . + 1 _ P3 +1 -- [T3,4 + - - (,-'U-)4 JP4 7"3'4 4 4 a At /~g

Substitution of the va lues in this equat ion gives

W b 4 e ~ ) \ ! n

acAt t-~g )4 P4" (8.57)

(v+l) (v+l)

95877.528 lP2 +1 - [95877.5281 + 4619. lO]P4 ÷1 = - 4 6 1 9 . 1 0 X 4015

or after simplification,

(v+l) (v+l)

95877.5281P3 +1 -100496 .6251P4 +~ = - 1 8 5 4 5 6 7 6 . 2 (8.58)

The results of solving Eqs. 8.52, 8.54, 8.56, and 8.58 for the unknown pressures (t) (1) (1)

are p~,+l = 1559.88 psia, p~+l= 1666.08 psia, P"+~=3 1772.22 psia, and

(1) n+l P4 = 1875.30 psia.

~1~ to estimate the values of FVF in For the second iteration ( v = 1 ), we use p,+~

(¢--v vb 0 , order to estimate chord s l o p e . , and " ( ~ ) , for gridblock n. Table 8-4

a cAt Bg

lists these values. For example, for gridblock 1,

t ~ A ; ] ~ , 0.13 0.13

• _ ,B,1 - ( ~ ) 1 ( 0 . 0 0 1 9 3 7 5 ) - ( 0 . 0 0 0 7 7 9 0 0 0 ) - 0.0406428 (B g ) I - - ~ 1 5 5 9 . 8 8 - 4 0 1 5 p~+l_p~

Page 332: Petroleum Reservoir Simulation a Basic Approach

306 Chapter 8 Linearization o f Flow Equations

T a b l e 8 - 4 E s t i m a t e d G r i d b l o c k FVF a n d Chord S l o p e a t Old I t e r a t i o n v = l

Block n

(1) n + l

P. (psia)

(t)

nn+l gn

(RB/scf) (~ / B )"

1 1559.88 0.0019375 0.0406428 0.0810486

2 1666.08 0.0017990 0.0402820 3.68676

3 1772.22 0.0016786 0.0398760 167.501

4 1875.30 0.0015784 0.0395013 5875.07

Vb, , ~ , , 3 4 0 . 5 9 5 2 2 x 0 . 0 4 0 6 4 2 8 = 0 .0810486 aTA7 ~'B-g )1= 5.614583 x 30.42

Note that for the explicit transmissibility treatment,

1 . T"r,2 2 = T"r2, 3 = T~,, 4 = 95877.5281 scf/D-psi and Gw, ( ~ ) ~ = 226896.16 scf/D-psi

for all iterations.

For gridblock 1, n = 1. Substitution of the values in Eq. 8.51 gives

(v+l) (v+l)

- [95877 .5281 + 0 .0810486 + 226896.16]p~ +1 + 95877.528 lp~ +1

= - 2 2 6 8 9 6 . 1 6 x 1515 - 0 .0810486 x 4015

or after simplification,

(v+D (v+t)

-322773.768p] ÷1 + 95877.5281p~ ÷1 = -343748006 . (8.59)

For gridblock 2, n = 2 . Substitution of the values in Eq. 8.53 gives

(v+l) (v+l)

95877.5281Pl +1 - [95877 .5281+ 95877 .5281+ 3.68676]p~ +1 (v+l)

+ 9 5 8 7 7 . 5 2 8 l p 3 ÷1 = - 3 . 6 8 6 7 6 x 4015

or after simplification,

(v+l) (v+l) (v+D

95877.5281p~ "+~ - 191758.743p~ +1 + 95877.5281p3 +1 -- - 14802 .3438 (8.60)

For gridblock 3, n = 3 . Substitution of the values in Eq. 8.55 gives

Page 333: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 307

(v+l) (v+l)

95877.5281p2 +l - [95877.5281+ 95877.5281+ 167.501]P3 "÷1 (v+l)

+ 9 5 8 7 7 . 5 2 8 l P 4 +1 = -167.501 x 4015

or after simplification,

(v+l) (v+l) (v+l)

95877.5281P2 +1 -191922.557P3 +1 +95877.5281p~ +1 =-672516 .495 (8.61)

For gridblock 4, n = 4 . Substitution of the values in Eq. 8.57 gives

(v+t) (v+l)

9 5 8 7 7 . 5 2 8 l P 3 +1 - [95877.5281 + 5875.07]p2 +1 = -5875.07 X 4015

or after simplification,

(v+l) (r+l)

95877.5281P3 +~ - 101752.599p4 +] = -23588411.0 (8.62)

The results of solving Eqs. 8.59, 8.60, 8.61, and 8.62 for the unknown pressures (2) (2) (2)

are p~'+] = 1569.96 psia, p,+l=2 1700.03 psia, p3+~= 1830.00 psia, and

(2)

p4 +~ = 1956.16 psia. Iterations continue until the convergence criterion is satis-

fied. Table 8-5 shows the successive iterations for the first time step. Note that it took four iterations to converge. The convergence criterion was set as given by Eq. 7.179; i.e.,

(v+l) (v) n + l n + l

max P" ; / " l<-n<N

0.001. (8.63)

T a b l e 8 - 5 P r e s s u r e S o l u t i o n a t t.+ 1 = 30.42 D a y s for S u c c e s s i v e I t e r a t i o n s

v + l (v+l) (v+I) (v+l) (v+l) .+~ (psia) n + l (psia) n+~ (psia) ~+1 (psia)

Pl P2 P3 P4

4015.00 4015.00 4015.00 4015.00

1559.88 1666.08 1772.22 1875.30

1569.96 1700.03 1830.00 1956.16

1569.64 1698.94 1828.15 1953.57

1569.65 1698.98 1828.23 1953.68

Page 334: Petroleum Reservoir Simulation a Basic Approach

308 Chapter 8 Linearization o f Flow Equations

Table 8 - 6 Converged Pressure Solut ion and Gas Product ion at Var ious T imes

Cumulative Time p~,+l p~+l p~+l p4+1 qg.+l production n + l (day) v

(psia) (psia) (psia) (psia) (MMscf/D) (MMMscf)

1 30,42 4 1569.65 1698.98 1828.23 1953,68 -12.4003 -0,377217

2 60.84 3 1531,85 1569.07 1603.85 1636,31 -2,28961 -0,446867

3 91.26 3 1519.81 1530.96 1541.87 1552.37 -0.639629 -0.466324

4 121.68 2 1516.45 1519.88 1523.27 1526.58 -0.191978 -0.472164

5 152.10 2 1515.44 1516.49 1517.53 1518.55 -0.058311 -0.473938

6 182.52 2 1515.13 1515.45 1515.77 1516.09 -0.017769 -0.474478

After reaching convergence, the time is incremented by At = 30.42 days and the

above procedure is repeated. Table 8-6 shows the converged solutions at various times up to six months of simulation time.

Example 8.2 Consider the problem described in Example 8.1. Apply the simple iteration on transmissibility method to find the pressure distribution in the reservoir after one month (30.42 days) using a single time step. Present the simulation results up to six months.

Solution

Table 8-2 reports the gridblock locations, bulk volumes, and geometric factors in

the radial direction. For single-well simulation in a horizontal reservoir ( Z = con-

stant) with no-flow boundaries ( ~-~ q,+l = 0 ), the implicit flow equation with sCl,n

simple iteration on transmissibility is obtained from Eq. 8.44.

For gridblock n with a well operating under a specified FBHP,

Z T n + I n+l _ _ [ Z T n+l. gbn / ~ ) x p . w [ ~ ) n JPn l,. Pt t,. 'P ' - i f - k'~'-)n "[- ~ " .n+l. n+l t~. l~v. a c At l:;g °

= - 6 ~ (1--~ ~":' ° v~° . ¢,., °

"'B/z'" P~I. a At - - - t ~ ) . P . .

For gridblock n without a well,

( 8 . 6 4 a )

,T_,r "% ;;;~' [.T__, r "% \ " ~ " " %~ v~ . ,/,., . ,o p , - , n - " ~%--). p . ( 8 . 6 4 b ) ac At le~p. I~lp. %

As mentioned in Example 8.1, the gas in this resewoir flows toward the well in gridblock 1, gridblock 4 is upstream to gridblock 3, gridblock 3 is upstream to grid-

Page 335: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 309

block 2, and gridblock 2 is upstream to gridblock 1. In solving this problem, we use upstream weighting (Section 8.4.1.1) of the pressure dependent terms in trans- missibility.

First time step calculations ( n = 0 , tn+ l = 30.42 days, and At = 30.42 days)

(v)

For the first iteration ( v = 0 ), a s s u m e p ~ + l = p,~ = 4015 psia for n = 1,2,3,4.

Therefore, Gw, , # B , 1 = Gw, ( )1 = 226896.16 scf/D-psi and Tn+Is,,, = Tnr~.,, ' or

(0) 2 (0) 3 T n~°+)l more explicitly, T "+1 = T "÷~ = = 95877.5281 scf/D-psi. Consequently, r~.2 r2.3 g'~ 14

the equations for gddblocks 1,2, 3, and 4 are given by Eqs. 8.52, 8.54, 8.56, and (1)

8.58, respectively, and the unknown pressures are p~,+l = 1559.88 psia,

(1) (1) (1)

p"+~ = 1666.08 psia, p"+~ = 1772.22 psia, and p2 ÷~ = 1875.30 psia. 2 3

(1)

For the second iteration ( v = 1 ), we use pn+l to estimate the values of FVF, gas

viscosity, and chord slope ( ~ - ) , and then calculate acAt tff-g ), for gridblock n.

Table 8--7 lists these values in addition to the upstream value of interblock trans- (v)

missibility ( T n+l ). For example, for gddblock 1, Fn,n+]

~v~ 0.13 0.13

(~--); - (~)~'÷1 - ( ~ ) 1 7 ~ - (0"0019375)-(0"000779000)=0"04064281559.88_4015

Vb, ~b , = 3 4 0 . 5 9 5 2 2 × 0 . 0 4 0 6 4 2 8 _ 0 . 0 8 1 0 4 8 6

acAt (Bg)1 5.614583 X 30.42

(v) 2 (v)

Tn+l Tn+l 1 cv) = = G (__~,,+1 1 rl'2 r2'l [2 r, .... ,ktB,2 = 1.6655557x(0.0153022 X0.0017990 ) = 60502.0907

for upstream weighting of transmissibility. In addition, for the production well in wellblock 1,

Gw,( 1 ~+~1 1 =135065.6 ,ktB,l = 3.941572 × (0.01506220 x 0.00193748 )

For gridblock 1, n = 1 and ~01 = {2 } . Therefore, 8.64a becomes

Page 336: Petroleum Reservoir Simulation a Basic Approach

310 Chapter 8 Linearization o f Flow Equations

Table 8 -7 Est imated Gridblock FVF and Chord slope at Old I terat ion v = 1

Block ~, n+l P~

n (psia)

1

2

3

4

(t) nn+l

gn (RB/scf)

(1) n+l

fig.

(cp) (v) n+l T.+I rn,n+l (~ / G )"

Vb, ~ ,

a At (B--~ -)"

1559.88 0.0019375 0.0150622 60502.0907 0.0406428 0.0810486

1666.08 0.0017990 0.0153022 63956.9105 0.0402820 3.68676

1772.22 0.0016786 0.0155144 66993.0320 0.0398760 167.501

1875.30 0.0015784 0.0157508 0.0395013 5875.07

[ 21['2 % A t 1 '" " ( ' ' '" ' -- T, n+l Jr" wl5 (Bg'~-~-'~''Jl "t" I..rw,r'~ ( . ~ . ) 1 + 1 ] p l + l + T271, 12 p2+1

G " 1 .~+~ ,, Vbl . ¢ x , n - ~ [ ~ - h P l " = -- wt k - ~ ) l Pwfl

ac/Xt l:;g

Substitution of the values in this equation gives

(8.65)

(~+1) (v+l) -[60502.0907 + 0.0810486 + 135065.6]pl +1 + 60502.0907p~ <

= -135065.6 x 1515 - 0.0810486 x 4015

or after simplification,

(v+l) (v+t) -195567.739p~ ÷1 +60502.0907p~ ÷1 =-204624660 . ( 8 . 6 6 )

For gridblock 2, n = 2 and ~2 = {1,3}. Therefore, Eq. 8.64b becomes

Iv) 2 (v+l) [l,,f) 2 (v) 3 ~ P3(V+l) - T'"+I + T'"+I Vb~ ~ )2 IP2 + T '+I n+l _ T n+l n+l . q~ x,'a (r~ +11 ) 3,C2) [ 1,2 Pl 3,2 + a At 3

Substitution of the values in this equation gives

g b 2 z ~ xp n acAt t~-~-g)zP2. (8.67)

(v+l) (v+l) 60502.0907p( '+1 - [60502.0907 + 63956.9105 + 3.68676]p~ +1

(v+l) +63956.9105p~ '+1 = -3.68676 x 4015

or after simplification,

(v+t) (v+l) (v+l) 60502.0907Pl +1 - 124462.688p2 ÷1 +63956.9105p~ +1 = -14802.3438 (8.68)

For gridblock 3, n = 3 and ~'3 = {2 ,4} . Therefore, Eq. 8.64b becomes

Page 337: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 311

T.< p.+l _ _ [ T n + l + ~ n + l 3 . " r x t l n + l +Tn+l n + l - - 2 t ' 2 , 3 4,3 +--~'-~'~A,t~--)3JP3 4,3 P4

3

Substitution of the values in this equation gives

• b 3 / ~ ) x¢ n a ca t t~-g )3P3" (8.69)

(v+l) (v+l)

63956.9105p~ ÷1 - [63956.9105 + 66993.0320 + 167.501],o3 ÷~ (v+l)

+66993.0320p~ ÷1 = -167.501 x 4015

or after simplification,

(v+l) (~+1) (v+l)

63956.9105p~ ÷1 -131117.443P3 ÷1 +66993.0320P4 ÷1 = -672516 .495 (8.70)

For gridblock 4, n = 4 and Y'4 = {3} . Therefore, Eq. 8.64b becomes

(v) 4 (v+t) [ 3(v) 4 ,4 gb ¢'~ (v+t) - - T n + l 4 ~ " r x t ~ n + l T n+l p . < 3,4 3 + ----T-- [ - - ) 4 ]P4

a c At Bg

Substitution of the values in this equation gives

Vb4 i ( ~ \ t n t - - ) 4 P4" a cAt Bg

(8.71)

(v+l) (v+l)

66993.0320P3 < - [66993.0320 + 5875.07]p~ +1 = -5875.07 X 4015

or after simplification,

(v+l) (r+l)

66993.0320P3 +1 - 72868.1032p4 TM = -23588411.0 (8.72)

T a b l e 8 - 8 P r e s s u r e Solut ion a t tn+ 1 = 30.42 Days for S u c c e s s i v e I t e ra t ions

v + l

0

1

2

3

4

5

(r+l) (v+l) (v+l) (v+l) n + l n+ l n+ l n + l

Pl P2 P3 P4 (psia) (psia) (psia) (psia)

4015,00 4015,00 4015,00 4015,00

1559.88 1666.08 1772.22 1875.30

1599.52 1788.20 1966.57 2131.72

1597.28 1773.65 1937.34 2087.32

1597.54 1775.64 1941.60 2094.01

1597.51 1775.38 1941.02 2093.08

Page 338: Petroleum Reservoir Simulation a Basic Approach

312 Chapter 8 Linearization of Flow Equations

Table 8 - 9 Converged Pressure Solut ion and Gas Product ion at Var ious T imes

Time p~,+l p2÷l n + 1 (day) v

(psia) (psia)

1 30,42 5 1597,51 1775.38

2 60,84 3 1537,16 1588.10

3 91.26 3 1521.54 1536.87

4 121.68 2 1517.03 1521.84

5 152.10 2 1515.62 1517.10

6 182.52 2 1515.19 1515.64

pn+l n+l 3 P4

(psia) (psia)

1941.02 2093.08

1637,63 1685,01

1552,07 1566.82

1526,63 1531,31

1518,58 1520.02

1516.09 1516.54

,+1 Cumulative qgsc production

(MMscf/D) (MMMscf)

-11,3980 -0,346727

-2.95585 -0,436644

-0,863641 -0,462916

-0.268151 -0,471073

-0,082278 -0,473576

-0.025150 -0,474341

The results of solving Eqs. 8.66, 8.68, 8.70, and 8.72 for the unknown pressures (l) (1) (I)

are p~,+t = 1599.52 psia, p2+1_ - 1788.20 psia, p"+l = 1966.57 psia, and 3

(t)

p4 +1 = 2131.72 psia.

Iterations continue until the convergence criterion is satisfied. Table 8-8 shows the successive iterations for the first time step. Note that it took five iterations to converge. The convergence criterion was set as given by Eq. 8.63. After reaching

convergence, the time is incremented by At = 30.42 days and the above proce-

dure is repeated. Table 8-9 shows the converged solutions at various times up to six months of simulation time.

Example 8.3 Consider the problem described in Example 8.1. Apply Newton's iteration method to find the pressure distribution in the reservoir after one month (30.42 days) using a single time step, and present the simulation results up to six months.

Solution

Table 8-2 reports the gridblock locations, bulk volumes, and geometric factors in

the radial direction. For single-well simulation in a horizontal reservoir ( Z = con-

stant) with no-flow boundaries ( ~-" q,÷l = 0 ), the implicit flow equation with z . . . 1 sct , , ,

implicit transmissibility is obtained from Eq. 8.49a.

For gridblock n with a well operating under a specified FBHP,

Page 339: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 313

(v)

Z ,IT'n+'l,n I--'l, pln+l -- pn+l)n ~ }6P? +1 UPl

(~) (v)

(~) (~1 (~) r~T, I n÷l a a d In+l V~ .4- (,+1) __ {Z r T . + I . . + 1 - p:+l )_~._~,_n_ ] _ _ ~ + b,, . ~ . . . . . . 1

~,. - t P l - - t - - ) . j o p . ~v,. Op. ap. I ccc At Bg

= --{ Z r ' n + l " n+l n+lx_[_ n+l n n t,. tPz - P . ) q,~ - - - t ~ ) . t P . - P . ) } .

t~ . " acAt

For gridblock n without a well,

(v) (v)

(~) (v) (v) OT I n+l (v+l) (v) (v) (v) ~T n+l '~" {T~+I + (p ~+1 n+l )~£_~Z'~ [ } f~p"+l__{Z[Tn+l 'n+' ~+1- /.~ l,. l - P . l ' ' l ,n - (Pt - P . ) 3p n ]

Vb (v+~) (~) (v) (v) W~ gh (v)

Jr (7~c At" /'-~g)n' ~) x t.(~t~nn+l =--{EI~,w T'n+l/l'n [pln+l--pn+l)n -- V~cnA~ (~gg l)n (pnn+l -- pn n ) }.

As mentioned in Example 8.1, gridblock 4 is upstream to gridblock 3, gridblock 3 is upstream to gridblock 2, and gridblock 2 is upstream to gridblock 1. Upstream weighting of the pressure dependent terms in transmissibility is used.

First time step calculations ( n = 0 , t + 1 = 30.42 days, and At = 30.42 days)

(8.73a)

(8.73b)

(0)

For the first iteration ( v = 0 ), a s s u m e p~+i = p~ = 4015 psia for n = 1,2,3,4.

(o1

Consequently, T ÷ ] 2+1 = 95877.5281 for all gridblocks,

(0)

(o, (o, aT. I "÷~ Vb~ , ~ ,, (p;,+i _ p.+l ) ~'-~'" ] = 0 for all values of 1 and n, and acAt t f f - ) , is obtained as

n 0p, I

shown in Table 8-3.

(o)

d 1 1,+1 For wellblock 1, ~pp (~-~)1 = 2 .970747 ,

(0) 1 (0) (0) : i x n + l : n + l qn+lsq = -Gw, t - ~ ) l tP] -Pw~ )

1 = -3 .941572 x (0 .0223000 x 0 .0007790 ) x (4015 - 1515) = -567240397 ,

Page 340: Petroleum Reservoir Simulation a Basic Approach

314 Chapter 8 Linearization of Flow Equations

(0) (0)

,,+1 ~o> )'i +1 dqsq = - G [( 1-~V+I + d ( 1 (P1'I'+)1 - PwA)] dp, w'"l ~B'' V

1 = - 3 . 9 4 1 5 7 2 x [(0.0223000 x 0.0007790 ) + 2.970747 x (4015 - 1515)] = -256169 .692 .

In addition, the f low equation for gridblock n with a well (Eq. 8.73a) reduces to

(0)

(o) (1) (0) ---ldCIs c n+l Vh ~ (1) (o) (8.74a) T o + I ~ .+1 T . + I ~ o , , , - - n ~ n+l n+l

2~ ,,, op, - { Z ',, dp, +~Att- f f~) , l °P, =-q,c,, leg,. leg,.

and that for gridblock n without a well (Eq. 8.73b) reduces to

(0) (t) (0) V, I/. (l) Z T , + I t n + l _ { Z T n + l . . t - "b n / ~ t J x , . ( ~ n + l = 0 .

~,, op~ ~,, acAttBg),) p, leg,. leg,.

(8.74b)

For gridblock 1, n = 1 and Y)l = {2 } . Substitution of the relevant values in

Eq. 8.74a yields

(1) (1)

-{95877.5281 - ( -256169 .692) + 0.06193233} x dp~ ÷1 + 95877.5281 x 6p~ +1

= - ( - 5 6 7 2 4 0 3 9 7 )

or

(1) (1)

-352047 .281 ~ n+l XOPl + 9 5 8 7 7 . 5 2 8 1 x b p ~ +1 = 567240397 (8.75)

For gridblock 2, n = 2 and "~)2 = {1, 3} . Substitution of the relevant values in

Eq. 8.74b results in

(1) (I)

95877.5281 x g~p~+l + 95877.5281 x dp~+l (1)

-{95877.5281 + 95877.5281 + 2.842428} x dp~ +1 = 0

or (1) (t) (1)

95877.5281 x d p l +1 - 191757.899 x dp~ +1 + 95877.5281 x dp2 +1 = 0 (8.76)

For gridblock 3, n = 3 and Y)3 = {2, 4 } . Substitution of the relevant values in

Eq. 8.74b results in

(1) (1)

95877.5281 x g~p2 +1 + 95877.5281 x g~p4 +l (1)

-{95877.5281 + 95877 .5281+ 130.4553} x dp n+l = 0 3

or

Page 341: Petroleum Reservoir Simulation a Basic Approach

8.5 Linear ized F low Equat ions in Time 315

(1) (1) (I)

95877.5281 x dp~ +1 - 191885.511 x 6123 ÷1 + 95877.5281 x 6,o4 +1 = 0 (8.77)

For gridblock 4, n = 4 and '/'/)4 = {3} . Substitution of the relevant values in

Eq. 8.74b results in

(1) (1)

95877.5281 x 6p3 +1 - {95877.5281 + 4619.097} x 6p4 +1 = 0

o r

(1) (1)

95877 .5281x 6P "+x3 - 100496.626 x 6,o4 +~ = 0

The results of solving Eqs. 8.75 through 8.78 for the p re s su re c h a n g e over the

(l) (l) (1)

first iteration are 6p~ '+1 = -2179.03 , 6p "+12 = -2084.77 , ot93~ "+~ =-1990.57 and

(I) (1) (I)

alp4 +1 = - 1 8 9 9 . 0 8 . Therefore, p l ÷~ = 1835.97 psia, p~+l = 1930.23 psia,

(1) (1) n+l p 4 + l P3 = 2024.43 psia, and = 2115.92 psia.

(8.78)

For the second iteration ( v = 1 ), we use (1) n+l to estimate the values of FVF, gas

P.

viscosity, ( ~ ) " , ~ t-~g). , transmissibility and its derivative with respect to

block pressure. Table 8-10 lists these values.

For example, for gridblock 1,

/ , 0.13 0.13

+l+l +l (00016, 0 0039 6 9 1 8 3 5 . 9 7 - 4 0 1 5 p~+l _ p~

vb, (if_); acAt g

340.59522 ×0 .03957679

5.614583 ×30 .42 = 0 . 0 7 8 9 2 2 7 8 ,

(v) (v) Iv) (~yz+l 1

Tn+lr,,2 = T1,21~+1 = G,~+1,2 "~/B~2 = 1.6655557 x (0 .01588807 x 0 .00153148 .) = 68450 .4979 ,

(v) (v) (v)

2 = 0 , and 2 -- G~, ~ P P ( ~ ) 2 = 1 . 6 6 5 5 5 5 7 × 1 6 . 4 7 7 4 1 = 27.444044

for ups t ream weighting of transmissibili ly. In addition, for the production well in wellblock 1,

Page 342: Petroleum Reservoir Simulation a Basic Approach

316 Chapter 8 Linearization of Flow Equations

T a b l e 8 - 1 0 E s t i m a t e d G r i d b l o c k F u n c t i o n s a t O l d I t e r a t i o n v = 1

(I) (1)

p~< B ~+1 n g.

(psia) (RB/scf)

1 1835,97 0,00181207

2 1930.23 0,00153148

3 2024,43 0.00145235

4 2115,92 0.00138785

(1) n+l

fig. (cp)

(d?/ B " g), gbn i ~ xp

(v) tn+l

0.01565241 0.03957679 0.07892278 14.68929

0.01588807 0.03933064 3.599688 16.47741

0.01612828 0.03886858 163.2694 12.78223

0.01640276 0.03855058 5733.667 14.28023

(v) T [n+l (v)

n n+l T . + 1

n,n+l n

n

24.465831 66007.6163

27.444044 68450.4979

21.289516 71104.7736

23.784518 73164.3131

or

(v)

(~' 1 (v, (v, q,+l = - G t - ~ n + l ( p l +1 - Pwf~ )

,< w~ , / ,B ,~

1 = - 3 . 9 4 1 5 7 2 x ( 0 . 0 1 5 6 5 2 4 1 x 0 . 0 0 1 6 1 2 0 7 ) x (1835.97 - 1515) = - 5 0 1 3 7 3 3 0

(v) (v)

dq,c, 1 '"' d (p~,+l = - G r ( - - ~ " < + ( - Pw4 )]

d q < n+l - - - 3 . 9 4 1 5 7 2 1 dPl x [ ( 0 . 0 1 5 6 5 2 4 1 x 0 . 0 0 1 6 1 2 0 7 ) + 14 .68929 × (1835.97 - 1515)]

= - 1 7 4 9 7 1 . 4 .

For gr idb lock 1, n = 1 and 7al = { 2 } . Therefore, 8.73a becomes

(v) (v) -- ,n+l ( . ~v, (v, d I "+1

-[rl,2]n+'[2 z n+l _pl+l ) ( JTI ,2 q~, Vb, . d? . . . . '7,~-'; - - ' P 2 __- '~Pl 2 - - dP-7-Pl + a c A t ~ = ' 1 ] ° P l / ~ g

(v) -- ,n+l

n+l / n+l + + ~-P2 ]~ip

+ [ T I , 2 2 P 2 12

(v) (v) (v) (v) Vb~ / @ x~,. n{+)l n+l x + n+l - - - - n =-{v12 (p2 +' - p l q.c, acAtt ,tp, -p , )}.

Subst i tut ion of the va lues in Eq. 8.79 gives

(8.79)

(v+l)

- [ 6 8 4 5 0 . 4 9 7 9 - (1930.23 - 1835 .97) X 0 - ( - 1 7 4 7 9 1 . 4 ) + 0 .0789227816p l "+1 (v+l)

+ [ 6 8 4 5 0 . 4 9 7 9 + (1930.23 - 1835 .97) x 27 .44404416P2 +1

= - { 6 8 4 5 0 . 4 9 7 9 x (1930.23 - 1835 .97) + ( - 5 0 1 3 7 3 3 0 ) - 0 . 0 7 8 9 2 2 7 8 x (1835.97 - 4015) }.

Page 343: Petroleum Reservoir Simulation a Basic Approach

8.5 Linearized Flow Equations in Time 317

After simplification, the equation becomes

(v+l) (v+l)

- 2 4 3 2 4 2 . 0 2 4 x dp~ +1 + 71037 .4371x ~ "+~ op2 = 43684856.7 (8.80)

For gridblock 2, n = 2 and ~2 = {1,3} . Therefore, Eq. 8.73b becomes

(v) (v) (v) ~ T , In+l (v+l)

n+ l (v) I n + l - 1,2 - ~ n+l [TI2, 2 + (pl+I - P 2 ) - - ~ p l 2 lOP1

(v) (v)

_[T1,212n+1 (") __(pF+l __ 2 _~_~2 2 < ~ ' p~+~l) °~T],2 ,n+l + T3,213n+ltv) _ (P3 +ltv) --P2n(+)l ) ~P~2 13~T32' ,n+l

(v) (v) (v) (v) -- ,n+l (v+l)

gb2 , ~) . . . . (n+l I n+ l p2+1) OT3,z ](~p,,+l acAt . 3 ~P3 3

(v) (v) (v) (v) W~ ..k (v)

=-{[TI21~+I(P{~-'I--Pz T3,23 (p3+1-P2)] - - - ' - ' - 'C-[ , ' -E-)2[ ,P2 - P 2 ) } " n + l ) . . ] _ n+1 (r) n + l ~ b2 z ~ \ r e n+l n

' acAt 15g

In the above equation,

(8.81)

T .~+', n'+~ + ~__1_1 ~.~+] 1 2 = T3,g 3 = G,2 ,,2,/~B,3 = 1.6655557 x (0 .01612828 x 0.00145235 ) = 71104.7736,

(v) (v) (v)

OT3.2.~ n+I ~)T32' n+l d 1 I "+1 OP2 3 = 0, and 0P3 3 = Gr:+m V ( ~ - B ) 3 = 1 . 6 6 5 5 5 5 7 x 1 2 . 7 8 2 2 3 = 21.289516.

Substitution of these values in Eq. 8.81 gives

(v+l)

[68450.4979 + (1835.97 - 1930.23) x O]6p~ +1 - [68450.4979 - (1835.97 - 1930.23) (v+l) n+l x27 .444044 + 71104.7736 - (2024.43 - 1930.23) x 0 + 3 .599688]dp 2

(v+l)

+[71104.7736 + (2024.43 - 1930.23) x 21.28951616P3 +1

-- -{ [68450.4979 x (1835.97 - 1930.23) + 71104.7736 x (2024.43 - 1930.23)]

- 3 .599688 X ( 1 9 3 0 . 2 3 - 4015)}

or after simplification,

<p+l) (p+l) (v+l) 6 8 4 5 0 " 4 9 7 9 x d p ~ +1 - 1 4 2 1 4 5 " 8 1 0 x d p "+12 + 7 3 1 1 0 " 2 5 7 7 x d P 3 ÷1 = - 2 5 3 3 0 8 " 0 6 6 (8.82)

For gridblock 3, n = 3 and ~3 = {2, 4 } . Therefore, Eq. 8.73b becomes

Page 344: Petroleum Reservoir Simulation a Basic Approach

318 Chapter 8 Linearization of Flow Equations

(v)

(~) (v) ~ ' T 3 n + l ~ 2 %'1' n + l 3 ](~P2 + P2 - -P3 )

(v) (v)

I (~'n+l ( n(+)l __ p ~+'1) ~T2,3 'n+l -}- T4 3 n(+)l- (p~+)l --P~+'I) ~ n+l - [ T 2 3 3 -- P2

' oP3 13 , 4 P3 14 (v)

b3 / (// \ t 3~ n+l n+l n+l +-----:- t-z-)3 loP3 + [T4,3 4 + (P2+' - P3 ) 3p 4 4 P4 a At l~g

(v) (~) (~) (v) (v) V , th (~) I I'+1 _ p n + l ) n+l (') n+lx. °3 . '~ff . . . . +1

= _{ [T233 (p ;+ l 3 -I- T4,34 (p4 +1 - P3 )] - - - - - 7 - 1 , ~ - ) 3 tP3 __pn)}3 ' a A t /~g

where

(8.83)

(r) (v) T n~+ll n+l G (l--~-~n+l 1 73164.3131,

r4,3 = T4,34 -- r3+~,2'-fln-'4 = 1.6655557 x (0 .01640276 x 0.00138785 ) =

(v) (v) (r) ~T4, 3 n+l ~T4, 3 ,.+1 d 1 ,+1 ~P3 14 = 0, and ~ P 4 4 = Gr3+"2~-~( )4 = 1.6655557X 14.28023 = 23.784518.

Substitution of these values in Eq. 8.83 gives

(v+I) ]71104.7736 + (1930.23 - 2024.43) X 0]dP2 +1 - [71104.7736 - (1930.23 - 2024.43)

(v+l) x21.289516 + 73164.3131 - (2115.92 - 2024.43) x 0 + 163.2694]dp3 +1

(v+l) +[73164.3131 + (2115.92 - 2024.43) x 23.784518]~P4 +1

= -{ [71104.7736 x (1930.23 - 2024.43) + 73164.3131 × (2115.92 - 2024.43)]

- 1 6 3 . 2 6 9 4 × (2024.43 - 4015) }.

After simplification, the equation becomes

(v+l) (v+l) (v+l) 71104.7736 X bp~ +1 - 146437.840 X bp3 +1 + 75340.4074 X bp2 +1 = - 3 2 0 8 4 6 . 3 9 4 (8.84)

For gridblock 4, n = 4 and ~4 = {3} . Therefore, Eq. 8.73b becomes

Page 345: Petroleum Reservoir Simulation a Basic Approach

8.6 Summary 319

(v) (v) (~) (v) ~)T I n+l (v+t)

n + l n + l - 3,4 3 £ n + l

[T3,4 , + ( p ; + l _ p 4 ) ~ - 3 4 ]oP3

(v)

(v) (,) aT3, 4 n+l n+l ( p n + l (") p4+1) Vb4 ~ q} . . . . ~;+~

- - - - + - - [ - Z ' - ) 4 ]oP4 -re,l, , a At "g

[Rq-1 ( p ( ~ ) l 71+1 \ ] 04 Z "t" . . . . . 1 - P4 )1 - - - - 7 - ~-7-h tP4 - P~ ) }. =-{ [T3,4 4 3 acAt l~g

(8.85)

Substitution of the values in Eq. 8.85 gives

(v+l)

[73164.3131 + (2024.43 - 2115.92) x O]6p~ +1 (v+l)

-[73164.3131 - (2024.43 - 2115.92) x 23.784518 + 5733.66716P4 '+1

= -{ [73164.3131 x (2024.43 - 2115.92)] - 5733.667 x (2115.92 - 4015)}.

After simplification, the equation becomes

(v+l) (v+l)

73164.3131 x 6p"+~ - 81074.0745 / 6p~ +1 = -4194735.68 3

The results of solving Eqs. 8.80, 8.82, 8.84, and 8.86 for the pressure change (2) (2)

over the second iteration are 6p~ '+1 = -221.97, 6p2 +1 = -145.08,

(2) (2) (2)

6p "+1 -77 .72 and ~ n+l = op4 =--18.40 Therefore, p~,+l =1614.00 psia, 3

(2) (2) (2) n+ l n+ l n + l P2 =1785.15 psia, P3 = 1946.71 psia, and P4 =2097.52 psi& Iterations

continue until the convergence criterion is satisfied. Table 8-11 shows the successive iterations for the first time step. As can be seen, it took four iterations to converge. The convergence criterion was set as given by Eq. 8.63. After

reaching convergence, the time is incremented by At = 30.42 days and the

above procedure is repeated. Table 8-12 shows the converged solutions at var- ious times up to six months of simulation time.

(8.86)

8.6 Summary The flow equation for an incompressible fluid (Eq. 8.1) is linear. The flow equation for a sl ightly compress ib le fluid has very weak nonl inear i ty caused by the product p B that appears in the interblock flow terms, fictitious well flow rate, and well production rate. This product can be assumed constant without introducing not iceable errors; hence, the f low equation for a slightly compressible fluid becomes linear (Eq. 8.9). The flow equation for a compress ib le f luid has weak nonl inear i ty , but it needs to be l inear ized. L inear iza t ion involves treatment in both space and time of the transmissibilities, well production rate, tic-

Page 346: Petroleum Reservoir Simulation a Basic Approach

320 Chapter 8 Linearization of Flow Equations

Table 8-11 Pressure Solut ion at t+l = 30.42 Days for Success ive I terat ions

(v+l) (v+l) (v+l) (v+l) n + l n + l n + l n + l

v + 1 Pl P2 P3 P4 (psia) (psia) (psia) (psia)

4015.00 4015.00 4015.00 4015.00

1835.97 1930.23 2024.43 2115.92

1614.00 1785.15 1946.71 2097.52

1597.65 1775.45 1941.04 2093.09

1597.51 1775.42 1941.09 2093.20

Table 8 - 1 2 Converged Pressure Solut ion and Gas Product ion at Var ious T imes

Time p~+l pn+l n+l n+l 2 P3 P4 n + 1 (day) v

(psia) (psia) (psia) (psia)

1 30.42 4 1597.51 1775.42 1941.09 2093.20

2 60.84 3 1537.18 1588.11 1637.66 1685.05

3 91.26 3 1521.54 1536.88 1552.08 1566.84

4 121.68 2 1517.04 1521.84 1526.63 1531.32

5 152.10 2 1515.63 1517.10 1518.58 1520.03

6 182.52 2 1515.19 1515.64 1516.10 1516.54

.+1 Cumulative q~c production

(MMsc~D) (MMMscf)

-11.3984 -0.346740

-2.95637 -0.436673

-0.863862 -0.462951

-0.268285 -0.471113

-0.082326 -0.473617

-0.025165 -0.474382

titious well flow rate, and coefficient of pressure in the accumulation term. Linearization of transmissibility in space uses any of the methods discussed in Section 8.4.1.1. In general, linearization in time of any nonlinear term can be accomplished using the explicit method, simple-iteration method, explicit transmissibility method, simple-iteration on transmissi- bility method, or fully implicit method. Section 8.4.1.2 presented linearization of transmis- sibility, Section 8.4.2 presented linearization of the well production rate, Section 8.4.3 presented linearization of fictitious well rates, and Section 8.4.4 presented linearization of the coefficient of pressure change in the accumulation term. The linearized flow equation is obtained by substituting the linearized terms in the flow equation. The linearized 1D flow equation for a compressible fluid is expressed as Eq. 8.34 for the explicit method, Eq. 8.37 for the simple-iteration method, Eq. 8.40 for the explicit transmissibility method, Eq. 8.43 for the simple iteration on transmissibility method, and Eq. 8.48 for the fully implicit method. The corresponding linearized flow equations for a compressible fluid in multiple dimensions are given by Eqs. 8.35, 8.38, 8.41, 8.44, and 8.49, respectively.

Page 347: Petroleum Reservoir Simulation a Basic Approach

8.7 Exercises 321

8.7

8-1

8-2

8-3

8-4

8-5

8-6

8-7

8-8

8-9

Exercises

Define the linearity of Eq. 8.1 by examining the various terms in the equation.

Define the linearity of Eq. 8.9 by examining the various terms in the equation.

Explain why Eq. 8.5 can be looked at as a nonlinear equation.

Explain why Eq. 8.11 is a nonlinear equation.

Examine Eq. 8.30, used for the linearization of the well production rate, and point out the differences between the explicit method (Eq. 8.30a) and the explicit transmissibility method (Eq. 8.30b).

Examine Eq. 8.31, used for the linearization of the well production rate, and point out the differences between the simple-iteration method (Eq. 8.31 a) and the simple iteration on transmissibility method (Eq. 8.3 lb).

Consider the one-dimensional, inclined reservoir shown in Figure 8-3. The reservoir is volumetric and homogeneous. The reservoir contains a production well located in gridblock 2. At the time of discovery (t = 0), fluids were in hydrodynamic equilibrium and the pressure of gridblock 2 was 3,000 psia. All gridblocks have Ax = 400 ft, w = 200 ft, h = 80 ft, k = 222 md, and q~ = 0.20. The well in gridblock 2 produces fluid at a rate

of 10 6 scf/D. Table 8-1 gives the gas FVF and viscosity. Gas density at standard conditions is 0.05343 lbm/ft 3. Estimate the initial pressure distribution in the reservoir. Find the well FBHP and pressure distribution in the system at fifty and one hundred days. Use the implicit formulation with the explicit transmissibility method.

Z

No-flow b

Figure 8-3

No-flow boundary

Z3=3500

Z2=3700

Z1=3900

Discretized 1D reservoir in Exercise 8-7.

Consider the 1D flow problem described in Exercise 8-7. Find the pressure distribution in the reservoir at fifty and one hundred days. Use the implicit formulation with the simple iteration on transrnissibility method.

Consider the 1D flow problem described in Exercise 8-7. Find the pressure distribution in the reservoir at fifty and one hundred days. Use the implicit formulation with the fully implicit method.

Page 348: Petroleum Reservoir Simulation a Basic Approach

322 Chapter 8 Linearization of Flow Equations

8-10 A vertical well is drilled on 16-acre spacing in a natural gas reservoir. The reservoir is described by four gridpoints in the radial direction as shown in Figure 8-4. The reservoir is horizontal and has 20-ft net thickness and homogeneous and isotropic rock properties with k = 10 md and ~b = 0.13. Initially, reservoir pressure is 3015 psia. Table 8-1 presents the gas FVF and viscosity dependence on pressure. The external reservoir boundaries are sealed to fluid flow. Well diameter is 6 in. The well produces under a constant FBHP of 2015 psia. Find the pressure distribution in the reservoir every month (30.42 days) for two months. Take time steps of 30.42 days. Use the implicit formulation with the explicit transmissibility method.

Pwfl = 2015 psia

r boundary

8-11

8-12

8-13

!0 ff

[o-flow boundary

T No-flow boundary

~r

Figure 8-4 Discretized reservoir in Exercise 8-10.

Consider the single-well simulation problem presented in Exercise 8-10. Find the pressure distribution in the reservoir at one and two months. Use the implicit formulation with the simple iteration on transmissibility method.

Consider the single-well simulation problem presented in Exercise 8-10. Find the pressure distribution in the reservoir at one and two months. Use the implicit formulation with the fully implicit method.

Consider the 2D single-phase flow of natural gas taking place in the horizontal, homogeneous reservoir shown in Figure 8-5. The external reservoir boundaries are sealed to fluid flow. Gridblock properties are

Ax = Ay = 1000 ft, h = 25 ft, and k x = ky = 20 md and q~ = 0.12. Initially,

reservoir pressure is 4015 psia. Table 8-1 presents the gas FVF and viscosity dependence on pressure. The well in gridblock 1 produces gas at a rate of

1 0 6 scf/D. Well diameter is 6 in. Find the pressure distribution in the reservoir and the FBHP of the well every month (30.42 days) for two months. Check the material balance every time step. Use the implicit formulation with the explicit transmissibility method. Observe symmetry and take time steps of 30.42 days.

Page 349: Petroleum Reservoir Simulation a Basic Approach

8.7 Exercises 323

8-14

8-15

8-16

Figure 8-5 Discretized 2D reservoir in Exercise 8-13.

Consider the 2D flow problem described in Exercise 8-13. Find the pressure distribution in the reservoir and the FBHP of the well at one and two months. Check the material balance every time step. Use the implicit formulation with the simple iteration on transmissibility method.

Consider the 2D flow problem described in Exercise 8-13. Find the pressure distribution in the reservoir and the FBHP of the well at one and two months. Check the material balance every time step. Use the implicit formulation with the fully implicit method.

Derive Eq. 8.49b, that represents the fully implicit equation without conservative expansion of accumulation term for compressible fluid, using the method of Coats, Ramesh, and Winestock (1977) as outlined in the text.

Page 350: Petroleum Reservoir Simulation a Basic Approach

Chapter 9

Methods of Solution of Linear Equations

9.1 Introduction

The reservoir was discretized into gridblocks in Chapter 4 and gridpoints in Chapter 5. These chapters demonstrated the flow equation for a general block, while incorporating the boundary conditions into the flow equation. Chapter 6 presented the well production rates. The resulting flow equation is either linear (incompressible fluid and slightly com- pressible fluid) or nonlinear (compressible fluid). Chapter 8 presented the linearization of a nonlinear flow equation. What remains is to write the linearized flow equation for each gridblock (or gridpoint) in the reservoir and solve the resulting set of linear equations. These tasks are the focus of this chapter. Linear equations can be solved using either direct or iterative methods. We restrict our discussion in this chapter to basic solution methods of both categories and present their application to ID, 2D, and 3D flow problems. The objec- tive here is to introduce the reader to the mechanics of the basic methods of solution for linear equations of the form

IAI~ = 3 (9.1)

where [A] = square coefficient matrix, 2 = vector of unknowns, and d = vector of known values.

9.2 Direct Solution Methods

The direct solution methods are characterized by their capacity to produce the solution vector for a given system of linear equations after a fixed number of operations. Direct solution methods not only require storing the information contained in the coefficient matrix [A] and the known vector d , but they suffer from an accumulation of round-off errors that occur during computations. In the following sections, we discuss methods such as Thomas' algorithm and Tang's algorithm, which are used for 1D flow problems, and the g-band algorithm, which is used for 1D, 2D, or 3D flow problems. These algorithms are based on the LU factorization of the coefficient matrix (i.e., IAI = ILI[UI ).

9.2.1 1D Rectangular or Radial Flow Problems (Thomas' Algorithm)

This algorithm is applicable for a reservoir where flow takes place in the x direction in rectangular flow problems, as shown in Figure 9-1a, or in the r direction in radial flow problems, as shown in Figure 9-lb. In other words, there is one row of blocks arranged

along a line (with N -- n x or N = n r ).

325

Page 351: Petroleum Reservoir Simulation a Basic Approach

326 C h a p t e r 9 M e t h o d s o f S o l u t i o n o f L i n e a r E q u a t i o n s

2

(a) 1D linear flow in x-direction.

(b) 1D radial flow in r-direction.

nx-1 I nx I

(c) 1D tangential flow in 0-direction.

Figure 9-1 Types of 1D flow problems.

The equation for the first b lock ( i = 1 ) has the form

ClX 1 + e l x 2 = d 1

because block 1 falls on the reservoir west boundary.

The equation for interior blocks i = 2, 3 ..... N - 1 has the form

W i Xi_ 1 -]- C i X i "~ e i Xi+l =

The equation for the last block ( i = N ) has the form

(9.2a)

(9.2b)

T . . . . . Pi-1 - [ T .... + T ..... ]pi + T ..... p,+l (9.3)

= [T .... V,_,/2 (Zi_l - Z i ) + T + , , 2 y , + I / 2 ( Z , + 1 - Z , ) l - q s c .

This equation has the form of Eq. 9.2b with the unknowns Pi-1 , P i , and p~+~ ; the coeffi-

c i e n t s w ~ = T .... , c i = - [ T ..... + T ..... ] , a n d e ~ = T .... ; a n d t h e k n o w n R H S

d~ = [T~_l,27,_I/2(Z~_ 1 - Z ~ ) + T ..... 7 ,+, /2(Z~+1-Zi)]-qsc ' • I f we c o n s i d e r Eq. 8.10b for

WNXN_ 1 + CNX u = d s (9.2c)

because block N falls on the reservoir east boundary.

Inspection of Eq. 9.2 reveals that c i is the coefficient of the unknown for b lock i (the center block), the block for which the flow equation is written, w i is the coefficient of the unknown for neighbor ing b lock i - 1 (the west block), and e i is the coeff ic ient of the unknown for neighboring block i + 1 (the east block). The known RHS of the flow equa- tion for b lock i is d i . Consider Eq. 8.2b for the f low of an incompress ible fluid. This equation can be rewritten as

Page 352: Petroleum Reservoir Simulation a Basic Approach

9.2 Direct Solution Methods 327

the flow of a slightly compressible fluid and assume the well production rate is specified (say, q,+l sc, -- q~ps~, ), then we obtain

. . . . . i l - [ T .... + T ..... -~ ~ B O - A t ]Pc + T ..... pT++~ 1

= T ..... ~ i _ a / 2 ( Z i _ I - Z ~ ) + T ..... e ~ + , 2 ( z , + l - z , ) - q ~ s c , a BOAt PT.

(9.4)

The unknowns in Eq. 9.4 are pn+~ p.+J a n d pn+l . the coeff ic ients are wi = T ,,~ i - 1 ' i ~ i + 1 ~ i '

ci = - [ T ~,~ + T + Vb'q)~(c+%)] , and e~ = T .... ; and the known RHS is ,- ~,+,,~ a B°At

d i = T . . . . ~ i 1 , 2 ( Z i - 1 - Z i ) l - T x . . . . . ~ i + l ' 2 ( Z i + l - Z , ) - q ~ p s c , Vb'~I(C:C~')P? " + a cB At

In either case, block 1 does not have coefficient w~ and block N does not have coefficient e N because these b locks are boundary blocks. Depending on the boundary condi t ion

specification, its effects are embedded in d~ and c i for boundary gridblocks (see Section

4.4) and in d i , c i , and w i or e i for boundary gridpoints (see Section 5.4).

The set of N equations expressed by Eq. 9.2 can be written in a matrix form as

W N - 1 C N - 1 e N _ 1 X N - 1

W N C N _ _ XN

C 1 e 1

w 2 c 2 e 2

xl d 1

X 2 d 2

du_l

_ d u

(9.5)

The matrix in Eq. 9.5 is called a t r idiagonal matrix. This matr ix equation can be solved using Thomas ' algorithm. Thomas ' algorithm is nothing more than an efficient procedure to solve a tridiagonal matrix equation (Eq. 9.5) through matrix factorization into lower [L] and upper [U] triangular matrices (Aziz and Settari 1979). In addition, we do not have to store the whole matrix. Instead, it is sufficient to store four vectors ( w , c , e , and ~ ) of dimension N in order to store all information contained in Eq. 9.5. Thomas ' algori thm is executed in two major steps that require the creation of two more vectors ( ~ and ~ ) of dimension N. The two major steps are the forward solution and the backward solution.

Forward solution

e 1 Set u 1 = - (9.6)

C 1

Page 353: Petroleum Reservoir Simulation a Basic Approach

328 C h a p t e r 9 M e t h o d s o f So lu t ion o f L i n e a r E q u a t i o n s

d 1 and gl = - - (9.7)

C l

For i = 2 , 3 . . . N - 1 ,

e i u i - (9.8)

(c i - w iui_~ )

and for i = 2, 3 . . . N ,

di - - Wi g i - ] g i - - (9.9)

(C i -- W iu i_ 1 )

B a c k w a r d so lu t ion

Set x N = gN (9.10)

Fo r i = N - 1 , N - 2 ..... 3 , 2 , 1 ,

xi = gi - uixi+l (9.11)

The f o l l o w i n g e x a m p l e d e m o n s t r a t e s the a p p l i c a t i o n o f T h o m a s ' a l g o r i t h m to the equa-

t ions o f a 1D reservoi r .

Example 9.1 Example 7.1:

The fol lowing equat ions were obta ined for the 1D reservoir in

- 8 5 . 2 0 1 2 p l + 28 .4004p2 = - 2 2 7 2 0 3 . 2

28 .4004p l - 56 .8008p2 + 28.4004P3 = 0

28 .4004p2 - 56.8008P3 + 28 .4004p4 = 0

28 .4004p3 - 28 .4004P4 = 600

Solve these equations using Thomas' algorithm.

Solut ion

The first step is to calculate ul and g~ using Eqs. 9.6 and 9.7, yielding

u 1 = e I / c I = 2 8 . 4 0 0 4 / - 85 .2012 = - 0 . 3 3 3 3 3 3

g~ ~ d 1 / cl = - 2 2 7 2 0 3 . 2 / - 85 .2012 = 2666 .667

Then u 2 and u 3 are calculated in that order using Eq. 9.8, which gives

u 2 = e 2 / ( c 2 - w2u ~ ) = 28.4004/ [ -56.8008 - 28.4004 x (-0.333333)] = -0.600000

(9.12)

(9.13)

(9.14)

(9.15)

Page 354: Petroleum Reservoir Simulation a Basic Approach

9 .2 D i r e c t S o l u t i o n M e t h o d s 329

u 3 = e 3 / ( c 3 - w 3 u 2 ) = 2 8 .4 0 0 4 / [ -5 6 .8 0 0 8 - 28.4004 × ( -0 .600000)] = - 0 . 7 1 4 2 8 6

This is followed by calculating g2, g3 , and g4 in that order using Eq. 9.9,

resulting in

(d2 - w2 gl ) (0 - 28.4004 x 2666.667) g2 - - - - - - 1600.000

(c 2 - WzU 1) [ - 5 6 . 8 0 0 8 - 28.4004 × ( -0 .333333)]

g3 - - (d3 - w3 g2 ) (0 - 28.4004 x 1600.000)

- = 1142.857 (C 3 -- W 3 u 2 ) [ - 5 6 . 8 0 0 8 - 2 8 . 4 0 0 4 x ( -0 .600000)]

g 4 - - ( d 4 - W4 g3 ) (600 -- 28.4004 X 1142.857)

( q - W 4 ~ ) [ - 2 8 . 4 0 0 4 - 2 8 . 4 0 0 4 X ( - 0 . 7 1 4 2 8 6 ) ] = 3926.06

Then, x 4 = g4 is set according to Eq. 9.10, yielding x 4 = gn = 3929.06.

This is followed by calculating x 3 , x 2 , and x 1 in that order using Eq. 9.11,

which gives

X3 = g 3 - - U3 X4 = l 142.857 -- ( -0 .714286) × 3926.06 = 3947.18

X2 = gz - u2x3 - - 1600.000 - ( -0 .600000) x 3947.18 = 3968.31

Xl = gl - UlX2 = 2666.667 - ( -0 .333333) x 3968.31 = 3989.44

Table 9-1 shows the results of the calculations as outlined here. The solution vector given in the last column in Table 9-1 is [ 1 9944

~= x2 /3968.31/ x3 = / 3 9 4 7 . 1 8 /

x4 [3926.06_1

Therefore, the pressure solution of the set of equations in this example is

p~ = 3989.44 psia, P2 = 3968.31 psia, P3 = 3947.18 psia, and

(9.16)

P4 = 3 9 2 6 . 0 6 psia.

9.2.2 1D Tangen t i a l F low Prob lem (Tang 's A lgor i thm)

This algori thm is applicable when f low takes place only in the t~direction, i.e., there is one

row of blocks arranged in a circle as shown in Figure 9 - 1 c (with N = n o ). This is a 1D flow problem that results in equat ions similar in form to those g iven by Eq. 9.2b for a ID

rectangular flow problem.

Page 355: Petroleum Reservoir Simulation a Basic Approach

330 C h a p t e r 9 M e t h o d s o f So lu t ion o f L i n e a r E q u a t i o n s

Table 9-1 Use of Thomas ' Algor i thm to Solve the Equat ions of Example 9.1

W i

28.4004

28.4004

28.4004

C i

-85.2012

-56.8008

-56.8008

-28.4004

e i

28.4004

28.4004

28.4004

di

-227203.2

600

U i

-0.333333

-0.600000

-0.714286

gi

2666.667

1600.000

1142.857

3926.057

The equation for the first block ( i = 1 ) has the form

W 1X N "J¢- C 1X 1 + e 1 x2 = d 1

The equation for blocks i = 2, 3 ..... N - 1 has the form

WiXi 1 "]-CiXi +eixi+l = di

The equation for the last block ( i = N ) has the form

X i

3989.44

3968.31

3947.18

3926.06

(9.17a)

(9.17b)

WNXN_ 1 -1- CNX N "~ eNX 1 = d N (9.17c)

Note that Eqs. 9.17a and 9.17c have coefficients w 1 and e N , respectively, because in this flow problem blocks 1 and N are neighbors as shown in Figure 9-1c.

The set of N equations expressed by Eq. 9.17 can be written in a matrix form as

Cl el wl I xl - dl

W 2 C 2 e 2 X 2 d2

. . . . . . . . . . . . = "" (9.18)

WN-1 eN-1 eN-1 XN 1 du 1

eN W N CN _ XN _ _ dN

Tang (1969) presented the following algorithm for the solution of this matrix equation. As in Thomas' algorithm, this algorithm is based on LU matrix factorization. Here again, the solution is obtained in two major steps.

F o r w a r d so lu t ion

Set ~1 = 0 (9.19)

fll = -1 (9.20)

~'l = 0 (9.21)

Page 356: Petroleum Reservoir Simulation a Basic Approach

9.2 D i r e c t So lu t ion M e t h o d s 331

Set ~2 =--dl (9.22) e 1

~ 2 =--Cl (9.23) e 1

W 1 ~'2 = - - (9.24) e 1

For i = 2, 3...N - 1,

~i+1 Ci~ i ~- Wi~i_ 1 -- d i

e i

(9.25)

~i+1 = Ci~ i "~ W i ~ i _ 1

e i

(9.26)

~i+1 -- c i ~ i -~ wi~/ i_ 1

e i

(9.27)

B a c k w a r d so lu t ion

First, calculate

A - ~N (9.28) 1 q- ~,' N

B - f i N (9.29) l + y N

C - d N - WN~N- I ( 9 . 3 0 )

CN -- WN ~N-1

D - eN -- W N ~ N - 1 (9.31)

C N -- W N ~ N _ 1

Second, calculate the value of the first unknown ( x I ) and the value of the last unknown ( x N ) of the solution vector,

A - C Xl -- (9.32)

B - D

B C - A D XN - - - - (9.33)

B - D

Page 357: Petroleum Reservoir Simulation a Basic Approach

332 Chapter 9 Methods o f Solution o f Linear Equations

T h i r d , c a l c u l a t e t h e v a l u e o f t h e o t h e r u n k n o w n s o f t h e s o l u t i o n v e c t o r . F o r

i = 2 , 3 . . . N - 1 ,

Xi = ~ i - - ]~i Xl - - ' / i XN (9.34)

The next exa m p l e demons t ra t e s the appl ica t ion o f T a n g ' s a lgor i thm to solve the equat ions

o f a r ing- l ike 1D reservoir .

Example 9.2 Using Tang's algorithm, solve the following set of equations:

2.84004x 4 - 5 .68008x 1 + 2 .84004x 2 = 0

2 .84004x 1 - 8 .52012x 2 + 2 .84004x 3 = - 2 2 7 2 0 . 3 2

2 .84004x 2 - 5 .68008x 3 + 2 .84004x 4 = 0

2 .84004x 3 - 5 .680084x 4 + 2 .84004x 1 --= 600

Solution

The first step for the forward solution is to set ~1 = 0 , f l l = - 1 , and /̀~ = 0 ,

according to Eqs. 9.19 through 9.21, and then to calculate ~2, f l=, and '/2

using Eqs. 9.22, 9.23, and 9.24, which give

~2 = dl ~el = 0/2.84004 = 0 ,

~2 = Cl / el = --5.68008 / 2 .84004 = --2

'/2 = Wl / el = 2.84004 / 2 .84004 = 1

The next step is to calculate ~3 and ~4 using Eq. 9.25, ~3 and f14 using

Eq. 9.26, and '/3 and '/4 using Eq. 9.27, yielding

C2~2 -1- W2 ~1 -- d2 - 8 . 5 2 0 1 2 × 0 + 2.84004 × 0 - ( - 2 2 7 2 0 . 3 2 ) ~3 ~

e 2 2 . 8 4 0 0 4

c3~ 3 '1- W3~ 2 - d 3 - 5 . 6 8 0 0 8 × ( - 8 0 0 0 ) + 2.84004 × 0 - 0 ~ 4 -

e 3 2.84004

~3 --

= - 8 0 0 0

= - 1 6 0 0 0

c2fl 2 +w2fl ~ - 8 . 5 2 0 1 2 x ( - 2 ) + 2.84004 × ( -1 )

(9.35)

(9.36)

(9.37)

(9.38)

e 2 2.84004

f14 - c3fl3 + w3f12 - - 5 . 6 8 0 0 8 x ( - 5 ) + 2.84004 x ( - 2 ) _ -8

e~ 2.84004

Page 358: Petroleum Reservoir Simulation a Basic Approach

9 .2 D i r e c t S o l u t i o n M e t h o d s 333

C272 +W271 - -8 .52012 X 1 + 2 . 8 4 0 0 4 X 0 73 -- -- = 3

e z 2 . 8 4 0 0 4

C373 + W372 - -5 .68008 X 3 + 2 . 8 4 0 0 4 X 1 74 -- -- 5

e 3 2 . 8 4 0 0 4

T a b l e 9 - 2 s h o w s t h e r e su l t s of t h e c a l c u l a t i o n s a s ou t l ined h e r e . T h e fo rwa rd s u b - s t i tut ion is fo l lowed by t h e b a c k w a r d subs t i tu t ion s t e p , w h i c h invo lves ca lcu la t ing

A, B , C , a n d D us ing Eqs . 9 .28 t h r o u g h 9.31, resu l t ing in

A - m ~4 - - 1 6 0 0 0

1 + 7 4 1 + 5 - - - 2 6 6 6 . 6 6 7

B = m f14 - 8

1 + 7 , * 1 + 5 - - - 1 .33333

C - d4 - w 4 ~ 3 - 6 0 0 - 2 . 8 4 0 0 4 × ( - 8 0 0 0 ) = - 1 6 4 2 . 2 5 3

C4 -- W 4 7 3 - - 5 . 6 8 0 0 8 - - 2 . 8 4 0 0 4 x 3

D - e4 - - W 4 f 1 3 - - 2 . 8 4 0 0 4 - 2 . 8 4 0 0 4 × ( - 5 ) = - 1 . 2

C 4 -- W473 - -5 .68008 -- 2 . 8 4 0 0 4 × 3

calculating x 1 and x 4 using Eqs. 9.32 and 9.33, yielding

A - C - 2 6 6 6 . 6 6 7 - ( - 1 6 4 2 . 2 5 3 ) xl - - - - = 7 6 8 3 . 3 0

B - D - 1 . 3 3 3 3 3 - ( - 1 . 2 )

B C - A D _ - 1 . 3 3 3 3 3 x ( - 1 6 4 2 . 2 5 3 ) - ( - 2 6 6 6 . 6 6 7 ) x ( - 1 . 2 ) = 7 5 7 7 . 7 0 X 4 - - - -

B - D - 1 . 3 3 3 3 3 - ( - 1 . 2 )

and finally calculating x 2 and x 3 using Eq. 9.34 successively, which gives

x2 = ~2 - f l2x i - 72x4 = 0 - ( - 2 ) ( 7 6 8 3 . 3 0 ) - (1 ) (7577 .70) = 7 7 8 8 . 9 0

23 = ~3 - - ~ 3 Xl -- 73 X4 = - - 8 0 0 0 - - ( - - 5 ) ( 7 6 8 3 . 3 0 ) - - ( 3 ) ( 7 5 7 7 . 7 0 ) = 7 6 8 3 . 4 0

Therefore, the solution vector is

[1] x 2 = = 7 7 8 8 " 9 0 /

x 3 7 6 8 3 . 4 0 /

x 4 7 5 7 7 . 7 0 J

( 9 . 3 9 )

Page 359: Petroleum Reservoir Simulation a Basic Approach

334 Chapter 9 Methods o f Solution o f Linear Equations

T a b l e 9 - 2 U s e of T a n g ' s A l g o r i t h m to S o l v e t h e E q u a t i o n s of E x a m p l e 9 . 2

i w i C i e i di ~i f l , Vi

1 2.84004 -5.68008 2.84004 0 0 -1 0

2 2.84004 -8.52012 2.84004 -22720.32 0 -2 1

3 2.84004 -5.68008 2.84004 0 -8000 -5 3

4 2.84004 -5.68008 2.84004 600 -16000 -8 5

9.2.3 2D and 3D Flow Prob lems (Sparse Matr ices)

The linear equations for 2D and 3D flow problems can be obtained by (1) writing the flow equation using the CVFD method, (2) writing the definition of set q2 for block n in 2D or 3D, using Figure 3-1 for engineering notation of block identification or Figure 3-3 for natural ordering of blocks, as explained in Sections 3.2.1 and 3.2.2, and the definition of set ~, for block n, and (3) writing the flow equation in an expanded form. For example, we use Eq. 8.1 in step 1 for 3D flow of an incompressible fluid, yielding

2 T~,. [(p, - p. ) - y,,n (Z, - Z )l + Z q ...... + qs~. = 0 (9.40)

I f the reservoir has no-flow boundaries ( ~, = { } and as a result ~ q~<. = 0 for all

values of n) and if the wells have specified flow rates, Eq. 9.40 can be rearranged as

Z Tt,,,P, - ( 2 Tt.,,)P,, = Z Tt,,V,.,,(Z, - Z , ) l - q s ~ . (9.41)

In step 2, we define block n as a block in 3D space [ n = (i, j, k) ]. Accordingly, ~0 is given as in Figure 3-3c,

y2,, = y2i,j, k = { ( n - n x n y ) , ( n - n x ) , ( n - 1 ) , ( n + l ) , ( n + n x ) , ( n + n x n y ) } (9.42)

provided that the reservoir blocks are ordered using natural ordering, with the blocks ordered in the i direction, the j direction, and finally the k direction. Now Eq. 9.41 and the new definition of y2 given by Eq. 9.42 provide the sought equation.

In step 3, we expand Eq. 9.41 as

T ... . x,,p,, nx.. +Tn, n nxpn_n~ +Tn,n_lPn_ l + T +1p,+1 +T,, ..... P,+,x +T~,,,+,,x,,,P,,+,,~,,

- [Tn . . . . . . y -1"" Tn . . . . . -]- Tn,n-1 -]- Tn,n+l -]- Tn,n+nx ...I- T,n+nxny ]Pn = [ ( T y ) . . . . xn), ( gn-nxny - Zn ) (9.43)

+(Ty) . . . . ,,~ (Z,,_,, - Z,, ) + ( T y ) . . . . 1 (Zn 1 - - Zn ) "]- (TY),,,+I (Z,+l - Z ) +

(T'I.') . . . . . ~ (Z +,. - Z,, ) + ( r ) ' ) . . . . . ,, (Z +,,x," - Z,, )] - q,c.-

The unknown pressures in Eq. 9.43 are rearranged in the order shown in Figure 9-2, yielding

Page 360: Petroleum Reservoir Simulation a Basic Approach

9 . 2 D i r e c t S o l u t i o n M e t h o d s 335

Tn . . . . . . y P . . . . . ny + T . . . . . p._.x + T l P . - 1

- [ T n . . . . . . y ~- Tn . . . . ~ - T n , n - I - ~ - T , n + l "~- Tn . . . . -~- Tn . . . . . . y ] P n

+T,n+lPn+l + Tn . . . . xP.+.~ "]- Tn . . . . xnyP . . . . . y ( 9 . 4 4 )

= [(Tv) . . . . . . , ( Z . . . . . y - Z ) + ( T V) . . . . . ~ ( Z . . . . . - Z ) + ( T V) ..... , ( Z 1 - Z )

+ ( T v ) . . . . 1 (Zn+l -- Z ) + ( T v ) . . . . .x (Zn+nx - z n ) "~ ( T V ) . . . . "x"y (Z.+.x.y - Z )] - q~c,,"

Eq. 9.44 is the l inear equa t ion for 3D f low of an incompress ib le fluid. The unknowns in

this equa t i on are p . . . . . ~, Pn-.. , P._~, P . , P.+~, P.+.~ , and Pn+.~.~ • Eq. 9 .44 can be

expressed as

b x .~.~ + s x . . . . + w . x . _ 1 + c x + e x + 1 + n x + . ~ -t-anXn+n~ny =d. (9.45)

where

b = T ....... ~ : T ...... (9.46a)

s = T~n ~ - -T (9.46b) , - x YLj-1/2,k

w = T 1 = T (9.46c) , -- 1/23 k

e = Tn,n+ 1 = T x ...... j,k ( 9 . 4 6 d )

n n = T . . . . x =Ty,~ ...... (9.46e)

a = T . . . . x,y = Tz, j ...... (9.46f)

c n = - ( b n + s n + w n + e n + n + a n ) (9.46g)

d n = [(by)~ ( Z . . . . y - - Z n ) -~- ( $ 5 / ) n ( Z n _ n x - Z n ) + (W~Y)n ( Z n _ 1 - Z n ) (9.46h)

+(ey)n ( Z + 1 - Z ) + (nv)" (Z . . . . - Z,I ) + (a•)n ( Z . . . . . Y -- Z )] -- qs",,"

N

N Figure 9-2 Ordering of unknowns of neighboring blocks in flow equations.

Page 361: Petroleum Reservoir Simulation a Basic Approach

336 C h a p t e r 9 M e t h o d s o f S o l u t i o n o f L i n e a r E q u a t i o n s

If Eq. 9.45 is written for each b lock n = 1, 2,3 .... N where N = n x ny X n z in a rectan- gular reservoir, the matrix equation will have seven diagonals (a heptadiagonal coefficient matrix) as shown in Figure 9-3c. Fluid flow in a 2D reservoir ( b = a n = 0 ) with regular boundaries results in a matr ix equation with five diagonals (a pentadiagonal coefficient matr ix) as shown in Figure 9-3b . F lu id f low in a 1D reservoir ( b n = s n = n~ = a n = 0 )

results in a matr ix equat ion with three d iagonals (a t r id iagonal coef f ic ient matr ix) as shown in Figure 9-3a.

The solut ions of these matr ix equations can be obtained using a g-band matr ix solver. Such a solver is nothing more than Gaussian el iminat ion using L U factorization, which operates only on elements within the outermost bands of the sparse matrix. Zeroes outside the outermost bands are not operated on. The number of row (or column) elements within the outermost bands is called the bandwidth ( 2b w + 1 ), where b w -- 1 for 1D flow prob- lems, b w = n x for 2D flow problems, and b w = n x x ny for 3D flow problems as shown in Figure 9-3. The following algorithm is a g-band algorithm. The g-band algori thm is exe- cuted in three major steps: the ini t ial izat ion step, the forward e l iminat ion step, and the back substitution step.

I n i t i a l i z a t i o n s t e p

For i = 1, 2 , . . .N, set

for j : J m i n ' Jm~ + 1,...Jmax "

F o r w a r d e l i m i n a t i o n s t e p

For i = 1, 2 , . . .N , set

for j = i , i + l , . . . J m a x , and

d~ °) = d/ (9.47)

Jmin : max(l , i - b w ) (9.48a)

Jm,x = min(i + bw, N ) (9.48b)

a (°) (9.49) i,j : a i , j

d i (i) _ d~i 1) a~,i_l-~-~ (9.50)

Jmax = min(i + bw, N) (9.48b)

a!i? -- a~ijI) (9.51a) i , j ( i -1)

ai,i

a u> = 1 (9.51b) i,i

Page 362: Petroleum Reservoir Simulation a Basic Approach

2

9.3 Iterative Solution Methods 337

(a) Tridiagonal matrix.

Figure 9-3

For k=i+l , i+2 , . . . Jm~x , set

for j=i , i+l , . . .Jmax ,and

Back substitution step

n °N

(b) Pentadiagonal matrix. (c) Heptadiagonal matrix.

Coefficient matrices in 1D, 2D, and 3D flow problems.

d(i) = d~i-1) d( i ) _(i-1) (9.52) k -- i ~k,i

a(i) : a~ija) _ a(i) a(i-1) (9.53a) k,j i,j k,i

(i) = 0 ( 9 . 5 3 b ) ak,i

= , / (m ( 9 . 5 4 ) Set x N - N

For i = N - 1 , N - 2 , . . . 2 , 1 , set

Jmax = min(i + b w, N)

J~

(9.48b)

Xi -~ d~N) -- E a!lV) J (9.55) j=i+l

The FORTRAN computer codes that use this algorithm are available in the literature (Aziz and Settari 1979, Abou-Kassem and Ertekin 1992). Such programs require storing matrix elements within the outermost bands row-wise in a vector (a one-dimensional matrix).

9.3 Iterative Solution Methods

Iterative solution methods produce the solution vector for a given system of equations as the limit of a sequence of intermediate vectors that progressively converge toward the solu- tion. Iterative solution methods do not require storing the coefficient matrix [A] as in the direct solution methods. In addition, these methods do not suffer from the accumulation of round-off errors that occur during computations. In iterative methods, the reservoir blocks

Page 363: Petroleum Reservoir Simulation a Basic Approach

338 Chapter 9 Methods of Solution of Linear Equations

are usually ordered using natural ordering. In the following presentation, the blocks are ordered along the x direction, then along the y direction, and finally along the z direction. We discuss basic iterative methods such as the point iterative methods (Jacobi, Gauss- Seidel, or point successive over-relaxation (PSOR)) that are most useful in solving equa- tions for 1D problems, line SOR (LSOR) and block SOR (BSOR) methods and alternating direction implicit procedure (ADIP) that are useful in solving equations for 2D and 3D problems. Although these methods are practically unused in today's simulators because of the development of advanced and more powerful iterative methods, they are sufficient for single-phase flow problems. We will use Eq. 9.45 to demonstrate the application of the var- ious iterative solution methods for 1D, 2D, and 3D problems. Initiation of the iterative methods requires the assignment of initial guesses for all the unknowns. For flow problems

involving an incompressible fluid, the initial guess for unknown x, is taken as zero; i.e.,

x~ °~ = 0 • For flow problems involving slightly compressible and compressible fluids, the

initial guess for unknown x for the first outer iteration ( k = 1 ) is taken as the value of the

unknown at the old time level ( p" ); i.e., x~, °~ --- p " . However , for the second ( k = 2 ),

third ( k = 3 ), and higher ( k = 4, 5 .... ) outer iterations, the initial guess for unknown x is

(k-l)

taken as the value of the unknown at the latest outer iteration; i.e., x~, °> --- p,,+l . Outer itera-

tions refer to the iterations used to linearize the equations in the process of advancing the pressure solution from old time level n to new time level n+l .

9.3.1 Point Iterative Methods

Point iterative methods include the point Jacobi, point Gauss-Seidel, and point successive over-relaxat ion (PSOR) methods. In these methods, the solution, at any iteration level ( v + 1 ), is obtained by solving for one unknown using one equation at a time. They start with the equation for block 1, followed by the equation for block 2, and proceed block by block (or point by point) to the last block (block N). Though these methods can be used for multidimensional problems, their use is recommended for 1D problems because of their extremely slow convergence.

9.3.1.1 Point Jacobi Method

In order to write the point Jacobi iterative equation for 1D problems, we have to solve for the unknown of a general block n ( x. in this case) using the linear equation for the same block (Eq. 9.45 with b n = s, = n = a = 0 ); i.e.,

1 x = - - ( d - w x _ 1 - e x + 1) (9.56)

C n

The unknown for block n on the LHS of the resulting equation (Eq. 9.56) is assigned cur- rent i teration level ( v + l ), whereas all other unknowns on the RHS of Eq. 9.56 are assigned old iteration level ( v ). The point Jacobi iterative scheme becomes

Page 364: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 339

X(v+I) l ( d . - w . n-1 - - ern n+l ) , = - x (v) - x (v)' (9.57) C n

where n = 1 , 2 ..... N and v = 0 , 1 , 2 . . . . .

The i terat ion process starts f rom v = 0 and uses init ial guess values for all unknowns (say, 2 (°~ = ~ for i ncompress ib l e f low prob lems or the old t ime value, 2 (°) = 2" for slightly compressible and compressible f low problems as ment ioned earl ier in the intro- duction in Section 9.3.). We start with block 1, then block 2 . . . . . until block N and estimate the results of the first iteration ( 2 m ). The process is repeated for v = 1 and second itera- tion est imates for all unknowns are obtained ( 2 (2~). Iterations continue until a specified convergence criterion is satisfied. One form of convergence criterion is related to the max- imum absolute difference between the successive iterations among all blocks; i.e.,

d (v+l) < e (9.58) max

where

X (v+l) d(V+l) = ma Ix. - x(.V) [ m a x l<_n<_N i

(9.59)

and e is some accep tab le tolerance. A bet ter convergence cr i te r ion is re la ted to the

residual (rn) of the linear equation (Aziz and Settari 1979),

max r (v+l) _< 8 l<_n<_N n

The residual of Eq. 9.45 is defined as

(9.60)

r : b x,_,,,, +s,x,_,x +w,x ,_ 1 + c x + e x , < +nx,+,x + a x + , , , , - d (9.61)

Figure 9 -4 shows the iteration level of the unknowns of the neighboring blocks that usu- al ly appear in i terat ive equations of the point Jacobi method in mul t id imensional prob- lems. Figure 9 -5 illustrates the applicat ion of the method in a 2D reservoir. It should be noted that the point Jacobi method requires storing the old iterate values of all unknowns. In addition, the convergence of this method is extremely slow. In Example 9.3, we apply the point Jacobi iterative method to solve the equations of a 1D reservoir.

Example 9.3 The following equations were obtained for the 1D reservoir in Example 7. 1 and were solved in Example 9.1:

-85.2012Pl + 28.4004P2 = -227203.2 (9.12)

28.4004pl - 56.8008p2 + 28.4004P3 = 0 (9.13)

28.4004P2 - 56.8008P3 + 28.4004p4 = 0 (9.14)

28.4004P3 - 28.4004P4 -- 600 (9.15)

Page 365: Petroleum Reservoir Simulation a Basic Approach

340 Chapter 9 Methods of Solution of Linear Equations

Figure 9-4

x(V) n+nx

iiiiiiiiii!iiii:iiiii~iiii!iiii!i!iiiiiil i x~-~ ~iiii'X~ilili~i'iiiii~ili~iiiii~iii

x I !i!!!!!!!!!ii!!i!ii~!ii!ii!!iiii~!!!i:!!

x(V) n-nx

Iteration level of the unknowns of the neighboring blocks in the point Jacobi method.

~ , \

25 26 27 28 29 30 j=5

19 20 ~ ( ' ~ ! 22 23 24 j=4

13 17 18 j=3

7 8 , : : ~ : , 10 11 12 j=2

1 2 3 4 5 6 j=l Y

t i=1 i=2 i=3 i=4 i=5 i=6 i x

Figure 9-5 Iteration level of the unknowns of the neighboring blocks in estimating values in the point Jacobi method in 2D problem.

Solve these equations using the point Jacobi iterative method.

Solution

First, we solve for Pl using Eq. 9.12, P2 using Eq. 9.13, P3 using Eq. 9.14, and

P4 using Eq. 9.15.

Pl = 2666 .6667+0 .33333333P2 (9.62)

P2 = 0"5(Pl + P3 ) (9.63)

P3 = 0.5(P2 + P4 ) (9.64)

P4 = -2 1 .1 2 6 4 6 3 + P3 (9.65)

Second, the Jacobi iterative equations are obtained by placing levels of iteration according to Eq. 9.57.

Page 366: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 341

p~V+l) = 2666.6667 + 0.33333333p~ v)

= o.5(p V, + p V))

p(,:+1)3 = 0"5(P~ v) "[- p~V))

p~+l) = -21.126463 + p~V)

With an initial guess of 0 for all unknowns, the Jacobi iterative equations for the

first iteration ( v = 0 ) predict

p~l) = 2666.6667 + 0.33333333p~ °) = 2666.6667 + 0.33333333(0) = 2666.6667

p~l) = 0.5(p~O) + p(O) ) = 0 .5 (0 + O) = 0 3

p(1)3 = 0"5(P~ °) + P(4 °) ) = 0.5(0 + O) = 0

p~) = -21.126463 + p~O) = -21.126463 + 0 = -21.126463

For the second iteration ( v = 1 ), the Jacobi iterative equations predict

p(2) = 2666.666? + 0.33333333p~ ~) = 2666.6667 + 0.33333333(0) = 2666.6667 l

p~2) = 0.5(p~) + p(1)) = 0.5(2666.6667 + O) = 1333.33335 3

p(2)3 = 0.5(P~ ~) + P~) ) = 0.5(0 - 21.126463) = -10.5632315

p4 ~2) = -21.126463 + p~l) = -21.126463 + 0 = -21.126463

The procedure continues until the convergence criterion is satisfied. The conver- gence criterion set for this problem is e < 0.0001 • Table 9 -3 presents the solution within the specified tolerance obtained after 159 iterations. At convergence, the maximum absolute difference calculated using Eq. 9.59 was 0.0000841.

(9.66)

(9.67)

(9.68)

(9 .69)

9.3.1.2 Point Gauss -Se ide l Me thod

The point Gauss-Seide l method differs from the point Jacobi method in that it uses the latest available iterates of the unknowns in computing the unknown for block n at the cur- rent i terat ion ( x~, v+l) ). When we obtain the current i terat ion value for the unknown for block n, we already have obtained the current iteration values for the unknowns for blocks 1, 2 . . . . . and n-1 that precede block n. The unknowns for blocks n + 1 , n + 2 . . . . . and N still have their latest iteration value at iteration level v. Therefore, the point Gauss-Seidel iterative equation for block n in 1D problems is

x~+l),, = 1__ ( 4 - w x ~ 1)_ - e. x (v).+~ i ~ (9.70) C n

Page 367: Petroleum Reservoir Simulation a Basic Approach

342 Chapter 9 Methods of Solution of Linear Equations

T a b l e 9 - 3 J a c o b i l t e r a t i o n for Example 9.3

v + l Pl P2 P3 P4 d(~+l)m~

0 0 0 0 - - 1 2666.67 0.00 0.00 -21.13 2666.6667 2 2666.67 1333.33 -10.56 -21.13 1333.3333 3 3111.11 1328.05 656.10 -31.69 666.6667 4 3109.35 1883.61 648.18 634.98 666.6667 5 3294.54 1878.77 1259.29 627.05 611.1111 6 3292.92 2276.91 1252.91 1238.17 611.1111 7 3425.64 2272.92 1757.54 1231.78 504.6296

21 3855.62 3565.91 3427.17 3285.97 120.0747 22 3855.30 3641.40 3425.94 3406.05 120.0747 23 3880.47 3640.62 3523.72 3404.81 97.7808 24 3880.21 3702.09 3522.72 3502.60 97.7808

45 3978.06 3934.09 3902.96 3871.62 10.2113 46 3978.03 3940.51 3902.86 3881.84 10.2113 47 3980.17 3940.44 3911.17 3881.73 8.3154 48 3980.15 3945.67 3911.09 3890.05 8.3154

67 3988.25 3964.74 3942.57 3920.37 1.0664 68 3988.25 3965.41 3942.55 3921.44 1.0664 69 3988.47 3965.40 3943.42 3921.43 0.8684 70 3988.47 3965.95 3943.41 3922.30 0.8684

90 3989.31 3968.01 3946.70 3925.58 0.1114 91 3989.34 3968.01 3946.79 3925.57 0.0907 92 3989.34 3968.06 3946.79 3925.66 0.0907 93 3989.35 3968.06 3946.86 3925.66 0.0738

112 3989.42 3968.28 3947.13 3926.01 0.0116 113 3989.43 3968.28 3947.14 3926.01 0.0095

158 3989.44 3968.31 3947.18 3926.06 0.0001 159 3989.44 3968.31 3947.18 3926.06 0.0001

It should be mentioned that not only does the point Gauss-Seidel method not require storing the old iterate value of the unknowns, but it is easier to program and converges twice as fast as the point Jacobi method. Figure 9-6 shows the iteration level of the unknowns of the neighboring blocks that usually appear in iterative equations in multidi- mensional problems. Figure 9-7 illustrates the application of the method in a 2D reservoir. Example 9.4 demonstrates the application of this iterative method to solve the equations presented in Example 9.3. Observe the improvement in the rate of convergence over that of the point Jacobi method.

Page 368: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 343

(a) 1D.

Figure 9-6

y

T X x(V) )b n+nx

~ o I x(V+l) i n-, ~i~!;i

x(V+x) n-n x

(b) 2D.

y

T/ x x~, [ Ix (v+l,

I I"1-1

x(V) n+nx

x(V+l) n-nx

(c) 3D.

Iteration level of the unknowns of the neighboring blocks in the point Gauss-Seidel method.

n u n n n n u n m n n n ummmnn n n m u n n

Figure 9-7

y ~ j=l

i i=1 i=2 i=3 i-~. i=5 i=6 )x

Iteration level of the unknowns of the neighboring blocks in estimating values in the point Gauss-Seidel method in 2D problems.

Example 9.4 The following equations were obtained for the 1D reservoir in Example 7.1:

-85 .2012p l + 28.4004P2 = -2 2 7 203 . 2 (9.12)

28 .4004p I - 56.8008P2 + 28.4004P3 = 0 (9.13)

28.4004P2 - 56.8008P3 + 28.4004P4 = 0 (9.14)

28.4004p3 - 28.4004P4 = 600 (9.15)

Solve these equations using the point Gauss-Seidel iterative method.

Solution

First, we solve for Pl using Eq. 9.12, P2 using Eq. 9.13, P3 using Eq. 9.14, and P4 using Eq. 9.15 as in Example 9.3.

Page 369: Petroleum Reservoir Simulation a Basic Approach

344 Chapter 9 Methods of Solution of Linear Equations

and

Pl = 2666.6667 + 0.33333333p2

P2 = 0.5(Pl + P3)

P3 = 0 " 5 ( P 2 -t- P4 )

P4 = -21.126463 + P3

Second, the Gauss-Seidel iterative equations are obtained by placing levels of iteration according to Eq. 9.70.

p~+l~ = 2666.6667 + 0.33333333p~ v~

and

p v+l = 0.5(p V+l +

_- 0.5(p V+l, +

(9.62)

(9.63)

(9.64)

(9.65)

(9.71)

(9.72)

(9.73)

p]V+~ = -2 1 .1 2 6 4 6 3 + p~V+,~ (9.74)

With an initial guess of 0 for all unknowns, the Gauss-Seidel iterative equations for the first iteration ( v = 0 ) predict

p~]) - (o) --- 2666.6667 + 0.33333333P2 = 2666.6667 + 0.33333333(0) -- 2 6 6 6 . 6 6 6 7 ,

p~,~ = 0.5(p~l) + p~O~ ) = 0.5(2666.6667 + O) = 1333.33335

p(1~3 -- 0"5(P~ l~ + p~O)) _- 0.5(1333.33335 + O) = 666.66668

p ~ = --21.126463 + p~l~ = --21.126463 + 666.66668 = 645.54021

For the second iteration ( v = 1 ), the Gauss-Seidel iterative equations predict

pl 2) = 2666.6667 + 0.33333333p~ ~ = 2666.6667 + 0.33333333(1333.33335) = 3111.11115,

p~2~ = 0.5(p~2~ + p~l~) = 0.5(3111.11115 + 666.66668) = 1888.88889

p~2~ = 0.5(p~2) -I- p~4 ~) ) = 0.5(1888.88889 + 645.54021) = 1267.21455 3

p~2) = --21.126463 + p~2~ = --21.126463 + 1267.21455 = 1246.08809

The procedure continues until the convergence criterion is satisfied. The conver-

gence criterion set for this problem is e < 0.0001. Table 9-4 presents the solution

within the specified tolerance obtained after seventy-nine iterations. At conver-

Page 370: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 345

gence, the maximum absolute difference calculated using Eq. 9.59 was 0.0000828.

9.3.1.3 Point SOR Method

The point SOR (PSOR) method offers improvements in convergence over the point Gauss-Seidel method by making use of the latest iterate value of the unknown ( x~ ) ) and introducing a parameter ( ( o ) that accelerates convergence. Starting with the Gauss-Seidel method for 1D problems, an intermediated value is estimated,

X~ (v+l) = l ( d -wx(~_~ ')_ -e,x(V),+l, ~ (9.75) C n

Figure 9-8 shows the iteration level of the unknowns of the neighboring blocks that are used to estimate the intermediate value of the unknown of block n ( x] (~+1)). Figure 9-9 illustrates the application of this step of the method in a 2D reservoir. This intermediate value is improved and accelerated to obtain the current iterate value of the unknown before moving on to the next block,

x ~+'). = (1 - o))x(, ~) + o)x~ (~+1) (9.76)

X

(a) 1 D.

Figure 9-8

Y

T /X nx / ,x I I (v+l) ' ~ ~ :~ x°.~ ~ x~l

x(V+l) n-n x

(b) 2D.

x., x(:+ ),

Ix+ll n-nx

(c) 3D.

iteration level of the unknowns of the neighboring blocks in the PSOR method prior to acceleration.

where 1 < m < 2 . The acceleration parameter has an optimum value that is called the optimum over-relaxation parameter ( ~Oop , ). The use of this optimum value improves the convergence of the PSOR method that is roughly twice the convergence rate of the point Ganss-Seidel method. The optimum over-relaxation parameter is estimated using

2 O~op t - ~ (9.77)

1 +

where

Page 371: Petroleum Reservoir Simulation a Basic Approach

346 Chapter 9 Methods of Solution of Linear Equations

Jllm lMIMIm ! l nmnnn l 1 17 18 I j=3 3 I . ....

7 I 8 x(v~!: 10 11 n;n~ 12 l j=2

Figure 9-9

1 I 2 3 4 5 6 I j=l I

i=1 i=2 i=3 i=4 i=5 i=6 > x

Iteration level of the unknowns of the neighboring blocks in estimating the values in the PSOR method prior to acceleration in 2D problems.

d(V+l) max ( 9 . 7 8 )

PGs- d(~) m a x

is obtained from the Ganss-Seidel method for sufficiently large values of v . This means that the over-relaxation parameter ( COop ' ) is estimated by solving Eqs. 9.75 and 9.76 with o) = 1 until Pos, estimated using Eq. 9.78, stabilizes (converges within 0.2%); then

Eq. 9.77 is used. For 2D and 3D problems, Eq. 9.75 is replaced with the appropriate equa- tion. Example 9.5 demonstrates the application of this iterative method to solve the equa- tions presented in Example 9.3. Observe the improvement in the rate of convergence over that of the Gauss-Seidel method.

Example 9.5 The following equations were obtained for the 1D reservoir in Example 7.1:

-85.2012pl + 28.4004P2 = -227203.2 (9.12)

28.4004Pl - 56.8008P2 + 28.4004p3 = 0 (9.13)

28.4004P2 - 56.8008P3 + 28.4004P4 = 0 (9.14)

28.4004p3 - 28.4004p4 = 600 (9.15)

Solve these equations using the PSOR iterative method.

Solution

First, we estimate the optimum over-relaxation parameter ( wop ' ) using Eq. 9.77. This equation requires an estimate of the spectral radius that can be obtained by applying Eq. 9.78 and the Gauss-Seidel iteration as in Example 9.4. Table 9-5

Page 372: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 347

Table 9 -4

v + l

1

2

3

4

5

6

7

8

9

10

11

12

21

22

23

32

33

34

Gauss-Seidel I terat ion for Example 9.4

Pl P2 P3

2595.59

0 0 0

2666.67 1333.33 666.67

3111.11 1888.89 1267.21

3296.30 2281.76 1763.92

3427.25 2169.19

P4

0

645.54

1246.09

1742.80

2148.06

d (m~a+x 1)

2666.6667

600.5479

496.7072

405.2693

330.1046 3531.86 2850.53 2499.30 2478.17

3616.84 3058.07 2768.12 2746.99 268.8234

3686.02 3227.07 2987.03 2965.91 218.9128

3742.36 3364.69 3165.30 3144.17 178.2681

3788.23 3476.77 3310.47 3289.34 145.1697

3825.59 3568.03 3428.69 3407.56 118.2165

3856.01 3642.35 3524.95 3503.83

3880.78 3702.87 3603.35 3582.22

3972.33 3926.51 3893.04

3975.50 3934.27 3903.09

3940.59 3911.28 3978.09

3987.65 3963.94 3941.53

3987.98 3964.76 3942.58

3988.25 3965.42 3943.43

3946.46

3946.59

3946.70

3946.79

3946.86

3947.18

3967.75

3967.85

3967.94

3968.01

3968.06

3968.31

3871.91

3881.96

3890.15

96.2677

78.3940

12.3454

10.0532

8.1867

3920.40 1.2892

3921.45 1.0499

3922.31 0.8549

3925.33

3925.47

3925.58

3925.67

3925.74

42 3989.21

43 3989.25

44 3989.28

45 3989.31

46 3989.34

78 3989.44

79 3989.44 3968.31 3947.18

3926.06

3926.06

0.1653

0,1346

0.1096

0.0893

0.0727

0.0001

0.0001

shows that the spectral radius converges to 0.814531 within O. 15% after five itera- tions. Now, we can estimate ~op, from Eq. 9.77 as

Page 373: Petroleum Reservoir Simulation a Basic Approach

348 Chapter 9 Methods o f Solution o f Linear Equations

Table 9 -5

2 ~°°Pt l + , , /1-0 .814531 - 1.397955

Determination of Spectral Radius for Example 9.5

v + l p~ P2 ]33 P4 d ~ ~ PGs

0 0 0 0

1 2666.67 1333.33 666.67 645.54 2666.6667

2 3111.11 1888.89 1267.21 1246.09 600.5479 0.225205

3 3296.30 2281.76 1763.92 1742.80 496.7072 0.827090

4 3427.25 2595.59 2169.19 2148.06 405.2693 0.815912

5 3531.86 2850.53 2499.30 2478.17 330.1046 0.814531

In order to write the PSOR iterative equations, we first write the Gauss-Seidel iter- ative equations as in Example 9.4.

p~V+,~ = 2666.6667 + 0.33333333p~ v~ (9.71)

p~V+l) = 0.5(p~V+a) + p~V)) (9.72)

p~V+l~ = 0.5(p~v+l~ + p~V~) (9.73)

p~V+l) = -21 .126463 + p~V+l~ (9.74)

Then, applying Eq. 9.76, the PSOR iterative equations become

p~V+~ = (l - tOop , )p~V~ + Ogop , [2666.6667 + 0.33333333p~ v~ ] (9.79)

p~V+,)2 = (1 - tOop , )P2(V~ + tOop ' [0.5(p~v+l) + p~V~ )] ( 9 . 8 0 )

p~V+l) = (1 - (I)op t )p~V) + O)op t [0.5(p~V+l) -'1- p~V))] (9.81)

p~4 ~+1~ =(1 ~o "1-~ - opt,/"4 + a % , [ - 2 1 " 1 2 6 4 6 3 + p ~ ~+1)] (9.82)

We continue the solution process with the PSOR iterative equations using

Ogop t = 1.397955 and starting with the results of the last Gauss-Seidel iteration,

shown as the fifth iteration in Table 9-5, as an initial guess. The PSOR iterative

equations for the first iteration ( v = 0 ) predict

p~l) = (1 - tOop , )p~O~ + ~Oop ' [2666.6667 + 0.33333333p~ °~ ]

= (1 - 1.397955)(3531.86) + (1.397955)[2666.6667 + 0.33333333 x 2850.53]

Page 374: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 349

Table 9 - 6 PSOR Iterat ion for Example 9.5

v + 1 p~ P2 P3 P4 d(~+l)m~

3531.86 2850.53 2499.30 2478.17 - -

1 3650.66 3164.30 2949.35 3107.33 629.1586

2 3749.60 3423.17 3390.96 3474.30 441.6074

3 3830.85 3685.62 3655.17 3697.62 264.2122

4 3920.82 3828.73 3806.16 3819.82 150.9853

5 3951.70 3898.91 3880.53 3875.16 74.3782

6 3972.11 3937.23 3916.41 3903.29 38.3272

7 3981.85 3953.87 3933.42 3915.88 17.0095

8 3985.72 3961.84 3941.03 3921.50 7.97870

9 3987.90 3965.51 3944.49 3924.10 3.66090

10 3988.74 3967.06 3946.01 3925.20 1.5505

11 3989.13 3967.78 3946.68 3925.69 0.7205

12 3989.31 3968.08 3946.97 3925.90 0.3034

13 3989.38 3968.21 3947.09 3925.99 0.1311

14 3989.41 3968.27 3947.14 3926.03 0.0578

15 3989.43 3968.29 3947.17 3926.05 0.0237

16 3989.43 3968.30 3947.18 3926.05 0.0104

17 3989.44 3968.31 3947.18 3926.06 0.0043

18 3989.44 3968.31 3947.18 3926.06 0.0018

19 3989.44 3968.31 3947.18 3926.06 0.0008

20 3989.44 3968.31 3947.18 3926.06 0.0003

21 3989.44 3968.31 3947.18 3926.06 0.0001

22 3989.44 3968.31 3947.18 3926.06 0.0001

= 3650 .66047 ,

p(1) = (1 - Wop t )p(O) + w ~ [0.5(p~ 1) + p~O) )] 2 2

= (1 - 1 . 397955) (2850 .53 ) + (1 .397955 ) [0 .5 (3650 .6604 7 + 2499 .30) ]

= 3164 .29973 ,

Page 375: Petroleum Reservoir Simulation a Basic Approach

350 Chapter 9 Methods of Solution of Linear Equations

p(1) = (1 - ( J ) o - t ) p ( O ) ( .I)op t [ 0 . 5 ( P ( 2 1 ) qt_ p~O) ) ] 3 t- 3 +

-- (1 - 1.397955)(2499.30) + (1.397955)[0.5(3164.29973 + 2478.17)]

= 2949.35180,

p~41) = (1 - Wop , )p~4 °) + Wo,, [-21.126463 + p~')]

= (1 - 1.397955)(2478.17) + (1.397955)[-21.126463 + 2949.35180]

= 3107.32771.

We continue with the second iteration using Eqs. 9.79 through 9.82, followed by the third iteration, and the iteration process is repeated until the convergence cri-

terion is satisfied. The convergence criterion set for this problem is e < 0.0001.

Table 9-6 presents the solution within the specified tolerance obtained after twenty-two iterations. The total number of iterations, including the Gauss-Seidel iterations necessary to estimate the optimum relaxation parameter, is twenty- seven. At convergence, the maximum absolute difference calculated using Eq. 9.59 was 0.00006.

9 .3 .2 L ine and B lock S O R M e t h o d s

Although point iterative methods can be used to solve equations for 2D and 3D problems, they are inefficient because of their extremely slow convergence. The line SOR (LSOR) and block SOR (BSOR) methods are more efficient in solving equations for these prob- lems. The over - re laxa t ion paramete r ( Wop, ) is es t imated using the point Gauss -Se ide l method until PGs stabilizes and then using Eq. 9.77 as mentioned in Section 9.3.1.3.

9.3.2.1 Line SOR Method

In the LSOR method the reservoir is looked at as consisting of group of lines. These lines are usually al igned with the direction of highest t ransmissibi l i ty (Aziz and Settari 1979) and are taken in order, one line at a t ime. For example , for a 2D reservoir having the highest t ransmissibi l i ty along the x direction, the lines are chosen paral lel to the x axis. Then the lines are taken in order, one at a t ime for j = 1, 2, 3 ..... ny. In other words, the lines are swept in the y direction. First, the equations tor all blocks in a given line (line j ) are written. In writing the equations for the current line (line j) , the unknowns for the pre- ceding l ine (l ine j - l ) are ass igned current i tera t ion level v + 1 and those for the suc- ceeding line ( l i n e j + l ) are assigned old i teration level v as shown in Figure 9-10a. In addition, the unknowns for the current line are assigned current iteration level v + 1.

First, the equations for l i n e j are written,

WnX(nV+. l l ) _1_ ~ . (v+l) (v+l) X (v+l) -- n X (~) _ c, ~t + e,, x + 1 d, _ . (9.83) : - - Sn n n n n + n x

for n = i + ( j - 1 ) x n x ; i = 1 , 2 ..... n x.

Page 376: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 351

13 ~' J ~° I ~' J ~o I ~" I ~0 I 13 x~, j x;o' I ~'n, I x~J x~ J x;,' I

~ 'J ~j .J 4J °J ° I X i=~ i=2 i=3 J=4 J=5 J=6

(a) y-direction sweep.

j=5

j=4

j=3

j=2 7

j=l y 1

~. . .~ x i=1

(v+l) X26

(v+O X2o

(v+O x8

X(2 v+l)

i=2

L . ~ ) I IXn~ I x~2 )

I~nn~ I

i=3 i--4 i-~5

(b) x-direction sweep.

Figure 9-10 Iteration level of the unknowns of the blocks in estimating the intermediate values in the LSOR method.

j=5

i=4

i=3

j=2

6 j-1

i=6

• ~v+l~ *~+1~ .~v+l) = d - s x~ ~+1~ - n x ~v~ (9.84) WnXn-1 JI-CnXn -}-enXn+l n - x n n+n x

for n=i+( j -1)×nx; i = 1 , 2 ..... n .

Third, the intermediate solution for the current line (line j) is accelerated, using the accel- eration parameter, to obtain the current iterate values of the unknowns for line j,

X~l v+l) = (1 -- O))X(n v) -}- (DX~ (v+l) (9.85)

for n=i+( j -1)×nx; i = 1 , 2 ..... n x .

It should be mentioned that the improvement in the convergence of the LSOR method over the PSOR method is achieved because more unknowns are solved simultaneously at current iteration level v + 1.

If lines are swept in the x direction as shown in Figure 9-10b, they are taken in order one at a t ime for i = 1,2,3 ..... n x , and Eqs. 9.84 and 9.85 are replaced with Eqs. 9.86 and 9.87.

*(v+l) -F *(v+l) *(v+l) SnX . . . . -~- C n X n "~nnXn+nx - ~ d n - w n X ( n V _ + l l ) - - ~ - e n X ( n : ) l

for n = i + ( j - 1 ) x n ; j = l , 2 . . . . . ny and

(9.86)

x~ v+'~ = (1 - w)xC v) + (~ox~ (v+l) (9.87)

for n = i + ( j - 1 ) × n x ; j = l , 2 ..... ny.

Eq. 9.86 assumes that the block ordering has not changed, i.e., the blocks are ordered along the i th direction fol lowed by the jth direction. The application of the LSOR method is presented in the next example.

Second, the resulting n x equations for the current line (line j) are solved simultaneously, using Thomas' algorithm, for the intermediate values of the unknowns for the current line (line j) at current iteration level v + l (e.g., line j = 3 in Figure 9-10a) ,

Page 377: Petroleum Reservoir Simulation a Basic Approach

352 Chapter 9 Methods of Solution of Linear Equations

Example 9.6 Example 7.8 and shown in Figure 9-11:

-7 .8558p2 + 3.7567p5 = -14346 .97

-7 .5134P4 + 3.7567p5 + 3.7567P7 = 0

3.7567p2 + 3.7567P4 - 15.0268p5 + 3.7567P6 + 3.7567P8 = 0

3.7567P5 - 7.8558P6 = - 1 4 3 4 6 . 9 7

3.7567P4 - 7.5134P7 + 3.7567P8 = 1000

3.7567p5 + 3.7567P7 - 7.5134p8 = 0

The following equations were obtained for the 2D reservoir in

(9.88)

(9.89)

(9.90)

(9.91)

(9.92)

(9.93)

Solve these equations using the LSOR iterative method by sweeping the lines in the y direction.

Solution

For the y direction sweep, Eq. 9.84 is applied to lines j -- 1,2,...ny. To obtain the LSOR equations for line j, the equation for each gridbtock on that line is rear- ranged as follows. The unknowns on line j are assigned iteration level *(v + 1) and kept on the LHS of equation, the unknowns on line j - 1 are assigned itera- tion level v + 1 and moved to the RHS of equation, and those on line j + 1 are assigned iteration level v and moved to the RHS of equation. For the problem at hand, only gridblock 2 falls on line j = 1, gridblocks 4, 5, and 6 fall on line j = 2 , and gridblocks 7 and 8 fall on line j = 3.

The LSOR equations for line j = 1 are obtained by considering Eq. 9.88,

-7 .8558p~ (~+~ = - 14346.97 - 3.7567p~5 ~ (9.94)

After solving Eq. 9.94 for p~(~+~, Eq. 9.85 is applied to accelerate the solution,

yielding

p~V+l) ---- (1 - O)op ,)p~v~ + (Oop, p~(~÷l~ ( 9 . 9 5 )

The LSOR equa t ions for line j = 2 are obta ined by consider ing Eqs. 9.89, 9.90,

and 9.91, which state

-7.5134p~ (v÷~ + 3.7567p~ (v+~ = -3.7567p~ ~>

3 .7567pj (~+1) - 15.0268p~ (v+l~ + 3.7567p~V+1~ = -3 .7567p~ ~+'~ - 3.7567p~ ~

3.7567p~ (~+1) - 7.8558P6 (~+1~ = -14346 .97

(9.96)

(9.97)

(9.98)

Page 378: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 353

qsc7 = -1000 STB/D Pwf2 = 3500 psia

400 ft Pwf6 = 3500 psia

................................................................... No-flow boundaries

4 5

T ~x 2

(a) Gridblocks and wells. (b) Boundary conditions.

Figure 9-11 DiscreUzed 2D reservoir in Example 7.8 (and Example 9.6).

*(v+]) *(v+l) pi(V+l) After solving Eqs. 9.96, 9.97, and 9.98 for P4 ,P5 , and using

Thomas' algorithm, Eq. 9.85 is applied to accelerate the solution, yielding

,, - - op t . l Jn + ('OoptPn (9.99)

for n = 4 ,5 ,6 .

The LSOR equations for line j = 3 are obtained by considering Eqs. 9.92 and

9.93, which state

- 7 . 5 1 3 4 p ~ (v+'~ + 3 .7567p~ (v+l) = lO00 - 3.7567p(4 r+l~ (9 .100)

3 .7567p~ ~v+l~ - 7 .5134p~ ~v+~) = - 3 . 7 5 6 7 p ~ v÷~) (9 .101)

After solving Eqs. 9.100 and 9.101 for p~(V+l) and p~(~+l), Eq. 9.85 is applied to

accelerate the solution, yielding

n "1- (.0 *(v+l) p(V+l) = (1 - toop ,)p(.v~ op, P. (9 .102)

for n = 7 and 8.

Before applying the procedure given in Eqs. 9.94 through 9.102, we need to esti-

mate the value of the optimum over-relaxation parameter O)op , . The spectral

radius for the system of Eqs. 9.88 through 9.93 is estimated using the point

Page 379: Petroleum Reservoir Simulation a Basic Approach

354 Chapter 9 Methods of Solution of Linear Equations

Gauss-Seidel iterative method, as in Example 9.5. Table 9-7 displays the results, which show that the spectral radius converges to 0.848526 within 0.22% after

seven iterations. Now, we can calculate COop , from Eq. 9.77 as

T a b l e 9 - 7

2

coop, 1 + x ] l - 0 .848526 = 1.439681

D e t e r m i n a t i o n of S p e c t r a l R a d i u s for E x a m p l e 9 . 6

v + l P2 1)4 P5 P6

0 0 0 0

1 1826.26 0.00 456.57 2044.60

2 2044.60 161.73 1103.17 2353.81

3 2353.81 565.90 1459.85 2524.38

4 2524.38 946.33 1735.35 2656.13

5 2656.13 1274.29 1965.21 2766.05

6 2766.05 1553.20 2159.63 2859.02

7 2859.02 1789.87 2324.44 2937.84

P7 P8

0 0

-133.10 161.73

28.64 565.90

432.80 946.33

813.23 1274.29

1141.20 1553.20

1420.11 1789.87

1656.77 1990.61

d(V+l)m~ PGS

2044.5959

646.5998 0.316248

404.1670 0.625065

380.4281 0.941265

327.9642 0.862092

278.9100 0.850428

236.6624 0.848526

For the first iteration ( v = 0 ) of the LSOR method, the initial guess used is the

pressure solution obtained at the seventh Gauss-Seidel iteration, which is shown in Table 9-7.

For v = 0 , the LSOR equations for line j = 1 become

-7 .8558p~ (1) = - 1 4 3 4 6 . 9 7 - 3.7567p~ °)

After substitution for Ps-(°) = 2324.44 , this equation becomes

-7 .8558p~ (1) = - 1 4 3 4 6 . 9 7 - 3.7567 × 2324.44

The solution is p~(J) = 2937.8351

The accelerated solution is

= (1 - coo ,)p °) + coo ,p

= (1 -1 .439681) × 2859.02 + 1 .439681× 2937.835

= 2972.4896.

For v = 0 , the LSOR equations for line j = 2 become

-7 .5134p~ (1) + 3.7567p~ (1) = -3 .7567p~ °)

(9.103a)

(9.103b)

(9.104)

(9.105a)

Page 380: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 355

3 .7567p~ ~l) - 15 .0268p~ ~a) + 3 .7567p~ ~1~ = - 3 . 7 5 6 7 p ~ 1~ - 3 .7567p~ °) (9 .106a)

3 .7567p~ ~1~ - 7 .8558p~ ~1~ = - 1 4 3 4 6 . 9 7 (9 .107a)

After subst i tu t ion for n ~°) 1656.77 ~(1) = 2 9 7 2 . 4 8 9 6 a n d p~O~ = 1990.61 r 7 ~ ' / 3 2 ' '

these three equations become

- 7 . 5 1 3 4 p ~ ~1~ + 3 .7567p~ ~1~ = - 6 2 2 3 . 9 3 0 0 (9 .105b)

3 . 7 5 6 7 p j ~1~ - 15 .0268p~ ~) + 3 .7567p~ ~1) = - 1 8 6 4 4 . 6 9 4 (9 .106b)

3 .7567p~ ~1~ - 7 .8558p~ (~) = - 1 4 3 4 6 . 9 7 (9 .107b )

T h e solut ion for t h e s e t h r ee e q u a t i o n s is pj~l~ = 2 0 8 8 . 8 5 3 4 , p ~ = 2 5 2 0 . 9 3 7 5 ,

a n d p~l) = 3031 .8015 .

Next the solution is accelerated, giving

p(41) = ( 1 - O)op ,)p~°)+ ~Oop,p*4~,) (9 .108)

= (1 - 1 .439681) × 1789 .87 + 1 .439681 x 2 0 8 8 . 8 5 3 4

= 2220 .3125 ,

p~l) = (1 - O)op ,)p~°) + O)optp~(1) (9 .109)

= (1 - 1 .439681) x 2 3 2 4 . 4 4 + 1 .439681 x 2 5 2 0 . 9 3 7 5

= 2607 .3329 ,

p~) = ( 1 - Woe ,)p~°~ + Wop,p~{l~ (9 .110)

= (1 - 1 .439681) × 2 9 3 7 . 8 4 + 1 .439681 x 3 0 3 1 . 8 0 1 5

= 3073 .1167 .

For v = 0 , the LSOR e q u a t i o n s for line j = 3 b e c o m e

- 7 . 5 1 3 4 p ~ ~) + 3 .7567p~ ~> = 1000 - 3 .7567p~ l~ (9 .111a)

3 .7567p~ ~l) - 7 .5134p~ ~1' = - 3 . 7 5 6 7 p ~ 1~ (9 .112a)

After subst i tu t ion for p~l~ = 2 2 2 0 . 3 1 2 5 a n d p~X) = 2 6 0 7 . 3 3 2 9 , t h e s e two equa-

tions become

- 7 . 5 1 3 4 p ~ (l~ + 3 .7567p~ (~> = - 7 3 4 0 . 9 7 4 0 (9 .111b )

3 . 7 5 6 7 p ; (l> - 7 .5134p~ (~ = - 9 7 9 4 . 8 8 0 7 (9 .112b)

Page 381: Petroleum Reservoir Simulation a Basic Approach

356 Chapter 9 Methods of Solution of Linear Equations

The solution for these two equations is p~(1) = 2171.8570 and

p~(l) = 2389.5950 •

Next the solution is accelerated, giving

p(1)_(1 O) ~_(o)+tO _*(1) 7 - - " - - op t I 1 ) 7 o p t 1 ) 7

= (1-1.439681) × 1656.77 + 1.439681x 2171.8570

= 2398.3313

p~l) = (I - O)op ,)p~°) + O)optp8(1)

= (1 - 1.439681) x 1990:61 + 1.439681 x 2389.5950

= 2565.0230.

This completes the first LSOR iteration. Table 9-8 shows the results of this itera- tion. We need to perform calculations for the second iteration ( v = 1 ) and so on until convergence is reached. Table 9-8 shows the results of all LSOR iterations until the converged solution is obtained. The convergence criterion for this problem is set at a tolerance of e < 0.0001. The solution to the given system of equations is reached after twenty iterations.

The results of solving Eqs. 9.88 through 9.93 for the unknown pressures are p~ = 3378.02 psia, p, = 3111.83 psia, P5 = 3244.92 psia, P6 = 3378.02 psia, P7 =29?8.73 psia, and P8 =3111.83 psfa.

(9.113)

(9.114)

9.3.2.2 Block SOR Method

The block SOR (BSOR) method is a generalization of the LSOR method in that it treats any group of blocks instead of a line of blocks. The most commonly used group of blocks is a (horizontal) plane or a (vertical) slice. The following steps for obtaining the solution are similar to those for the LSOR method. Here again, planes (or slices) should be aligned with the direction of highest transmissibility and are taken in order, one plane (or slice) at a time. For example, for a 3D reservoir having the highest transmissibil i ty along the z direction, slices are chosen parallel to the z axis. Then the slices are taken in order and one slice at a time for i = 1,2,3 ..... n x . In other words, the slices are swept in the x direction.

First, the equations for all blocks in a given slice (slice i ) are written. In writing the equa- tions for the current slice (slice i ), the unknowns for the preceding slices (slice i-1) are assigned current iteration level v + 1 and those for the succeeding slices (slice i+1) are assigned old iteration level v . In addition, the unknowns in the current slice are assigned current iteration level v + 1.

First, the equations for slice i are written,

x (~+1) + e.x(.~+) 1 (9.115) bnx(o ;'° + snxT+,, 1) + e S + + a° 22. = d° - wo - - x y - - x x x y

for n = i + ( j - 1 ) × n x +(k-1 )xnny; j= 1,2 ..... ny;k=l,2 ..... n z

Page 382: Petroleum Reservoir Simulation a Basic Approach

9.3 herat ive Solution Methods 357

Table 9 -8 LSOR I terat ion for Example 9.6

v + 1 P2 P4 P5 P6 Pv P8 d ~ l)

2859.02 1789.87 2324.44 2937.84 1656.77 1990.61

2972.49 2220.31 2607.33 3073.12 2398.33 2565.02 741.5620

3117.36 2824.53 3002.30 3261.99 2841.74 2981.51 604.2200

3325.58 3079.68 3231.90 3371.79 3001.86 3141.20 255.1517

3392.11 3155.72 3276.87 3026.01 3150.63 76.0318

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

3393.29

3389.13 3393.82 3145.21 3268.16 3001.~ 3133.08 24.8878

3387.07 3123.16 3254.48 3382.59 2984.35 3117.09 22.0462

3380.62 3113.43 3245.81 3378.44 2978.22 3111.13 9.7293

3377.48 3110.40 3243.83 3377.49 2977.06 3110.40 3.1368

3377.50 3110.59 3244.08 3377.62 2977.87 3111.05 0.8096

3377.67 3111.38 3244.55 3377.84 2978.50 3111.60 0.7935

3377.92 3111.75 3244.87 3378.00 2978.74 3111.84 0.3718

3378.03 3111.87 3244.96 3378.04 2978.79 3111.87 0.1189

3378.04 3111.87 3244.95 3378.03 2978.76 3111.86 0.0253

3378.03 3111.84 3244.94 3378.03 2978.74 3111.83 0.0281

3378.02 3111.83 3244.92 3378.02 2978.73 3111.83 0.0142

3378.02 3111.83 3244.92 3378.02 2978.73 3111.82 0.0049

3378.02 3111.83 3244.92 3378.02 2978.73 3111.83 0.0007

3378.02 3111.83 3244.92 3378.02 2978.73 3111.83 0.0010

3378.02 3111.83 3244.92 3378.02 2978.73 3111.83 0.0005

3378.02 3111.83 3244.92 3378.02 2978.73 3111.83 0.0002

Second, the resul t ing nyn z equat ions for the current slice (slice i ) are solved s imulta- neously , us ing algori thms for sparse matrices, for the intermediate values of the u n k n o w n s of the current slice (slice i ) at i terat ion level *(v + 1)

*(v+l) *(v+l) *(v+l) - - *(v+l) -- *(~+l) -- WnX(V+I 1) + enx(~+) l b x_x~n +sx-x , , +cnx n - ~ n x ..... + a x . . . . . ~ y = d n _ (9.116)

for n = i + ( j - l ) x n x + ( k - l ) x n x n y ; j = 1,2 ..... ny;k = 1,2 ..... n z

Figure 9 - 1 2 a schematical ly shows slice SOR for slice i -- 2 and the i teration level for the

u n k n o w n s of the blocks in preceding and succeeding slices.

Page 383: Petroleum Reservoir Simulation a Basic Approach

358 Chapter 9 Methods o f Solution o f Linear Equations

Third, the intermediate solution for the current slice i is accelerated using acceleration parameter,

x (~+1~. -- (1 - w)x~ v> + wx, *(v+l~ (9.117)

for n = i + ( j - 1 ) × n x + ( k - 1 ) X n x n y ; j = 1,2 ..... ny;k = 1,2 ..... n z

It should be ment ioned that the improvement in the convergence of the BSOR method over the LSOR method is achieved because more unknowns are solved simultaneously at iteration level v + 1.

I f the blocks are swept in the z direction (i.e., plane SOR) as shown in Figure 9-12b, the planes are taken in order, one at a t ime for k = 1,2,3 ..... n z , and Eqs. 9.116 and 9.117 are replaced with Eqs. 9.118 and 9.119, which state

*(v+l) + *(v+l) *(v+l) *(v+l) _[_ *(v+l) : d n __ bnx(nV+nlx)ny __ a x (~ SnX .. . . . WnXn_ 1 -1- CnX n -I- enx + 1 n,x,,+, x . . . . . . . y (9.118)

for n = i + ( j - 1 ) × n x + ( k - 1 ) × n x n y ; i = 1,2 ..... nx; j = 1,2 . . . . . ny and

x~ "+l~ = (1 - ~o)x~ ~ + ~ox~ ~v+l~ ( 9 . 1 1 9 )

for n = i + ( j - 1 ) × n + ( k - 1 ) × n n y ; i = l , 2 ..... n ; j = l , 2 . . . . . n y .

Eqs. 9.118 and 9.119 assume that the block ordering has not changed, i.e., blocks are ordered along the i th direction, followed by t he j th direction, and finally along the k th direction.

9.3.3 Alternating-Direction-Implicit Procedure

The A l t e r n a t i n g - D i r e c t i o n - I m p l i c i t P rocedure (ADIP) a ims at r ep lac ing a 2D or 3D problem with two or three sets of 1D problems in the x, y, and z directions in order to solve consecut ively. This method was in t roduced by Peaceman and Rachford (1955). In this section, we apply the method to a slightly compressible fluid flow problem in a 2D paral- le lepiped reservoir (n x × ny). The equation for b lock n in a 2D problem is obtained from Eq. 9.45 as

S nX . . . . -1- WnX n_ 1 Jr- CnX n "~ enXn+ 1 -I- nnXn+nx = d n (9.120a)

for n = i + ( j - 1 ) × n x ; i = 1 , 2 ..... n x ; and j = l , 2 ..... ny

where s n, w n, en, and n n are given by Eqs. 9.46b through 9.46e, yielding

v~o¢;.(c + c~) c = - [ s . + w +e. ,+n. ,+ ~ ] (9.120b)

O n = [ ( S ~ ) n (Zn-n~ - Zn ) -[- (W~)n (Zn-1 - Zn )

-[-(e~)n ( Z n + l - Zn ) -1- (n~)n (Zn+nx - Zn ) ] - qsc°,

d = D V°"q~](c----~+%)x" a B°At "'

( 9 . 1 2 0 c )

(9.120d)

Page 384: Petroleum Reservoir Simulation a Basic Approach

9.3 Iterative Solution Methods 359

k=4

k=3

k=2

k-1

37

25

13

1

i=l

i

/ I 46 J 43

~ [ 34 J 31

~ 1 22 I

~ 1 lO 7

z

T 'x

J~ 38

ii~ii~!i~i~i~i!~ i̧i~ ~!~ 14

2

i=2

39

27

i=3

(a) Slice sweep in BSOR.

~ k=4

k=3

y j=2

=1

Z k=2

i=l i=2

Figure 9-12

ane sweep in BSOR.

a -

i=3

Slice and plane sweeps in the BSOR method.

Page 385: Petroleum Reservoir Simulation a Basic Approach

360 Chapter 9 Methods of Solution of Linear Equations

and the unknown x stands for pressure. The solution of this equation is obtained by finding the solutions of two sets of 1D problems, one in the x direction and the other the y direc- tion as outlined below.

Set of lD problems in the x direction

For each line j = 1,2 . . . . . ny solve

WnX~_ 1 q- CnX ~ -I- enX~+ 1 : d*. (9.121a)

for n = i + ( j - 1 ) x n x, i = 1 , 2 ..... n x , where

v~ ¢~(c+c~) c: = -[w n + e + ~ t / ~ ] (9.121b)

d*=D Vb"d?](c+c¢) [ s (x~ . x~)+n.(xn.,+, x" ° _ _ .)] , a~B°(At/2) X n - - x x

(9.121c)

Each set of equations represented by Eq. 9.121 a consists of n x linear equations that can

be solved simultaneously using Thomas' algorithm or iteratively using the PSOR method.

Set of 1D problems in the y direction

For each line i = 1, 2 ..... n x solve

S X n+l ** n+l "l- n n+l d** "~- C n X n nXn+n : n n-n x x n

for n = i + ( j - 1 ) x n x , j = 1,2 ..... ny , where

vb,¢~(c +c~) C~* ~ - - - [ S h - n n~- ~ l

(9.122a)

(9.122b)

v~ ¢~(c+ c~) . . . . d** = D ~ x - [ w (x_ I - x )+e~(x~+ I-x~)]

n acB (At/2) n

(9.122c)

Each set of equations represented by Eq. 9.122a consists of ny linear equations that can

be solved simultaneously using Thomas' algorithm or iteratively using the PSOR method.

While the ADIP just presented is a non-iterative version of the method, other literature presents an iterative version that has better convergence (Ertekin et al. 2001). For 2D problems, the ADIP is unconditionally stable. However, a direct extension of the ADIP presented here to 3D problems is conditionally stable. Aziz and Settari (1979) reviewed unconditionally stable extensions of ADIP for 3D problems.

Page 386: Petroleum Reservoir Simulation a Basic Approach

9.4 Summary 361

9.3.4 Advanced Iterative Methods

As mentioned in the introduction, we restricted our discussion in this chapter to basic solu- tion methods. The objective in this chapter was to introduce the mechanics of the basic methods of solution, although many of these iterative methods are not used in today's sim- ulators. However, the algorithms for advanced iterative methods of solving systems of linear equations, such as conjugate gradient methods, the block iterative method, the nested factorization method, Orthomin, and others are beyond the scope of this book and can be found elsewhere (Ertekin, Abou-Kassem, and King 2001 ; Behie and Vinsome 1982; App- leyard and Cheshire 1983; Vinsome 1976). Such methods are very efficient for solving sys- tems of linear equations for multiphase flow, compositional, and thermal simulation.

9.4 Summary Systems of linear equations can be solved using direct solvers or iterative solvers. The methods presented in this chapter are basic methods that aim at introducing the mechanics of solving sets of linear equations resulting from reservoir simulation. Direct solvers include methods that use variations of LU factorization of the coefficient matrix [A]. These include Thomas' algorithm and Tang's algorithm for 1D flow problems and the g-band matrix solver for 2D and 3D flow problems. Iterative solvers include point Jacobi, point Gauss-Seidel, and PSOR methods mainly for 1D flow problems, the LSOR and BSOR methods for 2D and 3D flow problems, and the ADIP method for 2D flow problems. The important issue in this chapter is how to relate the coefficients of matrix [A] to the linear- ized flow equation. The unknowns in the linearized equation for a general block n are placed on the LHS of equation, factorized, and ordered in ascending order, i.e., they are ordered as shown in Figure 9-2. Subsequently, the coefficients b n , s , w , c , e , n , and a correspond to locations 1, 2, 3, 4, 5, 6, and 7 in Figure 9-2. The RHS of equation corre- sponds to d , .

9.5

9-1

9-2

9-3

9-4

Exercises

Define a direct solution method. Name any two methods under this category.

Define an iterative solution method. Name any two methods under this category.

What is the difference between the iteration level and the time level? When do you use each?

The following equations were obtained for the 1D reservoir problem described in Example 7.2 and Figure 7-2:

-56.8008p2 + 28.4004P3 = -113601.6

28.4004P2 - 56.8008P3 + 28.4004P4 = 0

28.4004p3 - 28.4004P4 = 600

Page 387: Petroleum Reservoir Simulation a Basic Approach

362 Chapter 9 Methods of Solution of Linear Equations

9-5

9-6

Solve these three equations for the unknowns P2 , / ) 3 ' and P4 using

(a) Thomas' algorithm

(b) Jacobi iterative method

(c) Gauss-Seidel iterative method

(d) PSOR method

For iterative methods, start with an initial guess of zero for all the unknowns and use a convergence tolerance of 1 psi (for hand calculations).

The following equations were obtained for the 1D reservoir problem described in Example 7.5 and Figure 7-5:

-85.2012Pl + 28.4004& = -227203.2

28.4004pa - 56.8008p2 + 28.4004P3 = 0

28.4004P2 - 56.8008P3 + 28.4004p4 = 0

28.4004P3 - 28.4004P4 = 1199.366

Solve these four equations for the unknowns Px , P2 , P3 ' and P4 using

(a) Thomas' algorithm

(b) Jacobi iterative method (c) Gauss-Seidel iterative method

(d) PSOR method

For iterative methods, start with an initial guess of zero for all the unknowns and use a convergence tolerance of 5 psi (for hand calculations).

The following equations were obtained for the 2D reservoir problem described in Example 7.7 and Figure 7-7:

-5.0922p~ + 1.0350p2 + 1.3524p3 -- -11319.20

1.0350pl - 6.4547P2 + 1.3524P4 = -13435.554

1.3524p~ - 2.3874p3 + 1.0350P4 = 600

1.3524P2 + 1.0350P3 - 2.3874p4 = 308.675

Solve these four equations for the unknowns p~ , P2, P3 ' and P4 using

(a) Gaussian elimination

(b) Jacobi iterative method

(c) Gauss-Seidel iterative method (d) PSOR method

(e) LSOR method

For iterative methods, start with an initial guess of zero for all the unknowns and use a convergence tolerance of 1 psi (for hand calculations).

Page 388: Petroleum Reservoir Simulation a Basic Approach

9.5 Exercises 363

9-7

9-8

9-9

The following equations were obtained for the 2D reservoir problem described in Example 7.8 and Figure 7-8:

-7.8558p2 + 3.7567p5 = -14346.97

-7.5134p4 + 3.7567p5 + 3.7567p7 = 0

3.7567p2 + 3.7567p4 - 15.0268p5 + 3.7567p6 + 3.7567p8 = 0

3.7567p5 - 7 . 8 5 5 8 P 6 = -14346.97

3.7567P4 - 7.5134P7 + 3.7567P8 - 1000

3.7567p5 + 3.7567P7 - 7.5134p8 = 0

Solve these four equations for the unknowns P2 , P4 , P5, P6 ' P 7 ' and

P8 using

(a) Jacobi iterative method (b) Gauss-Seidel iterative method (c) PSOR iterative method (d) LSOR iterative method by sweeping lines in the x direction

For iterative methods, start with an initial guess of zero for all the unknowns and use a convergence tolerance of 10 psi (for hand calculations).

Consider the 1D flow problem presented in Example 7.11 and Figure 7-12. Solve this problem for the first two time steps using

(a) Thomas' algorithm (b) Jacobi iterative method (c) Gauss-Seidel iterative method (d) PSOR iterative method

For iterative methods, take the pressures at the old time level as the initial guess and use a convergence tolerance of 1 psi (for hand calculations).

Consider the 1D flow problem presented in Example 7.10 and Figure 7-11. Solve this problem for the first two time steps using

(a) Thomas' algorithm

(b) Jacobi iterative method (c) Gauss-Seidel iterative method (d) PSOR iterative method

For iterative methods, take the pressures at the old time level as the initial guess and use a convergence tolerance of 0.1 psi (for hand calculations).

Page 389: Petroleum Reservoir Simulation a Basic Approach

364 Chapter 9 Methods of Solution of Linear Equations

9-10

9-11

Consider the 1D single-well simulation problem presented in Exercise 7-16 and Figure 7-18. Solve this problem using

(a) Thomas' algorithm (b) Jacobi iterative method (c) Gauss-Seidel iterative method (d) PSOR iterative method

For iterative methods, take the pressures at the old time level as the initial guess and use a convergence tolerance of 1 psi (for hand calculations).

Consider the 2D flow problem presented in Exercise 7-10 and Figure 7-15a. Solve this problem for the first time step using

(a) Gauss-Seidel iterative method (b) PSOR iterative method (c) LSOR iterative method by sweeping lines in the y direction (d) LSOR iterative method by sweeping lines in the x direction (e) ADIP

For iterative methods, take the pressures at the old time level as the initial guess and use a convergence tolerance of 1 psi (for hand calculations).

Page 390: Petroleum Reservoir Simulation a Basic Approach

Chapter I0

Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

10.1 Introduction

This chapter presents the basics of modeling a black-oil reservoir. In this context, we present the necessary engineering concepts for multiphase flow in porous media, followed by the derivation of the flow equation for any component in the system in a 1D rectangular reservoir. Then, using CVFD terminology, we present the component general flow equa- tions in a multiphase, multidimensional system, which apply to interior and boundary reser- voir blocks. From these component flow equations, the basic flow models of two-phase oil/ water, oil/gas, and gas/water, and three-phase oil/water/gas are derived. The accumulation terms in flow equations are expressed in terms of changes in the reservoir block unknowns over a time step. We present the equations for phase production and injection rates from single- and multiblock wells operating with different conditions. The treatment of boundary conditions as fictitious wells is presented and discussed in detail. Methods of linearization of nonlinear terms in multiphase flow are discussed. We introduce two of the basic methods for solving the linearized multiphase flow equations, the implicit-pressure-explicit-satura- tion (IMPES) and simultaneous solution (SS) methods. Because this chapter forms an intro- duction to the simulation of multiphase flow, we present the two solution methods (IMPES and SS) as they apply to the two-phase oil/water flow model only. The extentions of these methods to other flow models are straightforward, whereas the application of additional solution methods, such as the sequential (SEQ) and the fully implicit methods, is discussed elsewhere (Aziz and Settari 1979; Ertekin, Abou-Kassem, and King 2001).

10.2 Reservoir Engineering Concepts in Multiphase Flow The reservoir engineering concepts discussed in this chapter pertain to the simultaneous flow of oil, water, and gas. These three phases coexist and fill the pore volume of the res- ervoir; i.e.,

S O + S w + Sg -- 1. (10.1)

The properties of interest in modeling multiphase flow in petroleum reservoirs include the PVT and transport properties of oil phase, water phase, and gas phase; the relative perme- abilities to oil phase, water phase, and gas phase; and oil/water capillary pressure and gas/oil capillary pressure. Such data are usually available and supplied to simulators in tabular form.

365

Page 391: Petroleum Reservoir Simulation a Basic Approach

366 C h a p t e r 10 In t roduc t i on to M o d e l i n g M u l t i p h a s e F l o w in P e t r o l e u m Rese rvo i r s

10.2.1 Fluid Properties

In a black-oil system, the oil, water, and gas phases coexist in equilibrium under isothermal conditions. To describe this behavior in a practical sense at reservoir temperature and any reservoir pressure, the oil and water phases can be assumed immiscible, neither the oil component nor the water component dissolves in the gas phase, and the gas-component miscibility may be large in the oil phase but is negligible in the water phase. Therefore, the water-phase and gas-phase properties that were discussed previously in single-phase flow are applicable for multiphase flow, whereas the oil-phase properties in multiphase flow are affected by pressure and solution gas/oil ratio only. Figure 10-1 demonstrates the depen- dence of the gas FVF and viscosity on pressure. Figure 10-2 shows the pressure depen- dence of the water FVF and viscosity. Figure 10-3 shows the oil FVF, oil viscosity, and solution gas/oil ratio dependence on pressure. Figure 10-3 highlights the effect of the solu- tion gas/oil ratio on oil FVF and viscosity below the oil bubble-point pressure. Above the oil bubble-point pressure, these properties are similar to those for a slightly compressible fluid and can be estimated from the values at the bubble-point pressure using

B ° = B°b (10.2) [1 + c o ( p -- Pb)]

1~o = It°b (10.3) [1 -- C ( p -- Pb)]

where c o and c, are treated as constants although they, in general, depend on the solu- tion gas/oil ratio at the bubble-point pressure.

The densities of oil, water, and gas at standard conditions are usually supplied to simula- tors to aid in estimating the phase densities at reservoir temperature and any pressure using

for the water phase,

Pw - Pwsc (10.4) Bw

for the gas phase,

P~sc (10.5) & ac~

(Pose + PgscRsa, I ccc) Po.,, = ( l O . 6 a )

Bosat

for the saturated oil phase (oil at saturation pressures that are below or equal to the bubble- point pressure, p = P,,t and P,a, < Pb ), and

Po = Pob [1 + c o (p - Po)] (lO.6b)

for the undersaturated oil phase (oil at pressures above the saturation pressure, p > Psat)"

Page 392: Petroleum Reservoir Simulation a Basic Approach

10.2 Reservoir Engineering Concepts in Multiphase Flow 367

i J _

,?

r~

u _

E

t - Q

. B

0 L J _

Pressure

Figure 10-1 Gas properties.

Pressure

Figure 10-2 Water properties.

i

Pb Pressure

Figure 10-3 Oil properties.

0

>

L.L- Q~

~ E

s,_ 0

L I _

Page 393: Petroleum Reservoir Simulation a Basic Approach

368 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

Example 10.1 Table 10-1 lists the properties of gas, water, and saturated oil at

reservoir temperature. Other pertinent data are Posc= 45 Ibm/ft 3, Pwsc = 67 Ibm~

ft3, Pg,c =0.057922 Ibm/ft 3, c o = 2 1 x 1 0 -6 psF 1, and c~ = 4 0 x 1 0 ~ ps~ 1.

Estimate the oil-, water-, and gas-phase properties (B, tU , and P ) at the

following reservoir conditions:

(a) p = 4000 psia and R = 724.92 scf/STB

(b) p = 4000 psia and R s = 522.71 scf/STB

Table 10-1 Fluid PVT and Viscosity Data for Example 10.1

Pressure (psia) R s

(scf/STB)

Oil

B o

(RB/STB)

1500 292.75 1.20413

2000 368.00 1.23210

2500 443.75 1.26054

3000 522.71 1.29208

3500 619.00 1.32933

4000 724.92 1.37193

4500 818.60 1.42596

Solution

tUo (cp)

1.7356

1.5562

1.4015

1.2516

1.1024

0.9647

0.9180

Water

Bw tUw Be (RB/B) (cp) (RB/scf)

1.02527 0.5200 0.00180

1.02224 0.5200 0.00133

1.01921 0.5200 0.00105

1.01621 0,5200 0,00088

1,01321 0,5200 0,00077

1.01024 0.5200 0.00069

1.00731 0.5200 0.00064

Gas

tUg (cp)

0.0150

0,0167

0.0185

0.0204

0.0222

0.0241

0.0260

(a) p = 4000 psia and R = 724.92 scf/STB

Water and gas properties are obtained from Table 10-1 at the reported reservoir

pressure, p = 4000 psia. Therefore, B w = 1.01024 RB/B, tuw = 0.5200 cp, and

Eq. 10.4 is used to estimate the water density, Pw - Pw,~ _ 6"7 = 66.321 B w 1.01024

Ibm/ft3; and B e = 0.00069 RB/scf, tug = 0.0241 ep, and Eq. 10.5 is used to esti-

Pg~c _ 0.057922 = 14.951 Ibm/It 3. Note mate the gas density, pg acBu 5.614583x0.00069

that if the sought entry value ( p = 4000 in this example) is not listed in the table,

linear interpolation within table entries is used (linear interpolation is widely used

Page 394: Petroleum Reservoir Simulation a Basic Approach

10.2 Reservoir Engineering Concepts in Multiphase Flow 369

in commercial reservoir simulators). For oil properties, we first determine if the oil, at the reported pressure conditions, falls into the saturated or undersaturated oil region using the saturated oil properties reported in Table 10-1. From the pres-

sure entries in the table, Rs,,t = 724.92 scf/STB at P,a, = 4000 psia. Since

R,a , = 724.92 = R s , then p = 4000 = Psa, ' the oil in the reservoir is saturated,

and the oil properties at the reported pressure conditions are those of saturated oil

at p = p,,,, = 4000 psia. Second, R = R , = 724.92 scf/STB,

lY 0 = BO,,,, = 1.37193 RB/STB, ~t ° = ~ . . . . = 0.9647 cp, and the density of oil is

estimated using Eq. 10.6a at P s , , , which gives

Posa, - - (t9°sc + P g s c R s a t / a c ) __ (45 + 0.057922 × 724 .92 /5 .614583) = 32.943 Ibm/ft 3.

BOs,, 1.37193

Therefore, Po = P .... = 32.943 Ibm/ft 3 b e c a u s e p = p , , , .

(b) p - - 4000 psia and R = 522.71 scf/STB

Water and gas properties are obtained from Table 10-1 at the reported reservoir

pressure, p = 4000 psia as in (a). Therefore, B w = 1.01024 RB/B,

~w = 0.5200 cp, and Eq. 10.4 is used to estimate the water density,

Pw - Pws.~ _ 6"/ _ 66.321 Ibm/ft3; a n d Bg = 0.00069 RB/scf, B w 1.01024

~g = 0.0241 cp, and Eq. 10.5 is used to estimate the gas density,

Pg,c _ 0.057922 - 14.951 Ibm/ft 3. For oil properties, we first P~ = a c B ~ 5 . 6 1 4 5 8 3 × 0 . 0 0 0 6 9

determine if the oil, at the reported pressure, falls into the saturated or undersat- urated oil region using the saturated oil properties reported in Table 10-1. From

the pressure entries in the table, Rs, , = 724.92 scf/STB at P,a, = 4000 psia.

Since R , = 724.92 > 522.71 = R , the oil in the reservoir is undersaturated. The

oil bubble-point pressure is obtained by searching the table for the saturation

pressure that corresponds to Rsb = Rs,,, = R s = 522.71 scf/STB. The search in

Table 10-1 results in Pb = P,,~, = 3000 psia, Bob = BO,,,t = 1.29208 RB/STB,

,Uob = ,Uosa, = 1.2516 cp, and Bg b = 0.00088 RB/scf. The FVF, viscosity, and

density of undersaturated oil at p = 4000 psia are estimated using Eqs. 10.2,

Page 395: Petroleum Reservoir Simulation a Basic Approach

370 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

10.3, and 10.6b, respectively. The use of Eq. 10.6b requires the calculation of

Pob from Eq. 10.6a. Therefore,

B = B°b = 1.29208 - 1.26550 RB/STB, o [1 + c o ( p - Pb)] [1 + (21 X 10-6)(4000-- 3000)]

= Itob = 1.2516 = 1.3038 cp, #o [ l _ c , ( p _ p b ) ] [1--(40X10-6)(4000--3000)1

Pob (Posc + Pg,cRsb [ac) _-- (45 + 0.057922 X 522.71/5.614583) = 39.001 Ibm/ft 3,

Bob 1.29208

and

Po = Pob[ 1 + Co (P -- Pb)] = 39.001X [1 + (21X 10 -6)(4000 -- 3000)] = 39.820 Ibm/R 3.

10.2.2 Relative Permeab i l i t y

In multiphase flow, oil, water, and gas may coexist in any reservoir block at any time. The capacity of the rock to transmit any phase through its pores is described by the relative permeability to that phase. The flow rate of the same phase is described by Darcy's Law in multiphase flow (Section 10.2.4). Figure 10-4 and Figure 10-5 show sketches of the phase relative permeability dependence on saturation in two-phase oil/water and gas/oil systems.

The relative permeability in three-phase oil/water/gas system can be estimated using data obtained from two-phase systems (Figure 10-4 and Figure 10-5). A widely used model for that purpose is Stone's Three-Phase Model II given below (Eqs. 10.7 through 10.9).

for the water phase,

k~w=f(Sw) (10.7)

for the gas-phase, and

k =f(Sg) (10.8)

kro = kro~w[(kro w/k . . . . +krw)(krog/k .... + krg)-(k~w +krg)] (10.9)

for the oil-phase, where kro >_ 0 , kro w and k~w at a given S w are obtained from two-

phase oil/water data (Figure 10-4), krog and krg at a given Sg are obtained from two-phase

oil/gas data (Figure 10-5), and kro ~ is the relative permeability to oil at irreducible water

saturation ( krowlsw=s~w obtained from Figure 10-4 or k~og s~=0 obtained from Figure 10-5). It

Page 396: Petroleum Reservoir Simulation a Basic Approach

10.2 Reservoir Engineering Concepts in Mult iphase F low 371

should be mentioned that the oil/gas relative permeability data in Figure 10-5 must be

obtained in the presence of irreducible water. Although Eq. 10.9 reduces to kro = kro w at

S = 0 (i.e., for a two-phase oil/water system) and to kro = krog at S w = Siw (i.e., for a

two-phase oil/gas system), the estimation of relative permeabilities uses Figure 10-4 for oil/water reservoirs and Figure 10-5 for oil/gas reservoirs.

1 -Sor~ 1

kro~ J r I

- " l l ~ k I I I row I

k

I I 0

0 Si . Water Satura t ion

Figure 10-4 Figure 10-5

1 -S~Sorg

I I

I I

I I

1-S~ Gas Saturation S~o

O/W relative permeability (left). G/O relative permeability (right).

kro~

Example 10.2 Table 10-2 lists two-phase oil~water and oil~gas relative permeability data that will be used in three-phase relative permeabifity calculations. Estimate the relative permeability to oil, water, and gas using Stone's Three-Phase Model II for the following fluid saturation distributions:

(a) SO =0.315, S w =0.490 , and S =0.195

(b) S O =0 .510 , S W =0.490 , and Sg =0.000

(c) S O =0.675, S w =0.130 , and S =0.195

Solution

(a) So=0.315, Sw=0.490 ,and Sg=0.195

At S w = 0.490, k,~ = 0.0665 and k,o w = 0.3170 using the two-phase oil/water

relative permeability data. At Sg = 0.195, k g = 0.0195 and k og = 0.2919 using

the two-phase oil/gas relative permeability data. According to Stone's Three- Phase Model II, the application of Eq. 10.7 gives relative permeability to the water

phase, i.e., k = 0.0665, the application of Eq. 10.8 gives relative permeability to

the gas phase, i.e., krg = 0.0195, and the application of Eq. 10.9 gives relative

permeability to the oil phase, i.e.,

Page 397: Petroleum Reservoir Simulation a Basic Approach

372 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

Table 10-2 Two-phase Relative Permeability Data (Coats, George, and Marcum 1974)

Oil/Water Data Oil/Gas Oata

S w k kro w Sg krg krog

0.130 0.0000 1.0000 0.000 0.0000 1.0000

0.191 0.0051 0.9990 0.101 0.0026 0.5169

0.250 0.0102 0.8000 0.150 0.0121 0.3373

0.294 0.0168 0.7241 0.195 0.0195 0.2919

0.357 0.0275 0.6206 0.250 0.0285 0.2255

0.414 0.0424 0.5040 0.281 0.0372 0.2100

0.490 0.0665 0.3170 0.337 0.0500 0.1764

0.557 0.0970 0.3029 0.386 0.0654 O. 1433

0.630 0.1148 0.1555 0.431 0.0761 0.1172

0.673 0.1259 0.0956 0.485 0.0855 0.0883

0.719 0.1381 0.0576 0.567 0.1022 0.0461

0.789 0.1636 0.0000 0.605 0.1120 0.0294

1.000 1.0000 0.0000 0.800 0.1700 0.0000

kro = 1.0000[(0.3170 / 1.0000 + 0.0665)(0.2919 / 1.0000 + 0.0195) - (0.0665 + 0.0195)]

or kro = 0 . 0 3 3 4 2 . Note that k .... = 1.0000 from the oil/water data at the irreduc-

ible water saturation of 0.13 or from oil/gas da ta at Sg = 0 .

(b) S o = 0 . 5 1 0 , S = 0 . 4 9 0 , a n d S g = 0 . 0 0 0

This is an example of two-phase flow of oil and water only because the gas satu-

ration is zero. Therefore, at S w = 0.490, kr,. = 0.0665, and kro = k .... = 0.3170.

Alternatively, the application of Stone's Three-Phase Model II gives k~w = 0.0665

and k .... =0.3170 at S w =0.490 from the oil/water data and krg =0.0000 and

kro ~ = 1.0000 at S = 0.000 from the oil/gas data. Therefore, kr, ' = 0.0665,

kr~ = 0.0000, and the application of Eq. 10.9 gives

k o = 1.0000[(0.3170 / 1.0000 + 0.0665)(1.0000 / 1.0000 + 0.0000) - (0.0665 + 0.0000)]

or k,o = 0 . 3 1 7 0 .

Page 398: Petroleum Reservoir Simulation a Basic Approach

10.2 Reservoir Engineering Concepts in Multiphase Flow 373

(c) So=0.675, Sw=0.130 ,and S =0.195

This is a case of two-phase flow of oil and gas only because the water saturation

is at the irreducible value of 0.130. Therefore, at Sg -- 0.195 , k = 0.0195 and

kro = k og = 0.2919. Alternatively, the application of Stone's Three-Phase Model

I lg ives k,.,. = 0.0000 and k .... =1.0000 at S, ,=0.130 from the oil/water data

and kr~: = 0.0195 and krog = 0.2919 at S~ = 0.195 from the oil/gas data. There-

fore, k,~. = 0.0000, krg = 0.0195, and the application of Eq. 10.9 gives

kro = 1.0000[(1.0000/1.0000 + 0.0000)(0.2919 / 1.0000 + 0.0195) - (0.0000 + 0.0195)]

or k o =0.2919.

The results of (b) and (c) confirm that Stone's Three-Phase Model II reduces to two-phase oil/water relative permeability data at zero gas saturation and to two- phase oil/gas relative permeability data at irreducible water saturation.

10 .2 .3 C a p i l l a r y P r e s s u r e

The coexistence of more than one phase in the capillary size pores of the reservoir rock is responsible for the creation of pressure difference between any two phases across the interface. This pressure difference is called capillary pressure, and it is a function of fluid saturation. Capillary pressure is defined as the pressure of the non-wetting phase minus the pressure of the wetting phase. Therefore,

P~ow = Po -Pw = f(Sw) (10.10)

for a two-phase oil/water system in water-wet rock, and

P~go = P~: - Po = f(S~) (10.11)

for a two-phase gas/oil system. Note that in the presence of gas, liquid (oil or water) always wets the rock. Figure 10-6 and Figure 10-7 show sketches of the dependence of f(Sw) and f(Sg) on saturation.

Leverett and Lewis (1941) reported that the capillary pressures in a three-phase oil/water/ gas system can be described by those obtained from two-phase systems.

Page 399: Petroleum Reservoir Simulation a Basic Approach

374 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

O

O

1 -Sor~ 1 -Siw-Sorg

S~w Water Saturation

Figure 10-6 Figure 10-7

0..

(3 o (.9

1-S~w Gas Saturation

O/W Capillary Pressure (left). G/O Capillary Pressure (right).

Example 10.3 Table 10-3 lists two-phase oil~water and gas~oil capillary pressure data. Estimate the oil~water and gas~oil capillary pressures in a three-phase oil~

water~gas reservoir at S O = 0.26, S = 0.50, and S g = 0.24.

Solution

Using two-phase oil/water capillary pressure data, P~ow = 2.42 psi at S w = 0.50.

Also, using two-phase gas/oil capillary pressure data, P~o = 0.54 psi at

Sg = 0.24. Now, the three-phase capillary pressure data at the given fluid satura-

tions are those obtained from two-phase data; i.e., P~ow = 2.42 psi and

P~go = 0.54 psi.

10.2.4 Darcy's Law in Multiphase Flow

In mult iphase f low in pet ro leum reservoirs, the fluid volumetric veloci ty (flow rate per unit cross-sectional area) of phase p = o, w, or g from block i - 1 to b lock i is given by

( k~krp ) ..... -'~p )] Upxx"2=f lc t~px, .... [(OP'-~'-'/2 ' (10.12)

The potential difference between block i - 1 and block i is

*p,_, - Op, = (pp,_, - pp, ) - yp, ,,2 (Z,-1 - Z,) (10.13)

for p = o, w, or g.

Substituting Eq. 10.13 into Eq. 10.12 yields

Page 400: Petroleum Reservoir Simulation a Basic Approach

10.3 Multiphase Flow Models 375

Table 10 -3 Two-phase Capil lary Pressure Data

Oil/Water Data Gas/Oil Data

Sw Pcow (psi) Sg Pcgo (psi)

0.20 16.00 0.04 0.02

0.25 8.60 0.24 0.54

0.30 6.00 0.34 1.02

0.40 3.56 0.49 2.08

0.50 2.42 0.59 2.98

0.60 1.58 0.69 4.44

0.70 0.86 0.74 5.88

0.80 0.20 0.79 9.52

0.90 0.00

( k k ) ...... [(p~,, - p~,)- %, ,,~ (Z, , - Z,)] (10.14)

Eq. 10.14 can be rewritten as

up~ x ,,~ = fl~ k ] ...... (k~p) [(pp, -pp)-~,p, ~,~(Z,_I-Zi)] (lO.15a) Z~kXi-1/2 t"dP Ixl .... '

for p = o, w, or g.

Likewise, the fluid volumetric velocity of phase p from block i to block i+1 is expressed as

blPXx+~/z =t~ckxlx~÷lZZ ( krp ) [(pp -pp.~)-~p~+t/z(Zi-Zi+l) ] (lO,15b) ' L ~ X i + I / z I~p Ixi+l/2 ' ,+

forp=o,w, org.

10.3 Multiphase Flow Models

In this section, we derive the equations for two-phase and three-phase flow models. As in

the case for single-phase, the flow equations are obtained by first discretizing the reservoir

into gridblocks as shown in Figure 4-1 (or gridpoints as shown in Figure 5-1), followed by

writing the material balance for the component under consideration for block i and

Page 401: Petroleum Reservoir Simulation a Basic Approach

376 Chapter 10 Introduction to Model ing Mult iphase Flow in Petroleum Reservoirs

combining it with Darcy ' s Law and FVF. W e must clarify that once the reservoir is dis-

cretized and elevation and rock properties are assigned to gridblocks (or gridpoints), space

is no longer a variable and the 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. In the black-oil model, we have three compo-

nents in the system compared to one component in a single-phase f low model. The three

components are oil , water, and gas at s tandard condi t ions ( c -- o ,w,g ). As impl ied in

Section 10.2.1, the oil component ( c = o ) is contained in the oil phase ( p = o ), the water

component ( c = w ) is conta ined in the water phase ( p = w ), and the gas componen t

( c = g ) is distr ibuted between the oil phase ( p = o ) as solut ion-gas and the gas phase

( p = fg = g ) as free-gas. In deriving the flow equation for the gas component , we ficti-

t iously split the gas component ( c = g ) into a free-gas component ( c = f g ) that is con-

tained in the gas phase ( p = g ) and a solution-gas component ( c = sg ) that is contained in

the oil phase ( p = o ); i.e., c = g = f g + sg . In addition, the oil phase consists of the oil

component and the solution-gas component. Close inspection of the density of the gas-satu-

rated oil phase as given by Eq. 10.6a gives the definition of the apparent density of the oil

component and the solution-gas component at reservoir conditions (on the basis of the oil-

phase volume) as Posc/Bo and pgscRs/(acBo), respectively. It does not need mentioning

that R s and B ° are saturated oil properties (i.e., R = Rsa t and B ° = Bosat ) and the density

of the oil component and the solution-gas component at standard conditions are Po,c and

Pg~c , respectively. The flow equations for the water and free-gas components ( c = w, fg )

are similar in form because each of these two components is the sole occupant of its phase.

However, the flow equations for the oil component ( c = o ) and the solution-gas compo-

nent ( c = sg ) (both occupy the oil phase) are obtained by considering the flow of the oil

phase at reservoir conditions and the apparent densities of these two components.

Figure 10-8 shows block i and its neighboring blocks in the x direction (block i - 1 and

b lock i + 1 ). At any instant in t ime, oil , water, free-gas, and solut ion-gas components

enter b lock i , coming from block i - 1 across its Xi_ll 2 face at mass rates of Wcx [x,_,,2 '

and leave to block i + 1 across its xi+l/2 face at mass rates of wc~ I~,+,~ • Any of the compo-

nents c = o,w, fg , and sg may also enter b lock i through a well at mass rates of qcm~ •

The mass of component c = o,w, fg , or sg contained in a unit volume of rock is mc~. In

the fol lowing steps, we derive the material balance equation for component c = o,w, fg ,

and sg for b lock i written over a t ime step At = t "÷a - t" . For b lock i in Figure 10-8,

the mass balance equation for component c can be written as

mc lx, - m~ol~ .... ÷ m = m a ' (10.16)

Page 402: Petroleum Reservoir Simulation a Basic Approach

10.3 Mu l t i phase F l o w M o d e l s 377

Well

Figure 10-8

mcs

Oi

xil . . xi+,,2 '~xi-1/2 ~i+1/2

i

Block i as a reservoir volume element in 1D flow.

where

tn+l

me, Ix .... = I wcxlx 2 dt t n

(10.17)

tn+]

moolx, .... : I Wcx[x ..... dt t n

(10.18)

tn+l

m~, = I q~m, dt t n

(10.19)

because terms like w~ I ..... ,%x[ ...... , and q~,,, for an already discretized reservoir are

functions of time only, as discussed earlier. Further justification is presented later in this

section.

Substitution of Eqs. 10.17 through 10.19 into Eq. 10.16 yields

tn+l tn+l t n + l

I Wcxlx,_~,2 d t - I wcxl ...... dt + I qc'nl dt= mcai (10.20) t n t n t n

The mass accumulation of component c is defined as

mc. ~ = At(Vbmcv)i = VbAtmcv ' = V, Cm "+l m" b~, cv~ - cv,, (10.21)

Note that the mass flow rate and mass flux for component c are related through

wcx = r h A (10.22)

mass flux ( r h ) can be expressed in terms of the component density (or apparent density) and phase volumetric velocity as

rnwx = acpwUwx (10.23a)

rhig x = ctcpgU g x (10.23b)

Page 403: Petroleum Reservoir Simulation a Basic Approach

378 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

rhox = a c (~o )Uox (10.23c)

• = a (P~c~R~)uo~ (10.23d) m sgx a c 15o

The mass of component c contained per unit rock volume ( m~, ) can be expressed in terms of porosity, fluid saturation, and component density (or apparent density) as

(10.24a)

(10.24b)

m =¢PwSw

mjg v = d?pgS u

mo~ = dp(-~f-o lS o

m ,g~ = d?( ~ )S o a c 1 5 o

(10.24c)

(10.24d)

The mass production rate of component c ( qc~ ) can be expressed in terms of the phase volumetric production rate ( qp ) and component density (or apparent density) as

q w m = acPwqw

qfgm = acpgqfg

(10.25a)

(10.25b)

qom = ac (~o )qO (10.25c)

qsgm = a ( ~ 7 - ) q o c o

It should be mentioned that, in Eqs. 10.23 through 10.25,

Uox,Uwx,Uu~ , qo,qw,q, , So,Sw,Sg , Bo,Bw,Bu , Rs,Pw , and pg

whereas p .... Pw,c, and P~sc are component properties.

Substitution of Eqs. 10.21 and 10.22 into Eq. 10.20 yields

t n+l l n+l tn+l

I (~hcxAx)lX,-l,2 d t - f(rhxA)L+~,dt, + ~ q~mdt: V. bi "(mn+lcvi - m"~v. ) i n i n t n

(10.25d)

are all phase properties,

(10.26)

Substituting Eqs. 10.23 through 10.25 into Eq. 10.26 after using Pw = Pwsc IBw in

Eqs. 10.23a, 10.24a, and 10.25a and pu = Pg~c [(acBg) in Eqs. 10.23b, 10.24b, and 10.25b;

Page 404: Petroleum Reservoir Simulation a Basic Approach

10.3 Multiphase Flow Models 379

dividing by the appropriate acPps c for p = o,w,g ; and noting that qe/Bp = qp~ for

p = o,w, g yield

tn+t( uWxAx ) dr-- ~ ( ) dt + ~ qwscdt=-~cl[-~w )i --( );] (10.27a) . Bw Ix~ ~,2 t ° ~x~+1~2 t , , ' w

for the water component,

'"+' '°+' vb q~s~ "+ ' - ( -~)71 ';'j ~UgxA~ I a t - f ( ugxAx ) at + S qyg,c, dt= ~-~ [(-B-g-g )i (10.27b)

for the free-gas component,

tn+l tn+l tn+l

f ( ~ ) d/- ! ( ~ ) d l + ~ q o ~ d l = V b ' [ ( ~ - ) ~ + l - ( 9 ) ~ ] (10.27e) n IXi-l{2 n Xi+l/2 l n ~ ~ C 0 0

for the oil component, and

"+'(R'u°xA~) dt- dt+ ~ R, qo~cdt ,, B . . . . . . ~ ...... ," ' ' (10.27d)

for the solution-gas component.

Consider the equation for the water component. Water-phase volumetric velocities from block i - 1 to block i and from block i to block i+1 are given by Eq. 10.15 for p -- w . Substitution of Eq. 10.15 for p = w into Eq. 10.27a yields

~"+' kxAxk~w I f {(fl<...7~--U--~a ) [(Pw,_, - Pw, ) - 7 (Z,_~ - Z,)] }dt

x i 1{2

tn+t

'"i' kxAxkr~ [ - ° { ( f l C ~ ) x + ~ , [(Pw, -Pw,+~)-7 ...... (Zi-Zi+,)]}dt+ ,.~ qw~c, dt

= vb, [(~'sw )7' - (4'Sw); ]. (10.28) a c Be Bw

Define the transmissibility of phase w in the x direction between block i and neighboring block i T- 1 as

kxAxk,w I T ...... = (tic ~ ) (10.29)

X'~1/2,

Page 405: Petroleum Reservoir Simulation a Basic Approach

380 Chapter 10 Introduction to Model ing Mult iphase F low in Petroleum Reservoirs

Combining Eq. 10.29 and Eq. 10.28 and rearranging the terms result in

tn+l tn+l

f {Twx ..... [(P .... -pw, ) -~ /w, , ,~(Z ,_ 1 - Z i ) ] ) d t + ~ {Tx,+,2[(pw,+ 1 -pw~)-~w~+l/2(Zi+l-Z~)]}dt t n t n

tn+l

+ f q~,~ d t = Vb' [ ( ~ ) r + ' - ( ~ w ):]. t~ ' a c 15 w

(10.30)

The derivation of Eq. 10.30 is rigorous and involves no assumptions other than the validity of Darcy ' s Law for multiphase flow (Eq. 10.15) to estimate the water-phase volumetric

velocities between block i and its neighboring blocks i - 1 and i + 1. Such validity is

widely accepted by petroleum engineers. As discussed in Section 2.6.2 for single-phase flow, once the reservoir is discretized into blocks (or nodes), the interblock geometr ic

_ kxA x )] factor between block i and its neighboring block i -Y- 1 [ (/4 c ~ ~1,o, . ] is constant, inde-

pendent of space and time. In addition, the pressure dependent term (/.twBw)lx, ..... of trans-

missibil i ty of the water phase uses some average viscosi ty and FVF for block i and

neighboring block i ~ 1, or some weight (up-stream weighting, average weighting, etc.) at

any instant of time r In other words, the term (ktwBw)[ ...... is not a function of space but a

function of time as the block pressures change with time. Similarly, the relative perme-

ability of the water phase between block i and neighboring block i -y- 1 at any instant of

t ime t ( k lx, .... ) uses the upstream value or two-point upstream value of block i and

neighboring block i-T- 1 that are already fixed in space. In other words, the term krw Ix, ...... is

not a function of space but a function of time as the block saturations change with time.

Hence, transmissibility T ...... between block i and its neighboring block i-T- 1 is a func-

tion of time only; it does not depend on space at any instant of time.

tntI

As discussed in Chapter 2, the integral [ F( t )d t is equal to the area under the curve i

t n

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 " ) and At where F m is evaluated at t ime t " and t ~ < t" < t ~1 •

Therefore,

Page 406: Petroleum Reservoir Simulation a Basic Approach

10.3 Mul t iphase F low Mode l s 381

tn+l tn+l tn+l tn+l

I F ( t )d '= I F(tm)dt= I F m d t - - Fm I a t = F " t l f = Fm(t ~+1 - f ) (10.31) t n t n t n t n

= FmAt.

Substituting Eq. 10.31 for the integrals into Eq. 10.30 and dividing by At result in the flow equation for the water component,

L . . . . . , ,+ '° z x,_,,~ ttP .... -Pw,)-~i~m(Zi-l-Zi)]-I-Twmx m [(pwm.+, Pw.)--7 ..... ( i + l - Z i ) ] (10.32a) +q:<- Vbl [(~)~+1 -- ( - ~ ) ; ].

' O¢¢At B w w

Steps similar to those that resulted in Eq. 10.32a can be carried out on Eqs. 10.27b, 10.27c, and 10.27d to derive the flow equations for the free-gas, oil, and solution-gas com- ponents, respectively.

For the free-gas component,

L#?l l _ r . ?H i_ . . . . Z t , m m Z . ,,~ttPg , -P~,)-Tg,,,~ t i _ l -Z i ) l + L~+m[(P2+ , -Pg , ) -~g ,+ ln (Z /+ l - i ) ]

q_mqfgsq = ~[(~gg);+l __(~gg);]. (10.32b)

For the oil component,

TO . . . . . . . . . . Z i+ ~'1 #~l 71l Z .,_,,~ttPo,_,-Po, J - Y ..... t i_l-Zi)]-i-Tomll2[(Poi+,-Po.)-7 ..... ( i+ l -Z i )] (10.32c)

+ " - v~, [(~oO)7+ ,_(~oo)~,1. q .... acA t

For the solution-gas component,

T R . . . . . . . . ) m ox s),<z2ttPo - P o , ) - Y~_,,~ (Z,< - Z,)l+(ToxRs)~+l/2[(P~,, - Po, -- ~oi+t/2 (Z i+l - Z i ) ]

Vb d?RsSo-n+l ,(bR f l . . . . +(Rsqo,c);" = acAt tSo~[(7)i - - t T o )i J"

(10.32d)

The general flow equations for the various components present in block n, written in CVFD terminology, are now presented in Eq. 10.33.

For the water component,

.... l tPw,-Pw ) ~r~,.°( Z, --Z.)]+~qD~<. + " . ~ , . ~ ~ o w

(10.33a)

Page 407: Petroleum Reservoir Simulation a Basic Approach

382 Chapter 10 Introduction to Model ing Mult iphase Flow in Petroleum Reservoirs

For the free-gas component,

. . . . . .

g , ° t t & , - p g ° ) - y ~ , ° ( Z l - Z , , ) ] + ~ q ~ s ~ , . + . . . . qfe~° [( )~+~ - ( ),~ ]" l~w. t~< a cAt

For the oil component,

~ , T . . . . . . . . . . Z qm Vb ~)So. n+l - - ( ~ o O ) : ] . o,.ltPo, - P o . ) - ~o,..t l - Z ) ] + Z q m + .... = a ~ t [( '-~o )~

leap,, le~,,

For the solution-gas component,

T R mo ~ m m q _ e m ~ ( o ~), [(Po, -Po°)-Y: , . (Z~-Z, )]+~. , (R~qo~,)z ,n (~qos~), IE~p~ l~,,

_ a_~t [(___~__o ) n V b dpRflo, n+l _ ( ~ ) n n ] .

(10.33b)

(10.33c)

(10.33d)

As defined in the previous chapters, ~Pn = a set whose elements are the existing neigh- boring blocks to block n in the reservoir, ~, = a set whose elements are the reservoir boundaries ( bL,bs,bw,be,bN,b U ) that are shared by block n, a n d qn+l = flow rate of the psct .n fictitious well that represents transfer of phase p -- o,w, f g between reservoir boundary l and block n as a result of a boundary condition. As mentioned in Chapters 4 and 5, ~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 blocks that fall on three reservoir bound- aries. An empty set implies that the block does not fall on any reservoir boundary; i.e., block n is an interior block, and hence

£qn+a = 0 for p = o , w , f g . psCl.n l~. ,

The explicit, implicit, and Crank-Nicolson formulations are derived from Eq. 10.33 by specifying the approximation of time t m as t" , t "+I , o r t n+1/2 , which are equivalent to us ing the first , second , and third in tegra l app rox ima t ion me thods re fe r red to in Section 2.6.3. The explicit formulation, however, is not used in multiphase flow because of time step limitations, and the Crank-Nicolson formulation is not commonly used. Con- sequently, we limit our presentation to the implicit formulation. In the following equa- tions, fluid gravity is dated at old time level n instead of new time level n+ l , as this approximation does not introduce any noticeable errors (Coats et al. 1974).

For the water component,

zn+l . . . . 1 n+l , n z z ~ xl..~_'~ -'~ n+l ..~_ n+l =Vb~[(~)aw)nn+l__(~aw)nn]" (10.34a) w, t~Pw, - Pw ) - )'w, ( l - L,)I 2., qw, c, qwsc° te~° ' . . . . tee. '° a A t B w B w

Page 408: Petroleum Reservoir Simulation a Basic Approach

10.3 M u l t i p h a s e F l o w M o d e l s 383

For the free-gas component.

E T"+a . . . . 1 n+l n Z K' q.+l q~+l ~ ~Sg .+1 ~bS g, . . . . . ttPg, -P~ )-7~, ( l - Z . ) ] + z~ sg~.~,. + sg.~° = [(-~g ). -('-=-~-g).~].(10.34b)ttg

For the oil component,

ETn+l . . . . 1 n+l n.n Z ~ . l + w . .+1 + . + 1 = Vb , , ~S°)"+1-(~o°)~]. (10.34c) ttPo, -Po° ) - 7 o , ( z - L , , ) J Z , qo,c~, qo,c,, ~-~t[(--~--.

For the solution-gas component.

~ ' ~ R xn+lr/ n+l n+l n, - - Z n ) ] ' I - E ( sqosc)t., t ,qosc). rio ,),,,, ttPo, - P o . ) - V o , . ( Z ~ R n+l + ' R -~n+l

- a__~t [(__~___o ) , , V b dpR, So..+~ _ (~oSO),~ ].

The transmissibility of phase P = o ,w , or g between blocks I and n is defined as

(10.34d)

1

L,n = Gl,, (---~p)1,n krp,, (10.35)

where G~,, = the geometric factor between blocks n and 1 presented in Chapter 4 for a block-centered grid or Chapter 5 for a point-distributed grid.

We limit our presentation in this chapter to the Po - Sw - Sg formulation, i.e., the formula- tion that uses Po, Sw, and S~ as the primary unknowns In the reservoir. The secondary unknowns in this formulation are Pw, Pg, and S o. Explicitly, the flow models of oil/ water, oil/gas, and oil/water/gas use Po - Sw, Po - Sg , and Po - Sw - Sg formulations, respectively. Other formulations such as Po - Pw - Pg , Po - P~ow - P~go , or Po - P~ow - S g break down for negligible or zero capillary pressures. To obtain the reduced set of equa- tions for each block, we express the secondary unknowns in the flow equations in terms of the primary unknowns and eliminate the secondary unknowns from the flow equations. The equations used to eliminate the secondary unknowns are the saturation constraint equation (Eq. 10.1),

S o = 1 - S w - S ~

and the capillary pressure relationships (Eqs. 10.10 and 10.11),

(10.36)

Pw = Po - P~ow(Sw) (10.37)

P~ = Po + P~.go(Sg) (10.38)

The gas/water flow model uses the p~ - S g formulation, and thus the equations used to eliminate the secondary unknowns are

S w = 1 - S~ (10.39)

Page 409: Petroleum Reservoir Simulation a Basic Approach

384 Chapter 10 Introduction to Model ing Mult iphase Flow in Petroleum Reservoirs

Pw = Pg -- Pcgw ( S g) ( 1 0 . 4 0 )

Once the primary unknowns are solved for, the saturation and capillary pressure relation- ships (Eqs. 10.36 through 10.40) are used to solve for the secondary unknowns in each reservoir block.

10.3.1 Flow Equations for Oil/Water Flow Model

The two components in the oi l /water f low mode] are oi l (or gas-free oil) and water at stan- dard conditions. The oil phase in this case contains the oil component only. The flow equations for block n in the oil/water flow model are expressed by Eqs. 10.34a and 10.34c. Combine these two equations with S O = 1 - S w and Pw = Po-P~ow(Sw) to obtain the po - Sw formulation.

For the oil component,

T n + l r / n+l n+l n n+l _1_ n+l o,,, ttPo, -Po, ) - 7o , , , (Z t -Z , ) ]+ Y~qo,c,o q ....

(10.41) -Vb"aAt { [~b(1-~oSW)]"+l - [ ~ ] " } "

For the water component,

"~Tn+lr. n+l n+lx .p,+l n+l n + S ' q ~ l + .+1 ,. . - P ~ o w ° ) - ~ , w , . ° ( z , - z . ) ] .__. c,.. q . . . . 2_~ w, ttPo, - P o ) - t cow,

(10.42)

Eqs. 10.41 and 10.42 also model the flow of undersaturated oil and water as long as the

reservoir is operated above the oil bubble-point pressure. Under such condition, the gas

remains in solution and the undersaturated oil behaves as a slightly compressible fluid

with B~ = B b and a constant oil compressibility ( c o ) whose value depends on the solu-

tion GOR at the bubble-point pressure ( R b ).

Example 10.4 A homogeneous, 1D horizontal, two-phase oil~water reservoir is described by four equal blocks as shown in Figure 10-9. Initial reservoir pressure and phase saturations are known. The reservoir left and right boundaries are sealed to flow. The reservoir has a water injection well in gridblock 1 and a production well in gridblock 4. Write the flow equations for interior gridblock 3.

Solution

For gridblock 3, n = 3 and ~3 = {2 ,4 } . Gridblock 3 is an interior block; therefore,

~3 = { } , z..~ ~-~ q,,+io,c,3 = 0 and z.~'~ q,+lwsc,,3 = 0 . Gridblock 3 has no wells; therefore,

n+l n+l qosc, = 0 and q .... = 0 .

Page 410: Petroleum Reservoir Simulation a Basic Approach

10.3 M u l t i p h a s e F l o w M o d e l s 385

/

No-flow bc

Injection well Production well

low boundary

Figure 10-9 1D reservoir in Example 10.4.

The oil equation is obtained by substituting the given values into Eq. 10.41 and expanding the summation terms, yielding

Ton+l . . . . 1 n+l Z Xl + T "+1 r / n+l n+l n ~3, ttPo= -Po~ ) -Y"o=~(Z2- 3)] 04, 3 ttPo4 -Po3 )--~043 (z4-z3)]'~-O'~-O

= Vm {[~p(l~oS~)]3+1_[q~(1-Sw)]3 } ~ . a At

(lOA3a)

Observing that Z 2 = Z 3 = Z 4 for a horizontal reservoir, the oil equation becomes

n+l n+ l . Tn+lz n+l n+l-~ Vb3 [ ( ~ ( l - - S w ) ]3+1 [ (J~(1 - S w ) ]3 } 23 tPo, - P o , ) + o,, tPo, - P o , )= a--~{ ~ - - - - ~ - - o " (10.43b) To"+ 1"

The water equation is obtained by substituting the given values into Eq. 10.42 and expanding the summation terms, yielding

Twn+l . . . . l ,+1 , .'pn+l pn+l. n Tn+lr. n+l ~3 ttPo~ - Po~ ) - t . . . . - . . . . ) - - 7 w a , ( Z 2 - Z 3 )] "1- W43 ttPo, - Port3 +1) (10.44a)

( p n + l p . + l n Z V b ~ _ ~ _ _ ~ _ - . cow, . . . . . )-~'w,( , -z3) ] + o + 0 = [( )~+~-( )~l.

' a c A t Bw w

Observing that Z= = Z 3 = Z 4 for a horizontal reservoir, the water equation

becomes

Twn+l . . . . 1 n+l~. , p n + l n n + l x l _}_ ~ n + l . . . . 1 n+lx ,pn+l n+l 23 ttPo2 - Po, ) - t cow2 - Qow3)l Zw4, [ t P o 4 - - Po, ) - t . . . . - Pcow3)]

(10.44b)

_ v ~ [(_~w~)~+, _ (_~_wW)~] acAt

Eqs. 10.43b and 10.44b are the two flow equations for gridblock 3 in this 1D reservoir.

10.3.2 Flow Equat ions for Gas/Water Flow Model

The two components in the gas/water flow model are water at standard conditions and the free-gas component at standard conditions. Gas solubility in the water phase is assumed neg- ligible; hence, the gas phase contains all the gas that exists in this system. Therefore,

Page 411: Petroleum Reservoir Simulation a Basic Approach

386 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

Eqs. 10.34a and 10.34b express the gas/water flow equations for block n. Combine these two equations with S w = 1 - S and Pw = Pg - Pcgw (Sg) to obtain the pg - S g formulation.

For the gas component,

£ ~ n + 1 . . . . 1 n+l n Z "~ qn+l qn+l z,, tt&, --pg )--)'g, (l--Zn)]+ + ,n n ,n ~ gSCLn gscn

(10.45) _v~., [(_~_~ ).+, _ (~_~),,, ], acAt g

where q"+~ = q.+l g s c i f g s c i "

For the water component,

T.+I~..+1 .+1 . . . . +1 n+l . n r Z g "1-] -~ ' '~ n+l ..]_ n+l ,,, ,, -Pg , , , ) -Tw t , - ,)J L q w , c, q~,c Z_~ w, ttPg, -Pg )-(~gw, . . . .

V b " {[t/)(l__Sg)]nn+l [~)(l__Sg)]n} " (10.46) i

acAt 8w

Example 10.5 A homogeneous, 1D horizontal, two-phase gas/water reservoir is described by four equal blocks as shown in Figure 10-10. Initial reservoir pressure and phase saturations are known. The reservoir left and right boundaries are sealed to flow. The reservoir has a production well in gridblock 3. Write the flow equations for interior gridblock 2. Assume negligible gas/water capillary pressure.

Solution

For gridblock 2, n = 2 and ~3 = {1,3}. Gridblock 2 is an interior block; therefore,

~52={} ~ , "+' S 'q.+l ' qg,c,,2 = 0 and ,_, w,c,,2 = 0 . Gridblock 2 has no wells; therefore, IE~ 2 lE~ 2

q"< = 0 a n d q,,+l ---- 0 g s c 2 w s c 2 •

Production well

f

No-flow bc low boundary

Figure 10-10 1D reservoir in Example 10.5.

The gas equation is obtained by substituting the given values into Eq. 10.45 and expanding the summation terms, yielding

Page 412: Petroleum Reservoir Simulation a Basic Approach

10.3 Multiphase Flow Models 387

T g n + l r z n+l n+l. n "Z Z "" + T n+l~" n+l n+l . . . . ,,~ ttPg, -Pu~ )--~&2( 1-- 2)] g32 [(Pg3 --Pg2 )--~'g3,z (L3-Z2)]+O+O

_ aV~t [ (_~f )~÷1 _ (_~f_f)2 ]. (10.47a)

Observing that Z~ = Z 2 = Z 3 for a horizontal reservoir, the gas equation becomes

Ln+l~n+ln+lxq-Tn+l~ +ln+l\V~b~2~t-~- ~ ~g t,2 (Pgt -- Pg2 ) g3.2 ~Pg3 -- Pg2 ) -~ [( )2+1 - ( )2 ]" ( 1 0 . 4 7 b )

c g

The water equation is obtained by substituting given into Eq. 10.46, yielding

Twn+l [ ( P ; ; 1 - pg ;1 ) - (ec ; ; i - ecr21e ) - ~Y;,,2 (Z1 - Z2 )] -~- r~n~s1 [ (Pgf 1 - pg+l)

Vb z ~)(l_Sg).n+ 1 t p ( l _ S g ) m (10.48a) _(p,+a.~w~ - P"+~ ) - 7w~,~ ( Z 3 ~ g w ~ " -Z2) ] + 0 + 0 = a---~{[ Bw J2 - [ T J 2 ~"

Observing that ZI = Z 2 = Z 3 for a horizontal reservoir and for negligible gas/

water capillary pressure, the water equation becomes

n+l n+l\ Tn+le n+l n+lx Vb2 { [ ~ ( 1 2 Sg)]~+l [ ~ ( 1 - - Sg)]2 L°+, . ,2 tPg, --Pu~ )+ w~ tp~ -pg~ ) = a At ~w - ~ }" (10.48b)

Eqs. 10.47b and 10.48b are the two flow equations for gridblock 2 in this 1D reservoir.

10.3.3 Flow Equations for Oil/Gas Flow Model

The components in the oil/gas flow model are oil at standard conditions, gas at standard conditions, and irreducible water (immobile water). Gas consists of both free-gas and solution-gas components. The flow equation for gas is obtained by adding Eqs. 10.34b and 10.34d,

Z n÷l ,+1_p,+1) n Z - Z " l + ' T n ""+1 . . . . 1 n+l yn (Zl__Zn)] } {T~,,,, [(G, g° - Yg,° ( , ~)J t oG),° t t P o , - Po, ) - o,,,

.q '~-'~ r n+l ( R ~ xn+ll n+l n+l Z,t%gsc,, + , sqosch,~ l+[qsgsc, +(Rsqo,~)~ ] (10.49)

V b {[(eS~)~+l .~)Sg . . . . . ~)RsSo.,,+l .~bRS . . . . .

- ac At" o

Therefore, Eqs. 10.34c and 10.49 express the oil/gas flow equations for block n.

Combine these two equations with S O = (1 - S~) - Sg and pg = Po + P~go(Se) to obtain the Po - Sg formulation.

Page 413: Petroleum Reservoir Simulation a Basic Approach

388 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

For the oil component,

E ~ n + l r r n+l n+l \ n / z Z x~--~ -~-'~ n+l n+l Lo,.° [tPo, - Po. ) - 7o,.. t ~ - . ) l 2 .qo.c, . + qo,c°

(10.50) _voo {[O(l-S~w-S~)l:+l [~(l-S~w-S~)]~}. acAt B o B o

For the gas component,

E t r P n + l r z n+l n+lx . n n + l pn+l n ,. tl~,. ttPo, -Po. )+t r~o , - cgo.)-7~, (Z~-Z)]

+ T R ,+1 n+l n+l n n+l ,, qo~, l ( o .), [(Po -Po )-7o, ( Z t - Z . ) ] } + ~ [ q i g = , +R"+I .+1. ,n n n ,n ,n ,n

l~. (10.51) _~r n+l jr Rn+l n+l. ]

tqfgsc, s. qo.c

_~{(_~gg),+~_(_~gS):-d?Rs(1-S~W-Bo _ -Sg)]: + t s )].+1 _ [¢n (1-sS,w }.

The irreducible water in this model is assumed to have the same compressibility as that of porosity. If the irreducible water is assumed incompressible, then q~Hc = ~b(1-S~w) replaces q0 and (1-Sg) replaces (1 -S~w-Ss ) in Eqs. 10.50 and 10.51.

Example 10.6 A homogeneous, 2D horizontal two-phase oil/gas reservoir is shown in Figure 10-11. Initial reservoir pressure and phase saturations are known. The reservoir has no-flow boundaries. There is a gas injection well in gridblock 1 and a production well in gridblock 16. Write the flow equations for interior gridblock 10. Assume negligible gas/oil capillary pressure.

Solution

For gridblock 10, n = 10 and ~io = {6,9,11,14} . Gridblock 10 is an interior block;

therefore, ~'10 = { } ~ " q"+] = 0 and l....a oscLl o

therefore, q,+l = 0 and qn+] =0 OSClo fgsclo "

2q,+1 0 Gridblock 10 has no wells; fgscl,lO

Figure 10--11 2D reservoir in Example 10.6.

Page 414: Petroleum Reservoir Simulation a Basic Approach

1 0 . 3 M u l t i p h a s e F l o w M o d e l s 389

The oil equation is obtained by substituting the given values into Eq. 10.50 and expanding the summation terms, yielding

Ton+l rz .+1 .4-1 . . . . Z Xl "~ Tn+l . . . . 1 fl4-1 n (Z9 __ Z l 0 ) ] ,,ottPo, -Po,o ) -7o6. ,ot"6- lOJJ og,ottPo9 -Po,o ) - V ....

.4-1 .4-1 . Z "" + T "+1 . . . . 1 "+1 \ t/ ( Z - - Z l 0 ) ] +T"+I [(Po. - P o l o ) - - • ° 1 , , o ( z l l - - 10)l . . . . . ttPol, - - P o , o ) - - 7 . . . . . 14 (10 .52a) Oll.10 . . .

0 Vb, ° (D(1 - S,w - S~) .+, (D(1 - S,~ -

g ]1o -[ g

For a horizontal reservoir, Z 6 = Z 9 = Z m = Z u = Z,4 and the oil equation

becomes

o + 1 . + r 7 , . . 4 - , .+, r . + l . n4-1 o4-1.+ro4-1 .4-1_ .4-, 6,o tPo6 - Polo ) o9,o tPo9 - Polo ) + ..... tPoll - - P010 ) O14,10 ( P o . Polo )

V~0 (D(I - S,w _ (D(I - Siw - S u) ]" } (10 .52b )

= a c A , { [ ~ o - - S g ) ] 7 ; 1 - [ ~ 1 0 •

The gas equation is obtained by substituting the given values into Eq. 10.51 and expanding the summation terms, yielding

Tgn+l . . . . 1 n+lx + . p . + l _ p .+ l ) _ . _ 6,ottPo~-Po, o ) t cgo 6 cgo m - Yg6,m(Z6 Z l o ) ]

+'T R xn+lr/ n+l n+l n, o s)6,10 [[ 'Po6 - - Po lo ) - - Y . . . . ( Z 6 - Z l o )]

+r2 t p2 l - poT?)+ - ) - r:91o - Z lo) ]

+ ' T R ..4-1 . . . . l n4-1 . . . . Z , o ) ] t o s)9,,o ttPo9 - Po,o ) - 7o9.,o t z '9 - -

+T.~I . . . . 1 .+l . + . p . + l _ p .+J . " . " Z - Z l o ) ] gnmt[Pou --Po,o ) t cgo u CgOlo)--~/&,m [ 11

+'T R xn+l r / n+l n+l x n t o ~),1.,o t t P o . - Po,o ) - 7o,,,,o ( Z n - Zlo)]

-[-Tg:+io [(pnl+l -- pon~l) + (Pc;;~4 -Pc;;;o)- ') ] ; ,4.1o ( Z , 4 - Z l o ) ]

-+-~T ~ ~n+l r~ n+l ( o l~s )1<,o [(Po,4 -- Pon,+o 1) -- r2,4 ,o (Z14 - z l0 ) ] "]- 0 "}- [0 "]- Rsn +1 X 0 ]

= ~ g ~ - ~ - g -S 'w-Sg) I~o ' - [ (DRs( I -S 'w-S ' ) ] " } Vb'° { ( )';o' - ( )~o + [(DR, (1 -Bo . -B- 10 • (10.53a) O ~ c A t o

O b s e r v i n g that Z 6 = Z 9 = Z m = ZI, = Z14 for a hor izontal r e se rvo i r a n d for negl i-

gible gas /oi l capi l lary p r e s s u r e , t he g a s e q u a t i o n b e c o m e s

Page 415: Petroleum Reservoir Simulation a Basic Approach

390 Chapter 10 Introduct ion to Model ing Mul t iphase F low in Pe tro leum Reservoirs

[T n+l + " T R .n+l.. n+l n+l. + rTn+l -.I- " T R ..+1 ~. n+l n+l g6,1o [ o s)6,1oltPo6 -Polo ) [ g910 t 0 s)9,10]tP09 -Polo )

+[Tn+l n+l n+l n+l._l_ rTn+l " T R xn+l le n+l n+lx +(ToR,).Io](Po. + t O S ) . . . . ltPot4 --Polo ) g,,,lo --Po,o ) l gt4,t0 ,

-S,w -S,w __ Vblo {(--~):ol__(__~g_):O +[ q~Rs(1 - S g ) ] : l _ [ ~ ) R s ( l -Sg)]:to}"

cat , -.o 8o

Eqs. 10.52b and 10.53b are the two flow equations for gridbloek 10 in this 2D reservoir.

(10.53b)

10.3.4 F low Equat ions for Black-Oi l Model

The isothermal oil/water/gas flow model is known as the black-oil model. The oil compo- nent forms the bulk of the oil phase. The solution-gas component dissolves in it and the remaining gas (the free-gas component) forms the gas phase. Oil and water are immiscible and both do not dissolve in the gas phase. Therefore, the black-oil system consists of the water component, the oil component, and the gas component (solution-gas plus free-gas). Accordingly, a black-oil model consists of Eqs. 10.34a, 10.34c, and 10.49.

For the oil component,

2 ~vn+l . . . . 1 n+l. ~ " Z " ~ qn+l + q.+l 1o.. ttPo, -Po . ) - Y o , , t t - Z . ) ] + x . . ~ o.q . . . . .

For the gas component,

(10.34e)

E .T.+lr. n+l n+l . . . . -- Z "" + ' T R . .+lr . .+1 .+1. . t g, ltPe --pg )--yg, tZ~ .)J t o ~), ttPo, --Po. )--~'0, ( Z ~ - - Z ) ] } l~n ,n n n ,. ,n

+~-'~[ n+l n,+l n+l "R xn+l. .~, qfgsc,,. + (Rsqo,c)t, ] + [qfgsc + [ sqo,c), l tE~

-- V ~ t { [ ( ~ g g ):+1 - (-'~gg)nn ] -{- [ ( ~ o S ° ):+1 - ( ~ o S ° ) : ] }.

For the water component,

(10.49)

E T n + I [ . n+l n+l. n w,.° tPw, - Pw. ) - 7w,,. (Zz Z "" " x-" n+l .+1 -- . ) l + L q w . c , . +qw,.c.

C o m b i n e t h e s e t h r e e e q u a t i o n s w i t h S o = l - S w - S ,

Pg = Po + Pcgo (Sg) to obtain the Po - Sw - Su formulation.

(10.34a)

pw = Po-P~ow(Sw) . a n d

Page 416: Petroleum Reservoir Simulation a Basic Approach

10.3 Multiphase Flow Models 391

For the oil component,

E Tn+I~ n+l n+l n Z - n+l _[_ n+l o,,, ttPo, -Po. )-7o, ( ~ Z.)]+~.qo~,o q ....

_ Vb. {[~)( l-Sw-Sg)]~+l_[~)(1-Sw-Sg)] ,} .

acAt B o Bo

For the gas component,

E,Tn+lr. n+l n + l . + . p . + l p.+l. . I g,.° ttPo, -Po. ) t cgo,- cgo.)-Tg,.°(Zt-Z.)]

+'T R xn+l r / n+l n+l \ n t o s),. ttpo, -Po. ) - 7 o , . ( z ~ - z ) ] } q'~-"~ r n+l . .ben+l n+l • n+l . . kRn+l n+l~

2_.[q/g~ .... s,.. qosc,..]W[qfgsc, s. qo~ l

V b ~)Sg .+, ~)Sg . ~)R (1 - S~ - Ss) ]nn+ 1 _

-- O~C-'~t { ( B g ) n - ( ~ g )n -{- [ ~ o

[.~R, (1 - S w - S~)]:: }, Bo

(10.54)

(10.55)

For the water component,

E ~ n + l r / n+l n+l ~ r e n + l e n + l \ n lw,. ttPo, -Po° ) - t cow,- cow,,)-Yw,,,(Z~-Zn)]b Eqns+cl~. +q,,+l wsc n

l~,, z~° (10.56) _ Vb° [(~wW)n+l__(~&)):].

a At B

It is noteworthy to mention that the flow equations in a black-oil model (Eqs. 10.54, 10.55, and 10.56) can be reduced to any of the two-phase flow models already presented. This is accomplished by discarding the flow equation for the missing phase and setting the saturation of the missing phase to zero in the remaining flow equations. For example, the oil/water flow model is obtained from the black-oil model by discarding the gas flow equation (Eq. 10.55) and setting Sg = 0 in Eq. 10.54. The oil/gas flow model is obtained by discarding the water flow equation (Eq. 10.56) and setting S w = Siw (or S w = 0 as the case may be) in Eqs. 10.54 and 10.55.

Example 10.7 A single-well simulation problem is presented in Figure 10-12. The reservoir is horizontal and contains oil, water, and gas. Initial reservoir pressure and phase saturations are known. The reservoir top and lateral boundaries are no-flow boundaries, whereas the reservoir bottom boundary represents a constant pressure WOC. The well is completed through the top layer. Write the flow equations for interior gridblock 7.

Solution

For g r i d b l o c k 7, n = 7 a n d ~'7 = {3 ,6 ,8 ,11 } . G r i d b l o c k 7 is an in te r io r b lock ;

E n+l 0 X-~ .+1 ~ q . + l t h e r e f o r e , ~7 = { } ' qo,c,.7 = , Lqwsc,.7 = 0 , a n d z_~ [g,c,.7 = 0 . G r i d b l o c k 7 l ~ 7 IE~ 7 IE~ 7

Page 417: Petroleum Reservoir Simulation a Basic Approach

392 C h a p t e r 10 In t roduc t ion to M o d e l i n g M u l t i p h a s e F l o w in P e t r o l e u m R e s e r v o i r s

has no wells; therefore, qo",+~] = 0, q"+~ = 0 , and q"+]i~,c, = 0 . Observe also that

Z 6 = Z 7 -~- Z 8 •

The oil equation is obtained by substituting the given values into Eq. 10.54 and expanding the summation terms, yielding

T o n + l r / n+l n+l x n ~ n + l . n+l n + l . J r T n+l" n+l n + l \ ~ ttPo~ --Po7 )-7o37(Z3-Z7)]+1o67 tPo, -Po~ ) o~ tPo~ -Po~ )

+ T , + ~ [ . . + i . + ~ . n. ..... tPo,1 -Po~ ) - 7 . . . . ( Z 1 ] - Z T ) ] ~ O - I - O

v~ 4)(1-Sw-S,)..+, -g 7 {[

(10.57)

Production well

)oundary

i ) r

~o-flow boundary

(10.58)

• t,.,,ull~it~llt uuundary pressure

The gas equation is obtained by substituting the given values into Eq. 10.55 and expanding the summation terms, yielding

n+l n+l__ +(p.+, p.+1. " "Z C. [(po~ ° + ' " Po~ ) - ~8o~ - ~go~ ) - 7~.~ t 3 - Z7)]

+ ' T R \n+Irz n+l n+l. " "Z Z .1 + T.+I. . .+l ,,+l. + .pn+l p.+l)] t o s)37 ttPo3 -PoT )--~o37 ( 3 - 7)] g6,7 LtPo6 -PoT ) t ego6- cgoT--

+ ' T R ,,+lr, n+l n+l n+l .+1 (pn+l __ p,+ l ) ] t o .),.~ ltPo, -Po~ )]+T~,.7 [(Po, - "+~" Po7 ) + . ego, cgoT--

- } - / Z R xn+l r / n+I n+l n+l n+l t o s)~7 ttPo, - PoT )] + T~,,7 [(Po,, - .+1. + (p.+l _ p.+a . . . . . P o 7 ) . c g o l L c g o 7 ) - - ~ g l l , 7 ~ L l l - - Z 7 ) ]

+ ' T R xn+l . . . . 1 n+l x n , " Z R n+l x 0 ] t o S)l,TttPo. -Po7 ) - Y .... t l l - - Z T ) ] + 0 + [ 0 + s7

- - S w -

The water equation is obtained by substituting the given values into Eq. 10.56 and expanding the summation terms, yielding

Figure 10-12 2D radial-cylindrical reservoir in Example 10.7.

Page 418: Petroleum Reservoir Simulation a Basic Approach

10.4 So lu t ion o f M u l t i p h a s e F l o w E q u a t i o n s 393

Twn+lrz n+l n+lx ~pn+l pn+l ~ n , ~Z ~.Tt~Po3 -PoT ) - t cow~- cowT)-Yw3Tt 3 - Z 7 ) ]

Tn+l . . . . 1 n+l-~ (pn+l pn+l )] +Tn+lw6, 7 ttPo6r" n+l - - poTn+l)" _ t'P"+lcow6 - - pn+lcow7 )] + w~7 ttPo, - Po7 ) - - cow~ - cow~ . .

+Tn+lr. n+l n+l (p.+1 _ _ p n + l ) _ _ ~ ..... ( Z l l Z7)]..[_O,.[_O ..... ttPo,, -Po~ ) - - cow, . . . . . "

= V~. [( Csw)7' - ( Csw)~]. ac/Xt B w Bw

Eqs. 10.57, 10.58, and 10.59 are the three flow equations for gridblock 7 in this 2D radial flow reservoir.

(10.59)

10.4 Solution of Multiphase Flow Equations The equations for the whole reservoir consist of the flow equations contributed by all res- ervoir blocks. The unknowns in the system are the unknowns of the formulation for all reservoir blocks. To solve the flow equations of a reservoir model, several steps are taken. The accumulation terms in the flow equations are expanded in a conservative way and expressed in terms of the changes of the unknowns of the block over a time step, the boundary conditions are implemented (or rates of the fictitious wells are estimated), pro- duction and injection rates are included, and the nonlinear terms are linearized both in space and time. The treatments of boundary conditions, production (injection), and linear- ization are, to some extent, s imilar to those for s ingle-f low models presented in Chapters 4, 5, 6, and 8. In this section, we present in elaborate detail the expansion of the accumulation terms, the treatments of production and injection wells, boundary condi- tions, and solution methods of the equations of multiphase flow models. In addition, we highlight differences in the treatment of nonlinear terms from single-phase flow.

10.4.1 Expansion of Accumulation Terms

The accumulation terms of the reduced set of equations for each reservoir block must be expanded and expressed in terms of the changes of the primary unknowns of formulation over a time step. These accumulation terms form the RHS of Eqs. 10.41 and 10.42 for the oil/water model, Eqs. 10.45 and 10.46 for the gas/water model, Eqs. 10.50 and 10.51 for the oil/gas model, and Eqs. 10.54 through 10.56 for the oil/water/gas model. The expan- sion scheme used must preserve the material balance. For example, consider the expan-

Vb ~1)Sw. n+l - - (~wW): ] in terms of Po and S w Add sion of the RHS of Eq. 10.42, a---~[(-~-w )" ,

n+l and subtract the term S~. (ff-w)n and factorize the terms as follows:

Page 419: Petroleum Reservoir Simulation a Basic Approach

394 C h a p t e r 10 I n t r o d u c t i o n to M o d e l i n g M u l t i p h a s e F l o w in P e t r o l e u m R e s e r v o i r s

gb rz~)Swxn+I :~)Swxn, gb r :~ ) S . . . . 1 S n , ~) xn+l + S n ( ~ ) )n+l __(~Sw)n]B_ " - w - - o

a A t B w w a~ t w " Bw " Bw w

Wb r: ~) xn+l . . . . 1 a n [ ( ~ ) n + l ~ n -- ~ " ~ ( " B) n (~w - s n )']- Wn~.Ow.n - ( B - - ) , ] } *

a c A t ~ " " w

(10.60)

1 Again, add and subtract the term ~b n+l

Bw" n and factorize the terms as follows:

in the square bracket on the RHS of Eq. 10.60

a c A t B w

Vb ~ .+1 .+1 ) + S " f( ~)"+ ' 1 a~.+ 1 1 ~b . - "{ (V) . ( < o - s 2 : w..Y-w.O + _ _ ( V ) . l } a A t w " - . a n n - -n O n w

Vb [ ¢ ~__).+l~s.+, _ &. ) + ~ [¢:+1( ~+1

1 1 - ~ ~. )+-z-~ . (~'.°+'-qL")]}- ""Bw "n " wn n n a c A t " " ~w. B w t~

(10.61)

1 Express the changes in - - and ~b. over a time step in terms of the changes in oil-phase

Bw. pressure over the same time step, resulting in

Vb~n [(~.~Sw ): +1 - (~B-~wW): ] a At B w

_ v~n ~(~_)n+l(S°+l . + n ~ - - + ~ - ~ , , ] ( P o , , - -Po.)} ' a c A t . . B w . . . . . _ S w . ) Sw.[~.+l( 1, 1 , .+1 . w n w n

(10.62)

where (~---) ' and ~P'n are defined as the chord slopes estimated between values at current w.

time level at old iteration n(~ 1 and old time level n,

) / (Po . ( w. )'=(B.'2'~ B~° - P o . ) Wn

(10.63)

(v) (v) q~, = (~:+1 1 , . / . n+l . (10.64)

- 9 . ) ~Po,, - P o . )

The RHS of Eq. 10.62, along with the definitions of chord slopes given by Eqs. 10.63 and 10.64, is termed a conservat ive expansion of the accumulat ion term represented by the LHS of Eq. 10.62.

Page 420: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution o f Multiphase Flow Equations 395

Other accumula t ion terms can be expanded using similar steps as those that led to Eq. 10.62. Ertekin, Abou-Kassem, and King (2001) derived a generic equation for a con- servative expansion of any accumulation term, which states

Vb [(UVXy)n+I - (UVXy)n] = V--~'-b" [(VXY)n(un+I - u n ) (10.65) acAt acAt

+U "+'( XY)" (V "+1 - V") + (MY) n+l Y" ( X "+~ - X n) + (UVX) n+l (y,+l _ y , ) ] ,

where U is the weakest nonlinear function, Y is the strongest nonlinear function, and the

degree of nonlinearity of V and X increases in the direction from U to Y. Usually, U -= q~,

V = 1 / Bp, X = R s, and Y - Sp. If U, V, X, or Y does not exist, then it is assigned a value

of 1. Because ~P, l / B p , and R s are functions of the oil-phase pressure that is a primary

unknown, and Sp is either a primary unknown as in case of S w and Sg or a function of

the saturations that are primary unknowns ( Sw,S ~ ) as in the case of S o , Eq. 10.65 can be

further developed further to give

Vb [(UVXY) "+I-(UVXY)"]= V--~7-°{(VXY)"U'(pn+'-p") acAt acAt

+U "+~ (XY)" V t ( p n+l - p") + ( U V ) n+l y n X ' ( p " + ' - P")

S S n+l q.-(UVX)n+I[(OY /OSw)(S;+I - s ; ) - . i - (aY / a g)( g - S g ) ] }

(10.66)

o r

gb [ ( U V X Y ) n+l - (UVXY)"] = ~ { [(VXY)" U" + U "+' (XY)" V' acAt acAt

qI-(UV) n+l Y"X'] (p"+~ - pn) + (UVX),+I (2 Y / aS w)( S~ +' - S~ ) (10.67)

+ ( U V X ) n + I ( a y / a S g ) ( S ; +1 S n - ,)},

where

~) ~v, (10.68a) U" = (U n+l - U n ) [(pn+l _ pn )

(v) (v) g ' = ( g n+l - v n ) / ( p n+l - pn) (10.68b)

,~1 ,~) (10.68c) Xt = (X n+l - X n )/(pn+l -- pn )

Moreover , for Y=-S w , OY/OSw=I and O Y ] O S g = O ; f o r Y=-Sg , OY/~Sw=O and

O Y/ O S g =l ;and for Y=-S o, OY /3S w = - I and O Y / O S g = - I .

Page 421: Petroleum Reservoir Simulation a Basic Approach

396 Chapter 10 Introduct ion to Model ing Mul t iphase F low in Pe t ro leum Reservo irs

Let us apply Eq. 10.67 to obtain the expansion given by Eq. 10.62. In this case, we have U - q), V - 1/Bw, X = 1, and Y = S w . Note that p = Po • Substitution into Eq. 10.68

gives

(v) (v)

{b" = ( g?"+~ - eft") I (p~< - p~ ) (10.69)

( )'=(B~+] B ; I / ( P ~ < - P ~ ) w

(10.70)

In addition,

X" = O. (10.71)

ar /as = as~/aSw = 1 (10.72a)

OY /OSg = OS w/OSg = 0 (10.72b)

Substitution of Eqs. 10.69 and 10.70 and the definitions of U, V, X, and Yinto Eq. 10.67 gives

V b 1 S ,+1 1 S " Vb 1 . . . . 1 , 1 ,

+ ( ~ w ) " + I s : x ' ] ( p : < - po~) + (tP~ww)"+1(bY/aSw)(S~w +' - S ~ ) (10.73)

+(~,l)"+l(ay /as)(s~+l s" - ~)}.

Substitution of Eqs. 10.71 and 10.72 into this equation yields

+(¢P ~-])"< S~" x 0](po~+l- po")+ (¢p B~-7)"+' × lx(S~ "+' - S"w) (10.74)

+(~ ~)"+~ × 0 × ( s 7 ' - s ~ ) } ,

which upon simplification, term factorization, and addition of subscript n to all functions to identify the block gives Eq. 10.62, which states

vb. [(~):+1 _(_~]):] acAt

_ v ,

a c a t " ~ . . . . ,, ~21(po "+* Wn w n

(10.62)

Page 422: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution of Multiphase Flow Equations 397

10.4.2 Well Rate Terms

Production and injection wells are treated separately because injection usually involves one phase only, either water or gas, but production involves all phases present in wellblocks.

10.4.2.1 Production Terms

Fluid production rates in multiphase flow are dependent on each other through at least rela- tive permeabilities. In other words, the specification of the production rate of any phase implicitly dictates the production rates of the other phases. In this section, we emphasize the treatment of a vertical well that is completed in several blocks, as shown in Figure 10-13, and produces fluids from a multiphase reservoir.

qsc

nl Pwfn~ ~*~ :-Zn 1 = ~ *~----qscnl 1

Pwfn2_ ~ ~Zn 2 n2

:~ *: ~qscn2 1

_~. ~: ~ n 3 Pwfn~ ~ --Zn 3 ~. ~ ~qscn 3

~w = {nl'n2'n3}

Figure 10-13 Cross-section showing pressures within a vertical production wellbore.

If the FBHP at reference depth ( Pw/,~j ) is assumed to be known, then well pressure oppo-

site wellblock i can be estimated using the following equation:

Pwf, = Pwl,,~ + ~wb (Zi - Zref ) (10.75)

where

7wb = 7cPwbg (10.76)

Page 423: Petroleum Reservoir Simulation a Basic Approach

398 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

In addition, the average fluid density in the wellbore opposite the producing formation is approximated as

p p n p q p s c [)wb = p~{o,w,fg} (10.77a)

q,,sc p~{o,w,fg}

where average FBHP or P<~: can be used to obtain estimates for B and ~p for phase p=o,w,g . P

The concern here is to estimate the production rate of phase p = o,w, fg from wellblock

i under different well operating conditions, where wellblock i is a member of the set of

all blocks that contribute to well production; i.e., i e ~Pw •

Shut-in well

qpsc i ~ 0

where p = o,w, fg .

Specified well flow rate

The production rate of phase p = o,w, fg from wellblock i is given by

krp qp~c, = -Gw, (--~-~,, ) i ( P i -- Pwf e )

This equation can be combined with Eq. 10.75 to give

(10.78)

(10.79a)

krp qpsc, = -Gw, (B~p)i [P, - Pw:,,: - Ywb (Zi - Zre:)] (10.80a)

For a multiblock well, Pw& is estimated from the well rate specification ( qsp ) using

Z{Gw[Pi--Ywb(Zi-Zre:)] ~ Mp~}+qsp i ~ v~,,~ (lO.81a)

Pw& = ~ , Gw~ ~ Mv ' ieT:~ pE?]pr d

where ~lprd and Mp depend on the type of well rate specification as listed in Table 10-4.

The use ofEq. 10.81a requires solving for Pw& implicitly along with the reservoir block

pressures. An explicit treatment; however, uses Eq. 10.81a at old time level n to estimate n

Pw&, which is subsequently substituted into Eq. 10.80a to estimate the production rate of

phase p = o,w, fg from wellblock i ( qe~ ). For a single-block well, the application of

Eq. 10.81a for ~w = {i} followed by substitution for PwL~ into Eq. 10.80a yields

Page 424: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution o f Mult iphase F low Equat ions 399

PwI,,j = [Pi - ~wb (Zi -- Zref )] "1- qsp

Gw, Z M., PET] prd

(10.81c)

for p = o,w, fg .

kre qsp qp~c, = (B~-p)i ~ Me,

P~T] prd

(10.80c)

Table 10 -4 Well Rate Speci f icat ion and Defini t ions of Set r/pra

a n d M P

Well Rate Specification

q~

Set of Specified Phases

r/~

Phase Relative Mobility

M P

qosp {o} krp / /up

qLsp {O, W} k~o //up

qrsp {o,w,g} krp / /up

qosesc {o} krp / B p/u p

qLs sc {o,w} k

Specified well pressure gradient

For a specified well pressure gradient, the production rate of phase p = o,w, fg from wellblock i is given by

krp . ~p qp,~ : -2~rflcrwk . h i('-~-u )i

, i p /up r,~ (10.82a)

Specif ied well F B H P

If the FBHP of a well ( Pw% ) is specified, then the production rate of phase p = o,w, fg

from wellblock i can be estimated using Eq. 10.80a,

k qpsc = -Gw ( - -~--~--) i [P i -- Pwfr~f -- Ywb ( Z i - Zre f )] (10 .80a)

' ' 1zip~up

Page 425: Petroleum Reservoir Simulation a Basic Approach

400 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

Example 10.8 Consider the single-well simulation problem presented in Example 10. 7. Write the production rate equations for oil, water, and gas from the well in gridblock 9 given that the well is producing at a specified constant liquid rate of qz~esc •

Solution

The concern here is to find the production rate of the individual phases from the

well in wellblock 9 given that q,p = qL, p,c • For single-block wells, Eq. 10.80c is

applicable, stating

krp q ,, qp,c, = ( B ~ p ) i Z gpi (10.80c)

where p = o,w, fg .

For qw = q~psc in Table 10-4, we have ~ ] p r d "~" {O,W} and Mp = k / B p ~ p .

Therefore, substitution into Eq. 10.80c for wellblock 9 (i.e., i = 9 ) gives

q~p,c qosc9 = ( - ~ - ' - ) 9

/~o/Uo [ ( & ) 9 4- ( ; rw)9 ] ~ol~o wl~w

(10.83a)

q Lspsc q .... = ( )9 kr ° kr w

w//'~w [(~-U ) 9 4- (Bu-u)9 ] olto wltw

(10.83b)

krg qLspsc qfgsc 9 : ('~-~-H) 9z~gtt~g kro - - k~w

[ ( B ~ ) 9 4 - ( ~ - u )9] o#o wl~w

(10.83c)

It should be noted that qgsc 9 = qlgsc9 + Rs9qosc9 .

10.4.2.2 Inject ion Te rms

For injection wells, one phase (usually water or gas) is injected. The mobi l i ty of the injected fluid at reservoir conditions in a wellblock is equal to the sum of the mobilities of all the phases present in the wellblock (Abou-Kassem 1996); i.e.,

Mini : Z Mp (10.84) p~?l¢.;

Page 426: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution of Multiphase Flow Equations 401

where

Mp = (k~p / /up) , and flckHMp =

block.

~]inj = {o,w,g} (10.85)

mobility of phase p at reservoir conditions of the well-

In this section, we emphasize the treatment of a well that is completed in several blocks, as

shown in Figure 10-14, and injects either water or gas into a multiphase reservoir. If the

qsc

'- WTre? ~ ~ --~ -=--~ J-ref ~ T

Pv,'fnl ~ ~-~ ~Zn nl

Pwfn2, .0__: _~Zn 2 mZn2

• ~ ; .=~qscn2

?

~ _~ ~.Ln3 Pwfn3~- ~ :-*Z n ~ -~qs~n3

~w = {nl'n2'n3}

Figure 10-14 Cross-section showing pressures within a vertical injection wellbore.

FBHP at reference depth ( Pwfr,: ) is assumed to be known, then the well pressure opposite

wellblock i can be estimated using Eq. 10.75,

Pwf i = Pwf,,: -1- ~wb ( Z i - Z re f ) (10.75)

where

7wb = YcPwbg (10.76)

and the average density of the injected fluid, opposite the formation, is estimated as

P psc Pwb = - (10.77b)

B P

Page 427: Petroleum Reservoir Simulation a Basic Approach

402 Chapter 10 Introduction to Model ing Mult iphase F low in Petroleum Reservoirs

Average FBHP or Pw:~,: can be used to obtain an estimate for ~ of the injected phasep .

The concern here is to estimate the injection rate of the injected phase (usually water or

gas) into wellblock i under different well operating conditions, where wellblock i is a

member of the set of all blocks that receive the injected fluid; i.e., i c ~Pw • Of course, the

rates of injection of the remaining phases are set to zero.

Shut-in well

qps,, = 0 (10.78)

where P = W or fg.

Specif ied well f l ow rate

The injection rate of the injected fluid p = w or fg into wellblock i is given by

Mi,j qpsc, = -Gw, (--ff~-)i (Pi - Pw~ ) (10.79b)

This equation can be combined with Eq. 10.75 to give

qpsc, = -Gw, (---~e )i [Pi - Pw:,,: - Xwb (Z~ - Zre :)] (10.80b)

For a single-block well, qp,c, = qspsc and Eq. 10.80b is used to estimate Pw:,, • For a multi-

block well, however, Pwi,,: is estimated from the well rate specification at standard condi-

tions ( qspsc ) using

~a Mini {Gw ( ~ - ) i [ P ~ - Xwb(Zi - Z~4)] } + qspsc

i~Ow ' p (lO.81b) PwL~: = ~ Minj

Then, the injection rate of the injected fluid p = w or fg into wellblock i ( qp,,~ ) is

estimated using Eq. 10.80b. The use of Eq. 10.81b requires solving for Pwfr~: implicitly

along with the reservoir block pressures. An explicit treatment; however, uses Eq. 10.81b n

at old time level n to estimate p~:~.:, which is subsequently substituted into Eq. 10.80b to

estimate the injection rate of the injected phase p = w or f g into wellblock i ( qp~c~ ).

Specif ied well pressure gradient

For a specified well pressure gradient, the injection rate of fluid P = w o r f g into well- block i is given by

op M i'j ~rr rw qp,~, = -2yg f l c rwkH h i (T)i (10.82b)

Page 428: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution o f Mult iphase Flow Equations 403

Specif ied well F B H P

If the FBHP of a well ( Pw& ) is specified, then the injection rate of the injected fluid

p = w or fg into wellblock i can be estimated using Eq. 10.80b,

Mini qps,., = -Gw, (--ff--)i [Pi - Pw& - ~.+ ( Zi - Zrel )]

P

(10.80b)

10.4.3 Treatment of Boundary Conditions

A reservoir boundary can be subject to one of four conditions: (1) a no-flow boundary, (2) a constant flow boundary, (3) a constant pressure gradient boundary, and (4) a constant pressure boundary. As discussed in single-phase flow in Chapters 4 and 5, the first three boundary conditions reduce to a specified pressure gradient condition (the Neumann boundary condition) and the fourth boundary condition is the Dirichlet boundary condi- tion. The treatment of boundary conditions for 1D flow in the x direction is similar to that presented in Section 4.4 for a block-centered grid and Section 5.4 for a point-distributed grid. In this section, we present the fictitious well rate equations as they apply to mul- tiphase flow in reservoirs discretized using a block-centered grid only. The effect of capil- lary pressure is assumed negligible. The fictitious well rate of phase p ( q,+l ) reflects

pSCb~B

fluid transfer of phase p between the boundary block (bB) and the reservoir boundary itself (b) or the block next to the reservoir boundary that falls outside the reservoir. In mul- tiphase flow, a reservoir boundary may (1) separate two segments of one reservoir that has same fluids, (2) separate an oil reservoir from a water aquifer or a gas cap, or (3) seal the reservoir from a neighboring reservoir. If the neighboring reservoir segment is an aquifer, then either water invades the reservoir across the reservoir boundary (WOC) or reservoir fluids leave the reservoir block to the aquifer. Similarly, if the neighboring reservoir seg- ment is a gas cap, then either gas invades the reservoir across the reservoir boundary (GOC) or reservoir fluids leave the reservoir block to the gas cap.

10.4.3.1 Specified Pressure Gradient Boundary Condition

For a specified pressure gradient at the reservoir left (west) boundary,

k k A . . . . 1 ~_~/ (10.86a) qn+l = - - [ t i c ' rp ' n + ] Oppl - - ( '~p) ;B ] b

for p = o,w, f g , and at the reservoir right (east) boundary,

n+l k k A _ ,n+l z ~p I .+l Oppl . . . 3Z qP'cb.b, = [fl, ~ ' - -p lb, [--~--b -- t}'p)b, -~- b] (10.86b)

for p = o,w, f g , where the component physical properties and phase physical properties other than the flow rate for the gas phase and the free-gas component are the same. The flow rate at standard conditions of the gas component, however, equals the sum of flow rates at standard conditions of the free-gas and solution-gas components; i.e.,

Page 429: Petroleum Reservoir Simulation a Basic Approach

404 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

qn+l n+l -F R n+l n+l gscb.b, : qfg ...... *b,~ qosc~,b. (10.87)

In Eq. 10.86, the specified pressure gradient may replace the phase pressure gradient at the boundary. Eq. 10.86 applies to fluid flow across a reservoir boundary that separates two segments of the same reservoir or across a reservoir boundary that represents WOC with fluids being lost to the water aquifer. I f the reservoir boundary represents WOC and water invades the reservoir, then invades the reservoir, then

k A - ,.+1 l l ]n+l(k ~.+I[Op I , a z l q.+l =-[flc--ff--ff%b. . . . . q~al - (Ywlbs ~ - bl (10.88a) wscb,n ltw w Ib

for the reservoir left (west) boundary, and

k A a I "+1 1 / ]n+l(] C "In+I[Op I , ~ZI q",+~,, = [tic --~wJO, V'rw,aq L-~-lb --(Yw)O, --~ b ] (10.88b)

for the reservoir right (east) boundary.

Moreover,

q.+l =q"+l =q"+l =0. (10.89) OSCb ,bB fgscb ,bB gSCb,bB

Note that, in Eq. 10.88, the rock and fluid properties in the aquifer are approximated by those of the boundary block properties because of the lack of geologic control in aquifers and because the effect of oil/water capillary pressure is neglected. In addition, (k) ,+1 = 1

- rw -aq

because S w = 1 in the aquifer.

10.4.3.2 Speci f ied Flow Ra te Bounda ry Gondition

I f the specified flow rate stands for water influx across a reservoir boundary, then

qn+l . . . . ,B = q~e I Bw~ " (10.90)

In addition, Eq. 10.89 applies (i.e., qn+l _ q,+l = qn+l = 0 ). If, however, the speci- OSCb,bB - - fgsCb,bB gSCb,bB

fled flow rate stands for fluid transfer between two segments of the same reservoir or fluid

loss to an aquifer across WOC, then

k ( ~ n + l ( T R ]n+l ". ebB

n+l \ p "b,bB [Ap (10.91) qe~.~. ~ ~ c~.~.+, q~e= ' ", 1 1bbB kr p qse

l~{o,w,fg} ' Bp Z ( )b;1 IE{o.w.fg} ~lp

for p = o,w, fg because in this case

k~k~pAt n+l "*p(TR Yb,bB]n+m --',-- tT RP -'bS]n+X ~- [~c tip ( - ~ 2 ) ] b 8 • (10.92)

Eq.10.91 neglects the effects of gravity forces and capillary pressures.

Page 430: Petroleum Reservoir Simulation a Basic Approach

10.4 So lu t ion o f M u l t i p h a s e F l o w Equa t ions 405

10.4.3.3 No-flow Boundary Condition

This condition results from vanishing permeability at a reservoir boundary or because of symmetry about a reservoir boundary. In either case, for a reservoir no-flow boundary,

q.+l = 0 (10.93) pSCb ,bB

for p = o ,w , f g .

10.4.3.4 Specified Boundary Pressure Condition

This condition arises due to the presence of wells on the other side of a reservoir boundary that operate to maintain voidage replacement and as a result keep the boundary pressure ( Pb ) constant. The flow rate of phase p across a reservoir boundary that separates two segments of the same reservoir or across a reservoir boundary that represents WOC with fluid loss to an aquifer is estimated using

klkrpAl n+l n+l . . . . . Z qp+~)~. = [tic l ~ p B - - ~ / 2 ) ]bB [(Pb -- PbB ) -- ~'~p)bS t b -- ZbB)] ( 1 0 . 9 4 )

for p = o ,w , f g .

If the reservoir boundary represents WOC with water influx, then

ktAl ]n+l I L -~n+l rz n+lx n Z - Pb8 ) qn+l ---. [tic n-"~l /2 . lbB I, Krw)aq ttPb --(Tw)bS( b--Zbs)] (10.95) wsc~.b~ ktw w ~ )

In addition, Eq. 10.89 applies (i.e., q"+' = qn+l = q,+i = 0 ). Note that, in Eq. 10.95, O$Cb,bB fgscb ,be gscb ,bB

the rock and fluid properties in the aquifer are approximated by those of the boundary

block propert ies because of the lack of geologic control in aquifers. In addition, k )n+l ,w.,q = 1 because S w = 1 in the aquifer.

It is worth mentioning that when reservoir boundary b stands for WOC, the flow rate of phase p across the reservoir boundary is determined from the knowledge of the upstream point between reservoir boundary b and boundary block bB. If b is upstream to bB (i.e.,

when AdO w > 0 ), the f low is f rom the aquifer to the reservoir boundary block and

Eq. 10.95 applies for water and q,+l =q"+l =q"+l = 0 I f b is downstream to b B OSCbJ~ B fgsCb,bB gSCb~B "

(i.e., when Aqb w < 0 ), the flow is from the reservoir boundary block to the aquifer and

Eq. 10.94 applies for all phases. The water potential between the reservoir boundary and

the reservoir boundary block is defined as Aqb w = (Pb -- Pbs) -- 7w(Zb -- Zbs) "

Page 431: Petroleum Reservoir Simulation a Basic Approach

406 Chapter 10 Introduct ion to Mode l ing Mul t iphase F low in Pe tro leum Reservoirs

Example 10.9 Consider the single-well simulation problem presented in Example 10. 7. Write the flow equations for boundary gridblock 3.

Solution

In this problem, the reservoir is subject to water influx. For gridblock 3, n = 3 and

~2 = {2,4,7}. Gridblock 3 is a boundary block that falls on the reservoir lower

boundary; therefore, ~3 ={bL} ~-~q,+l = 0 ~Zq n+l = 0 and ' l . . , t °scl,3 ' ~ fgscl,3

l ~ 3 lE~ 3

qn+l = qn+l , where q,÷l is estimated using Eq.10.95 as WSCl,3 WSCb L ,3 W$Cb L ,3

IE~ 3

n+l k z A z n+l x (k,w)anq I n+l . . . . . Z qws%,3 = [tic k t w B - ~ / 2 ) ] 3 X[(Pb~ --Po3 ) - - tTw)3t b~ - Z 3 ) ]

or

qn+l = [fie kzAz /2)];+,[(Pwoc .+1 . ws%,3 i~wB- ~ -Po3 ) - (~w)3 z~3/2]'

= ( k ) . + l = 1, and - Z 3) = Az 3 / 2 where PbL PWOC . . . . aq ( Z b L

Gridblock 3 has no wells; therefore, qo"fc13 = 0 n+l n+l ' qwsc3 = 0 , and qfgsc3 = 0 . Observe

also that Z 2 = Z 3 = Z 4

The oil equat ion is obtained by substituting the given va lues into Eq. 10.54 and expanding the summation terms, yielding

~ron+l . . . . 1 n+l n, X 0 ~ + T n+l . . . . 1 n+l n 2.3 ttPo2 - Po3 ) - 70:3 1 .... t t P o , - Po3 ) - 7 .... × O]

+Tn+lr, n+l n + l . n / Z Z .1 Jr 0 Jr 0 07, 3 [ [ P o 7 - P # 3 ) - 7o7. 3 1- 7 - 3 ) J

Vb 3 -Sg)];+l = acAt{[q~(l-SB[ -[(/)(1-SB[-Sg)]3}.

The gas equation is obtained by substituting the given values into Eq. 10.55 and expanding the summation terms, yielding

Tgn+ l r . n+l . ,+ l .+ .p .+ l_p .+l ) n 2.3 [tPo2 -- Po3 ) t cgo2 cg°3. -- 7gz3 X O]

+ ' T R x n + l r , n+l n + l \ n , t o .)2.3 ttPo2 -Po3 )-7o23 xO]

J r T n + l r / n+l n + l . Jr . p n + l p n + l . n , u~.~ ttPo, - Po3 ) t cuo4 - ~o3 ) - 7g~3 x O]

+ ' T R . n+ l r / .+ / n+l x n t o s),.3 ttPo, -Po3 )-7o~.3 xO]

J r T n + l r / n+l n+l . . . . . + l _ _ e n + l ) n Z - ~.3 ttPo~ -Po~ )+t r~o? c~o3--7g~3( 7 Z3)]

(10.96)

Page 432: Petroleum Reservoir Simulation a Basic Approach

10 .4 S o l u t i o n o f M u l t i p h a s e F l o w E q u a t i o n s 407

+ ' T R ..+1 . . . . 1 n+l. n "Z - Z 3 )] ..~ 0 -1- [0 -{- R~; I x 0] o s)7, 3 t [ P o 7 - P o 3 ) -~o73 ( 7

-Sw Su)]3+I_[~R,(1-Sw -Vb~acAt {(-~gg)3+l--(-~g g)3+[~Rs(1 Bo - Bo -Sg)]3 }. (10.97)

The water equation is obtained by substituting the given values into Eq. 10.56 and expanding the summation terms, yielding rwn+lrz n+l n+l. znn+l -- pn+a ) ,,

2.3 ttP02 -- Po3 ) -- t ~ . . . . . . 3 "- - 7W2~ X 0] +Tn+lr. . n+l n+l, .pn+l pn+l, n

W43 [I, P o 4 - Po~ ) - t cow4 - cow~)- Yw43 x 0]

+T,+I[, n+l n+l)__(pn+l __pn+l) n, Z w7,3 tP°7 - - P . . . . . 7 c°w3"--~]w73 ( 7 - Z 3 ) ]

kzAz n+l +[tic , U w B ~ ] 2)13 [(Pwoc - Po';') - (~'w)3 ~"3 [ 21 + 0

c w w

(10.98)

10.4.4 Treatment of Nonlinearities

The time linearization methods of the phase transmissibility terms in multiphase flow are similar to those presented in Section 8.4.1.2 for single-phase flow (explicit method, simple- iteration on transmissibility method, and fully implicit method). There are other time linear- ization methods such as the linearized-implicit method (MacDonald and Coats 1970) and the semi-implicit method of Nolen and Berry (1972); however, these methods deal with nonlinearities due to fluid saturation only. The time linearization methods of well produc- tion rates in multiphase flow are similar to those presented in Section 8.4.2.2 for single- phase flow (explicit transmissibility method, simple iteration on transmissibility method, and fully implicit method). It should be mentioned that the time linearization of well rate terms (production and injection) must have a degree of implicitness that is equal to or higher than that used in the flow terms between a block and its neighboring blocks. The time linearization methods of fictitious well rates in multiphase flow are the same as those used for the treatment of flow terms between a block and its neighboring blocks (see Section 8.4.3).

The space linearization methods of phase transmissibility are different from those for single-phase flow. For phase transmissibility defined by Eq. 10.35,

1 Tp, = Gl. ( - " ~ ) l n k,_e,

.° ' ppt~p ' .° (10.35)

Page 433: Petroleum Reservoir Simulation a Basic Approach

408 Chapter 10 Introduction to Modeling Mult iphase Flow in Petroleum Reservoirs

the various space-weighting methods presented for single-phase flow (Section 8.4.1.1)

1 R s ) work for the pressure dependent terms, (--~-p)t,, and (~--~-o l,,, but only the upstream-

weighting method works for the saturation dependent terms, kno,. ° . In fact, the function

average-value method and the variable average value method presented in Section 8.4.1.1 give erroneous results when applied to relative permeabilities. The most commonly used method for space linearization of pressure and saturation dependent terms is the upstream- weighting method.

10.4.5 Solution Methods

In this section, we present the implicit-pressure-explicit-saturation (IMPES) and simulta- neous solution (SS) methods as they apply to the two-phase oil/water flow model in multi- dimensional reservoirs. The flow equations (reduced set of equations) for block n in a multidimensional reservoir are presented in Section 10.3.1 as Eqs. 10.41 and 10.42.

The oil equation is

Z T n + l r . n+l n+lx n o, ttPo, Po ) 7 o , . ( Z ~ - Z ) ] + Z q ' + l + .+~ ,n - - n - - OSCl, n qosc,

acAt

The water equation is

- - {[.¢(1- s )]T - [ ~ ] ~ } . Bo

(10.41)

ZT.+, . . . . 1 .+,. (p .+, p . + l . " " z - z . ) ] + Z q ; ; l o + .+1 w,.. ttPo, - Po° ) - . cow, - cow. ) - 7w,.° t i qw,c,

(10.42)

V~ q~Sw .+, __(~wW)n].

The Po - Sw formulation is used here; hence, the primary unknowns are Po and S w , and

the secondary unknowns are Pw and S O where Pw = Po -Pcow(Sw) and S O = 1 - S w . The

expansions of the RHS of Eqs. 10.41 and 10.42 are

Wb°. [~(1- S )].+: _ [~(l~oSw).]~}

Vb,, [ ( ~1 )n+l ( s n + l . n .+1 1 . 1 , n+l = a c A t . - . ~ o . . . . . - S ~ )+(1-Sw.)[~ . (~o,) +~o,, q~.](Po. -Po".)}

( 10 .99 )

Page 434: Petroleum Reservoir Simulation a Basic Approach

1 0 . 4 S o l u t i o n o f M u l t i p h a s e F l o w E q u a t i o n s 409

a At-- i f - w . . . . . - S ; ) + S,~ [q~,",+l( ) '+ qYn ](Po ~+1 -Po" )}- w n w n

Eqs. 10.99 and 10.62 can be rewritten as

a - - ~ Vbn { [q~(1- Sw)]"+~ - [ ~b(l~ Sw)]; } ~ =CopLPo~ , . n+l -Po)~,," + ~t~owt3w,'°"+,,~-S;, )

[( ) :+1 _ ( ): ] = Cw p (p~,+l _ Po. ) ww. I w. - w ) c w w

where

Cop° - a A t gb" {(1-S;")[qY+l( o. )t-l-Bonn (~n]}

(10.62)

(10.100)

(10.101)

(lO.102a)

Co~° - aV~t [-(~oo )~+1 ] (lO.102b)

Cw p Vb , ,+1 1 , 1 , - ° {Sw [~P. ( -~- - )+- -~-~ q~n]} (10.102c) " acAt " D. t~w.

C -- Vbn ( ~ ) ) n + l (lO.102d) ww° a c A t " B "n

A form of the reduced set of flow equations for the oil/water model that is suitable for applying a solution method is obtained by substituting Eqs. 10.100 and 10.101 into Eqs. 10.41 and 10.42.

The oil equation becomes

E , - ~ n + l r/ n+l n+l n 1o,.,, t tPo, - Po. ) - Yo,,,, (Z l - Zn )] + ~ qo,c,,,n+l ..~ qosc,n+l

t~0, l~,, (10.103) = C n: n+, nnx_~ C nZOnfl__an ) op [Po - P o ) ow (bw w.

and the water equation becomes

E T~+I r. ,+1 n+l ~ ~pn+l pn+l \ n / Z Z x l_ l_ ~ n+ l + qn+l w,. ttPo~ - Po. ) - t ~ow, - cow, ) - Yw,,, t l - , ) ] L qw~,, w,c,

l~o l~° (10.104) = Cwp. z n+l n x .~_ C / o n + l ann

tPo° - P o . ) , ~ . t 3 w . - w ).

Page 435: Petroleum Reservoir Simulation a Basic Approach

410 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

The coefficients Cop., Cow,

tives ( ~ - ) ' (BID) ' and q~' ' ~ n

o n wn

Cwe°, and Cww, are defined in Eq. 10.102, and the deriva-

are chord slopes that are defined as

_•_ 1 (v, n + l n 1 )/(Po - P o ) (lO.105a)

( o. )'=(B,~,+ ', B-"o. " " o n

BI 1 1 , / , ~;] , ,v, 1~ ) tPo -Po ) (10.105b)

( w,, )' = (B "+1 w,, " " w n

(v) (v)

~)Pn ( ~ ) n + l - - n x / / n + l n ( 1 0 . 1 0 5 C ) = - - - n - - 9.) (Po° - Po. )

The pressure dependence of the oil and water FVFs in the o i l /water f low mode l is described by Eq. 7.6 and that of porosity is described by Eq. 7.11. Substitution of Eqs. 7.6 and 7.11 into Eq. 10.105 yields

(~_) , c° o = - ~ (lO.106a)

n

(_~__), Cw = - - (lO.106b) ~w n

q~, = q~c~ (10.106e)

10.4.5.1 IMPES Method

The IMPES method, as the name implies, obtains an implicit pressure solution followed by an explicit solution for saturation. In the first step, the transmissibili t ies, capil lary pressures, and coefficients of pressure difference in the well production rates and ficti- tious well rates, in addition to the fluid gravities, are treated explicitly. The water and oil equations (Eqs. 10.103 and 10.104) are combined to obtain the pressure equation for

b lock n through the el imination of the saturation term (Sw ~+1 - Sw" ) that appears on the

RHS of equations. This is achieved by mul t ip lying the oil equat ion (Eq. 10.103) by

Bo", +1 , mu l t i p ly ing the wa te r equa t ion (Eq. 10.104) by Bw",. +~ , and add ing the two

resulting equations. Then the pressure equation is written for all blocks n = 1,2,3...N

and the resulting set of pressure equations is solved for b lock pressures at t ime level

n + l ( p~)~ for n = 1,2,3...N ). The second step involves solving the water equation for

block n (Eq. 10.104) explicitly for water saturation at t ime level n + 1 ( Sw" +1 ). Capillary

Page 436: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution o f Multiphase Flow Equations 411

pressures are then updated [ P~+wl = P~ow(S~+ 1) for n = 1,2,3...N ] and used as P~w,, in the

following time step.

For a volumetric reservoir (no-flow boundaries) with explicit well production rates, the pressure equation for block n = 1, 2, 3...N is

Z (Bo',+,IT~'o + B~+.ITw",..)P~ +~ - { [ Z (B~+,IToT,,, + Own~lTw~,n )] l~p. IE'¢.

+ Bn+l . +Bn+l . . . . +1 = ~ . .B.+ITn n +B.+,ITn . , ( o Cop w. t~w,.)lPo. 2.,tt . . . . . . 7 . . . . w w,.Yw,°)( Z , - Z ) ] (10.107)

"}'Z Bwn+lTw~,n (pcnwl -pcnwn )-(B~+ICopn JF Bn+lCwp n )pn n -(B~,+.lq~s~ ° + Bnw+lq;,c. ). leap.

Solving Eq. 10.107 for oil-phase pressure distribution may, in general, require iterating on

B ~ 1, B~ +~, Cop, and C~e, ' in order to preserve the material balance. For 1D flow prob-

lems, Eq. 10.107 represents a tridiagonal matrix equation. In this case, the coefficients of

the unknowns p'~,+~, po", +1 , and po "+1, in the equation for block n correspond to w,, c ,

and e , respectively, and the RHS of the equation corresponds to d in Thomas' algorithm.

The water saturation for individual blocks in a volumetric reservoir is obtained from Eq. 10.104 as

1 ~ n+l n+l n + l . . pn n Z s"+ l=s" + {2..,E', [(po, -po ) - t .... -~"o~ )-~w, ( , - z ) ]

w . w. ~ . . . . . . (10.108) ww~ l~p~

+ " (p"+~ po" )}. qw.c. - Cwp. o. - °

The water saturation for block n is solved for explicitly using Eq. 10.108 independent of the equations for other blocks. This new estimate of water saturation is used to update the

capillary pressure for block n, P,~+wl,, = P~ow(S"~+,, 1) , and this updated value will be used as

P~° in the calculations for following time step.

10.4.5.2 SS Method

The SS method, as the name implies, solves the water and oil equations simultaneously for the unknowns of the formulation. Although this method is well-suited to fully implicit for- mulation, we demonstrate its application for a volumetric reservoir (no-flow boundaries,

qon~ ---- 0 and ~-" qn+l = 0 ) using explicit transmissibilities ( T" and T" ), explicit ,n ~ WSCI, n Ol,n Wl'n

1 ~ n 1 ~ n

well rates ( qo~,c, and q~.,c. ), and implicit capillary pressures. The capillary pressure terms

( p~+l, _ p~+w~,, ) in the water equation (Eq. 10.104) are expressed in terms of water satura-

tion; i.e., Pc~+ 1, - P/o'+wl = P'ow,.,(S"w +1 -S"w~l), where P~w = dPcow/dSw" In addition, the fluid

gravities are treated explicitly.

Page 437: Petroleum Reservoir Simulation a Basic Approach

412 C h a p t e r IO I n t r o d u c t i o n to M o d e l i n g M u l t i p h a s e F l o w in P e t r o l e u m R e s e r v o i r s

Therefore, for block n, the oil equation becomes

.... ttPo, - P o . ) - ? o , ( ~ Z . ) ] + O q ....

. . . . ,'s 7 - s °) = t-op. (Po. - Po ) t-'ow ( w w.

and the water equation becomes

(10.109)

Z T n ~, n+l n+lx p, . o n + l s n + l . n n t~Po, - P o ) - ~ow, tJw, - w ) - Y w , (Zt-Zn)]WO+qwsc wl m n m n ,n n

IEI!~ n

= Cwp (po "+~ " ~ + C "S °+~ sn,, . ° - p o . ) wwt w° - w) .

The terms in Eqs. 10.109 and 10.110 are rearranged as follows:

(10.110)

Z~T" n+l ( o ) s n + l ] [ [ ( ~ T " )+C ~ n+l + n+l t .... Po, + - - w, ~--~-z..~ .... - op°]Po. Cow.Sw. }

x " ~ T " ~ Z " ~ S ~ = .° .. - . ) ] - q o . ~ -Cop.Po° - C o w w 2_ , t o, 7o, (Z~ ° ° °

for the oil equation, and Eq. 10.112 for the water equation.

(10.111)

Z r T n n+l T" P ' S n+l] [ r/~-'~ T" " + C . n+l [ w,.°Po, -- w,.. cow,,, w, J--.lt2_~ w,. .) wplPo.

- [ ( Z T" p ' ) . S n+l w,° ~ow,..-Cww ] w } (10.112) l~p~

Z r T " " " Z - Z " C " - C w w S : = [ w, ,~w, ,°( l n ) ] - - q w s e . - - wp°Po. . .

Eqs. 10.111 and 10.112 are written for all blocks ( n = 1,2,3...N ) and the 2N equations are solved simultaneously for the 2N unknowns. For 1D flow problems, there are 2 n x

equations that form a bitridiagonal matrix equation,

[ A I X = b (lO.113a)

o r

Icll [el] Iw21 I%1 I%1

[w,l [c,l le, l

[w.x .d lc.~, l I%.1 ] lw . l [%1_

X1

X2

X i =

° . .

Xn~ -1

_ X n _

(10.113b)

where

Page 438: Petroleum Reservoir Simulation a Basic Approach

10.4 Solution o f Multiphase Flow Equations 413

T" 0 ] [w l = ox, .... (10.114)

i | T . _T . p , [._ wxi 1/2 wxi-1/2 c°wi 1/2

o ] le A = o ...... (10.115)

_T ~ p , i+112 WXi+ll2 COWi+ll2

I [ - ( o~ + Tox + C°P') -C°w ] (10.116) Tni-l:2 ni+l/2 i

[eJ = [-(Tw"~ . + Tw" / .... +C~p) (T" P" +Tw"~+.Pc 'ow . -C) I i i i \ wxi 1/2 c°wi 1/2 i i+ i

[- n+l -I

X i ~ [ pOi l a w in+l (10.117)

and for i = 2 ,3 . . . n ,

Backward solution

For i = n - 1 , n x - 2 ..... 3,2,1,

For i = 2,3...n x - 1,

Forward solution

Set [u,l = [c~l l[e,l (10.119)

~ -- [c~] la x (10.120)

-1 l u A : [ l c A - l w A l u ~ _ a l ] [ei]

gi : [[Ci]- -[Wi][Ui-1]] -1 ( d / - [ w i ] ~ ? i - 1 )

Set 3~,x = ~,,~ (10.123)

" ~ i : g i - - [ U i I 2 ~ + ~ ( 1 0 . 1 2 4 )

(10.121)

(10.122)

T" " C " S" . . . . . - - i ) - - q . . . . - - oplPoi-Cow w (10.118) ~ : ox, l,yo,,2(z,_~-z,)+ro"x+,,y"o+,,2(zi+~ z " , ,

- - i ) - - q . . . . -Cwp, Po, r ° ~" ( z , l - z i ) + r L + , , y " w , , 2 ( z i + 1 z " "-CwwS?~ wxi 1/2 wi 1/2 i i+ i i i

for i - - 1,2,3...n x .

The solution of the bitridiagonal matrix equation for 1D flow problems is obtained using the same steps as in Thomas ' algorithm, presented in Section 9.2.1, with scalar mathemat- ical operations being replaced with matrix mathematical operations. Therefore, Thomas ' algorithm for solving bitridiagonal matrix equation becomes

Page 439: Petroleum Reservoir Simulation a Basic Approach

414 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

For a black-oil model, the resulting set of equations is a tritridiagonal matrix. The algo- rithm presented in Eqs. 10.119 through 10.124 can be used to obtain the solution, but note that the submatrices are 3x3 and the subvectors have dimensions of three.

10.5 Material Balance Checks

The incremental and cumulative material balance checks in multiphase flow are carried out for each component in the system. For oil and water ( p = o,w ), each component is contained within its phase; therefore,

IMB p

~ gbl[ [ ( ~ ) : + l -- (~@-) : ]

n=l acAt Bp P N

Z ( n+l _l ~ "~ n+l qp,c° 2_, qpsc,.. )

n=l le~n

(10.125a)

~ V b ~)Sp n+l ~)Sp o

_ n=l a p ( 1 0 . 1 2 6 a ) CMBp -- n+l N

+ m •AtmZ(q;,,. Zq.,,.c,.°) m=l n=l le~.

For the gas component, both free-gas and solution-gas components must be taken into consideration; therefore,

~ . V b ~ ) S g n + l ~ g ~ o ~ -• { [ ( ~ ) n --( ): ] -{- [( ):+1 _( B~_o ).]}d?R, So. n=l acAt 11g

IMB e = ~,{[qTg;~. +x-~ n+l l_l_rRn+l n+] ~ nn+l n+l 2_,qfgsc,.°l t s. q .... + 2~,,.°qo,c,..]}

n=l le~. l~.

( 1 0 . 1 2 5 b )

CMB,

Vbn{[(~)ag): +1 __ (~bSg)On ] - l - [ (~s~ - ) :+ l - ( ~ o S ~ ) ~ ] } _ , ,= l a Bg B o

n+l N qm rRm m +w" R . . . . Z AtmZ{[q•,c. + Z Sg,c,. ]+ t s,,qosc. 2., s,.°q ...... II

m=l n=l l~n l~ n

(10.126b)

10.6 Advancing Solution in Time

Pressure and phase saturation distributions in multiphase flow problems change with time. This means that the flow problem has an unsteady-state solution. At Time t o = 0 , all res- ervoir unknowns must be specified. Initially, fluids in the reservoir are in hydrodynamic equilibrium. Therefore, it is sufficient to specify the pressure at water-oil contact (WOC) and at oil-gas contact (OGC), and the initial pressure and saturation of all three phases can be estimated from hydrostatic pressure considerations, oil-water and gas-oil capillary pressure relationships, and phase saturation constraint equation. Details can be found else- where (Ertekin, Abou-Kassem, and King 2001). Then the procedure entails finding phase

Page 440: Petroleum Reservoir Simulation a Basic Approach

10.6 Advancing Solution in Time 415

pressures and saturations at discrete times ( t, ,t2,t3,t4,...etc. ) by marching the solution in time using time steps ( Atl,At2,At3,At4,...etc. ). The pressure and saturations solution is advanced from initial conditions at t o -- 0 (time level n) to tl = t o + At I (time level n+l). The solution then is advanced in time from t I (time level n) to t 2 = ta + At 2 (time level n+l) , from t 2 to t 3 = t 2 + A t 3 , f r o m t 3 t o 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 pres- sure and saturations solution at time level n+ 1, we assign the pressures and saturations just obtained as pressures and saturations at time level n, write the flow equation for each com- ponent in every block (node) in the discretized reservoir, and solve the resulting set of linear equations for the set of unknowns. The calculation procedure within each time step for a black-oil model follows.

(1) Calculate the interblock phase transmissibilities and coefficients Cop, Cow, Cog, Cwp,Cww,Cwg,Cgp,Cgw, and Cgg, and define the pressure and saturations at the old

time level and at the old iteration of the current time level for all reservoir blocks. Note that the phase transmissibilities are calculated at the upstream blocks and are not necessarily constant.

(2) Estimate the phase production rates (or write the phase production rate equations) at time level n + 1 for each wellblock in the reservoir, as described in Section 10.4.2.

(3) Estimate the phase flow rates (or write the phase flow rate equations) at time level n + 1 for each fictitious well in the reservoir, i.e., estimate the phase flow rates

resulting from boundary conditions, as described in Section 10.4.3.

(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 equations, and substitute for phase production rates from wellblocks obtained in (2) and phase flow rates from fictitious wells obtained in (3).

(5) Linearize the terms in the flow equations, as outlined in Section 10.4.4.

(6) Factorize, order, and place the unknowns (at time level n + 1 ) on the LHS, and place known quantities on the RHS of each flow equation.

(7) Solve the resulting set of equations for the set of pressure and saturation unknowns (at time level n + 1 ) using a linear equation solver.

(8) Check for convergence of the solution. Proceed to (9) if convergence is achieved. Otherwise, update the interblock phase transmissibilities and the coefficients mentioned in (1), define the pressure and saturations at the latest iteration at the current time level for all reservoir blocks, and start all over from (2).

(9) Estimate the wellblock production rates and fictitious well rates at time level n + 1 if necessary by substituting for the pressures and saturations obtained in (7) into the phase flow rate equations obtained in (2) and (3).

(10) Perform incremental and cumulative material balance checks for all components ( o,w,g ) using the equations presented in Section 10.5.

Page 441: Petroleum Reservoir Simulation a Basic Approach

416 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

10.7 Summary

In petroleum reservoirs, oil, water, and gas may coexist and flow simultaneously. In mul- tiphase reservoirs, the phase saturations add up to one, capillary pressures between phases exist, and phase relative permeability and phase potential gradient among other things affect flow properties. Although volumetric and viscosity properties of water and gas phases are not different from those in single-phase flow, oil-phase properties are affected by both solution GOR and whether the pressure is below or above the oil bubble-point pressure. Simulation of multiphase flow involves writing the flow equation for each com- ponent in the system and solving all equations for the unknowns in the system. In black-oil simulation, the components are the oil, water, and gas all at standard conditions and the flow model consists of one equation for each of the three components, the saturation con- straint, and the oil/water and gas/oil capillary pressures. The model formulation dictates how the model equations are combined to produce a reduced set of equations. It also implies the choice of primary unknowns and secondary unknowns for the reservoir. The black-oil model formulation discussed in this chapter is the Po - Sw - Su formulation, i.e., the formulation that uses Po, Sw, and Sg as the primary unknowns tor the reservoir and Pw, Pg, and S O as the secondary unknowns. The two-phase oil/water, oil/gas, and gas/

water tlow models can be considered subsets of the black-oil model presented in this chapter. In order to solve the model equations, the accumulation terms have to be expanded in a conservative way and expressed in terms of the changes of the primary unknowns over the same time step, the well production rate terms for each phase defined, and the fictitious well rate terms reflecting the boundary conditions need to be defined. In addition, all nonlinear terms have to be linearized. This process produces linearized flow equations, and the IMPES or SS solution methods can be used to obtain the linearized flow equations. The resulting set of linearized equations for all blocks can then be solved using any linear equation solver to obtain the solution for one time step. An extension to Thomas' algorithm can be used to solve simultaneously the equations of multiphase, 1D flow problems.

10.8

10-1

Exercises

Consider the ID reservoir shown in Figure 10-9. The reservoir has no-flow boundaries, gridblock 1 hosts a water injection well, and gridblock 4 hosts a production well. The reservoir contains oil and water only.

(a) Name the four equations that constitute the flow model for this reservoir.

(b) Name the four unknowns for a gridblock in this reservoir.

(c) Write the general flow equations for gridblock n in this reservoir. (d) Write the saturation constraint equation and capillary pressure

relationship in this reservoir. (e) If you use the Po - Sw formulation, name the primary unknowns and

secondary unknowns for a gridblock in this reservoir.

(f) Write the flow equations for gridblock n using the Po - Sw formulation.

Page 442: Petroleum Reservoir Simulation a Basic Approach

10 .8 E x e r c i s e s 417

10-2

10-3

10-4

10-5

(g) Write the flow equations for gridblocks 1, 2, 3, and 4 using the Po - Sw

formulation.

Complete the following problems that are related to Exercise 10-1.

(a) If you use the Po - So formulation, name the primary unknowns and secondary unknowns for a gridblock in this reservoir.

(b) Derive the flow equations for gridblock n using the Po - So

formulation. (c) Write the flow equations for gridblocks 1, 2, 3, and 4 using the Po - So

formulation.

Consider the 1D reservoir shown in Figure 10-9. The reservoir has no-flow boundaries, gridblock 1 hosts a gas injection well, and gridblock 4 hosts a production well. The reservoir contains oil and gas only.

(a) Name the four equations that constitute the flow model for this reservoir.

(b) Name the four unknowns for a gridblock in this reservoir. (c) Write the general flow equations for gridblock n in this reservoir. (d) Write the saturation constraint equation and capillary pressure

relationship in this reservoir. (e) If you use the Po - S formulation, name the primary unknowns and

secondary unknowns for a gridblock in this reservoir. (f) Write the flow equations for gridblock n using the Po - Sg formulation. (g) Write the flow equations for gridblocks 1, 2, 3, and 4 using the Po - Sg

formulation.

Complete the following problems that are related to Exercise 10-3.

(a) If you use the Po - So formulation, name the primary unknowns and secondary unknowns for a gridblock in this reservoir.

(b) Derive the flow equations for gridblock n using the Po - S o

formulation. (c) Write the flow equations for gridblocks 1, 2, 3, and 4 using the po - S O

formulation.

Consider the 1D reservoir shown in Figure 10-10. The reservoir has no-flow boundaries, gridblock 3 hosts a production well. The reservoir contains gas and water only.

(a) Name the four equations that constitute the flow model for this reservoir.

(b) Name the four unknowns for a gridblock in this reservoir. (c) Write the general flow equations for gridblock n in this reservoir.

(d) Write the saturation constraint equation and capillary pressure relationship in this reservoir.

(e) If you use the pg - S formulation, name the primary unknowns and secondary unknowns tbr a gridblock in this reservoir.

Page 443: Petroleum Reservoir Simulation a Basic Approach

418 C h a p t e r 10 I n t r o d u c t i o n to M o d e l i n g M u l t i p h a s e F l o w in P e t r o l e u m R e s e r v o i r s

(f) Write the flow equations for gridblock n using the p~ - Sg formulation. (g) Write the flow equations for gridblocks 1, 2, 3, and 4 using the p g - - Sg

formulation.

10-6 Complete the following problems that are related to Exercise 10-5.

(a) If you use the pg - S w formulation, name the primary unknowns and secondary unknowns tor a gridblock in this reservoir.

(b) Derive the flow equations for gridbtock n using the pg - S~ formulation.

(c) Write the flow equations for gridblocks 1, 2, 3, and 4 using the p~ - S w

formulation.

10-7 Consider the 1D reservoir shown in Figure 10-9. The reservoir has no-flow boundaries, gridblock 1 hosts a water injection well, and gridblock 4 hosts a production well. The reservoir contains oil, gas, and water.

(a) Name the six equations that constitute the flow model for this reservoir. (b) Name the six unknowns for a gridblock in this reservoir. (c) Write the general flow equations for gridblock n in this reservoir. (d) Write the saturation constraint equation and capillary pressure

relationships in this reservoir.

(e) If you use the Po - Sw - Sg formulation, name the primary unknowns

and secondary unknowns for a gridblock in this reservoir. (f) Write the flow equations for gridblock n using the Po - Sw - Sg

formulation. (g) Write the flow equations for gridblocks 1, 2, 3, and 4 using the

Po - Sw - S formulation.

10-8 Complete the following problems that are related to Exercise 10-7.

(a) If you use the Po - Sw - So formulation, name the primary unknowns and secondary unknowns tbr a gridblock in this reservoir.

(b) Derive the flow equations for gridblock n using the Po - Sw - So

formulation. (c) Write the flow equations for gridblocks 1, 2, 3, and 4 using the

Po - S - S O formulation.

10-9 Complete the following problems that are related to Exercise 10-7.

(a) If you use the Po - So - S formulation, name the primary unknowns.

and secondary unknowns for a gridblock in this reservoir (b) Derive the flow equations for gridblock n using the Po - So - Sg

formulation. (c) Write the flow equations for gridblocks 1, 2, 3, and 4 using the

Po - So - S formulation.

10-10 Derive the IMPES equations for the 1D oil/gas flow model by executing the following steps.

Page 444: Petroleum Reservoir Simulation a Basic Approach

10.8 Exerc i ses 419

10-11

(a) Date the transmissibilities, capillary pressures, relative permeability in production rates, and fluid gravities at old time level t n in Eqs. 10.50 and 10.51.

(b) Expand the accumulation terms (the RHS of Eqs. 10.50 and 10.51) in

( n+l n ( s n + l __ S n ) terms of the Po, - Po, ) and , 8, g,- •

(c) Substitute the results of (b) into the equations of (a).

(d) Add the resulting oil equation from (c) multiplied by ,(B "+~o~ -Rs,"+IB"+]8, )

and the resulting gas equation from (c) multiplied by Bg +~ to obtain the

pressure equation.

(e) Solve for S "+1 using the resulting oil equation from (c). gi

A 1D horizontal, two-phase oil/water reservoir is described by three equal gridblocks as shown in Figure 10-15. The reservoir rock is incompressible

and has homogeneous and isotropic properties, k = 270 md and q~ = 0 .27 .

Initially, the reservoir pressure is 1000 psia and water saturation is

irreducible, Sw, = 0.13. Gridblock dimensions are Ax = 300 ft, Ay = 350

ft, and h = 40 ft.

qsc3 = - 1 0 0 STB/D

J

pb w = 100' boundary

Figure 10-15 Discretized 1D reservoir for Exercises 10-11 and 10-12.

Reservoir fluids are incompressible with B ° = B~ = 1 RB/STB, /t o = 3.0

cp, B w = B w = 1 RB/STB, and /u w = 1.0 cp. Table 10-5 gives the oil/water

relative permeability and capillary pressure data. The reservoir right boundary is sealed off to flow and the reservoir left boundary represents WOC that is kept at constant pressure of 1000 psia because of a strong water aquifer and supplies the reservoir with water at a rate of 100 B/D. A 7-in vertical well at the right boundary of gridblock 3 produces liquid at a rate of 100 STB/D. Using the IMPES solution method, find the pressure and saturation distributions in the reservoir at 100 days and 300 days. Take single time steps to advance the solution from one time to another.

Page 445: Petroleum Reservoir Simulation a Basic Approach

420 Chapter 10 Introduction to Modeling Multiphase Flow in Petroleum Reservoirs

Table 10-5 Oil/water Relative Permeability Data for Exercise 10-11 (Coats, George, and Marcum 1974)

Sw kr~ krow P~ow (psi)

O. 130 0.000 1.0000 40

0.191 0.0051 0.9400 15

0.250 0.0102 0.8300 8.6

0.294 0.0168 0.7241 6.0

0.357 0.0275 0.6206 4.0

0.414 0.0424 0.5040 3.0

0.490 0.0665 0.3170 2.3

0.557 0.0910 0.2209 2.0

0.630 0.1148 0.1455 1.5

0.673 O. 1259 0.0956 1.0

0.719 0.1381 0.0576 0.8

0.789 0.1636 0.0000 0.15

10-12 Consider the reservoir data presented in Exercise 10-11. Using the S S method, find the pressure and saturation distributions in the reservoir at 100 days and 300 days. Take single time steps to advance the solution from one time to another.

Page 446: Petroleum Reservoir Simulation a Basic Approach

Appendix A

User's Manual for Single-Phase Simulator

A.1 Introduction

This manual provides information on data file preparation and a description of the vari- ables used in preparing a data file, and it gives instructions for running the reservoir simu- lator on a PC. The simulator models the flow of single-phase fluid in reservoirs. Model description (flow equations and boundary conditions) for incompressible, slightly com- pressible, and compressible fluids, well operating conditions, and methods of solving the algebraic equations of the model are described in detail in the previous chapters of this book and by Ertekin, Abou-Kassem, and King (2001). The simulator (written in FOR- TRAN) was developed to provide solutions to single-phase flow problems in undergrad- uate courses in reservoir simulation. The simulator can be used to model irregular rectangular reservoirs and single-well in r -z radial-cylindrical coordinates using either a block-centered grid or a point-distributed grid. The purpose of presenting this simulator as part of this book is to provide the user with intermediate as well as final results so the user's solution for any given problem can be checked and any errors can be identified and corrected. Educators may use the simulator to make up new problems and obtain their solutions.

A.2 Data File Preparation

The data required for the present simulator are classified into groups based on how the data within each group are related. A group of data could be as simple as defining a few related variables or as complicated as defining the variables for the well recursive data. These groups of data are classified, according to their format of input procedure, into five categories (A, B, C, D, and E). Categories A and B include seventeen and six groups of data, respectively, whereas categories C, D, and E include one group of data each. The data of each category are entered using a specific format procedure; for example, category A uses format procedure A, category B uses format procedure B, etc. Each group of data carries an identification name consisting of the word "DATA" followed by a number and an alphabet character; the number identifies the group and the alphabet character identifies the category and the format procedure. For example, DATA 04B identifies a group of data that belongs to category B that uses format procedure B and whose variables are defined under DATA 04B in Section A.3. Data file preparation, including format procedures and description of variables, follows the work of Abou-Kassem, Osman, and Zaid (1996) for

421

Page 447: Petroleum Reservoir Simulation a Basic Approach

422 Appendix A User's Manual for Single-Phase Simulator

black-oil simulation. The CD that accompanies this book contains four examples of data files prepared for the problems presented in Example 7-1 (ex7-1.txt), Example 7-7 (ex7-7.txt), Example 7-12 (ex7-12.txt), and Example 5-5 (ex5-5.txt).

Each format procedure is introduced by a title line (line 1), which includes the identification name and the group of data to be entered, followed by a parameter sequence line (line 2), which lists the order of parameters to be entered by the user. Only format procedure D has an additional parameter sequence line (line 3). The user, in each subsequent data line, enters the values of the parameters ordered and preferably aligned with the parameters shown in the parameter sequence line for easy recognition. Both format procedures B and E require a single-line data entry, whereas format procedures A, C, and D require mul- tiple-line data entry and terminate with a line of zero entries for all parameters. The var- ious groups of data and any specific instructions for each format procedure are presented in the following sections.

A.2.1 Format Procedure A

This format procedure is suitable for entering data that describe the distribution of a grid block property over the whole reservoir. Such data include block size and permeability in the x , y, and z directions; depth; porosity; modifiers for porosity, depth, bulk volume, and transmissibilities in the x, y, and z directions; and block identifiers that label a grid block as being active.

Each line of data (for example, line 3) represents a property assignment for an arbitrary reservoir region having the shape of a prism with I1, 12; J1, J2; and K1, K2 being its lower and upper limits in the x, y, and z directions. The data entered by each subsequent line (for example, line 4) are superimposed on top of the data entered by all earlier lines; that is, the final distribution of a property is the result of the superposition of the entire arbitrary res- ervoir regions specified by all lines of data. This option is activated by setting the option identifier at the beginning of the parameter sequence line (line 2) to 1. DATA 25A has no option identifier, but it implicitly assumes a value o f 1. Format procedure A is a powerful method for entering data if a block property is distributed into well-defined (not neces- sarily regular) reservoir regions. For a homogeneous property distribution, only one line of data is needed (with I1 = J1 = K1 = 1, 12 = n x, J2 = ny, and K2 = nz). If, however, a block property is so heterogeneous that it varies from block to block and regional property distribution is minimal, this method looses its effectiveness. In such cases, the option iden- tifier at the beginning of the parameter sequence line (line 2) is set to 0 and the data for all blocks are entered sequentially in a way similar to natural ordering of blocks along rows (i.e., i is incremented first, j is incremented second, and k is incremented last). In this case, both active and inactive blocks are assigned property values and the terminating line of zero entries is omitted.

A.2.2 Format Procedure B

This format procedure is suitable for entering data involving a combination of integer and/ or real variables. Groups of data of this type include options for the method of solution, block ordering scheme, and units of input and output; control integers for printing options,

Page 448: Petroleum Reservoir Simulation a Basic Approach

A.3 Description of Variables Used in Preparing a Data File 423

number of grid blocks in the x, y, and z directions; fluid density; fluid and porosity com- pressibilities and reference pressure for porosity; and simulation time. Note that the values of the parameters are entered in line 3. They are ordered and aligned with the parameters shown in the parameter sequence line (line 2) for easy recognition.

A.2.3 Format Procedure C

This format procedure is suitable for entering a PVT property table for a natural gas. The parameter sequence line (line 2) lists pressure as the independent variable followed gas FVF and gas viscosity as the dependent variables. It is important to note that the range of pressure in the PVT table must cover the range of pressure changes expected to take place in the reservoir and that the pressure entries in the table must have equal pressure inter- vals. Each line of data represents one entry in the table of data that corresponds to a speci- fied value of the independent variable. The data in the table are entered in order of increasing value of the independent variable (pressure). Note that entries in each line of data (for example, line 3) are ordered and aligned with the parameters specified on the parameter sequence line (line 2) for easy recognition.

A.2.4 Format Procedure D

This format procedure is suitable for entering well recursive data. As mentioned earlier, this format procedure has two parameter sequence lines. The parameters in the first parameter sequence line (line 2) include a time specification that signals a new user 's request (SIMNEW), an override time step to be used (DELT), the number of wells changing operating conditions (NOW), the minimum flowing bottom-hole pressure for producing wells (PWFMIN), and the maximum bottom-hole pressure for injection wells (PWFMAX). This line of data can be repeated, but each subsequent line must have a time specification larger than the last time specification. The parameters in the second param- eter sequence line (line 3) include data for individual wells such as the well identification number (IDW), wellblock coordinates (IW, JW, KW), the well type and well operating condition (IWOPC), the wellblock geometric factor (GWI), a specified value of condition (SPVALUE), and the well radius (RADW). There must exist NOW lines describing NOW individual wells immediately following the line where NOW specification appears if NOW > 0 . Using this format procedure, any number of wells can be introduced, shut in, reopened, recompleted, etc., at any number of key times.

A.2.5 Format Procedure E

This format procedure is used to enter one line of information, such as the name of the user and the title of the computer run, consisting of up to eighty alphanumeric characters.

A.3 Description of Variables Used in Preparing a Data File

There are twenty-six data groups in the data file. The descriptions of the variables within each data group are given under the data group itself. What follows is a list of all twenty- six data groups, starting with DATA 01E and ending with DATA 26D:

Page 449: Petroleum Reservoir Simulation a Basic Approach

424 Appendix A User's Manual for Single-Phase Simulator

DATA 01E TITLE

Title of Simulation Run Name of user and title of simulation run (one line having up to eighty alphanumeric charac- ters)

DATA 02B IPRDAT

TMTOTAL

TMSTOP

DATA 03B MUNITS

DATA 04B

BORD

MLR

BASIC

QBC

EQS

PITER

ITRSOL

Simulation Time Data Option for printing and debugging input data file

= 0, do neither print nor debug input data file.

= 1, print input data file and activate messages to debug data file.

Maximum simulation time, D [d]

Time to stop this simulation run, D [d]

Units Option for units of input data and output

= 1, customary units

= 2, SPE preferred metric units

= 3, laboratory units

Control Integers for Printing Desired Output (1, print; O, do not print) Block order

Left and right half width

Basic intermediate results used in simulation

Results and intermediate results related to boundary conditions

Block equations and details of solution method

Block pressure every outer iteration

Detailed results related to method of solving linear equations and block pressure every inner iteration for iterative methods

DATA 05B IGRDSYS

Reservoir Discretization and Method of Solving Equations Type of grid system used in reservoir discretization.

= 1, block-centered grid

= 2, point-distributed (or node) grid

Page 450: Petroleum Reservoir Simulation a Basic Approach

A.3 Description of Variables Used in Preparing a Data File 425

NX

NY

NZ

RW

RE

NONLNR

LEQSM

TOLERSP

DXTOLSP

NOTE

Number of gridblocks (or gridpoints) in the xdirection (or the r direction if NY = O)

Number of gridblocks (or gridpoints) in the ydirection. For single-well simulation, set NY = 0

Number of gridblocks (or gridpoints) in the z direction

Well radius for single-well simulation, ft [m]

External radius of reservoir for single-well simulation, ft [m]

Linearization of nonlinear terms. The options that apply to the mathematical approach (MA) or engineering approach (EA) are as indicated below.

= 1, explicit treatment of transmissibility and production term (MA) (x)

= 2, simple iteration of transmissibility and production term (MA) (x)

= 3, explicit treatment of transmissibility and coefficient of pressure drop in production term (EA)

= 4, simple iteration of transmissibility and coefficient of pressure drop in production term (EA)

= 5, Newton's iteration (MA and EA)

Method of solving linear equations

= 1, Thomas' algorithm for 1D flow problems

= 2, Tang's algorithm for 1D flow problems where blocks form a ring (x)

= 3, Jacobi iterative method for 1 D, 2D, and 3D flow problems

= 4, Gauss-Seidel iterative method for 1D, 2D, and 3D flow problems

= 5, PSOR iterative method for 1D, 2D, and 3D flow problems

= 6, LSOR iterative method for 2D and 3D flow problems

= 7, BSOR iterative method for 3D flow problems (x)

= 8, g-band using natural ordering for 1D, 2D, and 3D flow problems

User's specified value for maximum absolute relative deviation between two successive outer iterations. A value of O.O01 is recommended.

User's specified value for maximum absolute pressure deviation between two successive inner iterations. A value of 0.0001 psi is recommended.

I.TOLERSP and DXTOLSP are convergence tolerances. Compressible flow problems use TOLERSP. Iterative linear equation solvers use DXTOLSP. The correct solution to a simu- lation problem is obtained using the recommended tolerances.

2. If stricter convergence tolerances are specified, the program uses the recommended tol- erances to save on iterations. Stricter tolerances do not improve the pressure solution but rather increase iterations. Relaxed tolerances, however, influence the solution and may result in unacceptable material balance errors.

3. Options marked with (x) are not active in this version.

Page 451: Petroleum Reservoir Simulation a Basic Approach

426 Appendix A User's Manual for Single-Phase Simulator

DATA 06A to

DATA 21A

I1, 12

J1,J2

K1, K2

IACTIVE

DX

DY

DZ

KX

KY

KZ

DEPTH

PHI

P

RATIO

NOTE

Reservoir Description and Initial Pressure Distribution

Lower and upper limits in the xdirection of a parallelepiped region or the rdirection of a reservoir region in single-well simulation

Lower and upper limits in the ydirection of a parallelepiped region; for single-well simula- tion, set J1 = J2 = 1

Lower and upper limits in the zdirection of a parallelepiped region or a reservoir region in single-well simulation

Block indicator for active and inactive blocks

= O, inactive gridblock or gridpoint

= -1, inactive gridblock or gridpoint to identify constant pressure block

= 1, active gridblock or gridpoint

Block size in the xdirection for block-centered grid (or gridpoint spacing in the xdirection for point-distributed grid), ft [m]

Block size in the ydirection for block-centered grid (or gridpoint spacing in the ydirection for point-distributed grid), ft [m]

Block size in the zdirection for block-centered grid (or gridpoint spacing in the zdirection for point-distributed grid), ft [m]

Block permeability in the xor r direction, md [pm 2]

Block permeability in the y direction if NY > O, md [pm 2]

Block permeability in the z direction, md [pm 2]

Elevation of top of gridblock for block-centered grid (or elevation of gridpoint for point- distributed grid) below selected datum, ft [m]

Block porosity, fraction

Block pressure, psia [kPa]

Property modifier, dimensionless

= 0.0, property is not modified

> 0.0, property is increased by that ratio

< 0.0, property is decreased by that ratio

1. A number of gridblocks (or gridpoints) that are part of the reservoir are deactivated on purpose in order to simulate a specified gridblock (or gridpoint) pressure.

2. DX, DY, and DZ are supplied for all gridblocks (or gridpoints) whether active or inactive.

3. Ratio is the desired fractional change of a property value entered by the user or internally calculated by the simulator. Modifiers can be applied to the block porosity, block eleva- tion, block bulk volume, and transmissibilities in the x, y, and z directions.

4. For a point-distributed grid, define the gridpoint spacing in a given direction (DX in i direction, DY in jdirection, DZ in kdirection) by setting the upper limit of a parallelepiped region in that direction only equal to the coordinate of the upper limit gridpoint in the same direction minus one.

Page 452: Petroleum Reservoir Simulation a Basic Approach

A.3 Description of Variables Used in Preparing a Data File 427

DATA22B CPHI

PREF

RHOSC

D ~ A ~ B

LCOMP

IQUAD

DATA 24B FVF

MU

DATA 24B FVFO

MUO

CO

CMU

PREF

MBCONST

DATA 24C PRES

FVF

MU

NOTE

DATA 25A I1, 12

J1,J2

Rock Data and Fluid Density Porosity compressibility, psi -1 [kPa -1]

Reference pressure at which porosities are reported, psia [kPa]

Fluid density at reference pressure and reservoir temperature, Ibm/ft 3 [kg/m 3]

Type of Fluid in the Reservoir Type of fluid indicator

= 1, incompressible fluid

= 2, slightly compressible fluid

= 3, compressible fluid (natural gas)

Interpolation within gas property table

= 1, linear interpolation

= 2, quadratic interpolation

Fluid Properties for LCOMP = 1 (Incompressible Fluid) Formation volume factor at reservoir temperature, RB/STB

Fluid viscosity, cp [mPa.s]

Fluid Properties for LCOMP = 2 (Slightly Compressible Fluid) Formation volume factor at reference pressure and reservoir temperature, RB/STB

Fluid viscosity at reference pressure and reservoir temperature, cp [mPa.s]

Fluid compressibility, psi -1 [kPa -1]

Rate of relative change of viscosity with respect to pressure, psi -1 [kPa -1]

Reference pressure at which FVFO and MUO are reported, psia [kPa]

Handling of liquid FVF and liquid viscosity in transmissibility terms

= 1, constant values independent of pressure

= 2, values that depend on pressure

Fluid Properties for LCOMP = 3 (Natural Gas) Pressure, psia [kPa]

Gas formation volume factor, RB/scf [m3/std m 3]

Gas viscosity, cp [mPa.s]

Gas FVF and viscosity are supplied in a table form. The pressure is entered in increasing order using equal intervals.

Boundary Conditions Lower and upper limits in the xdirection of a parallelepiped region or the rdirection of a reservoir region in single-well simulation.

Lower and upper limits in the ydirection of a parallelepiped region; for single-well simula- tion, set J1 = J2 = 1

Page 453: Petroleum Reservoir Simulation a Basic Approach

428 Appendix A User's Manual for Single-Phase Simulator

K1, K2

IFACE

ITYPBC

SPVALUE

ZELBC

RATIO

NOTE

DATA 26D

NOW

SIMNEW

DELT

PWFMIN

Lower and upper limits in the zdirection of a parallelepiped region or a reservoir region in single-well simulation

Block boundary subject to boundary condition

= 1, block boundary in the negative direction of zaxis

= 2, block boundary in the negative direction of yaxis

= 3, block boundary in the negative direction of xaxis or rdirection

= 5, block boundary in the positive direction of xaxis or r direction

= 6, block boundary in the positive direction of yaxis

= 7, block boundary in the positive direction of zaxis

Type of boundary condition

= 1, specified pressure gradient at reservoir boundary, psi/ft [kPa/m]

= 2, specified flow rate across reservoir boundary, STB/D or scf/D [std m3/d]

= 3, no-flow boundary

= 4, specified pressure at reservoir boundary, psia [kPa]

= 5, specified pressure of the block on the other side of reservoir boundary, psia [kPa]

Specified value of boundary condition

Elevation of center of boundary surface for block-centered grid (or elevation of boundary node for point-distributed grid) below selected datum, ft [m]

Property modifier for area open to flow or geometric factor between reservoir boundary and boundary gridblock (or gridpoint), dimensionless

= 0.0, property is not modified

> 0.0, property is increased by that ratio

< 0.0, property is decreased by that ratio

1. All reservoir boundaries are assigned a no-flow boundary condition as a default. There- fore, there is no need to specify no-flow boundaries.

2. For ITYPBC = 5, ZELBC is the elevation of the point (node) that represents the block whose pressure is specified.

3. DATA 25A has no option identifier at the beginning of the parameter sequence line (line 2).

4. For single-well simulation using point-distributed grid, a specified FBHP must be simu- lated as a specified pressure boundary condition.

Well Recursive Data Number of wells that will change operational conditions

= O, no change in well operations

> O, number of wells that change operational conditions Time specification signaling user's new request, D [d]; well data entered here will be active starting from previous time specification until this time specification and beyond

Time step to be used, D [d]

Minimum BHP allowed for production well, psia [kPa]

Page 454: Petroleum Reservoir Simulation a Basic Approach

A.3 Description of Variables Used in Preparing a Data File 429

PWFMAX Maximum BHP allowed for injection well, psia [kPa]

IDW Well identification number; each well must have a unique IDW

=1,2,3,4...

IW, JW, KW L j, k location of wellblock

IWOPC Well operating condition

IWOPC for production well

= -1, specified pressure gradient at well, psi/ft [kPa/m]

= -2, specified production rate, STB/D or scf/D [std m3/d]

= -3, shut-in well

= -4, specified bottom-hole pressure, psia [kPa]

IWOPC for injection well

= 1, specified pressure gradient at well, psi/ft [kPa/m]

= 2, specified injection rate, STB/D or scf/D [std m3/d]

= 3, shut-in well

= 4, specified bottom-hole pressure, psia [kPa]

GWl Wellblock/geometric factor, RB-cp/D-psi [m3.mPa.s/(d.kPa)]

SPVALUE Specified value of the operating condition

RADW Well radius, ft [m]

NOTE 1. The NOW line can be repeated for different times, but each subsequent line must have a time specification larger than the previous time specification.

2.The NOW line can be used to specify new values for DELT, PWFMIN, or PWFMAX at desired times during simulation.

3.The specified value of PWFMIN and PWFMAX must be within the range of the pressure specified in the PVT table. For realistic simulation of slightly compressible and compress- ible fluids, these two parameters need to be specified. However, setting PWFMIN < -10 6 and PWFMAX > 10 6 deactivates the function of these two parameters.

4.This data group terminates with a line o zero entries.

5. Each IWD line enters specifications for r~ne well. This line must be repeated NOW times if NOW > O.

6. Both IWOPC and the specified rate are positive for injection and both are negative for production.

7. For single-well simulation using point-distributed grid, a specified FBHP must be simu- lated as a specified pressure boundary condition.

8. RADW is specified here to handle options IWOPC = 1 or -1.

Page 455: Petroleum Reservoir Simulation a Basic Approach

430 Appendix A User's Manual for Single-Phase Simulator

A.4 Instructions to Run Simulator

The user of the simulator is provided with a copy of a reference data file (e.g., REF- DATA.TXT) similar to the one presented in Section A.6. The user first copies this file into a personal data file (e.g., MY-DATA.TXT) and then follows the instructions in Section A.2 and observes the variable definitions given in Section A.3 to modify the personal data file such that it describes the constructed model of the reservoir under study. The simu- lator can be run by clicking on the compiled version (SinglePhaseSim.exe) that is pro- vided on the accompanying CD. The computer responds with the following statement requesting file names (with file type) of one input and four output files:

ENTER NAMES OF INPUT AND OUTPUT FILES

'DATA.TXT' '0UT1.LIS' '0UT2.LIS' '0UI-3.LIS' '0UT4.LIS'

The user responds using the names of five files, each enclosed within single quotes sepa- rated by a blank space or a comma as follows and then hits the "Return" key.

'MY-DATA.TXT','MY-0UT1 .LIS','MY-0UT2.LIS','MY-OUT3ilS','MY-0UT4.LIS'

The computer program continues execution until completion.

Each of the four output files contains specific information. 'MY-OUT1.LIS ' contains debugging information of the input data file if requested and a summary of the input data, block pressure, production and injection data including rates and cumulative rates of fluid across reservoir boundaries, and material balance checks for all t ime steps. 'MY- OUT2.LIS' reports intermediate results, equations for all blocks, and details specific to the linear equation solver every iteration in every time step. 'MY-OUT3.LIS' contains con- cise reporting in tabular form of block pressures at various times. 'MY-OUT4.LIS' con- tains concise reporting in tabular form of reservoir performance as well as individual well performances. The accompanying CD contains four output files generated by running the computer program for each of the four data files ex7-1.txt, ex7-7.txt, ex7-12.txt, and ex5- 5.txt available on the CD.

A.5 Limitations Imposed on the Compiled Version

The compiled version of SinglePhaseSim is provided here for demonstration and student training purposes. The critical variables were therefore restricted to the dimensions given below:

Number of gridblocks (or gridpoints) in x or r direction < 20

Number of gridblocks (or gridpoints) in y direction < 20

Number of gridblocks (or gridpoints) in z direction < 10

Number of entries in PVT table < 30

Number of wells = 1 well/block

Unrestricted number of times wells change operational conditions

Maximum number of time steps = 1000 (precautionary_measure)

Page 456: Petroleum Reservoir Simulation a Basic Approach

A.6 Example of a Prepared Data File 431

A.6 Example of a Prepared Data File

The following data file was prepared as a benchmark test problem.

'*DATA 01E* T i t l e o f Simulation Run' 'TITLE' ] .H, Abou-Kassem, Input data f i l e f o r Example 7,1 in Chap. 7.Chap 7-1. '*DATA 02B* Simulat ion Time Data' 'IPRDAT TMTOTAL TMSTOP'

1 36O 10 '*DATA 03B* Uni ts ' 'MUNITS'

1 '*DATA 04B* 'BORD MLR

1 1

Contro l In tegers f o r P r in t i ng Desired Output' BASIC OBC EOS PITER ITRSOL'

1 1 1 1 1 '*DATA 05B* Reservoir D i s c r i t i s a t i o n and Method o f Solving Equations' 'IGRDSYS NX NY NZ RW RE NONLNR LEQSM TOLERSP DXTOLSP'

1 4 1 1 0.25 526.604 4 8 0.0 0.0 '*DATA O6A* RESERVOIR REGION WITH ACTIVE OR INACTIVE BLOCK IACTIVE' 1~' I1 12 J1 J2 K1 K2 IACTIVE'

1 4 1 1 1 1 1 O 0 O 0 O 0 0

'*DATA 07A* RESERVOIR REGION HAVING BLOCK SIZE DX IN THE X-DIRECTION' I , ' 1 1 12 ]1 J2 K1 K2 DX (FT)'

1 4 1 1 1 1 300 O 0 O 0 O 0 0.0

' *D~A OBA* RESERVOIR REGION H~ING BLOCK SIZE DY 1N THE Y-DIRECTION' 0,'11 12 J1 32 K1 K2 DY (FT)' 350 350 350 350 '*DATA 09A* RESERVOIR REGION HAVING BLOCK SIZE DZ IN THE Z-DIRECTION' 0,'Ii 12 ]1 ]2 K1 K2 DZ (FT)' 4*40 '*DATA IOA* RESERVOIR REGION H~ING PERMEABILITY KX IN THE X-DIRECTION' 1 , '11 12 31 32 K1 K2 KX (MD)'

1 4 1 1 i 1 270 O 0 O 0 O 0 0.0

'*DATA 11A* RESERVOIR REGION H~ING PERMEABILITY KY IN THE Y-DIRECTION' I , ' I I 12 J l ]2 K1 K2 KY (MD)'

1 4 1 1 1 1 0 O 0 O 0 O 0 0.0

'*DATA 12A* RESERVOIR REGION HAVING PERMEABILITY KZ IN THE Z-DIRECTION' 1 , '11 12 ]1 ]2 K1 K2 KZ (MD)'

1 4 1 1 1 1 0 O 0 O 0 O 0 0.0

'*DATA 13A* RESERVOIR REGION HAVING ELEVATION Z' I , ' 1 1 12 ] I 32 KI K2 DEPTH (FT)'

1 4 1 1 1 1 0.0 O 0 O 0 O 0 0.0

'*DATA 14A* RESER~IR REGION HAVING POROSITY PHI' 1 , '11 12 31 ]2 K1 K2 PH1 (FRACTION)'

1 4 1 1 1 1 0.27 O 0 O 0 O 0 0.0

Page 457: Petroleum Reservoir Simulation a Basic Approach

4 3 2 Appendix A User's Manual for Single-Phase Simulator

'*DATA 15A* RESERVOIR REGION HAVING INITIAL PRESSURE P' 1 , ' I 1 12 ]1 ]2 K1 K2 P (PSIA)'

1 4 1 I 1 1 o 0 0 0 0 0 0 0.0

'*DATA 16A* RESERVOIR REGION WITH BLOCK POROSITY MODIFICATION RATIO' i~'11 I2 ]I ]2 K1 K2 RATIO'

0 0 0 0 0 0 0 . 0

'*DATA 17A* RESERVOIR REGION WITH BLOCK ELEVATION MODIFICATION RATIO' 1 , ' I 1 12 31 ]2 K1 K2 RATIO'

1 4 1 1 1 1 0.0 0 0 0 0 0 0 0o0

'*DATA 18A* RESERVOIR REGION WITH BLOCK VOLUME MODIFICATION RATIO' 1 , ' I 1 12 31 ]2 K1 K2 RATIO'

1 4 1 1 1 1 0.0 0 o 0 0 0 0 0.0

'*DATA 19A* RESERVOIR REGION WITH X-TRANSMISSIBILITY MODIFICATION RATIO' I~'Ii 12 ]i ]2 K1 K2 RATIO'

1 4 1 1 1 1 0.0 o o o o o o O.O

'*DATA 20A* RESERVOIR REGION WITH Y-TRANSMISSIBILITY MODIFICATION RATIO' I,'Ii 12 31 32 K1 K2 RATIO'

1 4 1 1 1 1 0.0 0 0 0 0 0 0 0.0

'*DATA 21A* RESERVOIR REGION WITH Z-TRANSMISSIBILITY MODIFICATION RATIO' 1 , ' I 1 12 31 32 K1 K2 RATIO'

1 4 1 1 1 1 0.0 0 0 0 0 0 0 0.0

'*DATA 22B* Rock and Fluid Density' ' CPHI PREF RHOSfi' 0.0 14.7 50.0

'*DATA 23B* Type of Fluid in the Reservoir' ' LCOMP IOUAD'

1 1 '*DATA 24B* FOR LCOMP= 1 AND 2 OR *DATA 24C* FOR LCOMP= 3 ENTER FLUID PROP' 'LCOMP=I:FVF,MUjLCOMP=2:FVFO~MUO,CO~CMU~PREF~MBCONST;LCOMP=3:PRES,FVF,MU TABLE'

1.0 0.5 '*DATA 25A* Boundary Condit ions' '11 12 ]1 ]2 K1 K2 1FACE

1 1 1 1 1 1 3 4 4 1 1 1 1 5 0 0 0 0 0 0 0

'*DATA 26D* Well Recursive Data' ' NOW SIMNEW ' IDW IW ]W

1 10.0 1 4 1 1 -2 0 0.0 0,0

ITYPEBC SPVALUE ZELBC RATIO' 4 4OOO 2O 0.0 3 0 20 0,0 0 O, 0,0 0.0

DELT PWFMIN PWFMAX' KW IWOPC GWI SPVALUE RADW'

10.0 -10000000.0 100000000,0 11,0845 -600 0.25 0,0 0,0

Page 458: Petroleum Reservoir Simulation a Basic Approach

References

1. Abou-Kassem, J.H. 1981. Investigation of grid orientation in two-dimensional, compositional, three-phase steam model. Ph.D. diss., University of Calgary, Alberta.

2. 1996. Practical considerations in developing numerical simulators for thermal recovery. J. Pet. Sci. Eng. 15: 281-90.

3. Abou-Kassem, J.H., and K. Aziz. 1985. Analytical well models for reservoir simulation. Soc. Pet. Eng. J. 25 (4): 573-79.

4. Abou-Kassem, J.H., and T. Ertekin. 1992. An efficient algorithm for removal of inactive blocks in reservoir simulation. J. Can. Pet. Tech. 31 (2): 25-31.

5. Abou-Kassem, J.H., T. Ertekin, and P.M. Lutchmansingh. 1991. Three- dimensional modeling of one-eighth of confined five- and nine-spot Patterns. J. Pet. Sci. Eng. 5: 137-49.

6. Abou-Kassem, J.H., and S. M. Farouq Ali. 1987. A unified approach to the solution of reservoir simulation equations. SPE # 17072, Paper presented at the 1987 SPE Eastern Regional Meeting, Pittsburgh, Pennsylvania, 21-23 October.

7. Abou-Kassem, J.H., S.M. Farouq All, M.R. Islam, and M.E. Osman. 2006. The engineering approach versus the mathematical approach in developing reservoir simulators. Under review.

8. Abou-Kassem, J.H., M.E. Osman, and M.R. Islam. 2006. New simple equations for interblock geometric factors and bulk volumes in single-well simulation," J. Pet. Sci. Tech. In press.

9. Abou-Kassem, J.H., M.E. Osman, and M.R. Islam. 2006. An engineering approach to the treatment of constant pressure boundary condition in block-centered grid in reservoir simulation. Under review.

10. Abou-Kassem, J.H., M.E. Osman, and A.M. Zaid. 1996. Architecture of a multipurpose simulator. J. Pet. Sci. Eng. 16: pp. 221-35.

11. Appleyard, J.R., and I.M. Cheshire. 1983. Nested factorization. SPE # 12264, Paper presented at the 1983 SPE Reservoir Simulation Symposium, San Francisco, 15-18 November.

12. Aziz, K. 1993. "Reservoir simulation grids: opportunities and problems," SPE # 25233, Paper presented at the1993 SPE Symposium on Reservoir Simulation, New Orleans, LA, 28 February-3 March.

13. Aziz, K., and A. Settari. 1979. Petroleum reservoir simulation. London: Applied Science Publishers.

14. Babu, D.K., and A.S. Odeh. 1989. Productivity of a horizontal well. SPERE 4 (4): 417-20.

15. Bear, J. 1988. Dynamics offluids in porous media. New York: Dover Publications.

433

Page 459: Petroleum Reservoir Simulation a Basic Approach

434 References

16. Behie, A., and P.K.W. Vinsome. 1982. Block iterative methods for fully implicit reservoir simulation. SPEJ 22 (5): 658-68.

17. Breitenbach, E.A., D.H. Thurnau, and H.K. van Poollen. 1969. The fluid flow simulation equations. SPEJ 9 (2): 155-69.

18. Coats, K. H. 1978. A highly implicit steamflood model. SPEJ 18 (5): 369-83. 19. Coats, K.H., W.D. George, and B.E. Marcum. 1974. Three-dimensional simulation

of steamflooding. SPEJ 14 (6): 573-92. 20. Coats, K.H., A.B. Ramesh, and A.G. Winestock. 1977. Numerical modeling of

thermal reservoir behavior. Paper presented at Canada-Venezuela Oil Sands Symposium, 27 May 27-4 June, Edmonton, Alberta.

21. Dranchuk, P.M., M.R. Islam, and R.G. Bentsen. 1986. A mathematical representation of the Cart, Kobayashi and Burrows natural gas viscosity. J. Can. Pet. Tech. 25 (1): 51-56.

22. Ertekin, T., J.H. Abou-Kassem, and G.R. King. 2001. Basic applied reservoir simulation. SPE Textbook Series, vol. 7. Richardson, Tex.: SPE.

23. Farouq Ali, S.M. 1986. Elements of Reservoir Modeling and Selected Papers, course notes, Petroleum Engineering, Mineral Engineering Department, University of Alberta.

24. Gupta, A.D. 1990 Accurate resolution of physical dispersion in multidimensional numerical modeling of miscible and chemical displacement. SPERE 5 (4): 581-88.

25. Hoffman, J.D. 1992. Numerical methods for engineers and scientists. New York: McGraw-Hill.

26. Keast, P., and A.R. Mitchell. 1966. On the instability of the Crank-Nicolson formula under derivative boundary conditions. Compt. J. 9 (1): 110-14.

27. Lee, A.L., M.H. Gonzalez, and B.E. Eakin. 1966. The viscosity of natural gases. Trans. AIME 237: 997-1000.

28. Leverett, M.C., and W.B. Lewis. 1941. Steady flow of gas/oil/water mixtures through unconsolidated sands. Trans. AIME 142: 107-16.

29. Lutchmansingh, P.M. 1987. Development and application of a highly implicit, multidimensional polymer injection simulator. Ph.D. diss., The Pennsylvania State University.

30. MacDonald, R.C., and K.H. Coats. 1970. Methods for numerical simulation of water and gas coning. Trans. AIME 249: 425-36.

31. McDonald, A.E., and R.H. Trimble. 1977. Efficient use of mass storage during elimination for sparse sets of simulation equations. SPEJ 17 (4): 300-16.

32. Mustafiz, S., Belhaj, H., Ma, F. and Islam, M.R. 2005. A New Two Phase Extension of Modified Brinkman Formulation for Fluid Flow through Porous Media, ASME International Mechanical Engineering Congress and Exposition (IMECE), Orlando, Florida, USA, November 5-10.

33. Mustafiz, S., Biazar, J. and Islam, M.R. 2005. An Adomian Decomposition Solution to the Modified Brinkman Model (MBM) for a 2-Dimensional, 1-Phase Flow of Petroleum Fluids, Proceeding of the Canadian Society for Civil

Engineering (CSCE), 33rdAnnual Conference, Toronto, ON, Canada, June 2-4.

Page 460: Petroleum Reservoir Simulation a Basic Approach

435

34. Nolen, J.S., and D.W. Berry. 1972. Tests of the stability and time-step sensitivity of semi-implicit reservoir simulation techniques. Trans. AIME 253: 253-66.

35. Odeh, A.S. 1982. An overview of mathematical modeling of the behavior of hydrocarbon reservoirs. SIAM Rev. 24 (3): 263.

36. Peaceman, D.W. 1983. Interpretation of wellblock pressures in numerical reservoir simulation with nonsquare gridblocks and anisotropic permeability. SPEJ 23 (3): 531-34.

37. Peaceman, D.W., and H.H. Rachford, Jr. 1955. The numerical solution of parabolic and elliptic equations. J. SIAM 3 (1): 28-41.

38. Pedrosa, O.A., Jr., and K. Aziz. 1986. Use of hybrid grid in reservoir simulation. SPERE 1 (6): 611-21.

39. Price, H.S., and K.H. Coats. 1974. Direct methods in reservoir simulation. SPEJ 14 (3): 295-308.

40. Saad, N. 1989. Field scale simulation of chemical flooding. Ph.D. diss., University of Texas, Austin.

41. Settari, A., and K. Aziz. 1975. Treatment of nonlinear terms in the numerical solution of partial differential equations for multiphase flow in porous media. Int. J. Multiphase Flow 1: 81744.

42. Sheffield, M. 1969. "Three phase flow including gravitational, viscous, and capillary forces. SPEJ 9 (3): 255-69.

43. Spillette, A.G., J.G. Hillestad, and H.L. Stone. 1973. A high-stability sequential solution approach to reservoir simulation. SPE # 4542, Paper presented at the 48th Annual Fall Meeting, Las Vegas, Nevada, 30 Sept.-3 Oct.

44. Tang, I.C. 1969. A simple algorithm for solving linear equations of a certain type. Zeitschrifi fur angewandte Mathematik und Mechanik 8 (49): 508.

45. Thomas, G.W., and D.H. Thurnau. 1983. Reservoir simulation using an adaptive implicit method. SPEJ 23 (5): 759-68.

46. Vinsome, P.K.W. 1976. Orthomin, an iterative method for solving sparse banded sets of simultaneous linear equations. SPE # 5729, Paper presented at the 1976 SPE Symposium on Numerical Simulation of Reservoir Performance, Los Angeles, 19- 20 February.

47. Woo, P.T., S.J. Roberts, and S.G. Gustavson. 1973. Application of sparse matrix techniques in reservoir simulation. SPE # 4544, Paper presented at the 48th Annual Fall Meeting, Las Vegas. 30 Sept-3 Oct.

Page 461: Petroleum Reservoir Simulation a Basic Approach

Author Index

Abou-Kassem, J.H., 2, 4-5, 12, 43, 79, 87, 88, 91-92, 111,153-154, 169, 183, 194, 198, 204, 236-337,360-361,365, 395,400, 414, 421,422, 433-434

Appleyard, J.R., 4, 361,433 Aziz, K., 2, 3, 4, 18, 43, 91,118, 153, 154,

183, 198, 327, 337, 339, 350, 360, 365, 433,435

Babu, D.K., 186, 433 Bear, J., 3,433 Behie, A., 4, 361,434 Belhaj, H., 17, 434 Bentsen, R.G., 209, 434 Berry, D.W., 289, 407, 435 Biazar, J., 17, 434 Breitenbach, E.A., 4, 434 Cheshire, I.M., 4, 361,433 Coats, K.H., 4, 12, 237, 266, 289, 299,

323,372, 383,407, 420, 434-435 Dranchuk, P.M., 209, 434 Eakin, B.E., 209, 434 Ertekin, T., 4-5, 12, 43, 87, 88, 91-92,

111,153-154, 169, 183, 186, 194, 236-337, 360-361,365, 395,400, 414, 421,433-434

Farouq Ali, S.M., 2-4, 43, 90, 91,433-434 George, W.D., 237, 288, 372, 420, 434 Gonzalez, M.H., 209, 434 Gupta, A.D., 4, 434 Gustavson, S.G., 12, 435 Hillestad, J.G., 4, 435 Hoffman, J.D., 238, 434 Islam, M.R., 2, 17, 79, 209, 433-434 Keast, P., 238,434 King, G.R., 4-5, 43, 87, 92, 153, 169, 183,

194, 237, 337, 361,365,395,414, 421, 433-434

Lee, A.L., 209, 434 Leverett, M.C., 437, 434 Lewis, W.B., 437,434 Lutchmansingh, P.M., 43, 111,169,

433-434 Ma, F., 17,434 MacDonald, R.C., 289, 407, 434 Marcum, B.E., 237, 288, 372, 420, 434 McDonald, A.E., 12, 434 Mitchell, A.R., 238,434 Mustafiz, S., 17,434 Nolen, J.S., 289, 407, 435 Odeh, A.S., 1, 2, 186, 433,435 Osman, M.E., 2, 79, 421,433 Peaceman, D.W., 185, 199, 358, 435 Pedrosa, Jr., O.A., 153, 154, 435 Price, H.S., 12, 435 Rachford, Jr., H.H., 358,435 Ramesh, A.B., 4, 299, 323,434 Roberts, S.J., 12, 435 Saad, N., 4, 435 Settari, A., 2, 3, 4, 18, 43, 91,118, 153,

154, 183, 198, 327, 337, 339, 350, 360, 365,433, 435

Sheffield, M., 4, 435 Spillette, A.G., 4, 435 Stone, H.L., 4, 370-373,435 Tang, I.C., 325,329-334, 361,425,435 Thomas, G.W., 4, 435 Thurnau, D.H., 4, 434, 435 Trimble, R.H., 12, 434 van Poollen, H.K., 4, 434 Vinsome, P.K.W., 4, 361,434, 435 Winestock, A.G., 4, 299, 323, 434 Woo, P.T., 12, 435 Zaid, A.M., 421,433

437

Page 462: Petroleum Reservoir Simulation a Basic Approach

Subject Index

A

accumulation terms, 2, 3, 18, 19, 22, 66, 127, 167, 207, 210, 241,365, 393, 416

block pressure and, 235,264-265,284, 289, 294-295

coefficient of, 294-295 expansion of, 299-300, 393-396 linearization and, 293 solution method and, 408-410

alternating-direction-implicit procedure (ADIP), 358-360

anisotropic permeability, 8, 23, 36, 153, 185, 186, 199

geometric factor and, 87, 90, 153 wellblock geometric factor, 185-186

aquifer, 74, 76, 78, 136, 138, 403-405 areal discretization. See reservoir discretization areal grids

radial-cylindrical, 28-29 rectangular. See Cartesian grid

B

backward-central-difference, 3, 235,265 See also implicit formulation

backward-difference, 5,235 black oil model, 3, 376, 414, 415-416, 422

boundary conditions and, 403-405 capillary pressures and, 373-374 flow equations and, 390-391 fluid properties and, 366-367 formulation of, 383 initial conditions and, 414 material balance check and, 414 relative permeability and, 370-371 solution and, 414-415

block-centered grid, 63-65, 90-91, 116, 123, 128, 212, 421,424, 426, 428

geometric factors and, 36, 88, 285-286, 288, 290

radial grid and, 92 rectangular grid and, 75 reservoir discretization and, 63 well geometric factor and, 184, 186

block identification, 11 block ordering, 12 engineering notation, 11

block successive over-relaxation (BSOR), 356-358

boundary conditions, 2, 3, 6, 63, 66, 68, 123, 126, 128, 182, 207, 209, 211, 365, 428

linearization of, 293,407 material balance check and, 212, 240-241,

267-268, 414 multiphase flow and, 393,403-405 no-flow, 77-78, 139, 405 single-phase flow and, 75-79, 136-142 single-well simulation and, 75, 136, 183 specified flow rate, 76-77, 138,404 specified boundary gridblock pressure, 79 specified boundary gridpoint pressure,

141-142 specified boundary pressure, 78-79,

139-141,405 specified pressure gradient, 75-76,

136-138, 403-404 symmetry and, 111,116, 169, 170

C

capillary pressure, 365, 373-374, 383-384, 404, 415,416

1MPES method and, 410--411 SS method and, 411

Cartesian coordinates, 7, 11, 28, 36, 54-55, 63, 67, 123

boundary conditions and, 75, 136 CVFD and, 43 flow equation and, 15 transmissibility and, 78, 153

439

Page 463: Petroleum Reservoir Simulation a Basic Approach

440 Subject Index

Cartesian grid block-centered, 63-64 point-distributed, 123-125

central-difference, 5, 235 compressible fluid, 208-209, 276, 338, 425

accumulation term and, 264-265 flow equation and, 266-267 fluid properties and, 208, 287 formulation and, 265-267 material balance check and, 267-268 nonlinearity and, 287-288 pressure solution and, 267

conservation of mass. See mass conservation constitutive equation. See Darcy's Law control volume, 2-5 control volume finite difference (CVFD)

method, 43, 127, 207, 209, 334, 365, 382

block ordering and, 49, 57 engineering notation and, 44 flow equation and, 44, 50-51, 54-57 natural ordering and, 49-50

Crank-Nicolson formulation, 1, 20, 36, 207, 236

material balance check and, 242 multiphase flow equations and, 382 single-phase flow equations and, 237-238,

266-267 cylindrical coordinates, 28-29

D

Darcy's Law, 3, 7, 17, 36, 91,380 multiphase flow and, 370, 374-376 radial flow and, 154, 184 single-phase flow and, 10

density, 7, 366 dimensionality, 43, 58, 68-69, 129, 181 direct solution methods, 325

1D rectangular flow problem and. See Thomas' algorithm

1D tangential flow problem and. See Tang' s algorithm

2D and 3D flow problem and. See sparse matrices

Gaussian elimination and, 336-337 discretization, 1-5, 7, 8-9, 28, 63-65, 98, 116,

123-125, 157, 376, 424

grid systems and. See reservoir discretization

E

elementary volume. See control volume engineering approach, 2-5, 7, 36, 66, 127, 183,

237, 266, 283, 292, 425 boundary conditions and, 66, 127, 183 flow equations and, 15-20 formulation methods and. See explicit

formulation; implicit formulation; Crank-Nicolson formulation

well rate linearization and, 283, 292-293 equation of state, 10 equations

ADIP, 358-360 black-oil model, 390-391 block-centered cylindrical grid, 91-92, 98 block-centered rectangular grid, 63-64 boundary conditions, 75-79, 136-142,

403--405 BSOR, 356-358 capillary pressure, 373 compressible flow, 265-267 conservative expansion, 395-396 Crank-Nicolson formulation, 237-238,

266-267 Darcy's Law, 10, 374-375 explicit formulation, 236, 265-266 fluid gravity, 7, 207 fluid injection, 400403 fluid potential, 11,374 fluid production, 397-399 fluid viscosity, 208-209 formation volume factor, 208 gas/water flow model, 385-386 Ganssian elimination, 336-337 Gauss-Seidel iteration, 341-342 general flow, 67 IMPES method, 410411 implicit formulation, 237, 266 incompressible flow, 210 integral approximation, 18-19 geometric factors, 88, 91, 99, 153, 154,

157 IPR, 185-186 Jacobi iteration, 338-339

Page 464: Petroleum Reservoir Simulation a Basic Approach

Subject Index 441

linearized flow, 293-299 LSOR, 350-351 mass accumulation term, 31,377 material balance, 15, 376 material balance check, 211-212,

240-242, 267-268,414 multiblock wells, 192-195 multiphase flow, 382-383 oil/gas flow model, 387-388 oil/water flow model, 384 optimum over-relaxation parameter,

345-346 point-distributed cylindrical grid, 155,

156-157 point-distributed rectangular grid,

123-124 porosity, 8 potential differences, 11,374 production rate linearization, 292-293 PSOR, 345-346 single-phase flow rate, 182-185 single-well simulation, 28-29, 35, 54-57,

98-99, 156-157, 183-185 slightly compressible flow, 235-238 SS method, 411-414 Stone' s three-phase model, 370-371 Tang's algorithm, 329-332 Thomas' algorithm, 325-328 transmissibility, 17, 23, 35, 87, 90, 152,

153, 383 transmissibility linearization, 289-291 viscosity, 208-209 wellblock geometric factor, 185-186,

197-200 well rate linearization, 292-293

explicit formulation, 236 multiphase flow equations and, 382 single-phase flow equations and, 236,

265-266

F

finite-difference equations, 2, 42, 79, 235 See also flow equation

flow equation, 2-5, 7, 11, 15, 22-23, 30, 35-36 CVFD and, 43, 49, 54, 57 multiphase and, 381-383 flow geometry and, 28

flowing bottom-hole pressure (FBHP), 181, 183-185, 195, 212, 293, 296, 398, 399, 401-403, 428

multiblock wells and, 193-194, 203-204, 397

fluid injection/production multiblock wells, 192 single block wells, 181

fluid properties black oil description, 366-367 capillary pressure, 373-374 compressibility, 366 FVF, 366-367 multiphase flow, 375-376 potential, 374 relative permeability, 370-371 saturation, 365 single-phase, 7-8, 208-209 solution gas/oil ratio and, 367 three-phase relative permeability,

370-371 viscosity, 208-209, 366

fluid volumetric velocity, 10 multiphase flow and, 374-375 radial-cylindrical flow and, 33 single-phase flow and, 16, 33

formation volume factor (FVF), 36, 235, 241, 264, 285,427

multiphase flow and, 366-367 single-phase flow and, 7,208-209 slightly compressible flow and, 208

forward-central-difference, 3, 235, 265 See also explicit formulation

forward-difference, 5,235 fully implicit method, 4, 289, 291-293,

297-300, 320, 365,408, 411

fictitious we11,2,66-75,127-136,182-183, 211-212,239-240,283-288, 293-294, 297-299, 320, 365, 382,393,403,407,411,415, 417

See also boundary condifions

G

g-band algorithm. See Gaussian elimination gas, 376, 388

free, 376, 379, 382 FVF and, 208

Page 465: Petroleum Reservoir Simulation a Basic Approach

442 Subject Index

multiphase flow and, 376, 390 solution, 376, 379, 383

gas-cap, 403 gas/oil contact (GOC), 403, gas/oil ratio, 367 Gaussian elimination, 336-337 Gauss-Seidel iteration, 341-342 gravity, 7, 21, 51, 79, 141,207, 237, 266-267,

285 grid system, 8, 207, 424

block-centered, 63 boundary conditions and, 73-79, 135-142 radial coordinates and, 28, 90, 153 point-distributed, 123 properties of, 63-64, 90-91,124, 153-154 Cartesian coordinates and, 28, 123 transmissibility and, 87, 90, 152-153

H

heterogeneous, 8, 110, 111,212, 423 homogeneous, 8, 17, 23, 35, 36, 111,242, 422

implicit-pressure-explicit-saturation (IMPES) method, 4, 365,408, 416, 410

implicit formulation, 36, 235, 237, 238, 240, 265,

IMPES method and, 410 material balance check and, 240, 267,414 multiphase flow equations and, 382-383 single-phase flow equations and, 237, 266 SS method and, 411 transmissibility and, 291

incompressible fluid, 208 accumulation term and, 210 flow equation and, 210 fluid properties and, 208 material balance and, 211-212 pressure solution and, 211

inflow performance relationship (IPR), 185 initial conditions, 111,169, 240, 276

multiphase flow and, 414-415 single-phase flow and, 238, 267

injection, 1, 2, 36, 66, 75, 111,127, 136, 169, 204, 211,240, 365, 393

in multiblock wells, 400-403

in single block wells, 181-182 isotropic permeability, 8, 186, 212 iterative methods, 4, 325, 337-338

ADIP, 358-360 BSOR, 356-358 Jacobi, 338-339 Ganss-Seidel, 341-342 LSOR, 350--351 PSOR, 345-346

J--K

Jacobi's iterative method, 338-339

L

law of mass conservation multiphase flow and, 376 single-phase flow and, 15 See also mass balance

line successive over-relaxation (LSOR) method, 350

linear algebraic equation, 1-5, 36, 212, 283, 285-288, 421

linear algebraic equation solvers, 325-361 ADIP, 358 BSOR, 356 direct methods, 325 Ganss-Seidel iteration, 341 Gaussian elimination, 336 iterative methods, 337 Jacobi method, 338 LSOR, 350 PSOR method, 345 Tang' s algorithm and, 329 Thomas' algorithm and, 325

linear difference equation. See linear algebraic equation

linearization, 1-2, 87, 153, 266, 288-292 fictitious well rate terms and, 293 flow equations and, 293-300 flow terms and, 283 implicit formulation and, 297-300 in space, 290 in time, 266, 289, 291 of week nonlinearities, 283 of well rates, 292-293 transmissibility and, 289-291

Page 466: Petroleum Reservoir Simulation a Basic Approach

Subject Index 443

M

mass accumulation term, 15, 377 mass balance, 376

See also material balance mass conservation, 9-10 mass flux, 15, 31,377 mass rate, 15, 31- 32, 376 material balance, 7, 15, 30, 36, 77, 138, 240,

242, 264, 289-300, 375-376, 393,411,424

mathematical approach, 2, 4-5, 79, 235-237, 266, 283, 292, 425

matrix, 327, 330, 337 bitridiagonal, 412-413 sparse, 334, 336, 357 tridiagonal, 327, 336-337, 411-414

multiblock wells, 192, 204, 365, 398, 402 injection and, 400-403 production and, 397-399 vertical effects and, 192-193, 397-398 wellbock rate and, 193-195

multiphase flow, 7, 265, 289, 361,365-366, 370, 374, 376, 380, 383,394, 403,407,414, 416

basic models for, 384, 385,387, 390 boundary conditions and, 403-405 Crank-Nicolson formulation and, 382 explicit formulation and, 382 flow equations for, 381-383 fluid injection and, 400--403 fluid production and, 397-399 gas/water model, 385-386 implicit formulation, 382-383 initial conditions and, 414 linearization and, 407-408 mass balance and, 376 material balance check and, 414 oil/gas model, 387-388 oil/water model, 384 oil/water/gas model, 390-391 solution methods for, 408-414

N

Newton's iteration, 297, 425 See also fully implicit method

no-flow boundaries, 73,77-78,111-116,136, 139,169-171,173,192,197, 199, 212,403,405,411-412, 428

O

oil, 1, 3, 21,208, 365 FVF and, 10, 366 density and, 10, 366 viscosity and, 366, 367

oil/gas model 387-388 oil/water model, 384

IMPES method and, 410-411 SS method and, 410-414

oil/water/gas model, 390-391 optimum over-relaxation parameter, 345-346

P-Q

partial differential equation (PDE), 1-4, 36, 235

discretization and, 1-2, 4-5 permeability, 8

anisotropic, 8 horizontal, 8, 185 isotropic, 8 relative, 370 vertical, 8

phase mobilities, 399 point-distributed grid, 123-124, 153-154 point Jacobi method, 338-339 point successive over-relaxation (PSOR)

method, 345-346 pore volume, 98, 156, 365 porosity, 8

heterogeneity and, 8 incompressible porous media, 210

pressure boundary conditions and. See specified

pressure boundaries capillary, 373 coefficient of, 239, 283,285, 287, 293,

296, 425 compressibility and, 208, 209 explicit formulation and, 236 fluid properties and, 208 FVF and, 208

Page 467: Petroleum Reservoir Simulation a Basic Approach

444 Subject Index

pressure (continued) IMPES method and, 411 implicit formulation and, 237 injection and, 401 phase, 373 solution GOR and, 367 viscosity and, 366

pressure-specified wells, 183, 195 injection and, 403 production and, 399

pressure/volume/temperature (PVT), 365, 368, 423,430, 431

pressure gradient-specified wells, 182-183, 195

injection and, 402 production and, 399

production, 1, 2, 22, 36, 66, 75, 111,127, 136, 169, 203-204, 210-211, 240-241,283-284, 292-293, 327, 365, 397

in multiblock wells, 192-195, 397-399 in single block wells, 181-182

R

rate-specified wells, 182, 193-195 injection and, 402 production and, 398-399

rectangular coordinates, 28, 36 grids and, 9, 29

reservoir discretization, 8, 63, 123, 376, 425 block-centered grid and, 63-64, 91-92, 98 irregular grid, 64, 125 point-distributed grid, 123-124, 154-155,

156-157 radial direction and, 98, 156-157 single-well simulation and, 28 terminology for, 8-9, 28-29,

reservoir simulation, 1, 4-5, 18 algebraic equations, 1 block ordering and, 12 Darcy's Law and, 10 engineering approach and, 2 flow equations and, 1 mathematical approach and, 2 multiphase flow and, 365 single phase flow and, 7, 207 use of symmetry in, 110, 169 well representation and, 181

residual oil saturation, 371 rock properties, 8

permeability, 8 porosity, 8

sandface pressure. See FBHP saturation, 365

black oil description and, 365 gas/water model and, 386 IMPES method and, 411 multiphase flow and, 390 oil/gas model and, 387 oil/water model and, 384

sequential solution (SEQ) method, 4, 365 shut-in wells, 182, 193, 398, 402 simultaneous solution (SS) method, 4, 365,

408, 416 explicit linearization and, 411 fully implicit linearization and. See fully

implicit method single phase flow, 207

boundary conditions and, 73, 135 compressible fluid flow and, 264-268 explicit formulation and, 265 implicit formulation and, 266 incompressible fluid flow and, 210-212 initial conditions and, 238, 267 pressure and, 210, 238, 267 slightly compressible fluid flow and,

235-242 transmissibility and, 87, 90, 152-153

slightly compressible fluid, 208, 336 accumulation term and, 235 flow equation and, 235-238 fluid properties and, 208

source/sink terms. See well representation sparse matrices, 334, 336, 357 specified pressure boundaries, 78-79, 116,

140-141,174, 428 specified pressure gradient boundaries, 73,

75-76, 116, 136-138, 174, 403-404, 428

specified rate boundaries, 76-77, 138,404 stability, 5, 266, 293

Crank-Nicolson formulation and, 238 explicit formulation and, 236 implicit formulation and, 237

Page 468: Petroleum Reservoir Simulation a Basic Approach

Subject Index 445

nonlinearity and, 291 of solution, 236

steady-state, 210, 267, 287 Stone' s three-phase model, 370-371 successive over-relaxation (SOR) methods,

345, 350, 356, 358

T

Tang's algorithm, 329-332 temperature, 11, 21,208, 209, 235, 264, 287,

366-367 thickness, 8, 185,195 Thomas' algorithm, 327-328 time, 1-2, 4-5

transmissibility and, 291 transmissibility

explicit formulation and, 236, 265-266 fully implicit method and, 291 IMPES method and, 410 implicit formulation and, 266, 237 incompressible flow and, 210 interblock, 87, 90, 152, 153 linearization of, 288-291 slightly compressible flow and, 285

U

unsteady-state, 239, 267, 276, 287, 415

V

vertical wells, 181 viscosity, 7, 208-209, 366 volumetric rate. See Darcy's Law

W - Z

water, 376, 383, 384, 385, 390, 403,404 water/oil contact (WOC), 403 weighting, 17, 290, 381,408

average function value, 290 average component function value, 290 average pressure value, 290 single-point upstream, 290, 405,408,415 transmissibility, 291 two-point upstream, 380

well rate. See injection; production wells

multiblock, 192 single block, 181

well representation, 1, 181 horizontal effects, 185-186 multiblock model, 192 single block model, 181 vertical effects, 192