Find the oil a producing well contacts
Four months of rate and flowing pressure from a well in a closed reservoir: material-balance time, then the flowing material balance line, whose slope gives the contacted oil in place and whose intercept gives the productivity index, without shutting the well in.
- UC-RTA-004
- UC-RTA-001
Engineering use cases UC-RTA-004 (Contacted volume from flowing MB) and UC-RTA-001 (Specialized-time axis on a daily series).
Once a well feels its drainage boundary it is in boundary-dominated flow, and its rate and flowing pressure carry the volume it drains. Material-balance time tc = Np / q makes a declining rate behave like a constant one (Palacio and Blasingame 1993), and against it Δp/q is a straight line: Δp/q = 1/J + tc / (N ct) (Mattar and McNeil 1998). FlowingMaterialBalance.Oil fits the line; the slope gives N, the intercept 1/J.
What an engineer learns from it: the pressures come from the library's model of a well in a closed circle of 1,000 ft radius, 50 ft and 20 % porosity, which holds 4.663 MMSTB at a Bo of 1.2. The flowing material balance gives 4.650 MMSTB, within 0.3 %, after the well has produced 45.6 MSTB, 1 % of it: the volume is known long before a static material balance could see it. The intercept gives J = 0.410 STB/d/psi, against 0.409 from the pseudosteady-state formula kh / (141.2 B μ (ln(re/rw) − 3/4)).
Units: pressure in psia, rate in STB/d, time in days, ct in 1/psi. The constant-Bo form assumes undersaturated oil; for variable Bo use the OilVariableBoDailySeries form, and for gas the p/z or pseudotime forms. Early points still in transient flow sit below the line; the fit uses them all, so a series that starts long before the boundary is felt reads the volume a little low.
Source
using System;
using System.Linq;
using Team76.Engineering.Core.Measures;
using Team76.Engineering.PTA.Boundaries;
using Team76.Engineering.PTA.Models;
using Team76.Engineering.RTA;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// Four months of production from a well alone in a closed circle 1,000 ft across its radius: 10 mD, 50 ft, 20 %
// porosity, no water. The rate declines from 500 STB/d and the flowing pressure is read every four days. The
// pressures come from the library's PTA model of that circle, superposed over the changing rate.
double pi = 4000, bo = 1.2, mu = 1.0, h = 50, phi = 0.2, ct = 1e-5, rw = 0.35, k = 10, re = 1000;
var model = new PtaModel(
new Fluid { Ul = mu, B = bo }, new Well { Rw = rw, SkinFactor = 0, C = 0 },
new Reservoir { K = k, H = h, Porosity = phi, Ct = ct }, new ClosedCircleBoundary(rw, re: re));
var days = Enumerable.Range(1, 30).Select(i => 4.0 * i).ToArray();
var rates = days.Select(d => 500 * Math.Exp(-(d - 4) / 200)).ToArray();
var history = days.Select((d, i) => Tuple.Create((d - 4) * 24, rates[i])).ToArray();
var series = OilDailySeries.Create(Pressure.FromPsi(pi), days.Select((d, i) => new OilDailySample(d,
FlowRate.FromBblPerD(rates[i]), Pressure.FromPsi(pi - model.PressureDrop(d * 24, history)))).ToList());
// Material-balance time tc = Np / q turns the changing rate into an equivalent constant one (UC-RTA-001).
var tc = MaterialBalanceTime.Oil(series);
// Flowing material balance: Δp/q against tc is a line once the boundary is felt. Its slope is 1 / (N ct), its
// intercept 1 / J (UC-RTA-004).
var fit = FlowingMaterialBalance.Oil(series, Compressibility.From1PerPsi(ct));
double ooip = fit.ContactedOoipStb;
double j = 1 / fit.Intercept;
// What the circle holds, and the pseudosteady-state J of a well in its centre.
double volumetric = Math.PI * re * re * h * phi / 5.615 / bo;
double jPss = k * h / (141.2 * bo * mu * (Math.Log(re / rw) - 0.75));
return ctx.Result()
.Set("Flowing material balance", new ScriptChart(
[
new ScriptSeries("Δp/q", tc, fit.Points.Select(p => p.InverseNormalizedPressure).ToArray()),
new ScriptSeries("Fitted line", tc, tc.Select(t => fit.Intercept + fit.Slope * t).ToArray()),
],
title: "Δp/q against material-balance time", xLabel: "tc = Np/q (d)", yLabel: "Δp/q (psi per STB/d)"))
.Set("Contacted OOIP (MMSTB)", Math.Round(ooip / 1e6, 3))
.Set("Volumetric OOIP of the circle (MMSTB)", Math.Round(volumetric / 1e6, 3))
.Set("J from the intercept (STB/d/psi)", Math.Round(j, 3))
.Set("Pseudosteady-state J (STB/d/psi)", Math.Round(jPss, 3))
.Set("Produced (MSTB)", Math.Round(fit.Points[^1].CumulativeStb / 1e3, 1))
.Set("Recovered so far (%)", Math.Round(100 * fit.Points[^1].CumulativeStb / ooip, 2));
}
}