Find where a catalogue ESP runs on its well
A catalogue pump curve, a number of stages and the well: where the pump's head meets the well's system curve, with the rate at the pump and in the stock tank, the total dynamic head, the intake pressure and how far the rate sits from the pump's best efficiency point, for 150 to 250 stages.
- UC-ESP-012
- UC-ESP-007
- UC-ESP-008
Engineering use cases UC-ESP-012 (Find the Operating Point in One Call), UC-ESP-007 (Find Operating Point) and UC-ESP-008 (Optimize Pump Selection), on Economides et al. (1994) Example 20-5.
The pump curve falls with rate; the well's system curve rises with it, since a higher rate draws the intake pressure down (by the productivity index) and adds tubing friction, so the pump has to lift more. The operating point is where they cross. Both sides have to be on the same rate basis: the pump sees intake barrels, the inflow gives stock-tank barrels, and the formation volume factor converts between them.
What an engineer learns from it: 200 stages make 1,263 bbl/d at the pump, 1,002 STB/d in the tank, against 4,355 ft of head with 2,221 psi at the intake: the book's 1,000 STB/d design (1,260 bbl/d, 4,350 ft, 2,225 psi). That is 88 % of the 1,440 bbl/d best efficiency point, inside the pump's band. More stages buy rate with less and less return, because each extra stage also lowers the intake pressure it works from: 250 stages give 1,411 bbl/d at 98 % of the BEP, 150 stages only 1,085 bbl/d. Stage count is the coarse knob; the drive frequency is the fine one (esp-vsd-frequency).
Units are field: psi, ft, bbl/d at the pump, STB/d in the tank. The friction head is the module's simplified Hazen-Williams; a detailed design wants a multiphase tubing correlation. No free gas at the intake and no viscosity correction. The design rate's stages and horsepower are esp-size-esp.
Source
using System;
using System.Linq;
using Team76.Engineering.AL.ESP;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// Economides et al. (1994) Example 20-5: a pump curve per stage at 50 Hz, read off Fig. 20-11.
double[] curveRates = [0, 315, 630, 945, 1260, 1575, 1890, 2205, 2250]; // bbl/d
double[] curveHeads = [29.5, 28.5, 27.2, 24.8, 21.8, 17.9, 12.05, 3.0, 0.0]; // ft/stage
double[] curveEfficiencies = [0.0, 0.26, 0.39, 0.49, 0.5796, 0.585, 0.46, 0.12, 0.0]; // fraction
// The well: 4,350 psi at 10,000 ft, J 0.4878 STB/d/psi, the pump at 9,800 ft on 2.259" tubing, 100 psi at the
// wellhead, a 0.865 gravity liquid with Bo 1.26.
EspOperatingPointResult At(int stages) => Esp.OperatingPoint(new EspOperatingPointInput
{
CurveFlowRates = curveRates, CurveHeads = curveHeads, CurveEfficiencies = curveEfficiencies,
NumberOfStages = stages, Frequency = 50, ReferenceFrequency = 50,
ReservoirPressure = 4350, ProductivityIndex = 0.4878, ReservoirDepth = 10000, PumpTvd = 9800,
TubingId = 2.259, TubingLength = 9800, WellheadPressure = 100,
SpecificGravity = 0.865, FormationVolumeFactor = 1.26,
});
var point = At(200); // null when the pump curve never meets the well's
var rows = new[] { 150, 175, 200, 225, 250 }
.Select(n => (Stages: n, Point: At(n)))
.Select(s => new object[]
{
s.Stages,
s.Point is null ? double.NaN : Math.Round(s.Point.FlowRate),
s.Point is null ? double.NaN : Math.Round(s.Point.FlowRate / 1.26),
s.Point is null ? double.NaN : Math.Round(s.Point.TotalDynamicHead),
s.Point is null ? double.NaN : Math.Round(s.Point.PumpIntakePressure),
s.Point is null ? double.NaN : Math.Round(s.Point.PercentOfBestEfficiencyPoint),
s.Point is null ? "no operating point" : s.Point.RangeStatus,
})
.ToList();
// The pump's head at 200 stages against rate, and the best efficiency point.
var rates = Enumerable.Range(0, 23).Select(i => i * 100.0).ToArray();
return ctx.Result()
.Set("Rate at the pump (bbl/d)", Math.Round(point.FlowRate))
.Set("Stock-tank rate (STB/d)", Math.Round(point.FlowRate / 1.26))
.Set("Total dynamic head (ft)", Math.Round(point.TotalDynamicHead))
.Set("Pump intake pressure (psi)", Math.Round(point.PumpIntakePressure))
.Set("Efficiency", Math.Round(point.Efficiency, 3))
.Set("Of the best efficiency point (%)", Math.Round(point.PercentOfBestEfficiencyPoint))
.Set("Range", point.RangeStatus)
.Set("Best efficiency point (bbl/d)", Math.Round(Curve.BestEfficiencyPoint(curveRates, curveEfficiencies)))
.Set("Pump curve", new ScriptChart(
[new ScriptSeries("200 stages at 50 Hz", rates, [.. rates.Select(q => 200 * Curve.InterpolateHead(q, curveRates, curveHeads))])],
title: "Head the pump develops", xLabel: "Rate at the pump (bbl/d)", yLabel: "Head (ft)"))
.Set("Stages", new ScriptTable(["Stages", "At the pump (bbl/d)", "Stock tank (STB/d)", "TDH (ft)", "Intake (psi)", "Of BEP (%)", "Range"], rows,
title: "Operating point against the number of stages"));
}
}