PO.FA.Hydrate.dT.SI(W, M, K)

Calculates temperature depression from inhibitor using Hammerschmidt equation (SI units), [deltaK].

PO.FA.Hydrate.dT.MeOH.SI(W)

Calculates temperature depression from methanol using Hammerschmidt equation (SI units), [deltaK].

PO.FA.Hydrate.dT.MEG.SI(W)

Calculates temperature depression from MEG using Hammerschmidt equation (SI units), [deltaK].

PO.FA.Hydrate.dTsub.SI(T_hyd, T_op)

Calculates subcooling (hydrate formation temp minus operating temp) (SI units), [deltaK].

PO.FA.Hydrate.Qinj.MeOH.SI(Qw, W)

Calculates methanol injection rate required (SI units), [m3/d].

PO.FA.Hydrate.Qinj.MEG.SI(Qw, W)

Calculates MEG injection rate required (SI units), [m3/d].

PO.FA.Corrosion.CR.CO2.SI(T, pCO2)

Calculates CO2 corrosion rate using de Waard-Milliams correlation (SI units), [mm/yr].

PO.FA.Corrosion.Pp.CO2.SI(P, yCO2)

Calculates CO2 partial pressure from total pressure and mole fraction (SI units), [kPa].

PO.FA.Corrosion.Fug.CO2.SI(pCO2, T)

Calculates CO2 fugacity for accurate corrosion predictions (SI units), [kPa].

PO.FA.Corrosion.H2S.Region(p_h2s, ph)

The region of environmental severity for sulfide stress cracking (SSC) of carbon and low-alloy steels, read from Figure 1 of NACE MR0175 / ISO 15156-2 at the H2S partial pressure and the in-situ pH of the water. Region 0 (below 0.05 psia of H2S) needs no SSC-resistant steel by the standard, though very high-strength steels can still crack there; regions 1, 2 and 3 are mildly, intermediately and fully sour, and the steels allowed narrow from region 1 to region 3. The function returns the region as a number, 0 to 3, so a sheet can compare it with the region a steel is qualified for.

PO.CO.Mat.CO2Material(cr, cr_inh, t, region, life, ca_max)

A first-pass material for a line or tubing in CO2 service, chosen in the order NORSOK M-001 asks a designer to try them: carbon steel with a corrosion allowance if the bare rate over the design life fits the allowance; carbon steel with a corrosion inhibitor if the inhibited rate does; otherwise a corrosion-resistant alloy, the cheapest one that the temperature and the H2S allow. The function returns the material's name: "Carbon steel", "Carbon steel + inhibitor", "13Cr", "Duplex" or "Nickel alloy". It is the start of a materials selection, not its end: the selection report weighs cost, weldability, oxygen, chlorides and inspection too. For the CO2 corrosion blueprint's flowline, `=PO.CO.Mat.CO2Material(9.18, 1.38, 150, 1, 20, 3)` returns "13Cr".

PO.FA.Erosion.Ve.SI(Rho_m, C)

Calculates erosional velocity limit using API RP 14E (SI units), [m/s].

PO.FA.Erosion.RhoMix.SI(Rho_l, Rho_g, lambda_g)

Calculates gas-liquid mixture density (SI units), [kg/m3].

PO.FA.Erosion.Vmix.SI(Qg, QL, ID)

Calculates mixture velocity in pipe (SI units), [m/s].

PO.FA.Erosion.Ratio.SI(V, Ve)

Calculates erosion ratio (V/Ve). Values >1.0 indicate erosion risk (SI units), [dimensionless].

PO.FA.Erosion.Dmin.SI(Q, Ve)

Calculates minimum pipe diameter to avoid erosion (SI units), [cm].

PO.FA.Asphaltene.deBoer(dp, rho, output)

Screens a live oil for asphaltene deposition by the de Boer plot: its undersaturation, the reservoir pressure less the bubble point, against its density at reservoir conditions. Light, highly undersaturated oils hold the least asphaltene in solution and lose the most solvency as the pressure falls to the bubble point, so they sit in the severe region; heavy oils close to saturation sit in the no-problem region whatever their asphaltene content. The function returns the region, 0 for no problems, 1 for slight (possible) problems and 2 for severe problems, or either boundary's undersaturation at the given density, so a sheet can draw the plot.

PO.FA.Scale.SI.OddoTomson(mineral, t, p, ionic, ca, mg, sr, ba, sulfate, bicarb, p_co2)

Will this water lay down calcite, barite or celestite at these conditions? Oddo and Tomson's saturation index is the log of the scale-forming ions' concentration product over a conditional solubility product, fitted as a function of temperature, pressure and ionic strength so that no activity coefficients are needed. Above 0 the water is supersaturated and can scale; below 0 it is undersaturated. The method was built for oilfield brines, up to 200 °C, about 1,380 bar and an ionic strength of 4 mol/L. Calcite's index comes from the water's bicarbonate and the CO2 partial pressure of the gas it is in contact with, so it captures the scale that forms when the pressure falls and CO2 leaves the water. Barite's and celestite's use the free sulfate left after the calcium, magnesium, strontium and barium sulfate ion pairs. The mineral is a required argument: one call per mineral.

PO.FA.Scale.MixRatio(formation, injection, fraction)

The ion concentrations of a mixture of formation water and injection water, the input a scale-compatibility study needs at each mixing ratio. When seawater breaks through to a producer, the barium and strontium of the formation water meet the sulfate of the seawater, and the mixture can be far more supersaturated in barite or celestite than either water alone. Each ion mixes in proportion to the volumes: c = (1 − f)·c_formation + f·c_injection, with f the injection water's volume fraction. Pass the two analyses as matching rows of ions and a single fraction for one mixture, or a column of fractions for the whole mixing table; feed each mixed analysis to `PO.FA.Scale.SI.OddoTomson` in sheet cells.

PO.FA.Scale.InhibitorDose(si, mic, qw, sg_w, sg_i, output)

The continuous scale-inhibitor injection a produced water needs, on a stated basis: the minimum inhibitor concentration (MIC), in ppm of product by mass of water, that the inhibitor's qualification test (a static jar or dynamic tube-blocking test on this water at these conditions) found to stop the scale, applied whenever the water's saturation index is above 0, and nothing when it is not. The function returns that dose, the product's mass rate for the water rate and the product's volume rate, the number a chemical pump is set to. It does not predict the MIC: that comes from the test, and grows with the saturation index, which is why the index gates the dose here rather than scaling it.

Need a custom LAMBDA? Request a Lambda