Compare the regional correlations on one oil

Six saturation-pressure correlations and their matching Bo on one oil, side by side, with how far each sits from the mean: the spread you carry until a lab report picks one.

Open in the workbench

Engineering use cases UC-PVT-002 (Compare Regional Correlations) and UC-PVT-009 (Select Optimal Correlation).

Every black-oil correlation is a fit to one region's crudes: Standing to California, Glasø to the North Sea, Al-Marhoun to the Middle East, Petrosky–Farshad and Dindoruk–Christman to the Gulf of Mexico, Vasquez–Beggs to a worldwide set. Before there is a lab report, the honest answer is the range, not one number. Each row pairs a BubblePointPressure method with the OilVolumeFactor method of the same author, so the Bo is the one that correlation set would use.

What an engineer learns from it: for a 35 °API oil with 800 scf/STB at 200 °F, Standing gives 3,269 psia and the other five 3,626 to 3,816 psia, a spread of about 15 % of the mean. Standing's own formula, Pb = 18.2 [(Rs/γg)0.83 · 10(0.00091 T − 0.0125 API) − 1.4], gives the same 3,269 by hand. Bo is tighter, 1.414 to 1.465 rb/STB, about 3.5 %: the volume factor is far less sensitive to the choice than the saturation pressure is. A 500 psi uncertainty in Pb decides whether the reservoir starts saturated or not; take the correlation of the fluid's region, and replace it with the one that matches the first lab point (UC-PVT-009).

Field units: °API, gas gravity against air, °F, scf/STB, psia and rb/STB. The gas gravity is the separator gas's; Vasquez–Beggs strictly wants it corrected to a 100 psig separator.

Source

using System;
using System.Linq;
using Team76.Engineering.Core.Measures;
using Team76.Engineering.PVT.Correlations;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // One oil, every regional correlation: 35 °API, 0.75 gas gravity, 800 scf/STB in solution, 200 °F.
        var gg = GasSpecificGravity.From(0.75);
        var api = ApiGravity.From(35);
        var rs = SolutionRelation.FromScfPerStb(800);
        var t = Temperature.FromDegF(200);

        // Each correlation's saturation pressure, and its Bo at that pressure (Rs = 800).
        var rows = new (string Name, string Origin, double Pb, double Bo)[]
        {
            ("Standing", "California", BubblePointPressure.ByStanding(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByStanding1947(gg, api, rs, t).BblPerStb),
            ("Vasquez-Beggs", "worldwide", BubblePointPressure.ByVasquezBeggs(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByVasquezBeggs1980(gg, api, rs, t).BblPerStb),
            ("Glaso", "North Sea", BubblePointPressure.ByGlaso(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByGlaso1980(gg, api, rs, t).BblPerStb),
            ("Al-Marhoun", "Middle East", BubblePointPressure.ByAlMarhoun(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByAlMarhoun1988(gg, api, rs, t).BblPerStb),
            ("Petrosky-Farshad", "Gulf of Mexico", BubblePointPressure.ByPetroskyFarshad(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByPetrosky1990(gg, api, rs, t).BblPerStb),
            ("Dindoruk-Christman", "Gulf of Mexico", BubblePointPressure.ByDindorukChristman(gg, api, rs, t).Psi, OilVolumeFactor.SaturatedByDindorukChristman2001(gg, api, rs, t).BblPerStb),
        };

        var mean = rows.Average(r => r.Pb);
        var spread = (rows.Max(r => r.Pb) - rows.Min(r => r.Pb)) / mean * 100;

        var table = rows
            .Select(r => new object[] { r.Name, r.Origin, Math.Round(r.Pb), Math.Round(r.Bo, 4), Math.Round((r.Pb - mean) / mean * 100, 1) })
            .ToList();

        return ctx.Result()
            .Set("Standing Pb (psia)", Math.Round(rows[0].Pb, 1))
            .Set("Standing Bo (rb/STB)", Math.Round(rows[0].Bo, 4))
            .Set("Vasquez-Beggs Pb (psia)", Math.Round(rows[1].Pb, 1))
            .Set("Mean Pb (psia)", Math.Round(mean))
            .Set("Pb spread, max − min (% of mean)", Math.Round(spread, 1))
            .Set("Bo spread (rb/STB)", Math.Round(rows.Max(r => r.Bo) - rows.Min(r => r.Bo), 4))
            .Set("Correlations", new ScriptTable(["Correlation", "Data from", "Pb (psia)", "Bo at Pb (rb/STB)", "Pb off the mean (%)"], table));
    }
}