Professional Documents
Culture Documents
An Introduction to Multiphase,
Multicomponent Reservoir Simulation
This page intentionally left blank
DEVELOPMENTS IN PETROLEUM
SCIENCE 75
An Introduction to
Multiphase,
Multicomponent
Reservoir Simulation
Matthew Balhoff
Director, Center for Subsurface Energy and the Environment;
Professor, Hildebrand Department of Petroleum and Geosystems
Engineering, The University of Texas, Austin, TX, United States;
Bank of America Professorship in Petroleum Engineering
Elsevier
Radarweg 29, PO Box 211, 1000 AE Amsterdam, Netherlands
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
Copyright © 2022 Elsevier B.V. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or any informa-
tion storage and retrieval system, without permission in writing from the Publisher.
Details on how to seek permission, further information about the Publisher’s per-
missions policies and our arrangements with organizations such as the Copyright
Clearance Center and the Copyright Licensing Agency, can be found at our website:
www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copy-
right by the Publisher (other than as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and
experience broaden our understanding, changes in research methods, professional
practices, or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge
in evaluating and using any information, methods, compounds, or experiments
described herein. In using such information or methods they should be mindful of
their own safety and the safety of others, including parties for whom they have a
professional responsibility.
To the fullest extent of the law, neither the Publisher, nor the authors, contributors, or
editors, assume any liability for any injury and/or damage to persons or property as a
matter of products liability, negligence or otherwise, or from any use or operation of
any methods, products, instructions, or ideas contained in the material herein.
ISBN: 978-0-323-99235-0
ISSN: 0376-7361
vii
viii Contents
Index 319
Preface
xiii
xiv Preface
Cube, with each block in the cube being a grid in the model. The simulator can
have thousands, millions, or even billions of grids and each grid has unique,
constant (or simple function) properties, such as permeability, porosity, satu-
ration, composition, pressure, etc. Balance (mass, energy, momentum) equa-
tions that are imposed are on each block which are dependent on adjacent
block properties. As a result, the complicated PDEs reduce to a system of N
algebraic equations and N unknowns.
Many commercial (e.g., CMG, ECLIPSE, INTERSECT, Nexus), academic,
or open source (BOAST, MRST, UTCHEM, UTCOMP, IPARS, TOUGH) and
proprietary, in-house simulators have been developed by teams of experts over
decades. These simulators vary in their applicability but are based on the same
basic fundamentals. These simulators are often relatively easy for the beginner to
use, which can be as much of a problem as it is a feature. Failure to understand the
principles and basic equations of numerical simulation (what is under the hood)
can lead one to not recognize the model’s limitations and lead to costly or even
unsafe decisions. The mathematics are complicated and can be daunting for even
PhD scientists and engineers. Many outstanding books have been written on the
subject; Aziz and Settari (1979), Ertekin et al. (2001), Chen (2007), Lie (2019),
and Abou-Kassem et al. (2020) are just a few of my favorites. Many of these
books are best suited for advanced graduate students or professionals with some
experience in simulation.
I have taught the fundamentals of reservoir simulation for 15 years to over a
thousand undergraduates and first-year graduate students. Breaking down the
complexities of simulation to students new to the subject is challenging, to put it
mildly. In this book, I have attempted to organize my notes, teaching style, and
“lessons learned” in a concise text for the beginner. Many advanced and modern
topics are intentionally not included, but the interested reader should read the
dozens of advanced books and thousands of publications that cover them.
This book includes two important features. The first is the inclusion of
dozens of small (e.g., 4e9 block) example problems that are solved by hand
and calculator, largely without the use of a computer. To quote Albert Einstein,
“example isn’t another way to teach; it is the only way to teach.” I have found
these examples essential for the beginner to understand the basics of reservoir
simulation. In addition to example problems, each chapter includes additional
exercises for the reader to attempt.
The second feature of the book is the emphasis on writing computer code
with the end-goal of the reader developing their own multiphase, multidi-
mensional, and multicomponent reservoir simulator. The final product will be
a simulator that will produce identical (or nearly identical) results as the
aforementioned commercial, academic, and in-house simulators. The user’s
code can be and should be validated against these simulators, analytical so-
lutions, or the small example problems provided in the text. The book is
organized in such a way that the code starts relatively simple (1D, single
phase, homogeneous) and complexities (multidimensions, heterogeneities,
Preface xv
multiphase, etc.) are added along the way. Pseudocode is provided in each
chapter, with some explanation and discussion, to help the user develop their
own code. The most computationally efficient, vectorized, or elegant pseu-
docodes are not always provided. In fact, this is often intentional, as some-
times the less elegant codes are better for understanding the logic and
mathematics. The developer of the simulator is encouraged to optimize their
code once they have a working code that they understand.
The simulator developer is encouraged to be patient and avoid frustration
as best as possible. I have written hundreds of subroutines and codes for my
reservoir simulation courses over the years and can say with confidence that
every one of them had errors and bugs in the initial version. These errors have
taken anywhere from minutes to days (or even weeks) to debug. However,
every single time I have fixed an error, I have come away with a better un-
derstanding of reservoir simulation and reservoir engineering in general. When
the developer obtains results that are nonphysical or disagree with analytical
solutions, example problems, or commercial simulators, they should ask what
physically or mathematically could cause such a discrepancy. In my experi-
ence, 99% of the coding errors are in the formation of the few matrices and
vectors that are used to solve the problem. The error(s) can almost always be
identified by comparison to the matrices/vectors created by hand in the ex-
amples with a small number of grids.
Your final reservoir simulator (albeit accurate and flexible) will probably
not be as computationally efficient, scalable, user-friendly, or have nearly as
many features as a commercial simulator. However, you will develop an
excellent understanding of the details and limitations of these simulators. And,
just maybe, you will join a team or have a career developing the next-
generation commercial, in-house, or academic simulator.
References
Abou-Kassem, Hussein, J., Rafiqul Islam, M., Farouq-Ali, S.M., 2020. Petroleum Reservoir
Simulation: The Engineering Approach. Elsevier.
Aziz, K., Settari, A., 1979. Petroleum Reservoir Simulation. 1979. Applied Science Publ. Ltd.,
London, UK.
Chen, Z., 2007. Reservoir simulation: mathematical techniques in oil recovery. Society for In-
dustrial and Applied Mathematics.
Ertekin, T., Abou-Kassem, J.H., King, G.R., 2001. Basic Applied Reservoir Simulation, 7. Society
of Petroleum Engineers, Richardson.
Lie, K.-A., 2019. An introduction to reservoir simulation using MATLAB/GNU Octave: User
guide for the MATLAB Reservoir Simulation Toolbox (MRST). Cambridge University Press.
Sayarpour, M., Zuluaga, E., Shah Kabir, C., Lake, L.W., 2009. The use of capacitanceeresistance
models for rapid estimation of water flood performance and optimization. Journal of Petro-
leum Science and Engineering 69 (3e4), 227e238.
This page intentionally left blank
Acknowledgments
First and foremost, I would like to thank the many current and former, grad-
uate and undergraduate, students who helped in the development of this book.
Although impossible to list them all, I would like to specifically recognize
Nkem Egboga, Yashar Mehmani, Hamza Salim Al Rawahi, Travis Salomaki,
Moises Velasco, Jianping Xu, and Sarah Razmara. I would like to thank Mary
Wheeler for introducing me to the subject matter of reservoir simulation and
the many colleagues for which I have had discussions including Larry Lake,
Kamy Sepehrnoori, Gary Pope, Russ Johns, David DiCarlo, and Cheng Chen. I
also acknowledge Cooper Link, Joanna Castillo, and Jostine Ho for helping
with the many illustrations. I would like to thank my father, who taught me to
be an engineer and helped me numerically solve the Diffusivity equation for
the first time, my mother, who taught me to persistent and dedicated, and my
sisters. Finally, this book would not be possible without the endless support
and love of my wife, Julie.
xvii
This page intentionally left blank
Another random document with
no related content on Scribd:
All learning is valuable; all history is useful. By knowing what has
been we can better judge the future; by knowing how men have
acted heretofore we can understand how they will act again in similar
circumstances.
—Shakespeare, “Coriolanus.”
We say to you (our opponents) that you have made the definition
of a business man too limited in its application. The man who is
employed for wages is as much a business man as his employer; the
attorney in a country town is as much a business man as the
corporation counsel in a great metropolis; the merchant at the cross-
roads store is as much a business man as the merchant of New
York; the farmer who goes forth in the morning and toils all day, who
begins in the spring and toils all summer, and who by application of
brain and muscle to the natural resources of the country creates
wealth, is as much a business man as the man who goes upon the
Board of Trade and bets upon the price of grain; the miners who go
down a thousand feet into the earth, or climb 2,000 feet upon the
cliffs, and bring forth from their hiding-places the precious metals to
be poured into the channels of trade, are as much business men as
the few financial magnates who in a back room corner the money of
the world. We come to speak for this broader class of business men.
Oh do not pray for easy lives. Pray to be stronger men. Do not
pray for tasks equal to your powers, pray for power equal to your
tasks; then the doing of your work shall be no miracle. But you shall
be a miracle. Every day you shall wonder at yourself, at the richness
of life, which has come to you by the grace of God.
—Phillips Brooks.
—Joaquin Miller.
—Tennyson.
—Browning.
—Tennyson.
Kind of Pauses
Pauses may be long or short, frequent or seldom.
In the following exercises indicate where and what kind of pauses
you would naturally have:
The student may give himself fine exercise by choosing any one of
the following moods and writing a one-minute composition upon it.
Then let him read it aloud with the appropriate tone:
PISGAH-SIGHT
By Robert Browning
Good, to forgive:
Best, to forget!
Living, we fret;
Dying, we live.
Fretless and free,
Soul, clap thy pinion!
Earth have dominion,
Body, o’er thee!
Wander at will,
Day after day,—
Wander away,
Wandering still—
Soul that canst soar!
Body may slumber:
Body shall cumber
Soul-flight no more.
DAWN
By Paul Laurence Dunbar
These heroes are dead. They died for liberty—they died for
us. They are at rest. They sleep in the land they made free,
under the flag they rendered stainless, under the solemn
pines, the sad hemlocks, the tearful willows, and the
embracing vines. They sleep beneath the shadows of the
clouds, careless alike of sunshine or of storm, each in the
windowless palace of Rest. Earth may run red with other
wars: they are at peace. In the midst of battle, in the roar of
conflict, they found the serenity of death. I have one
sentiment for soldiers living and dead: Cheers for the living;
tears for the dead.
POETICAL SELECTIONS
Colloquial
Humorous
Humorous Dialect
Pathetic
Dramatic
Sublime
Lyric
Poetry is the highest, most beautiful and perfect verbal expression
of thought allowed to man. The higher the poetry the more is it
permeated with elevating human emotion.
COLLOQUIAL SELECTIONS IN POETRY
THE PESSIMIST
By Ben King