ESP frequency and stages
Move the drive frequency and the number of stages, the reservoir pressure, productivity index, pump depth and wellhead pressure, and watch where an ESP settles: the pump's head curve against the well's system curve, with the rate, the share of the best efficiency point, the intake pressure, the head and the horsepower at the operating point.
- UC-ESP-007
- UC-ESP-011
- UC-ESP-012
Open in the workbench Open the live page
Live preview
Engineering use cases UC-ESP-007 (Find Operating Point), UC-ESP-011 (Find the Best Variable-Speed Frequency) and UC-ESP-012 (Find the Operating Point in One Call).
What an engineer learns by moving the sliders: the frequency moves the whole pump curve, its rate with the speed and its head with the square of it, while the stages only stretch it upwards; the best efficiency point slides right with the frequency, not with the stages. At the defaults (Economides Example 20-5, the pump at the perforations) the pump makes 1,293 bbl/d (1,026 STB/d) at 90 % of its best efficiency point, against 4,294 ft of head with 2,247 psi at the intake, for 60 hp. Raise the frequency and the rate climbs, but the horsepower climbs about with its cube. Drop the productivity index and the system curve steepens: the same pump pumps the well off, and the intake pressure warning comes on. A rate far left of the best efficiency point means downthrust and wear, far right upthrust: resize or slow the pump down.
The scripts behind it are esp-operating-point (stages at a fixed speed) and esp-vsd-frequency (the best frequency under a motor limit).
Source esp-frequency-stages.dashboard
@using Team76.Engineering.AL.ESP
@{ var r = Compute(); }
<Page MaxWidth="Narrow">
<Section Title="Pump">
<Slider Label="Drive frequency" @bind-Value="Frequency" Min="35" Max="70" Step="1" Unit="Hz" />
<Slider Label="Stages" @bind-Value="Stages" Min="100" Max="350" Step="5" Unit="stages" />
</Section>
<Section Title="Well">
<Slider Label="Reservoir pressure" @bind-Value="Pr" Min="2000" Max="6000" Step="50" Unit="psi" />
<Slider Label="Productivity index" @bind-Value="J" Min="0.1" Max="2" Step="0.02" Unit="STB/d/psi" />
<Slider Label="Pump depth" @bind-Value="Depth" Min="5000" Max="12000" Step="100" Unit="ft" />
<Slider Label="Wellhead pressure" @bind-Value="Whp" Min="50" Max="500" Step="10" Unit="psi" />
</Section>
<Section Title="Operating point">
<KpiRow>
@if (r.Point is { } p)
{
<Value Label="Rate at the pump" Number="@p.FlowRate" Unit="bbl/d" Format="N0" Note="@($"{p.FlowRate / Bo:F0} STB/d in the tank")" />
<Value Label="Of the best efficiency point" Number="@p.PercentOfBestEfficiencyPoint" Unit="%" Format="F0"
Status="@(p.PercentOfBestEfficiencyPoint is >= 70 and <= 120 ? "good" : "warn")" StatusText="@p.RangeStatus" />
<Value Label="Intake pressure" Number="@p.PumpIntakePressure" Unit="psi" Format="N0"
Status="@(p.PumpIntakePressure > 150 ? "good" : "warn")"
StatusText="@(p.PumpIntakePressure > 150 ? "submerged" : "pumped off: the intake starves")" />
<Value Label="Total dynamic head" Number="@p.TotalDynamicHead" Unit="ft" Format="N0" />
<Value Label="Brake horsepower" Number="@r.Horsepower" Unit="hp" Format="N0" Note="at the operating point" />
}
else
{
<Value Label="Rate at the pump" Number="double.NaN" Unit="bbl/d" Note="The pump curve never meets the well's: add stages or speed." />
}
</KpiRow>
</Section>
<Section Title="Pump head against the well's system curve">
<Chart Rows="r.Rows" X="Rate:bbl/d" Series="Pump:ft + Well:ft" Height="320" YMin="0" LogYBox="false">
@if (r.Point is { } p)
{
<PointMarker X="@p.FlowRate" Y="@p.TotalDynamicHead" Text="operating point" />
}
<VLine X="@r.Bep" Text="best efficiency point" />
</Chart>
</Section>
<Section Title="Curves">
<Table Rows="r.Rows" Columns="Rate:bbl/d, Pump:ft, Well:ft" />
</Section>
<Notes Text="@Method" />
</Page>
@code {
// The pump and well of Economides et al. (1994) Example 20-5, with the pump at the producing interval.
double Frequency = 50;
double Stages = 200;
double Pr = 4350;
double J = 0.4878;
double Depth = 9800;
double Whp = 100;
const double Bo = 1.26, Gravity = 0.865, TubingId = 2.259;
// The catalogue curve per stage at 50 Hz, read off Fig. 20-11.
static readonly double[] CurveRates = [0, 315, 630, 945, 1260, 1575, 1890, 2205, 2250];
static readonly double[] CurveHeads = [29.5, 28.5, 27.2, 24.8, 21.8, 17.9, 12.05, 3.0, 0.0];
static readonly double[] CurveEfficiencies = [0.0, 0.26, 0.39, 0.49, 0.5796, 0.585, 0.46, 0.12, 0.0];
record Row(double Rate, double Pump, double Well);
record Result(EspOperatingPointResult Point, double Horsepower, double Bep, IReadOnlyList<Row> Rows);
Result Compute()
{
var point = Esp.OperatingPoint(new EspOperatingPointInput
{
CurveFlowRates = CurveRates, CurveHeads = CurveHeads, CurveEfficiencies = CurveEfficiencies,
NumberOfStages = (int)Stages, Frequency = Frequency, ReferenceFrequency = 50,
ReservoirPressure = Pr, ProductivityIndex = J, ReservoirDepth = Depth, PumpTvd = Depth,
TubingId = TubingId, TubingLength = Depth, WellheadPressure = Whp,
SpecificGravity = Gravity, FormationVolumeFactor = Bo,
});
// The pump's head over its curve carried to the drive frequency (rate with the speed, head with its square), and
// the well's system curve on the same intake-rate basis.
var top = CurveRates[^1] * Frequency / 50;
var rates = Enumerable.Range(0, 31).Select(i => Math.Round(top * i / 30.0, 1)).ToArray();
var well = SystemAnalysis.GenerateSystemCurve([.. rates.Select(q => q / Bo)], Depth, Whp, Pr, J, TubingId, Depth, Gravity, Bo);
var rows = rates
.Select((q, i) => new Row(q, Math.Round(Stages * Curve.HeadAtFrequency(q, Frequency, 50, CurveRates, CurveHeads), 1), Math.Round(well[i], 1)))
.Where(row => row.Well >= 0)
.ToList();
var hp = point is null ? double.NaN : Pump.BrakeHorsepowerFromRate(point.FlowRate, point.TotalDynamicHead, Gravity, point.Efficiency);
return new Result(point, hp, Curve.BestEfficiencyPoint(CurveRates, CurveEfficiencies) * Frequency / 50, rows);
}
const string Method = "Field units, rates at the pump in intake barrels (Bo 1.26). The pump is the 50 Hz catalogue curve of Economides et al. (1994) Fig. 20-11, carried to the drive frequency by the affinity laws: rate with the speed ratio, head with its square. The well's system curve is the head the pump must add: the lift from the intake to the surface, the wellhead pressure and the tubing friction (simplified Hazen-Williams), less the intake pressure the productivity index leaves. A 0.865 gravity liquid on 2.259 in tubing; no free gas at the intake.";
}