Professional Documents
Culture Documents
Textbook Ebook An Introduction To Multiphase Multicomponent Reservoir Simulation Matthew Balhoff All Chapter PDF
Textbook Ebook An Introduction To Multiphase Multicomponent Reservoir Simulation Matthew Balhoff All Chapter PDF
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
Nomenclature
xix
xx Nomenclature
Miniature Library
Reprints in miniature of a few interesting books which have
qualities of humanity, devotion, or literary genius.
Euphranor: A Dialogue on Youth. By Edward FitzGerald.
From the edition published by W. Pickering in 1851. Demy
32mo. Leather, 2s. net.
Polonius: or Wise Saws and Modern Instances. By Edward
FitzGerald. From the edition published by W. Pickering in
1852. Demy 32mo. Leather, 2s. net.
The Rubáiyát of Omar Khayyám. By Edward FitzGerald.
From the 1st edition of 1859. Third Edition. Leather, 2s. net.
The Life of Edward, Lord Herbert of Cherbury. Written
by himself. From the edition printed at Strawberry Hill in
the year 1764. Medium 32mo. Leather, 2s. net.
The Visions of Dom Francisco Quevedo Villegas, Knight of
the Order of St. James. Made English by R. L. From the
edition printed for H. Herringman, 1668. Leather, 2s. net.
Poems. By Dora Greenwell. From the edition of 1848.
Leather, 2s. net.
Oxford Biographies
Fcap. 8vo. Each volume, cloth, 2s. 6d. net; leather, 3s. 6d. net.
These books are written by scholars of repute, who combine
knowledge and literary skill with the power of popular
presentation. They are illustrated from authentic material.
Dante Alighieri. By Paget Toynbee, M.A., D.Litt. With 12
Illustrations. Second Edition.
Savonarola. By E. L. S. Horsburgh, M.A. With 12
Illustrations. Second Edition.
John Howard. By E. C. S. Gibson, D.D., Bishop of
Gloucester. With 12 Illustrations.
Tennyson. By A. C. Benson, M.A. With 12 Illustrations.
Walter Raleigh. By I. A. Taylor. With 12 Illustrations.
Erasmus. By E. F. H. Capey. With 12 Illustrations.
The Young Pretender. By C. S. Terry. With 12 Illustrations.
Robert Burns. By T. F. Henderson. With 12 Illustrations.
Chatham. By A. S. M‘Dowall. With 12 Illustrations.
St. Francis of Assisi. By Anna M. Stoddart. With 16
Illustrations.
Canning. By W. Alison Phillips. With 12 Illustrations.
Beaconsfield. By Walter Sichel. With 12 Illustrations.
Goethe. By H. G. Atkins. With 12 Illustrations.
Fenelon. By Viscount St. Cyres. With 12 Illustrations.
Science, Textbooks of
Edited by G. F. GOODCHILD, B.A., B.Sc., and G. R. MILLS,
M.A.
Practical Mechanics. By Sidney H. Wells. Third Edition. Cr.
8vo. 3s. 6d.
Practical Physics. By H. Stroud, D.Sc., M.A. Cr. 8vo. 3s. 6d.
Practical Chemistry. Part I. By W. French, M.A. Cr. 8vo.
Fourth Edition. 1s. 6d. Part II. By W. French, M.A., and T. H.
Boardman, M.A. Cr. 8vo. 1s. 6d.
Technical Arithmetic and Geometry. By C. T. Millis,
M.I.M.E. Cr. 8vo. 3s. 6d.
Examples in Physics. By C. E. Jackson, B.A. Cr. 8vo. 2s. 6d.
*Elementary Organic Chemistry. By A. E. Dunstan, B.Sc.
Illustrated. Cr. 8vo.
Technology, Textbooks of
Edited by G. F. GOODCHILD, B.A., B.Sc., and G. R. MILLS,
M.A.
Fully Illustrated.
How to Make a Dress. By J. A. E. Wood. Third Edition. Cr.
8vo. 1s. 6d.
Carpentry and Joinery. By F. C. Webber. Fifth Edition. Cr.
8vo. 3s. 6d.
Millinery, Theoretical and Practical. By Clare Hill. Third
Edition. Cr. 8vo. 2s.
An Introduction To the Study of Textile Design. By
Aldred F. Barker. Demy 8vo. 7s. 6d.
Builders’ Quantities. By H. C. Grubb. Cr. 8vo. 4s. 6d.
Repoussé Metal Work. By A. C. Horth. Cr. 8vo. 2s. 6d.
Theology, Handbooks of
Edited by R. L. OTTLEY, D.D., Professor of Pastoral Theology at
Oxford, and Canon of Christ Church, Oxford.
The series is intended, in part, to furnish the clergy and
teachers or students of Theology with trustworthy Textbooks,
adequately representing the present position of the questions
dealt with; in part, to make accessible to the reading public an
accurate and concise statement of facts and principles in all
questions bearing on Theology and Religion.
The XXXIX. Articles of the Church of England. Edited
by E. C. S. Gibson, D.D. Fifth and Cheaper Edition in one
Volume. Demy 8vo. 12s. 6d.
An Introduction to the History of Religion. By F. B.
Jevons. M.A., Litt.D. Third Edition. Demy 8vo. 10s. 6d.
The Doctrine of the Incarnation. By R. L. Ottley, D.D.
Second and Cheaper Edition. Demy 8vo. 12s. 6d.
An Introduction to the History of the Creeds. By A. E.
Burn, D.D. Demy 8vo. 10s. 6d.
The Philosophy of Religion in England and America. By
Alfred Caldecott. D.D. Demy 8vo. 10s. 6d.
A History of Early Christian Doctrine. By J. F. Bethune
Baker, M.A. Demy 8vo. 10s. 6d.
See also Strand Novels and Books for Boys and Girls.