Interpret a step-rate test by superposition
A four-step rate test on the Odeh–Jones plot: rate-normalised pressure against the superposition time function puts every step on one straight line, whose slope gives permeability and whose intercept gives skin.
- UC-PTA-006
Engineering use case UC-PTA-006 (Analyze Multi-Rate Test).
A rate change starts a new pressure transient on top of the ones already running, and the gauge reads their sum. Odeh and Jones (1965) divide the drop by the current rate and plot it against X = Σ [(qj − qj−1)/qn] log(t − tj−1): in radial flow every step then lies on one line of slope m' = 162.6 B μ / (k h), with the intercept m' [log(k/(φ μ ct rw²)) − 3.23 + 0.869 s]. MultiRateTest.Analyze builds the table: the rate-normalised Δp, the Odeh–Jones coordinate, the equivalent superposition time and the derivative on it.
What an engineer learns from it: the record is the library's model of a 40 mD reservoir with skin 3, flowed at 300, 600, 900 and 1,200 STB/d for twelve hours each. All four steps fall on one line, which gives k = 39.7 mD and a skin of 2.94. Read each step on its own as if it were a constant-rate drawdown from its own start, and the earlier rates' transients ride along: the first step, which is a true drawdown, gives 39.6 mD, but the later ones give 60, 78 and 95 mD. Superposition is what lets a test with rate changes, a buildup among them, be read at all.
Field units: rates in STB/d, Δp in psi, time in hours. Read the line where each step is in radial flow, after its own storage period; a step whose points bend off the line is in storage or has met a boundary.
Source
using System;
using System.Linq;
using Team76.Engineering.PTA.Models;
using Team76.Engineering.PTA.TestTypes;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// A four-step rate test, 12 hours at each of 300, 600, 900 and 1,200 STB/d, the gauge read every hour from the
// third hour of each step. The record is the library's model of a 40 mD, 50 ft reservoir with skin 3.
double bo = 1.2, mu = 1.0, h = 50, phi = 0.2, ct = 1e-5, rw = 0.5, trueK = 40, trueSkin = 3;
var model = new PtaModel(
new Fluid { Ul = mu, B = bo },
new Well { Rw = rw, SkinFactor = trueSkin, C = 0.002 },
new Reservoir { K = trueK, H = h, Porosity = phi, Ct = ct });
var periods = new[]
{
new RatePeriod(StartTimeHours: 0, RateStbPerDay: 300),
new RatePeriod(StartTimeHours: 12, RateStbPerDay: 600),
new RatePeriod(StartTimeHours: 24, RateStbPerDay: 900),
new RatePeriod(StartTimeHours: 36, RateStbPerDay: 1200),
};
var history = periods.Select(p => Tuple.Create(p.StartTimeHours, p.RateStbPerDay)).ToArray();
var times = periods.SelectMany(p => Enumerable.Range(3, 9).Select(i => p.StartTimeHours + i)).ToArray();
var deltaP = times.Select(t => model.PressureDrop(t, history)).ToArray();
// Odeh–Jones: Δp / qn against X = Σ [(qj − qj−1) / qn] log(t − tj−1). Every step falls on one line.
var analysis = MultiRateTest.Analyze(times, deltaP, periods);
var x = analysis.Points.Select(p => p.OdehJonesCoordinate).ToArray();
var y = analysis.Points.Select(p => p.RateNormalizedDeltaP).ToArray();
double mx = x.Average(), my = y.Average();
double slope = x.Zip(y, (a, b) => (a - mx) * (b - my)).Sum() / x.Sum(a => (a - mx) * (a - mx));
double intercept = my - slope * mx;
// The slope is m' = 162.6 B μ / (k h); the intercept is m' [log(k / (φ μ ct rw²)) − 3.23 + 0.869 s].
double k = 162.6 * bo * mu / (slope * h);
double skin = 1.151 * (intercept / slope - Math.Log10(k / (phi * mu * ct * rw * rw)) + 3.23);
// Each step on its own, as if it were a constant-rate test from its own start: its semilog line reads a
// different slope, because the earlier rates' transients are still running under it.
var naive = periods.Select(p =>
{
var inStep = analysis.Points.Where(a => a.CurrentRate == p.RateStbPerDay).ToArray();
double m = (inStep[^1].DeltaP - inStep[0].DeltaP) /
Math.Log10((inStep[^1].TimeHours - p.StartTimeHours) / (inStep[0].TimeHours - p.StartTimeHours));
return (object[])[p.RateStbPerDay, Math.Round(m, 1), Math.Round(162.6 * p.RateStbPerDay * bo * mu / (m * h), 1)];
}).ToList();
var line = new[] { x.Min(), x.Max() };
var plot = new ScriptChart(
[
.. periods.Select(p => new ScriptSeries($"{p.RateStbPerDay:F0} STB/d",
analysis.Points.Where(a => a.CurrentRate == p.RateStbPerDay).Select(a => a.OdehJonesCoordinate).ToArray(),
analysis.Points.Where(a => a.CurrentRate == p.RateStbPerDay).Select(a => a.RateNormalizedDeltaP).ToArray())),
new ScriptSeries("Fitted line", line, line.Select(v => intercept + slope * v).ToArray()),
],
title: "Odeh–Jones superposition plot", xLabel: "Σ (Δq/qn) log(t − tj)", yLabel: "Δp/qn (psi per STB/d)");
return ctx.Result()
.Set("Superposition plot", plot)
.Set("Slope m' (psi/(STB/d) per cycle)", Math.Round(slope, 5))
.Set("k from the slope (mD)", Math.Round(k, 1))
.Set("Skin from the intercept", Math.Round(skin, 2))
.Set("k in the model (mD)", trueK)
.Set("Skin in the model", trueSkin)
.Set("Each step read alone", new ScriptTable(["Rate (STB/d)", "Semilog slope (psi/cycle)", "k if read alone (mD)"], naive,
title: "Reading a step as if it were the whole test"));
}
}