Draw an undersaturated oil well's IPR curve
The composite inflow curve of an undersaturated oil well, by generalized Vogel: straight above the bubble point, bending below it. Plotted against the straight-line PI drawn all the way down, with the absolute open flow of each and the shortfall at every flowing pressure.
- UC-IPR-002
Engineering use case UC-IPR-002 (Generate Oil Well IPR Curve).
Above the bubble point the oil is single phase and the rate is J × (Pr − Pwf). Below it gas comes out of solution near the wellbore, the oil's relative permeability falls, and each extra psi of drawdown buys less oil. Vogel's curve, q/qmax = 1 − 0.2 (Pwf/Pr) − 0.8 (Pwf/Pr)², describes that, and the generalized form joins it to the straight line at Pb with the same slope, so the J measured above the bubble point carries on below it: qmax = J (Pr − Pb) + J Pb / 1.8.
What an engineer reads off it: the well makes 300 STB/d at the bubble point and 1,133 STB/d at the AOF, where the straight line promises 1,800. A pump sized from the straight line would be sized for 59 % more oil than the well can give at a zero flowing pressure. Drawing a well below its bubble point still adds rate, but the curve says how little.
Units are field: psia and STB/d; J in STB/d per psi. With Pb at or above Pr the reservoir is saturated, the straight segment vanishes, and the curve is Vogel's from the start (see ipr-rate-fit). Pseudosteady-state J, from Darcy's law, is ipr-productivity-index.
Source
using System;
using System.Linq;
using Team76.Engineering.IPR;
public class S : ICalcScript
{
public ScriptResult Run(ICalcContext ctx)
{
// An undersaturated oil: 3,000 psia in the reservoir, a 2,500 psia bubble point, and a PI of 0.6 STB/d/psi
// measured above it.
double pr = 3000, pb = 2500, j = 0.6;
// Generalized Vogel: the straight line J (Pr - Pwf) down to the bubble point, Vogel's curve below it.
double Vogel(double pwf) => InflowPerformance.RateByGeneralizedVogel(J: j, iPressure: pr, Pwf: pwf, Pb: pb);
// The straight line all the way down, as if no gas came out of solution.
double Line(double pwf) => InflowPerformance.Rate(J: j, iPressure: pr, Pwf: pwf);
var pressures = Enumerable.Range(0, 25).Select(i => pr * (24 - i) / 24.0).ToArray();
var rows = Enumerable.Range(0, 13)
.Select(i => pr - i * 250.0)
.Select(p => new object[] { p, Math.Round(Vogel(p)), Math.Round(Line(p)), Line(p) > 0 ? Math.Round(1 - Vogel(p) / Line(p), 3) : 0.0 })
.ToList();
var aof = Vogel(0);
return ctx.Result()
.Set("Rate at the bubble point (STB/d)", Math.Round(Vogel(pb)))
.Set("AOF, generalized Vogel (STB/d)", Math.Round(aof))
.Set("AOF, straight line (STB/d)", Math.Round(Line(0)))
.Set("Straight line over Vogel at the AOF (%)", Math.Round((Line(0) / aof - 1) * 100))
.Set("IPR", new ScriptChart(
[new ScriptSeries("Generalized Vogel", [.. pressures.Select(Vogel)], pressures),
new ScriptSeries("Straight line", [.. pressures.Select(Line)], pressures)],
title: "Inflow performance, Pb = 2,500 psia", xLabel: "Oil rate (STB/d)", yLabel: "Flowing bottom-hole pressure (psia)"))
.Set("Table", new ScriptTable(["Pwf (psia)", "Vogel (STB/d)", "Straight line (STB/d)", "Shortfall"], rows,
title: "Rate against flowing pressure"));
}
}