Work out a well's productivity index from Darcy's law

The productivity index of a vertical oil well from permeability, net pay, viscosity, formation volume factor, drainage area and skin, in pseudosteady and steady state, and what the skin costs: J, flow efficiency and effective wellbore radius from an acidised well to a badly damaged one.

Open in the workbench

Engineering use cases UC-IPR-001 (Calculate Productivity Index) and UC-IPR-010 (Model Skin Effect).

J = kh / (141.2 μ Bo [ln(re/rw) − 0.75 + S]) in pseudosteady state, the closed drainage area of a well in a field developed on a regular pattern; steady state drops the 0.75, for a well fed by a constant-pressure boundary. On these inputs the two differ by about 8 %: the boundary condition matters less than the skin does. ProductionCommon.DrainageRadius turns the 40-acre spacing into the 745 ft radius of a circle of the same area.

What an engineer reads off the table: the skin enters next to ln(re/rw), which with the 0.75 taken off is only about 6.9 here, so a skin of 2 already costs over a fifth of the well (a flow efficiency of 0.78), and a skin of 10 more than half. A negative skin is a bigger hole: at −3 the well flows as if its radius were 7 ft. That is why a skin from a well test is worth an acid job's cost estimate, and why a J computed without one is optimistic.

Units are field: mD, ft, cP, rb/STB, and J in STB/d per psi of drawdown. The rate column is J × 1,000 psi, valid above the bubble point; below it, see ipr-generalized-vogel.

Source

using System;
using System.Linq;
using Team76.Engineering.IPR;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // A vertical well: 50 mD over 30 ft of net pay, an oil of 1.5 cP and 1.2 rb/STB, 7" casing (rw 0.354 ft)
        // draining 40 acres, with a skin of 2 from the drilling mud.
        double k = 50, h = 30, mu = 1.5, bo = 1.2, rw = 0.354, skin = 2;
        var re = ProductionCommon.DrainageRadius(40);

        // Pseudosteady state: a closed drainage area whose pressure falls as a whole. Steady state: a constant-pressure
        // boundary, a strong aquifer or an injector line. The 0.75 between them is all that differs.
        var jPss = PseudosteadyState.ProductivityIndex(K: k, h: h, Bl: bo, Ul: mu, Re: re, Rw: rw, S: skin);
        var jSs = SteadyState.ProductivityIndex(K: k, h: h, Bl: bo, Ul: mu, Re: re, Rw: rw, S: skin);
        var jUndamaged = PseudosteadyState.ProductivityIndex(K: k, h: h, Bl: bo, Ul: mu, Re: re, Rw: rw, S: 0);

        // What the skin does: from an acidised well (-3) to a badly damaged one (+10). The effective wellbore radius is
        // the hole an undamaged well would need to give the same inflow, and the flow efficiency is J over J at zero skin.
        var skins = Enumerable.Range(0, 27).Select(i => -3 + i * 0.5).ToArray();
        var indexes = skins.Select(s => PseudosteadyState.ProductivityIndex(K: k, h: h, Bl: bo, Ul: mu, Re: re, Rw: rw, S: s)).ToArray();
        var table = new[] { -3.0, -1, 0, 2, 5, 10 }
            .Select(s =>
            {
                var j = PseudosteadyState.ProductivityIndex(K: k, h: h, Bl: bo, Ul: mu, Re: re, Rw: rw, S: s);
                return new object[]
                {
                    s,
                    Math.Round(ProductionCommon.EffectiveWellboreRadius(rw, s), 6),
                    Math.Round(j, 3),
                    Math.Round(j / jUndamaged, 2),
                    Math.Round(j * 1000),
                };
            })
            .ToList();

        return ctx.Result()
            .Set("Drainage radius, 40 acres (ft)", Math.Round(re))
            .Set("J, pseudosteady state (STB/d/psi)", Math.Round(jPss, 3))
            .Set("J, steady state (STB/d/psi)", Math.Round(jSs, 3))
            .Set("Flow efficiency at skin 2", Math.Round(jPss / jUndamaged, 2))
            .Set("Skin", new ScriptTable(
                ["Skin", "rw,eff (ft)", "J (STB/d/psi)", "Flow efficiency", "Rate at 1,000 psi drawdown (STB/d)"], table,
                title: "Pseudosteady-state J against skin"))
            .Set("J against skin", new ScriptChart(skins, indexes,
                title: "Productivity index against skin", xLabel: "Skin", yLabel: "J (STB/d/psi)"));
    }
}