MRST - MATLAB Reservoir Simulation Toolbox

MRST book
The book is the primary source to learn about models for flow and transport in porous media and how these are implemented in MRST.

An Introduction to Reservoir Simulation Using MATLAB, by Knut-Andreas Lie, Dec 2016

From the preface: "In this book, I try to give a reasonably self-contained introduction to the simulation of flow and transport in porous media that also discusses how to implement the models and algorithms in a robust and efficient manner. In the presentation, I have tried to let the discussion of models and numerical methods go hand-in-hand with numerical examples that come fully equipped with codes and data, so that you can rerun and reproduce the results by yourself and use them as a starting point for your own research and experiments. (...)

The book can alternatively be seen as a comprehensive user-guide to MRST. Over the years, MRST has become surprisingly popular (the latest releases typically have a few thousand unique downloads each) and has expanded rapidly with new features. Unfortunately, the manuscript has not been able to keep pace. The current version is up-to-date with respect to the latest development in data structures and syntax, includes material on single-phase and two-phase incompressible flow, and discusses workflow tools like upscaling and flow diagnostics. Simulation of compressible, three-phase flow is not yet discussed, but I try to add more material whenever I have time or inspiration, and the manuscript will hopefully be expanded to cover industry-standard black-oil simulations in the not too distant future.

I hereby grant you permission to use the manuscript and the accompanying example scripts for your own educational purpose, but please do not reuse or redistribute this material as a whole, or in parts, without explicit permission. Moreover, notice that the current manuscript is a snapshot of work in progress and is far from complete. The text may contain a number of misprints and errors, and I would be grateful if you help to improve the manuscript by sending me an email. Suggestions for other improvement are also most welcome."

Scripts and functions necessary for most of the examples can be found in the 'book' module of the official MRST release. A copy of some of the unpublished book chapters can be obtained upon request.


Citation: K.-A. Lie. An introduction to reservoir simulation using MATLAB: User guide for the Matlab Reservoir Simulation Toolbox (MRST). SINTEF ICT, December 2016,

Published June 2, 2017