Screen a CO₂ injectant across its critical point

Pure CO₂ at 122 °F from 500 to 5,000 psia: density and Z by the Span–Wagner reference equation, viscosity by Fenghour, and a mass-consistent Bg, through the jump from vapour-like to dense phase.

Open in the workbench

Engineering use case UC-PVT-012 (Screen a CO2 injectant).

Hydrocarbon gas correlations (Dranchuk–Abou-Kassem Z on a 1.52 gravity, Lee–Gonzalez–Eakin viscosity) are a poor model of CO₂ near its critical point, 87.8 °F and 1,070 psia, where the density changes by a factor of three over a few hundred psi. Co2SpanWagner is the Helmholtz-energy reference equation of Span and Wagner (1996) that NIST's tables are built on; Co2Viscosity.ByFenghour1998 takes its density; Co2VolumeFactor.Bg is ρsc / ρ with the surface density at 60 °F and 14.7 psia, so a volume times Bg conserves mass.

What an engineer learns from it: at 15 MPa (2,176 psia) and 50 °C, CO₂ is 700 kg/m³, the value in NIST's tables, with a viscosity of 56.5 μPa·s and Z = 0.351. Bg is 0.00267 rcf/scf: one reservoir barrel holds about 2,100 scf of CO₂. From 1,070 to 2,176 psia the density more than triples, so a storage estimate or an injectivity calculation that uses one density across that range is wrong by that much. Above about 3,000 psia the fluid is liquid-like and its density changes slowly.

Units: °C in the call, °F and psia in the table, kg/m³, μPa·s (the cP value × 1,000), rcf/scf. Pure CO₂ only; impurities move the critical point (see the CO₂ MMP entry for their effect on miscibility).

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)
    {
        // Pure CO2 at 50 °C (122 °F), from 500 to 5,000 psia: across the critical pressure into the dense phase.
        var t = Temperature.FromDegC(50);
        var pressures = new[] { 500.0, 800, 1070, 1200, 1500, 2176, 3000, 4000, 5000 };

        var rows = pressures.Select(psia =>
        {
            var p = Pressure.FromPsi(psia);
            var rho = Co2SpanWagner.Density(p, t);          // Span-Wagner (1996)
            var mu = Co2Viscosity.ByFenghour1998(p, t);     // Fenghour et al. (1998)
            var bg = Co2VolumeFactor.Bg(p, t);              // ρsc / ρ, rcf/scf
            var z = Co2SpanWagner.Z(p, t);
            return (Psia: psia, Rho: rho.KgPerM3, MuMicroPaS: mu.CP * 1000, Bg: bg.RcfPerScf, Z: z.Dmnl);
        }).ToList();

        var at15MPa = rows.Single(r => r.Psia == 2176);
        var table = rows
            .Select(r => new object[] { r.Psia, Math.Round(r.Rho, 1), Math.Round(r.MuMicroPaS, 1), Math.Round(r.Bg, 5), Math.Round(r.Z, 4) })
            .ToList();

        return ctx.Result()
            .Set("Density at 15 MPa (kg/m³)", Math.Round(at15MPa.Rho, 1))
            .Set("Viscosity at 15 MPa (μPa·s)", Math.Round(at15MPa.MuMicroPaS, 1))
            .Set("Bg at 15 MPa (rcf/scf)", Math.Round(at15MPa.Bg, 5))
            .Set("Z at 15 MPa", Math.Round(at15MPa.Z, 4))
            .Set("Surface density (kg/m³)", Math.Round(Co2VolumeFactor.SurfaceDensity.KgPerM3, 4))
            .Set("Critical pressure (psia)", Math.Round(Co2SpanWagner.CriticalPressurePa / 6894.757, 1))
            .Set("Critical temperature (°F)", Math.Round(Co2SpanWagner.CriticalTemperatureK * 1.8 - 459.67, 1))
            .Set("CO2 at 122 °F", new ScriptTable(["P (psia)", "ρ (kg/m³)", "μ (μPa·s)", "Bg (rcf/scf)", "Z"], table))
            .Set("Density", new ScriptChart(rows.Select(r => r.Psia).ToArray(), rows.Select(r => Math.Round(r.Rho, 1)).ToArray(),
                title: "CO2 density at 122 °F", xLabel: "P (psia)", yLabel: "ρ (kg/m³)"));
    }
}