Say what is driving the field
Six surveys of an oil zone with a gas cap and a late aquifer: the depletion, gas-cap, water and compressibility drive indices at each survey, which split the withdrawal into the share each energy source supplied.
- UC-MBE-004
Engineering use case UC-MBE-004 (Quantify Drive Mechanisms).
Divide the material balance F = N (Eo + m Eg + Efw) + We by F and it reads 1 = DDI + GDI + CDI + WDI: depletion N Eo / F, gas cap N m Eg / F, compressibility N Efw / F, water We / F. DriveIndexCalculator.CalculateAll returns all four and the dominant one. The indices sum to 1 only if the F, the expansions and the influx balance; a sum away from 1 is a material balance that does not close.
What an engineer learns from it: the field is the one of mbe-havlena-odeh, 50 MMSTB with m = 0.33, given a small formation-and-water term. For three years depletion supplies about 63–65 % and the gas cap about 30 %, with the rock and water at 6 %. Then the aquifer arrives and takes over a growing share: by year 6 the water drive is 19.9 %, depletion 53.1 %, gas cap 23.0 % and compressibility 4.0 %. A rising WDI is the time to plan for water handling and to watch the oil-water contact; a GDI that falls while the gas cap grows says gas is being produced from the cap rather than left to expand it.
F, We in reservoir barrels; Eo, Eg, Efw in rb/STB, with Efw already carrying the (1 + m) factor. The indices are only as good as the N and m behind them.
Source
using System;
using System.Linq;
using Team76.Engineering.MBE.DriveIndices;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// Six yearly surveys of a 50 MMSTB oil zone with a gas cap a third its size (m = 0.33): the oil, gas-cap and
// formation-and-water expansions (rb/STB), and an aquifer that reaches the field after the third survey (rb).
double n = 50e6, m = 0.33;
double[] years = [1, 2, 3, 4, 5, 6];
double[] eo = [0.010, 0.022, 0.035, 0.049, 0.064, 0.080];
double[] eg = [0.015, 0.031, 0.048, 0.066, 0.085, 0.105];
double[] efw = [0.001, 0.002, 0.003, 0.004, 0.005, 0.006];
double[] we = [0, 0, 0, 0.3e6, 0.8e6, 1.5e6];
// The withdrawal the surveys measured, which balances them: F = N (Eo + m Eg + Efw) + We.
var f = years.Select((_, i) => n * (eo[i] + m * eg[i] + efw[i]) + we[i]).ToArray();
// Split the withdrawal at each survey into the share each drive supplied.
var drives = years.Select((_, i) => DriveIndexCalculator.CalculateAll(N: n, Eo: eo[i], m: m, Eg: eg[i], Efw: efw[i], We: we[i], F: f[i])).ToArray();
var last = drives[^1];
var chart = new ScriptChart(
[
new ScriptSeries("Depletion (DDI)", years, drives.Select(d => d.DDI).ToArray()),
new ScriptSeries("Gas cap (GDI)", years, drives.Select(d => d.GDI).ToArray()),
new ScriptSeries("Water (WDI)", years, drives.Select(d => d.WDI).ToArray()),
new ScriptSeries("Compressibility (CDI)", years, drives.Select(d => d.CDI).ToArray()),
],
title: "Drive indices by survey", xLabel: "Year", yLabel: "Share of the withdrawal");
return ctx.Result()
.Set("Drive indices", chart)
.Set("DDI at year 6", Math.Round(last.DDI, 3))
.Set("GDI at year 6", Math.Round(last.GDI, 3))
.Set("WDI at year 6", Math.Round(last.WDI, 3))
.Set("CDI at year 6", Math.Round(last.CDI, 3))
.Set("Sum at year 6", Math.Round(last.Sum, 6))
.Set("Dominant drive", last.DominantDrive.ToString());
}
}