Design a polymer flood for a unit mobility ratio

A 20 cP oil under a waterflood: the endpoint mobility ratio, the polymer viscosity and HPAM concentration that bring it to one, Pope's fractional-flow construction for the slug (oil bank, polymer front, adsorption and inaccessible pore volume), and the oil it recovers over the waterflood.

Open in the workbench

Engineering use cases UC-POLYMER-001 (Estimate bulk viscosity vs concentration and salinity), UC-POLYMER-010 (Mobility-ratio target viscosity) and UC-POLYMER-009 (Pope fractional-flow design and slug PV).

The endpoint mobility ratio is M = (krw,max / μw) / (kro,max / μo). The polymer's zero-shear viscosity is the UTCHEM form of Flory–Huggins, μp = μw [1 + (A1 C + A2 C² + A3 C³) Csep^Sp], with C in wt% and Csep the effective salinity in meq/mL. Pope (1980) carries Welge's construction to a polymer slug: the polymer front is the tangent to the polymer's fractional flow from (IPV − D, 0), where D is the adsorption delay in pore volumes, and an oil bank forms ahead of it on the water curve.

What an engineer learns from it: the waterflood runs at M = 16.5, the unstable flood of the Buckley–Leverett entry's 20 cP case. A displacing viscosity of (0.35 / 0.85) × 20 = 8.24 cP brings M to one, and this HPAM reaches it at about 1,220 ppm in a 0.3 meq/mL brine; in a 1.0 meq/mL brine it would need more, since salt collapses the polymer coil. With 0.15 PV of adsorption delay and 10 % inaccessible pore volume, the oil bank (Sw 0.423) reaches the producer at 0.33 PV and the polymer front (Sw 0.611) at 0.70 PV. By 1 PV injected the polymer has recovered 0.10 PV more oil than the waterflood's 0.36 PV, about 13 % more of the oil in place (0.8 PV) for this rock.

Units: cP, ppm (mg/L in dilute water), meq/mL, fractions and pore volumes. The viscosity is the zero-shear one; the in-situ value falls with rate (shear thinning) and with wellbore shear, so the design concentration is a lower bound.

Source

using System;
using System.Linq;
using Team76.Engineering.Core.Measures;
using Team76.Engineering.EoR.Polymer;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // A 20 cP oil under a waterflood of 0.5 cP brine; the Corey rock of the SCAL entries (Swc 0.20, Sor 0.25).
        var water = Viscosity.FromCP(0.5);
        var oil = Viscosity.FromCP(20);
        var rock = new CoreyWaterOil(connateWater: 0.20, residualOil: 0.25, krwMax: 0.35, kroMax: 0.85, waterExponent: 4.0, oilExponent: 3.0);

        // An HPAM's Flory-Huggins coefficients (per wt%, wt%^2, wt%^3) and its salinity sensitivity, UTCHEM style.
        double a1 = 40, a2 = 200, a3 = 2000, sp = -0.25;

        // The waterflood's endpoint mobility ratio, and the polymer viscosity that brings it to one.
        double waterM = DisplacementDesign.MobilityRatio(water, oil, rock.KrwMax, rock.KroMax);
        var target = DisplacementDesign.TargetViscosity(1.0, oil, rock.KrwMax, rock.KroMax);

        // The concentration that reaches it in a 0.3 meq/mL brine, by bisection on Flory-Huggins.
        Viscosity Solution(double ppm, double salinity) =>
            BulkRheology.ByFloryHuggins(water, PolymerConcentration.FromPpm(ppm), a1, a2, a3, salinity, sp);
        double lo = 0, hi = 5000;
        for (var i = 0; i < 50; i++)
        {
            var mid = (lo + hi) / 2;
            if (Solution(mid, 0.3).CP < target.CP) lo = mid; else hi = mid;
        }

        // Pope's construction with that slug: 0.15 PV of adsorption delay and 10 % inaccessible pore volume.
        var polymer = Solution(lo, 0.3);
        var pope = DisplacementDesign.ByPope1980(polymer, water, oil, rock, adsorptionDelayPoreVolumes: 0.15, inaccessiblePoreVolume: 0.10);

        var ppm = Enumerable.Range(0, 11).Select(i => i * 250.0).ToArray();
        var viscosityChart = new ScriptChart(
            [
                new ScriptSeries("Brine 0.3 meq/mL", ppm, ppm.Select(c => Solution(c, 0.3).CP).ToArray()),
                new ScriptSeries("Brine 1.0 meq/mL", ppm, ppm.Select(c => Solution(c, 1.0).CP).ToArray()),
            ],
            title: "Zero-shear polymer viscosity", xLabel: "Polymer (ppm)", yLabel: "Viscosity (cP)");

        var pv = Enumerable.Range(1, 30).Select(i => i * 0.1).ToArray();
        var recoveryChart = new ScriptChart(
            [
                new ScriptSeries("Waterflood", pv, pv.Select(t => DisplacementDesign.RecoveryPoreVolumes(t, water, oil, rock)).ToArray()),
                new ScriptSeries("Polymer flood", pv, pv.Select(t => DisplacementDesign.RecoveryPoreVolumes(t, polymer, oil, rock)).ToArray()),
            ],
            title: "Oil recovered, 1-D", xLabel: "Injected (PV)", yLabel: "Oil recovered (PV)");

        return ctx.Result()
            .Set("Polymer viscosity", viscosityChart)
            .Set("Recovery", recoveryChart)
            .Set("Waterflood mobility ratio", Math.Round(waterM, 2))
            .Set("Target viscosity for M = 1 (cP)", Math.Round(target.CP, 2))
            .Set("Polymer for the target (ppm)", Math.Round(lo / 10) * 10)
            .Set("Polymer mobility ratio", Math.Round(DisplacementDesign.MobilityRatio(polymer, oil, rock.KrwMax, rock.KroMax), 2))
            .Set("Polymer front Sw", Math.Round(pope.PolymerFrontSaturation, 3))
            .Set("Oil bank Sw", Math.Round(pope.OilBankSaturation, 3))
            .Set("Oil bank arrives (PV)", Math.Round(pope.OilBankPoreVolumes, 3))
            .Set("Polymer front arrives (PV)", Math.Round(pope.PolymerFrontPoreVolumes, 3))
            .Set("Incremental oil at 1 PV (PV)", Math.Round(DisplacementDesign.IncrementalRecoveryPoreVolumes(1.0, polymer, water, oil, rock), 3));
    }
}