Check a rod string's loads, stress and the unit's torque

The loads a beam pump puts on its rods and its unit: rod weight in air and in the liquid, the fluid load, the peak and minimum polished rod loads by Mills' acceleration factors, the rod stress against the modified Goodman allowable, the ideal counterbalance and the peak gearbox torque, and how they all grow with the pumping speed.

Open in the workbench

Engineering use cases UC-RP-002 (Calculate Rod String Weight), UC-RP-003 (Estimate Polished Rod Loads), UC-RP-006 (Optimize Counterbalance), UC-RP-007 (Evaluate Rod Stress and Fatigue) and UC-RP-008 (Size Pumping Unit).

On the upstroke the polished rod carries the rods, the fluid on the plunger and the acceleration of both: PPRL = Wf − Sf 62.4 Wr / 490 + Wr (1 + F1), with F1 = S N² (1 + c/h) / 70,471.2 on a conventional unit. On the downstroke the travelling valve is open, the tubing holds the fluid and the rods carry only their buoyant weight less the deceleration: MPRL = Wr − Sf 62.4 Wr / 490 − Wr F2. The counterbalance that evens the two strokes is their mean, and the peak torque on the gearbox is about (PPRL − MPRL) S / 4. Rods fail in fatigue, so the stress is read against the modified Goodman diagram, Sa = T/4 + 0.5625 Smin: the higher the minimum stress, the higher the peak it allows.

What an engineer learns from it: 5,000 ft of 7/8" rods weigh 10,231 lbf (9,078 in the liquid), and the 1 3/4" plunger lifts a 4,583 lbf fluid load. At 8 SPM the polished rod sees 14,705 lbf at the top and 8,561 lbf at the bottom, so the rods never go into compression. The peak stress is 24,454 psi, 67 % of the 36,759 psi Goodman allows grade D rods: room to spare. The counterbalance wants 11,633 lbf at the polished rod and the gearbox sees about 129,000 in-lbf, which a 160 (thousand in-lbf) unit carries and a 114 does not. Speeding up costs fast: at 14 SPM the peak load rises 15 %, the rods reach 78 % of Goodman and the torque 197,000 in-lbf, needing a bigger unit. The rods could fall freely at up to 25 SPM, and the string resonates at 47 SPM, both far above the design speed.

Units are field: lbf, psi, in, ft, SPM. Mills' factors assume harmonic motion; a deep or fast well wants API RP 11L or the wave equation. Steel rods, a single taper, grade D, service factor 1. The plunger's stroke and rate on the same well are rp-plunger-rate.

Source

using System;
using System.Linq;
using Team76.Engineering.AL.RP;

public class S : ICalcScript
{
    public ScriptResult Run(ICalcContext ctx)
    {
        // The same pump as rp-plunger-rate: a 1 3/4" plunger at 5,000 ft on 7/8" steel rods, 84" stroke, a 0.88 gravity
        // liquid, a conventional unit with a crank-to-pitman ratio of 0.33.
        const double pumpDepth = 5000, rodDiameter = 0.875, plungerDiameter = 1.75, stroke = 84, gravity = 0.88, crankToPitman = 0.33;
        double rodArea = Rod.AreaFromDiameter(rodDiameter);
        double rodWeight = Rod.WeightInAir(rodArea, pumpDepth);
        double fluidLoad = Load.FluidLoad(Math.PI / 4 * plungerDiameter * plungerDiameter, pumpDepth, 0.433 * gravity);

        // Mills' approximate polished rod loads: the acceleration factors F1 (upstroke) and F2 (downstroke) at a speed.
        (double Peak, double Minimum) Loads(double spm) =>
            (Load.MillsPeakPolishedRodLoad(fluidLoad, rodWeight, gravity, Load.MillsAccelerationFactorF1(stroke, spm, crankToPitman)),
             Load.MillsMinimumPolishedRodLoad(rodWeight, gravity, Load.MillsAccelerationFactorF2(stroke, spm, crankToPitman)));

        var (peak, minimum) = Loads(8);
        double counterbalance = Torque.IdealCounterbalanceEffectFromLoads(peak, minimum);
        double peakTorque = Torque.PeakNetTorqueEstimate(peak, minimum, stroke);

        // The modified Goodman allowable for API grade D rods (tensile strength 115,000 psi), service factor 1.
        double Allowable(double minimumStress) => 115000 / 4.0 + 0.5625 * minimumStress;

        var rows = new[] { 6.0, 8, 10, 12, 14 }
            .Select(spm => (Spm: spm, Load: Loads(spm)))
            .Select(s => new object[]
            {
                s.Spm,
                Math.Round(s.Load.Peak),
                Math.Round(s.Load.Minimum),
                Math.Round(Rod.MaximumStress(s.Load.Peak, rodArea)),
                Math.Round(100 * Rod.MaximumStress(s.Load.Peak, rodArea) / Allowable(Rod.MinimumStress(s.Load.Minimum, rodArea))),
                Math.Round(Torque.PeakNetTorqueEstimate(s.Load.Peak, s.Load.Minimum, stroke) / 1000),
            })
            .ToList();

        double maximumStress = Rod.MaximumStress(peak, rodArea), minimumStress = Rod.MinimumStress(minimum, rodArea);
        return ctx.Result()
            .Set("Rod weight in air (lbf)", Math.Round(rodWeight))
            .Set("Rod weight in the liquid (lbf)", Math.Round(Rod.BuoyantWeight(rodWeight, gravity)))
            .Set("Fluid load (lbf)", Math.Round(fluidLoad))
            .Set("Peak polished rod load (lbf)", Math.Round(peak))
            .Set("Minimum polished rod load (lbf)", Math.Round(minimum))
            .Set("Maximum rod stress (psi)", Math.Round(maximumStress))
            .Set("Goodman allowable (psi)", Math.Round(Allowable(minimumStress)))
            .Set("Rod loading (%)", Math.Round(100 * maximumStress / Allowable(minimumStress)))
            .Set("Ideal counterbalance effect (lbf)", Math.Round(counterbalance))
            .Set("Peak torque (1,000 in-lbf)", Math.Round(peakTorque / 1000))
            .Set("Speed limit, rods falling free (SPM)", Math.Round(Load.MaximumPumpingSpeed(stroke, crankToPitman, 0.5), 1))
            .Set("Resonant speed of the string (SPM)", Math.Round(Rod.ResonantPumpingSpeed(pumpDepth), 1))
            .Set("Speeds", new ScriptTable(["SPM", "PPRL (lbf)", "MPRL (lbf)", "Max stress (psi)", "Of Goodman (%)", "Peak torque (1,000 in-lbf)"], rows,
                title: "Loads against pumping speed"));
    }
}