PO.DE.Hydrostatic(MW_ppg, TVD_ft)

Hydrostatic pressure at the bottom of a column of mud. P = 0.052 × MW × TVD psi, with MW in ppg and TVD in ft. The depth is true vertical depth, not measured depth.

PO.DE.WellControl.KillMudWeight(MW_ppg, SIDPP_psi, TVD_ft)

Mud weight that balances the formation pressure after a kick. KMW = MW + SIDPP / (0.052 × TVD) ppg, with TVD the bit's true vertical depth. No trip margin is added; round up as the well-control policy requires.

PO.DE.WellControl.ICP(SIDPP_psi, P_scr_psi)

Drill pipe pressure to hold when the kill starts, in the wait-and-weight method. ICP = SIDPP + P_SCR, the shut-in drill pipe pressure plus the slow circulating rate pressure at the kill rate.

PO.DE.WellControl.FCP(P_scr_psi, KMW_ppg, MW_ppg)

Drill pipe pressure to hold once kill mud reaches the bit, in the wait-and-weight method. FCP = P_SCR × KMW / MW: the friction loss at the kill rate scales with the density of the mud in the string.

PO.DE.WellControl.MAASP(EMW_shoe_ppg, MW_ppg, ShoeTVD_ft)

Surface casing pressure at which the shoe would break down, with the current mud in the hole. MAASP = (EMW_LOT − MW) × 0.052 × TVD_shoe psi, with EMW_LOT the leak-off test result as an equivalent mud weight.

PO.DE.WellControl.InfluxGradient(MW_ppg, SICP_psi, SIDPP_psi, H_ft)

Pressure gradient of a kick, used to tell gas from oil or water. G_i = 0.052 × MW − (SICP − SIDPP) / H psi/ft, with H the vertical height of the influx in the annulus. Below about 0.25 psi/ft the influx is gas; above about 0.40 it is water.

PO.DE.PipeCapacity(ID_in)

Internal capacity of a pipe or casing string per foot of length, from its inside diameter. Capacity = ID² / 1029.4 bbl/ft. The constant converts square inches times feet to barrels.

PO.DE.AnnularCapacity(Dh_in, Dp_in)

Volume per foot of the annulus between a hole (or casing ID) and the pipe inside it. Capacity = (Dh² − Dp²) / 1029.4 bbl/ft, with Dh the hole or casing inside diameter and Dp the pipe outside diameter.

PO.DE.Accumulator.UsableVolume(V_bottle_gal, P_precharge_psi, P_min_psi, P_max_psi)

Hydraulic fluid one accumulator bottle delivers between its maximum and minimum operating pressures. V_usable = V × P_pre × (1/P_min − 1/P_max) gal, Boyle's law on the nitrogen precharge (isothermal).

PO.DE.Accumulator.PressureAfterDraw(V_bottle_gal, P_precharge_psi, P_max_psi, V_drawn_gal)

Pressure left in an accumulator bottle after some of its fluid is used. P = V P_pre / (V P_pre / P_max + V_drawn) psi: the nitrogen volume at P_max grows by the fluid drawn.

PO.DE.BOP.ClosingVolume(Volumes_gal, Counts, DesignFactor)

The hydraulic fluid an accumulator has to deliver to operate a list of BOP functions once: each function's volume times how many there are, summed, times a design factor. Pass the volumes and the counts as two ranges of the same size, for example a stack table with one row per function. A design factor of 1 gives the bare volume to operate everything once.

PO.DE.BOP.Precharge(V_drawn_gal, V_total_gal, P_start_psi, P_final_psi)

The nitrogen precharge of an accumulator bank that gives up a stated volume of fluid as its pressure falls from one value to another, by Boyle's law. One formula answers two questions. Measured: draw V_drawn gal from the bank with the charge pumps off, read the pressure before and after, and it returns the bank's average precharge. Design: put the fluid a stack needs as V_drawn, the fully charged pressure as P_start and the minimum operating pressure as P_final, and it returns the lowest precharge that still delivers that fluid above the minimum.

PO.DE.KickTol.Volume(MAASP_psi, MW_ppg, KI_ppg, G_influx_psift, TVD_ft, ShoeTVD_ft, C_bit_bblft, C_shoe_bblft, Output)

The largest kick, in barrels at the bit, that a well can shut in and circulate out without breaking down the casing shoe. It uses the single-bubble method for a design kick intensity and influx gradient. The shoe allows an influx of height H = (MAASP − 0.052 × KI × TVD) / (0.052 × MW − G_influx). Two volumes follow from it: that height around the BHA at the bit, and that height around the drill pipe at the shoe, taken back to bottom-hole pressure by Boyle's law because the bubble expands on its way up. The kick tolerance is the smaller. Output 0 returns it, 1 the height H in ft, 2 the volume from the shoe case and 3 the volume at the bit.

PO.DE.KickTol.Intensity(MAASP_psi, MW_ppg, G_influx_psift, TVD_ft, V_kick_bbl, C_ann_bblft)

The largest kick intensity the casing shoe can take with a given influx at the bit. It is how far the formation pressure can be above the mud weight, as an equivalent mud weight in ppg, before the shut-in casing pressure reaches MAASP. With no influx it is the kick tolerance factor, (shoe TVD / TVD) × (leak-off EMW − MW). Each barrel of influx displaces mud, so the shoe takes less.

PO.WI.Kill.Bullhead(FracGrad_psift, TVD_ft, P_hyd_initial_psi, KillFluid_ppg, V_string_bbl, V_pumped_bbl)

The highest surface pressure allowed while bullheading, which pumps kill fluid down a string to push the well's fluids back into the formation. It must not fracture the formation: the limit is the fracture pressure at the weak point less the hydrostatic pressure of the column above it. As kill fluid replaces the initial column, the column gets heavier and the limit falls, in a straight line with the volume pumped for a string of one capacity. V_pumped of 0 returns the initial limit, and V_pumped of V_string or more returns the final one, with the string full of kill fluid.

PO.WI.Kill.FluidLoss(k_md, h_ft, dP_psi, mu_cp, re_ft, Dh_in, Time_hr, Output)

How fast a permeable zone takes kill fluid at an overbalance, by steady radial Darcy flow, and how much it takes over a period. The same formula gives the rate a zone accepts fluid when bullheading at a given pressure over the formation's. Output 0 returns the rate in bbl/hr and 1 the volume over Time_hr in bbl.

PO.WI.Barrier.Status(Elements)

The status of one well barrier, the primary or the secondary, from the statuses of the well barrier elements (WBEs) that make it up. NORSOK D-010 defines a well barrier as an "envelope of one or several well barrier elements preventing fluids from flowing unintentionally from the formation into another formation or to surface". The envelope is closed only if every element is, so it is only as good as its worst element. Each element's status is a code: 0 for intact (tested and verified), 1 for degraded or not verified, 2 for failed. The envelope takes the highest code among its elements. Blank cells are ignored, so a table can list more element slots than a given well uses, and an envelope with no element at all is failed: there is nothing to stop the flow. A code above 2 counts as failed. Feed the two envelopes' statuses to `PO.WI.Barrier.Rating` for the well's integrity category.

PO.WI.Barrier.Rating(Primary, Secondary)

A well's integrity category from the status of its two well barriers. NORSOK D-010 requires two independent barriers, the primary and the secondary, during every well activity; how far the well is from losing both sets how urgently it needs attention. The categories are the four colours of the Norwegian Oil and Gas well-integrity classification: - 1, green: both barriers intact. - 2, yellow: one barrier degraded, the other intact. - 3, orange: one barrier failed and the other intact, or both degraded, so one more failure leaves a single weak barrier. - 4, red: one barrier failed and the other degraded or failed: one further failure, or none, opens a path to surface. Each status is a code, as `PO.WI.Barrier.Status` returns it: 0 intact, 1 degraded or not verified, 2 failed. The rating is symmetric: it does not matter which barrier is the weaker one.

Need a custom LAMBDA? Request a Lambda