Surface Facilities
Choke performance, gas and liquid pipeline hydraulics, separator and slug-catcher sizing, and gas compression.
Single-Phase Chokes
PO.SF.CH.Gas.Rate.SIGas flow rate through choke, automatically determines sonic or subsonic flow regime (SI units), [m3/d].PO.SF.CH.Gas.Rate.Sonic.SIGas flow rate at sonic (critical) conditions, rate independent of downstream pressure (SI units), [m3/d].PO.SF.CH.Gas.Pwh.SIRequired upstream pressure for sonic gas flow (SI units), [kPa].PO.SF.CH.Gas.Size.SIRequired choke diameter for sonic gas flow (SI units), [cm].PO.SF.CH.Liq.Rate.SILiquid flow rate through choke, uses Bernoulli equation for incompressible flow (SI units), [m3/d].PO.SF.CH.Liq.dP.SIPressure drop across choke for liquid flow (SI units), [kPa].PO.SF.CH.Liq.Size.SIRequired choke diameter for liquid flow (SI units), [cm].
Critical-Flow Chokes
PO.SF.CH.Pilehvari.Rate.SILiquid flow rate using Pilehvari (1980) critical flow correlation, based on U; of Tulsa experimental data (SI units), [m3/d].PO.SF.CH.Pilehvari.Pwh.SIWellhead pressure using Pilehvari (1980) critical flow correlation (SI units), [kPa].PO.SF.CH.Pilehvari.Size.SIChoke diameter using Pilehvari (1980) critical flow correlation (SI units), [cm].PO.SF.CH.Achong.Rate.SILiquid flow rate using Achong (1961) critical flow correlation, modified Gilbert for Lake Maracaibo conditions (SI units), [m3/d].PO.SF.CH.Achong.Pwh.SIWellhead pressure using Achong (1961) critical flow correlation (SI units), [kPa].PO.SF.CH.Achong.Size.SIChoke diameter using Achong (1961) critical flow correlation (SI units), [cm].PO.SF.CH.Ros.Rate.SILiquid flow rate using Ros (1960) critical flow correlation (SI units), [m3/d].PO.SF.CH.Ros.Pwh.SIWellhead pressure using Ros (1960) critical flow correlation (SI units), [kPa].PO.SF.CH.Ros.Size.SIChoke diameter using Ros (1960) critical flow correlation (SI units), [cm].PO.SF.CH.Baxendell.Rate.SILiquid flow rate using Baxendell (1957) critical flow correlation, developed from Lake Maracaibo field data (SI units), [m3/d].PO.SF.CH.Baxendell.Pwh.SIWellhead pressure using Baxendell (1957) critical flow correlation (SI units), [kPa].PO.SF.CH.Baxendell.Size.SIChoke diameter using Baxendell (1957) critical flow correlation (SI units), [cm].PO.SF.CH.Gilbert.Rate.SILiquid flow rate using Gilbert (1954) critical flow correlation, widely used for oil wells with gas (SI units), [m3/d].PO.SF.CH.Gilbert.Pwh.SIWellhead pressure using Gilbert (1954) critical flow correlation, calculates required pressure for target rate (SI units), [kPa].PO.SF.CH.Gilbert.Size.SIChoke diameter using Gilbert (1954) critical flow correlation, calculates required choke size for target rate (SI units), [cm].
Subcritical-Flow Chokes
PO.SF.CH.Sachdeva.Rate.SILiquid flow rate using Sachdeva (1986) two-phase mechanistic model, handles both critical and subcritical flow (SI units), [m3/d].PO.SF.CH.Sachdeva.Pwh.SIWellhead (upstream) pressure using Sachdeva (1986) two-phase model for a target liquid rate, the inverse of PO.SF.CH.Sachdeva.Rate.SI (SI units), [kPa].PO.SF.CH.Sachdeva.Size.SIChoke diameter using Sachdeva (1986) two-phase model for a target liquid rate, the inverse of PO.SF.CH.Sachdeva.Rate.SI (SI units), [cm].PO.SF.CH.AshfordPierce.Rate.SILiquid flow rate using Ashford-Pierce (1975) subcritical correction model, extends critical flow correlations to subcritical conditions (SI units), [m3/d].PO.SF.CH.AshfordPierce.Pwh.SIWellhead (upstream) pressure using Ashford-Pierce (1975) model for a target liquid rate, the inverse of PO.SF.CH.AshfordPierce.Rate.SI (SI units), [kPa].PO.SF.CH.AshfordPierce.Size.SIChoke diameter using Ashford-Pierce (1975) model for a target liquid rate, the inverse of PO.SF.CH.AshfordPierce.Rate.SI (SI units), [cm].
Gas Pipelines
PO.SF.PL.Gas.Weymouth.Rate.SIGas flow rate using Weymouth equation for high-pressure large-diameter pipelines (SI units), [m3/d].PO.SF.PL.Gas.PanhandleA.Rate.SIGas flow rate using Panhandle A equation for medium-pressure transmission (SI units), [m3/d].PO.SF.PL.Gas.PanhandleB.Rate.SIGas flow rate using Panhandle B equation for high-pressure large-diameter transmission (SI units), [m3/d].PO.SF.PL.Gas.Weymouth.Pout.SIOutlet pressure for gas pipeline using Weymouth equation (SI units), [kPa].PO.SF.PL.Gas.PanhandleA.Pout.SIOutlet pressure for gas pipeline using Panhandle A equation (SI units), [kPa].PO.SF.PL.Gas.PanhandleB.Pout.SIOutlet pressure for gas pipeline using Panhandle B equation (SI units), [kPa].PO.SF.PL.Gas.Vel.SIGas velocity at pipeline conditions (SI units), [m/s].PO.SF.PL.Gas.Rho.SIGas density at pipeline conditions (SI units), [kg/m3].PO.SF.PL.Gas.Re.SIReynolds number for gas pipeline flow (SI units).PO.SF.PL.Gas.SizeReturns the smallest pipe internal diameter, from a list of candidate sizes, that carries a gas rate from an inlet pressure to a minimum delivery pressure and keeps the gas below API RP 14E's erosional velocity. It sweeps the list smallest first with one of the shipped pipeline equations, Weymouth, Panhandle A or Panhandle B, and stops at the first size that passes both tests. The list is the caller's: a standard-weight schedule, another wall, or the sizes in stock. A sheet reads the nominal size with `INDEX(nps, MATCH(size, ids, 0))`.
Liquid Pipelines
PO.SF.PL.Liq.dP.SIPressure drop for liquid pipeline using Darcy-Weisbach equation (SI units), [kPa].PO.SF.PL.Liq.Rate.SILiquid flow rate for given pressure drop using Darcy-Weisbach (SI units), [m3/d].PO.SF.PL.Liq.Pout.SIOutlet pressure for liquid pipeline (SI units), [kPa].PO.SF.PL.Liq.Pin.SIRequired inlet pressure for liquid pipeline (SI units), [kPa].PO.SF.PL.Liq.Vel.SILiquid velocity in pipeline (SI units), [m/s].PO.SF.PL.Liq.Re.SIReynolds number for liquid pipeline flow (SI units).PO.SF.PL.Liq.SizeReturns the smallest pipe internal diameter, from a list of candidate sizes, that carries a liquid rate from an inlet pressure to a minimum delivery pressure, the elevation change included, without exceeding a velocity limit. It sweeps the list smallest first with the shipped Darcy-Weisbach functions and stops at the first size that passes both tests. The roughness is the wall's absolute roughness, so each size takes its own relative roughness ε/D. A sheet reads the nominal size with `INDEX(nps, MATCH(size, ids, 0))`.PO.SF.Pump.NPSHaReturns the net positive suction head available at a pump's suction, in feet of the liquid pumped: how far the suction pressure stands above the liquid's vapour pressure. A pump needs at least the NPSH its curve requires at the duty, or the liquid flashes in the impeller eye and the pump cavitates. NPSHa = (ps − pv)·2.31/sg + hs − hf, where 2.31 ft of water is one psi.
Separators and Slug Catchers
PO.SF.Sep.SoudersBrownReturns the allowable gas velocity in a separator by the Souders-Brown equation, or the smallest vessel internal diameter that keeps the gas below it. The allowable velocity is the speed at which liquid droplets of the size the mist extractor can catch still settle against the rising or crossing gas: Vt = K·√((ρl − ρg)/ρg). The vessel needs enough gas flow area that the actual gas flow, at the vessel's pressure and temperature, moves no faster. A vertical vessel passes the gas up through its whole cross-section. A horizontal one is taken half full of liquid, so the gas has the upper half. K is the caller's, from the vessel's internals: see the Validity note for the API 12J and GPSA ranges.PO.SF.Sep.LiquidRetentionReturns the liquid volume a separator must hold so its liquid stays in the vessel for the design retention time, or the length of vessel of a given internal diameter that holds it. A two-phase separator holds the oil and water together for one time, long enough for the gas to come out of the liquid. A three-phase separator holds each for its own time, long enough for the water to drop out of the oil and the oil out of the water. A vertical vessel holds the liquid over its whole cross-section, so the length is the liquid height. A horizontal one is taken half full, Arnold and Stewart's design basis, so the length is the effective length the liquid occupies.PO.SF.Slug.CatcherVolumeReturns the liquid volume a slug catcher must hold for one design slug: the liquid in the slug body, less what the catcher's liquid outlet drains while the slug arrives, times a design margin. The slug length, its liquid holdup and its velocity are the caller's, from a slug-length correlation, a flow-regime study or a transient run; this function does the volume arithmetic on a stated basis, so the sheet shows each term.
Gas Compression
PO.SF.Comp.kReturns the ideal-gas ratio of specific heats, k = Cp/Cv, of a hydrocarbon gas from its specific gravity and temperature, by Moshfeghian's (2013) correlation. Compressor discharge temperature, head and power all need k (`PO.SF.Comp.Tdisch`, `PO.SF.Comp.Power`), and a gas analysis is not always to hand: the gravity is. A sheet that has a k from a composition or a vendor's data sheet uses that cell instead of calling this function.PO.SF.Comp.StagesReturns the fewest compression stages that keep each stage's pressure ratio at or below a maximum, with the overall ratio split equally between them, or that equal stage ratio. Equal ratios with intercooling to the same temperature give equal work per stage and close to the least total work, which is why it is the usual first split. The maximum ratio is the caller's: usually set by the discharge temperature limit (`PO.SF.Comp.Tdisch`), the rod load or the machine type.PO.SF.Comp.TdischReturns the discharge temperature of one compression stage from its suction temperature, its pressure ratio, the gas's ratio of specific heats and the isentropic efficiency. With an efficiency of 1 it is the ideal isentropic temperature T1·r^((k−1)/k); below 1 the extra work also goes into the gas, so the rise is the isentropic rise over the efficiency. The discharge temperature is what limits a stage's ratio, so a staging sheet checks it per stage.PO.SF.Comp.PowerReturns the head per stage, the gas power per stage or the total gas power to compress a gas rate from a suction to a discharge pressure in equal-ratio stages, with the gas cooled back to the suction temperature between stages. The mode is required: "Adiabatic" takes the isentropic head and the isentropic efficiency, the usual basis for reciprocating machines; "Polytropic" takes the polytropic head and the polytropic efficiency, the usual basis for centrifugal ones. The result is gas power, the power delivered to the gas: brake power adds the mechanical losses (bearings, seals, gear), which the caller adds.
Need a custom LAMBDA? Request one