Open-source production engineering
One well, two standard correlations,
588 psi apart.
Both are textbook. Both ship in commercial software. On identical inputs they disagree by more than a third of the answer — and whichever one your licence happened to default to, it did not tell you the other existed. That single silent choice moves a drawdown calculation further than most of the decisions an engineer is allowed to argue about.
So here is the whole disagreement, drawn, plus the part no closed tool will show you: which one actually matched a wireline gauge across 150 measured gradient surveys.
Both curves are this engine’s output on identical inputs — a 9,000 ft well making 1,200 stb/d oil, 300 stb/d water and 900 mscf/d, solved in 278.2 ms and 4.48 ms. Shading in the cutaway is computed liquid holdup; the rising gas shows direction only, not velocity. The percentages are median absolute bottomhole error for each correlation over the same 150 measured gradient surveys, run like for like. The 2.9% in the evidence table below is the same correlation at its best tubing diameter and gas gravity, which is a different question from this one and should not be read as a better version of it.
What the optimiser does with a fixed gas supply
not validatedSix wells, 2,500 mcf/d of lift gas, not a cubic foot more — solved in 10.8 ms. A real run on this engine, and an example rather than evidence: no open lift-test data exists to check an allocation against, and the engine labels its own answer a heuristic because the minimum-stable-injection limits make the first increment a jump.
| Well | Injecting | Should be | Oil |
|---|---|---|---|
| W-03 | 400 | 250 | -18.7 |
| W-07 | 200 | 500 | +35.9 |
| W-11 | 750 | 500 | -15.5 |
| W-12 | 300 | 250 | -5.8 |
| W-18 | 500 | 500 | 0.0 |
| W-21 | 350 | 500 | +14.3 |
| Field | 1133.6 | 1143.7 | +10.1 |
Injection in mcf/d, oil in stb/d. Two wells give gas up so four can use it better.
What it is worth
$258,000 / year
At $70/bbl, from gas you are already compressing. The next mcf/d is worth $5.30 — below that, buy more; above it, stop.
The engine’s own caveat
Some wells have a minimum stable injection, so the first increment is a discrete jump rather than a marginal step. The allocation is a strong heuristic here, not a proof of optimality.
What is proved, and what is not
Verification means the code solves its own equations correctly. Validation means those equations match a real field. They are different claims and most software reports the first as though it were the second. There is no API or ISO standard for simulation validation in this industry, so we use ASME V&V 20 language and say which we have.
The full table, with what each unvalidated row would take to close, is in validation/README.md. If a vendor cannot show you theirs, that is the answer to the question.
Start from what is wrong
Not from which module you think you need. The correlation names are all still there, one level in.
Diagnose
Something is wrong and the cause is not yet known.
A well makes less than it should, or has stopped lifting
Nodal analysis — IPR × VLP, with the liquid-loading limit
A rod pump is behaving oddly and the card looks wrong
Dynamometer card in, pump condition out — eight fault types
Reported production the physics cannot support
Field audit — every well's card against its allocated rate
Hydrate or wax risk on a line, and what to do about it
Flow assurance — inhibitor rate, insulation duty, or neither
Optimise
The equipment is working; the question is how to run it.
Compression is capped and several wells want it
Equal-slope optimum, with the shadow price on the next unit
Wells and the gathering network constrain each other
Coupled field solve — what limits each well, and what relieves it
A well cannot flow continuously and needs a duty cycle
Intermittent lift — cycle time, plunger or gas, per-cycle recovery
A new line, a tie-in, or a debottleneck
Route with bends, sized to duty — Crane TP-410 equivalent length
A topology the standard cases do not cover
Newton-Raphson with an analytic Jacobian — loops, compressors, regulators
Reservoir
What is still down there, and what the tank is doing.
Where the injected water is going, and which producer is cycling it
Two-phase waterflood on a five-spot — front validated against Buckley–Leverett
Volumes in place, and which drive is actually emptying them
Material balance — p/z straight line for gas, Havlena–Odeh for oil
The reservoir and the surface constraining each other over time
Coupled solve — one well-and-network solution per timestep
Look ahead
What the history implies, and what it is worth.
Where this well is going, and the EUR that follows
Arps and Duong, with the spread the admissible b exponents imply
A spreadsheet of monthly rates that needs turning into models
Production sheet — runs split at restarts and workovers
Setting up sources, offtakes and fluids for a new field
Case builder — the inputs every other tool reads
Transient
What happens in the hours or seconds before it settles.
Prove it
The half of the job most software skips: what the advice was worth.
The solvers against answers known independently
Closed forms, conservation laws and analytic bounds — things whose value is known without reference to this code. Published correlations, no fitted black boxes, and every result names the correlation behind it and flags when an input is outside the range that correlation was fitted on. This is verification; the table above says where it becomes validation.
Runs air-gapped
numpy and the standard library. No call home, no cloud dependency.
Priced per well
not per seat. The bill follows the barrels, not the headcount.
Stateless by default
the hosted solvers keep nothing. Inputs are solved and discarded.
Then come back and check it delivered.
Every optimiser will tell you a change is worth ten barrels a day. This one subtracts the well’s own decline, separates a real gain from a well that was simply up more days, and refuses to score a window another change also touched.