Tutorials
An oil field from pressure history
Updated 3 November 2026 · 7 min read
Twelve pressure surveys over ten years, and the rates the field produced in between. From those alone you will work out how much oil was there to begin with, find out whether water has been pushing in from an aquifer, and forecast the next twenty years with wells. It is the classical material balance, built from six objects, each one a dialog.
Before you start#
This tutorial is for readers who know what a material balance is. If you don’t, read Stocks and flows and work through the first three tutorials first; everything here is made of the same parts.
You need this file, the field’s production history:
oil-history.csv10 years of oil, gas and water rates, and 12 pressure surveys · 666 bytesThe history is made up for teaching. It was generated from a field with 250 million stock tank barrels of oil and a Fetkovich aquifer of 5,000 MMrb with a productivity of 0.006, with up to 15 psi of gauge noise added to the pressures. As with the outbreak, knowing the answer lets you see how close the method gets, and how it can go wrong.
The method in one equation#
The Havlena–Odeh form of the material balance says that what has come out of the reservoir equals what the reservoir’s contents have expanded by, plus the water that has come in:
F is the underground withdrawal of oil, gas and water. Eo, Eg and Efw are how much a barrel of oil, the gas cap and the rock and connate water expand as pressure falls. N is the oil in place and We the water influx. Every term depends on pressure through the fluid properties, so at each moment there is one pressure that makes the two sides equal. Fzero finds it. Fit to Data then finds the N and the aquifer that make those pressures match the surveys.
Build the field#
Start a new model. In Simulation, set Time unit to year, Start to 0 and End to 10. The objects are under Oil & gas: material balance in the components list. Add them in this order: each one reads from the ones before it.
PVT: the fluid’s properties
Click PVT. Choose Black oil, and keep the defaults: 35 °API, a bubble point of 3,000 psia, gas gravity 0.75, 200 °F, and the Dranchuk–Abou-Kassem Z correlation for the gas. Change To pressure to 6,000 psia, a little above the initial pressure. Press Work it out on Reineur Solver.
- 1Black oil: Bo, Rs, Bg and both viscosities.
- 2The oil’s gravity.
- 3The bubble point.
- 4SepalSolver works out the tables from the correlations.
SepalSolver works out Bo, Rs, Bg and the oil and gas viscosities at 31 pressures, using Standing below the bubble point and Vasquez–Beggs above it. At the bubble point the oil holds 722 scf/STB. Press Add the PVT object. Five lookup tables arrive in a box; the tank will read them.
Tank: the material balance
Click Tank, choose Oil, and enter 450 MMSTB as a guess for the oil in place and 4,200 psia as the initial pressure.
- 1Oil: the Havlena–Odeh balance.
- 2A guess. It only has to be more than will ever be produced; the fit will find the real value.
- 3The pressure measured before production started.
Aquifer
Click Aquifer and choose Fetkovich (pot): a finite aquifer whose own pressure falls as it gives up water. Its productivity starts at zero, so for now the tank is sealed, and it comes ticked for fitting so the match can decide whether there is an aquifer at all.
- 1Fetkovich: a pot aquifer with a productivity index.
Production history
Click Production History. Open
oil-history.csvin a text editor or a spreadsheet, copy everything, and paste it into the box. Leave Match the pressures to as Reservoir pressure.- 1Time, the three rates, and the pressure where one was measured.
- 2The rates feed the tank; the pressures become a data series to match it to.
The dialog reads 24 rows from 0 to 10 years, and 12 measured pressures. The rates become tables that drive the tank’s production. The pressures become a data series compared with the tank’s pressure.
Diagnostic plots
Click Diagnostic Plots and add them: the Campbell plot, the Havlena–Odeh plot, the oil in place each survey implies, and the drive indices. Each is worked out at the tank’s pressure from the run, and at each measured pressure from the surveys.
Wells and forecast
Click Wells & Forecast. History ends at 10 years. Set Forecast to 30, the Plateau oil rate to 8 MMSTB a year, and the Productivity index to 0.004 MMSTB a year per psi. Leave the lowest flowing pressure at 1,000 psia.
- 1Up to here, production is what was measured.
- 2The forecast runs to here.
- 3The most the facilities can handle.
- 4q = J (p − pwf): oil a year per psi of drawdown.
The model is built. It has six boxes, from the PVT tables at the top to the wells at the bottom, and the run now goes to year 30.
- 1The reservoir pressure, solved by Fzero at every step.
The top of the model: the five PVT tables, and the tank. The dashed links show every place the tank reads a fluid property.
Match the history#
First, as a sealed tank#
Open Fit to Data. Untick Aquifer volume and Aquifer productivity, so that only Oil in place is fitted and the aquifer stays switched off. Press Fit 1 constant to data.
- 1Oil in place, fitted with no aquifer.
The answer is 418 ± 27 MMSTB, with R² 0.987. On its own that looks respectable. It is wrong by two thirds: the field holds 250.
This is the trap the material balance is famous for, and the ± can’t catch it, because the ± assumes the model is right. With no aquifer, the only way the tank can hold its pressure up is to contain more oil, so the fit puts the aquifer’s water in as oil. The diagnostic plots catch it. Open Simulation and look at the Campbell plot: F/Et against oil produced. For a sealed tank it is flat at N. Here it climbs as the field produces, because water is coming in that the model can’t see.
Then, with the aquifer#
Tick Aquifer volume and Aquifer productivity again, and press Fit 3 constants to data.
- 1Oil in place.
- 2The aquifer’s volume.
- 3The aquifer’s productivity.
| Fitted | Made with | |
|---|---|---|
| Oil in place | 245 ± 12 MMSTB | 250 |
| Aquifer volume | 5,155 ± 444 MMrb | 5,000 |
| Aquifer productivity | 0.0061 ± 0.0005 MMrb/year/psia | 0.006 |
All three ranges contain the values the history was made from, and R² is 0.9998, which the panel rounds to 1.00. The oil each survey implies, (F − We)/Et, now sits between 240 and 253 at every survey instead of drifting from 330 to 470: the model and the data agree about what is there.
After the full match: the model’s pressure through the twelve surveys.
The Campbell plot (top) and the Havlena–Odeh plot (below), with the surveys as dots. Read them before you believe a match.
Read the forecast#
Scrub the time bar to year 30. With the aquifer matched, the wells produce 86 MMSTB by then: 35% of the oil in place, with water doing about a third of the work at year 10.
Now compare the sealed tank. Its forecast production is much the same, 92 MMSTB, because the plateau and the wells set the rate either way. What changes is the oil it says stays behind: 326 MMSTB instead of 159. A waterflood or an infill programme is planned on that number. Fitted without the aquifer, it would be planned on twice the oil that is there.
What you learned#
You built a reservoir material balance from objects, matched it to pressure surveys, and saw a good-looking match that was wrong. A tight ± and a high R² are not a check on the model. The diagnostic plots are, and so is the question you ask of every fit: does what it implies stay the same from one survey to the next?
See also
- Oil and gas kitPVT, tank, aquifer, history, diagnostics and wells for material balance.
- Calibration, uncertainty and validationWhat a fit can and can't tell you, and how to test a model on data it hasn't seen.
- Nonlinear function (Fzero)The x between two bounds that makes an expression zero, at every step.
- Fit constants to measurementsChoose what to fit, run the fit, and read the ± and R² that come back.