Find a waterflood's front, breakthrough and recovery by Buckley–Leverett

The fractional-flow curve of a measured relative permeability table under a 2 cP and a 20 cP oil, Welge's tangent to it, the shock-front saturation, the pore volumes injected at breakthrough, and the recovery behind the front as the water keeps coming.

Open in the workbench

Engineering use cases UC-SCAL-008 (Analyze Waterflood Performance) and UC-SCAL-009 (Estimate Recovery Factor).

The fractional flow fw = 1 / (1 + (kro/μo) / (krw/μw)) is Buckley and Leverett's (1942), horizontal, with no capillary pressure. Welge (1952) draws the tangent from (Swi, 0) to the curve: its touching point is the front, its slope dfw/dSw is the inverse of the pore volumes injected at breakthrough, and it reaches fw = 1 at the average saturation behind the front. The table is the Corey rock of the relative permeability entry, sampled at 21 saturations as a lab table would be.

What an engineer learns from it: with 2 cP oil (μo/μw = 4) the front stands at Sw 0.568 with fw 0.901. The tangent's slope is 0.901 / 0.368 = 2.45, so water breaks through after 1 / 2.45 = 0.408 PV, when the average saturation is 0.608 and 51 % of the oil in place is out. Behind the front the rest comes slowly: 2.15 PV for 58 %, 9.35 PV for 63 %, against a ceiling of (1 − Swi − Sorw) / (1 − Swi) = 68.8 %. A 20 cP oil (μo/μw = 40) moves the front back to Sw 0.461 and breaks through at 0.306 PV with only 38 % recovered: the same rock floods much worse under a viscous oil, which is the case for a polymer.

Units: saturations and fw are fractions, injected volumes are pore volumes of the swept rock, and the recovery is displacement efficiency, a fraction of the oil in place. Multiply it by the areal and vertical sweep for a field forecast (see the waterflood surveillance entry).

Source

using System;
using System.Linq;
using Team76.Engineering.SCAL.WaterOil;
using Team76.Engineering.SCAL.Welge;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // The Corey rock of the relative permeability entry, sampled as a lab table would be: 21 points from Swi 0.20 to 0.75.
        var corey = new CoreyWaterOilRelPerm(Swi: 0.20, Sorw: 0.25, KrowSwi: 0.85, No: 3.0, KrwSorw: 0.35, Nw: 4.0);
        double[] sw = Enumerable.Range(0, 21).Select(i => 0.20 + i * 0.55 / 20).ToArray();
        var rock = new RelPermTable(sw, sw.Select(corey.Krow).ToArray(), sw.Select(corey.Krw).ToArray());

        // Oil of 2 cP displaced by water of 0.5 cP, and a heavier oil of 20 cP for comparison: mu_o / mu_w.
        double light = 2.0 / 0.5, heavy = 20.0 / 0.5;

        // Welge's tangent from (Swi, 0) gives the shock front, the breakthrough and the recovery behind it.
        var front = WelgeFront.ByWelge1952(rock, viscosityRatio: light);
        var heavyFront = WelgeFront.ByWelge1952(rock, viscosityRatio: heavy);
        double maxDisplacement = (1 - rock.Swi - rock.Sor) / (1 - rock.Swi);

        var fw = rock.GetFractionalFlow(light);
        var fwHeavy = rock.GetFractionalFlow(heavy);
        var grid = Enumerable.Range(0, 56).Select(i => 0.20 + i * 0.01).ToArray();
        double[] tangent = [rock.Swi, front.AverageSaturationAtBreakthrough];
        var chart = new ScriptChart(
            [
                new ScriptSeries("fw, oil 2 cP", grid, grid.Select(fw.Interpolate).ToArray()),
                new ScriptSeries("fw, oil 20 cP", grid, grid.Select(fwHeavy.Interpolate).ToArray()),
                new ScriptSeries("Welge tangent, 2 cP", tangent, [0.0, 1.0]),
            ],
            title: "Fractional flow and the Welge tangent", xLabel: "Sw (fraction)", yLabel: "fw (fraction)");

        var rows = front.PostBreakthrough
            .Select(p => new object[]
            {
                Math.Round(p.WellboreSaturation, 3), Math.Round(p.FractionalFlow, 3), Math.Round(p.InjectedPoreVolumes, 2),
                Math.Round(p.AverageSaturation, 3), Math.Round((p.AverageSaturation - rock.Swi) / (1 - rock.Swi), 3),
            })
            .ToList();

        return ctx.Result()
            .Set("Fractional flow", chart)
            .Set("After breakthrough, 2 cP oil", new ScriptTable(["Sw at the producer", "fw", "Injected PV", "Average Sw", "Recovery (fraction of OOIP)"], rows))
            .Set("Front Sw", Math.Round(front.FrontSaturation, 3))
            .Set("Front fw", Math.Round(front.FrontFractionalFlow, 3))
            .Set("Breakthrough PV", Math.Round(front.BreakthroughPoreVolumes, 3))
            .Set("Average Sw at breakthrough", Math.Round(front.AverageSaturationAtBreakthrough, 3))
            .Set("Recovery at breakthrough", Math.Round(front.BreakthroughRecoveryFactor, 3))
            .Set("Front Sw, 20 cP oil", Math.Round(heavyFront.FrontSaturation, 3))
            .Set("Breakthrough PV, 20 cP oil", Math.Round(heavyFront.BreakthroughPoreVolumes, 3))
            .Set("Recovery at breakthrough, 20 cP oil", Math.Round(heavyFront.BreakthroughRecoveryFactor, 3))
            .Set("Maximum displacement efficiency", Math.Round(maxDisplacement, 3));
    }
}