Size the export compressor and its coolers

The HP separator's vapour, 2.4 kg/s at 30 bar and 66.5 °C, compressed to 100 bar for export at 75 % isentropic efficiency: one stage with an aftercooler against two equal-ratio stages with an intercooler and scrubber, with the heads, shaft power, discharge temperatures and cooler duties, and the HP liquid pumped to the same 100 bar.

Open in the workbench

Engineering use case UC-PROCESS-005 (Recompress the HP gas and cool it for export).

Compressor takes the isentropic path first, a PS flash at the outlet pressure, then H₂ = H₁ + (H₂s − H₁)/η_s and a PH flash for the actual outlet; the shaft power is the mass flow times that actual head. Heater with an outlet temperature is the cooler, and its duty is negative when heat leaves. The two-stage case runs each stage at √(100/30) = 1.826, cools to 40 °C between them and knocks out the liquid in a scrubber (Separator) before the second stage, as a real train must. Pump reports its flashed power beside the incompressible ṅ v ΔP / η.

What an engineer learns from it: one stage from 30 to 100 bar takes an isentropic head of 171 kJ/kg, which matches the ideal-gas k/(k−1) Z R T₁/M (r^((k−1)/k) − 1) for a 21.1 kg/kmol vapour, and at η 0.75 an actual head of 227 kJ/kg and 550 kW. Its discharge is 177 °C, above the 150 °C or so that seals, lube oil and the export line's coating are usually rated for, and the aftercooler then has to reject 904 kW. Two stages with intercooling take 478 kW, 13 % less, and never run above 121 °C; the intercooler drops 0.017 kg/s of liquid at 40 °C and 55 bar, which is why the scrubber is not optional. Pumping the HP liquid by 70 bar costs 334 kW, and the flashed power agrees with v ΔP / η (336 kW) to under 1 %, as it should for a subcooled liquid.

Units: bar, °C, kg/s, kW, kJ/kg. The fluid is the choke-separation entry's light oil, Peng–Robinson with estimated kij. The efficiency is isentropic, not polytropic, and the stages share one efficiency; a vendor's curve would set both.

Source

using System;
using System.Linq;
using Team76.Engineering.Process;
using Team76.Engineering.Process.Fluids;
using Team76.Engineering.Process.UnitOps;
using Choke = Team76.Engineering.Process.UnitOps.Valve;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // The choke-separation entry's light-oil wellstream, choked to an HP separator at 30 bar and 66.5 °C.
        string[] names = ["nitrogen", "carbon dioxide", "methane", "ethane", "propane", "i-butane", "n-butane", "i-pentane", "n-pentane", "n-hexane", "n-heptane", "n-decane", "n-hexadecane", "n-eicosane"];
        double[] molePercent = [0.5, 1.5, 38, 7, 5, 1, 2.5, 1, 1.5, 3, 6, 14, 12, 7];
        var fluid = FluidBuilder.PengRobinson().Components(names)
            .WithKij(KijSource.Estimated()).WithVolumeShift(VolumeShift.JhaveriYoungren).Build();
        var wellstream = MaterialStream.FromTP(fluid, Quantity.Celsius(70), Quantity.Bar(100),
            molePercent.Select(x => Quantity.KilomolePerHour(10 * x)).ToArray());
        var hpFeed = new Choke("choke", ValveSpec.AtOutletPressure(Quantity.Bar(30))).Run(wellstream).Outlet(Choke.OutletPort);
        var hp = new Separator("HP", SeparatorSpec.AtPressure(Quantity.Bar(30), SeparatorPhases.TwoPhase)).Run(hpFeed);
        var suction = hp.Outlet(Separator.GasPort);
        var condensate = hp.Outlet(Separator.LiquidPort);

        // One stage, 30 to 100 bar at 75 % isentropic efficiency, then an export cooler to 40 °C.
        var single = new Compressor("K-100", MachineSpec.AtOutletPressure(Quantity.Bar(100), 0.75)).Run(suction);
        var cooler = new Heater("E-100", HeaterSpec.AtOutletTemperature(Quantity.Celsius(40))).Run(single.Outlet(Compressor.OutletPort));

        // Two stages at the same ratio each, sqrt(100/30), with an intercooler to 40 °C and a scrubber between them:
        // the cooled vapour drops liquid, and the second stage takes only the scrubber's vapour.
        double ratio = Math.Sqrt(100.0 / 30.0);
        var first = new Compressor("K-101", MachineSpec.AtPressureRatio(ratio, 0.75)).Run(suction);
        var intercooled = new Heater("E-101", HeaterSpec.AtOutletTemperature(Quantity.Celsius(40))).Run(first.Outlet(Compressor.OutletPort));
        var scrubber = new Separator("V-101", SeparatorSpec.AtPressure(Quantity.Pascal(first.OutletPressure), SeparatorPhases.TwoPhase)).Run(intercooled.Outlet(Heater.OutletPort));
        var second = new Compressor("K-102", MachineSpec.AtOutletPressure(Quantity.Bar(100), 0.75)).Run(scrubber.Outlet(Separator.GasPort));

        // The HP liquid pumped by 70 bar to the same 100 bar: the flashed power beside the v dP / eta estimate.
        var pump = new Pump("P-100", MachineSpec.AtPressureRise(Quantity.Bar(70), 0.70)).Run(condensate);

        static double Kw(double watts) => Math.Round(watts / 1000, 0);
        static double C(double kelvin) => Math.Round(kelvin - 273.15, 1);
        var rows = new[]
        {
            new object[] { "One stage", Math.Round(100.0 / 30, 2), C(single.IsentropicOutletTemperature), C(single.OutletTemperature), Kw(single.Power) },
            new object[] { "Stage 1 of 2", Math.Round(ratio, 3), C(first.IsentropicOutletTemperature), C(first.OutletTemperature), Kw(first.Power) },
            new object[] { "Stage 2 of 2", Math.Round(ratio, 3), C(second.IsentropicOutletTemperature), C(second.OutletTemperature), Kw(second.Power) },
        };

        return ctx.Result()
            .Set("Compressor stages", new ScriptTable(["Case", "Pressure ratio", "Isentropic outlet (°C)", "Outlet (°C)", "Shaft power (kW)"], rows))
            .Set("Suction (kg/s)", Math.Round(suction.MassFlow, 3))
            .Set("Suction molar mass (kg/kmol)", Math.Round(1000 * suction.MassFlow / suction.TotalMolarFlow, 3))
            .Set("Suction temperature (°C)", C(suction.Temperature))
            .Set("Isentropic head, one stage (kJ/kg)", Math.Round(single.IsentropicHead / 1000, 2))
            .Set("Actual head, one stage (kJ/kg)", Math.Round(single.ActualHead / 1000, 2))
            .Set("Shaft power, one stage (kW)", Kw(single.Power))
            .Set("Discharge temperature, one stage (°C)", C(single.OutletTemperature))
            .Set("Export cooler duty (kW)", Kw(cooler.Duty))
            .Set("Shaft power, two stages (kW)", Kw(first.Power + second.Power))
            .Set("Intercooler duty (kW)", Kw(intercooled.Duty))
            .Set("Scrubber liquid (kg/s)", Math.Round(scrubber.Outlet(Separator.LiquidPort).MassFlow, 3))
            .Set("Discharge temperature, two stages (°C)", C(second.OutletTemperature))
            .Set("HP liquid pump power, flashed (kW)", Math.Round(pump.Power / 1000, 2))
            .Set("HP liquid pump power, v dP / eta (kW)", Math.Round(pump.IncompressiblePower / 1000, 2))
            .Set("HP liquid pump head (m)", Math.Round(pump.IncompressibleHead, 0));
    }
}