Fit the oil in place and the aquifer together
Discovery and four yearly surveys of an oil reservoir with water drive: the oil in place a straight line gives with no aquifer, then the oil in place and a Fetkovich aquifer fitted jointly to the same withdrawal, and the drive indices that follow.
- UC-MBE-009
- UC-MBE-010
Engineering use cases UC-MBE-009 (History Match with Fetkovich Aquifer) and UC-MBE-010 (Integrated Reservoir Characterization).
With an aquifer the material balance is F = N Et + We, and We depends on the aquifer's size Wei and productivity index J through the pressure history. Fetkovich's pseudo-steady-state model gives We step by step from the average aquifer pressure. FetkovichAquifer.FitWithMaterialBalance fits N, Wei and J together, so the oil in place and the aquifer are matched to the same surveys instead of one being assumed to get the other.
What an engineer learns from it: the straight line through the origin, F against Et, reads the aquifer's water as oil and gives 1,262 MMSTB, four times the field. The joint fit gives back 300.0 MMSTB, a 500 MMbbl aquifer and J = 100.0 bbl/d/psi, the values the withdrawal was built from, and the influx the balance leaves over lies on the fitted aquifer's curve. By year 4 the aquifer has delivered 43.34 MMbbl and supplies 79 % of the withdrawal (WDI 0.794), against 16 % for depletion. A strong water drive like this means a high recovery factor and early water production; plan the water handling.
Real data does not fit this cleanly. Fit the early surveys first and check that the residual influx grows smoothly with time; if the joint fit trades N against Wei (a flat valley), fix N from volumetrics and fit only the aquifer with FetkovichAquifer.EstimateParameters. Pressures in psia, times in days, F and We in reservoir barrels, J in bbl/d/psi.
Source
using System;
using System.Linq;
using Team76.Engineering.MBE.Aquifer;
using Team76.Engineering.MBE.DriveIndices;
using Team76.Engineering.MBE.OilMBE;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// Discovery and four yearly surveys: pressure (psia) at time (days), the expansions (rb/STB) of an oil zone with a
// small gas cap (m = 0.1), and the withdrawal F (rb) it measured. F was built from 300 MMSTB and a 500 MMbbl
// Fetkovich aquifer with J = 100 bbl/d/psi.
double pi = 3000, m = 0.1;
double[] days = [0, 365, 730, 1095, 1460];
double[] p = [3000, 2800, 2600, 2400, 2250];
double[] eo = [0, 0.008, 0.016, 0.024, 0.030];
double[] eg = [0, 0.010, 0.020, 0.030, 0.038];
double[] efw = [0, 0.001, 0.002, 0.003, 0.0037];
var et = eo.Select((o, i) => o + m * eg[i] + efw[i]).ToArray();
var truthWe = FetkovichAquifer.CumulativeInflux(500e6, 100, pi, days, p);
var f = et.Select((e, i) => 300e6 * e + truthWe[i]).ToArray();
// Ignore the aquifer and the straight line through the origin reads its water as oil.
var nNoAquifer = HavlenaOdeh.EstimateOOIPRegression(f, et);
// Fit the oil in place and the aquifer together: F = N Et + We(Wei, J).
var (n, wei, j) = FetkovichAquifer.FitWithMaterialBalance(f, et, pi, p, days);
var we = FetkovichAquifer.CumulativeInflux(wei, j, pi, days, p);
// With the aquifer in, what drove the last year.
var drives = DriveIndexCalculator.CalculateAll(N: n, Eo: eo[^1], m: m, Eg: eg[^1], Efw: efw[^1], We: we[^1], F: f[^1]);
var years = days.Select(d => d / 365).ToArray();
var chart = new ScriptChart(
[
new ScriptSeries("Influx the balance leaves over", years, f.Select((x, i) => (x - n * et[i]) / 1e6).ToArray()),
new ScriptSeries("Fetkovich aquifer", years, we.Select(w => w / 1e6).ToArray()),
],
title: "Water influx: the material balance against the fitted aquifer", xLabel: "Year", yLabel: "We (MMbbl)");
return ctx.Result()
.Set("Water influx", chart)
.Set("N with no aquifer (MMSTB)", Math.Round(nNoAquifer / 1e6))
.Set("N with the aquifer (MMSTB)", Math.Round(n / 1e6, 1))
.Set("Aquifer Wei (MMbbl)", Math.Round(wei / 1e6))
.Set("Aquifer J (bbl/d/psi)", Math.Round(j, 1))
.Set("We at year 4 (MMbbl)", Math.Round(we[^1] / 1e6, 2))
.Set("WDI at year 4", Math.Round(drives.WDI, 3))
.Set("DDI at year 4", Math.Round(drives.DDI, 3));
}
}