Wellbore Genius
Help
Back to dashboard

Physics dashboard

Every equation the pressure advisor solves, with its symbols, units, assumptions, validity limits and a number-by-number substitution trace. All values are produced by the shipped solver functions — change an input and every trace below recomputes, so you can validate the physics by hand.

Open parameter sweep

Model editor inputs

Advisor inputs are read from your model editor model Hydrostatic & surface budget4 of 9 fields mapped from live values and equation results.

Advisor field provenance from the model editor
Advisor fieldValueSource
TVD10,000
input
tvd [ft]
Reservoir temperature170
advisor default
Wellbore pressure4,460
advisor default
Mud weight12
input
mudWeight [ppg]
Pore gradient8.6
advisor default
Fracture gradient13.8462
input
fracGradient [psi/ft] → ppg (from psi/ft)
Annular friction350
input
annFriction [psi]
Pipe friction1,500
advisor default
BHP target8,755
advisor default

Add a model input or equation named after a field to bind it — unmapped fields keep the advisor default: Reservoir temperature · Wellbore pressure · Pore gradient · Pipe friction · BHP target.

Well data source
Template defaults
Job data source
No job bound
Formation data source
No formation bound
Advisor results
Template defaults
Within limits

Solved by recommendPressures() on the inputs below — the same function the job builder uses. Bind a well on /well-database and these are your well's numbers.

BHP target

8,755 psi

TVD 10,300 ft · BHT 170 °F

Hydrostatic at TVD

5,063 psi

ρ(T,P) 9.45 ppg · mean T 120 °F

ECD

9.92 ppg

Mud weight 9.50 ppg + annular friction

Max surface pressure

5,192 psi

3,692 psi net above hydrostatic

Breakdown

Estimated breakdown

10,141 psi

Closure 9,641 psi from fracture gradient

Breakdown margin

5,681 psi

BHP target stays below breakdown

Eaton cross-check

8,610 psi

σ_h,min 7,672 psi · k = 0.54

Overburden / pore

10,300 psi / 4,606 psi

σ_v at TVD and pore pressure at TVD

Mud-weight window & margins

Safe window

8.90 ppg – 17.50 ppg

Status: ok

Margin to pore

0.60 ppg

Mud weight above pore-pressure equivalent

Margin to fracture

8.00 ppg

Headroom below fracture-gradient equivalent

Pore / fracture gradient

8.60 ppg / 18.00 ppg

Formation assumptions used for the window

TVD sweep — per-depth pressure and margins
Segmented integration from surface to 10,300 ft TVD: temperature- and pressure-corrected density, cumulative friction, pore and fracture pressure at every station.

Integrated hydrostatic

5,063 psi

9.45 ppg effective density

ECD at TVD

9.92 ppg

max 9.95 ppg at 258 ft

Tightest frac margin

108 psi

at 258 ft

Tightest pore overbalance

12 psi

at 258 ft

Pressure vs depth (psi)

Margins vs depth (psi)

Stations (12 of 40 solved segments — CSV has all of them)

TVD (ft)Temp (°F)ρ (ppg)Static (psi)Circulating (psi)Pore (psi)Fracture (psi)To frac (psi)Above pore (psi)
258719.4812713311524110812
1,288819.476346665761,20553959
2,060899.471,0151,0659211,92886394
3,090999.461,5221,5971,3822,8921,295140
3,8631069.461,9021,9961,7273,6151,620175
4,8931169.452,4092,5272,1884,5792,052221
5,6651249.452,7882,9262,5335,3022,377255
6,6951349.443,2943,4572,9946,2672,810300
7,4681419.443,6733,8553,3396,9903,135334
8,4981519.444,1794,3853,8007,9543,568379
9,2701599.434,5584,7834,1468,6773,894412
10,3001699.435,0635,3134,6069,6414,328457
Annular friction model

Load the “Annular friction & ECD” model in the editor to compute annular velocity, friction loss and ECD from segment diameter, flow rate and fluid properties. Its annularFriction output feeds the advisor’s annular-friction input automatically.

Rheology law comparison
Spread 4.86 ppg ECD
Open model editor

Bingham plastic (τ = YP + PV·γ̇), Herschel–Bulkley (τ = τ₀ + K·γ̇ⁿ) and Power-law (τ₀ = 0) solved on the same annulus. Fann dials are reconstructed from PV/YP (R600 = 2·PV + YP): R600 48.0 · R300 30.0 · R6 6.0 · R3 4.8.

Reading saved model…
Lawnτ₀ (lbf/100ft²)RegimeFriction (psi)ECD (ppg)Surface budget (psi)Δ ECD vs Bingham
Bingham plastic1.00012.0laminar22512.43735baseline
Herschel–Bulkley0.7503.8turbulent18312.35777−0.08 ppg
Power-law0.6780.0turbulent16712.32793−0.11 ppg

ECD vs rate — all three laws

Herschel–Bulkley and Bingham diverge by up to 4.86 ppg ECD near 735 gpm. The fit is shear-thinning (n = 0.750, τ₀ = 3.8 lbf/100ft²), so the Bingham answer carries real ECD error at that rate.

Three-law audit on stored jobs
No jobs
Model editor

Each stored job is solved three ways on its own geometry and mud weight — Bingham plastic (τ = YP + PV·γ̇), Herschel–Bulkley (τ = τ₀ + K·γ̇ⁿ) and Power-law (τ₀ = 0). Jobs with a stored Fann sweep use their own regressed n / K / τ₀; the rest fall back to the shared PV/YP dials. Tolerance 0.05 ppg ECD.

Loading stored jobs…

Stored jobs — Bingham vs editor vs rheology
Editor model not loaded
Local jobs
Open model editor

Each stored job is solved three ways at identical inputs: the shipped Bingham-plastic solver (the advisor reference), the live model-editor equations, and Herschel–Bulkley (τ = τ₀ + K·γ̇ⁿ) fitted to the Fann sweep. Model deltas are ≈0 with the stock model loaded; the Herschel–Bulkley column shows where shear-thinning (n < 1) changes ECD and the surface budget on your real jobs.

Loading stored jobs…

Wellbore builder run — segmented depth sweep
Real segmented architecture: per-segment hole/pipe diameters, mud weights, temperature-corrected density and Bingham-plastic annular friction — not the advisor's single averaged column. Source: no job selected.

Loading jobs…

Advisor vs editor — per-equation real well values
Model Hydrostatic & surface budget evaluated at this well's inputs (10,300 ft TVD, 9.50 ppg) beside the advisor's closed-form physics. Loading your saved equations…
Largest disagreement: Surface budget -889.67 (-17.13%)
EquationAdvisorEditorΔΔ %
Hydrostatic pressure [psi]
0.052 * mudWeight * tvd
5,062.735,088.20+25.47+0.503
Equivalent circulating density [ppg]
mudWeight + annFriction / (0.052 * tvd)
9.929.97+0.05+0.479
Breakdown pressure [psi]
fracGradient * tvd
10,140.809,640.80-500.00-4.931
Surface budget [psi]
max(pBreakdown - pHydro - annFriction, 0)
5,192.274,302.60-889.67-17.135

Hydrostatic pressure: Advisor corrects mud density for column temperature and pressure (ρ(T,P)); the editor equation uses the nominal pit density.

Equivalent circulating density: Same ρ(T,P) correction as hydrostatic, expressed as density.

Breakdown pressure: Advisor adds rock tensile strength on top of closure (fracture gradient × TVD) and cross-checks against a Hubbert–Willis / Eaton stress model.

Surface budget: Advisor budgets to the BHP target (BHP target − hydrostatic + pipe friction); the editor equation budgets to breakdown instead, so the two answer different questions.

Editor inputs overridden with this well's values: True vertical depth = 10,300.00 ft, Mud weight = 9.50 ppg, Annular friction = 250.00 psi, Fracture gradient = 0.94 psi/ft.

Advisor run history
Saved on this device

Store the well, parameters and solved results of each advisor run, then compare any two scenarios side by side to see how a change moved BHP target, ECD, breakdown and margins.

Loading run history…

Inputs (field units)
Solver cross-check — closed form vs depth integration

Closed form p_hydro

5,062.7 psi

Integrated (40 seg)

5,062.8 psi

Residual

0.040 psi

Residual (tol ±0.25%)

0.0008 %

First loss depth

none

First influx depth

none

Agreement

within tolerance

Shared physics constants

Surface temperature

70 °F

Thermal expansion α

0.00021 1/°F

Compressibility c_f

0.000003 1/psi

Overburden gradient

1 psi/ft

Poisson's ratio ν

0.35

Tensile strength T₀

500 psi

Average fluid temperature over the column, used to thermally expand the mud from its 60 °F pit measurement.

Tˉ=12(Tsurf+Tbh)\bar{T} = \tfrac{1}{2}\left(T_{surf} + T_{bh}\right)

T_bar = (T_surf + T_bh) / 2

Symbols and units

SymbolMeaningUnitsSourceValue
T_surfSurface / mud-pit temperature°F
physics constant
70.00000
T_bhStatic bottom-hole (reservoir) temperature°F
your input
170.00000

Numeric substitution trace

  1. (70 + 170) / 2= 120.0000 °F

Assumptions

  • Linear geotherm between surface and bottom-hole temperature.
  • Static (non-circulating) column; no cool-down from injection is credited here.

Validity limits

  • Under sustained cold injection the true column is cooler than this average — apply the cooling credit path instead.
Reference: Linear geothermal gradient (standard drilling-engineering practice)Implementation: src/lib/pressureAdvisor.ts · recommendPressures()