CO₂ MMP with an impure injectant

The pure-CO₂ minimum miscibility pressure, corrected for the nitrogen and methane in recycled gas.

Open in the workbench

Engineering use case UC-CO2-001 (Estimate pure-CO2 MMP vs temperature). The Koval entry carries the flood on from here, once it is miscible.

Nitrogen and methane raise the MMP; H₂S and heavier hydrocarbons lower it. Recycled gas usually carries enough methane to matter, so correct the pure-CO₂ value before comparing it with the reservoir pressure.

The mole fractions should sum to one. The flood is miscible only where the reservoir pressure stays above the corrected MMP, so compare against the pressure the flood will run at, not the initial one.

Source

using Team76.Engineering.Core.Measures;
using Team76.Engineering.EoR.Co2;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        var pure = MinimumMiscibilityPressure.ByYelligMetcalfe(
            Temperature.FromDegF(165), Pressure.FromPsi(1850));

        var recycled = MinimumMiscibilityPressure.CorrectByAlston1985(
            pure,
            moleFractionCo2: 0.88, moleFractionN2: 0.04,
            moleFractionC1: 0.08, moleFractionH2S: 0.00);

        // Miscible only while the reservoir stays above recycled.Psi.

        return ctx.Result().Set("pure", pure.Psi).Set("recycled", recycled.Psi);
    }
}