Use case · Simulation

From raw data to a model you can defend

The agent reads the raw data, builds the grid, writes the deck, runs the cases and pulls the results together. You check the model in 3D, the forecast against history, and every line it changed in the deck.

3D grid: pressure
Does the model look right? The Kestrel grid at its last restart step, coloured by pressure.

Briefs it takes

Give it the job, the way you'd brief a colleague

“The raw data for the field is in this folder. Build me a reservoir model, run a sensitivity study on the main uncertainties, and write me a short report.”

grid builder · Eclipse deck · .STUDY sampling · simulator runs

“These are the PVT lab reports. Tune an equation of state to the CCE and DLE data, put the PVT tables into the deck, and tell me where the match is weakest.”

EoS regression · lab-test simulation · black-oil export to Eclipse

“Interpret the latest buildup tests. Flag the wells that see a boundary, and update permeability and skin in the model where the tests disagree with it.”

PTA models · Bourdet derivative · regression · deck edits

The process

The agent does each step. You check it.

Every step leaves a file in the project folder, and every file opens in a viewer built for checking it. How the agent works →

  1. 1

    Build the deck

    Agent

    Reads the raw data, builds the grid and writes the deck, with the keyword manual open.

    You check

    Every line it changed, in the deck editor and the diff.

  2. 2

    Validate

    Agent

    Parses the deck, following every INCLUDE, and dry-runs it on the simulator.

    You check

    The Error List is clean before a run is spent.

  3. 3

    Run

    Agent

    Starts the cases from launch profiles, queues them and puts a watcher on each.

    You check

    The run log while it runs, and the results when it finishes.

  4. 4

    Match

    Agent

    Pulls the results into tables and plots them against history.

    You check

    The forecast against history, and the grid in 3D.

  5. 5

    Study the uncertainty

    Agent

    Sets up a study over the main uncertainties, samples the cases and runs them all.

    You check

    Which parameters move recovery, case by case.

Features behind it

What makes each step possible

The model itself: the agent writes and edits the deck, and the parser checks it before a run is spent.

OPM Flow runs the cases, and Eclipse does when it's installed, on your licence.

How each run starts: on Windows, under WSL or in Docker, with a dry run that checks the deck first.

Runs the cases one after another and wakes the agent when each one finishes.

The grid in 3D, summary plots against history, and the Error List: each answers one question about the model.

Pulls the summary vectors of every case into one table, to compare and plot.

The sensitivity study: uncertain parameters, their ranges, the sampled cases and what to compare.

The PVT tables, relative permeability and aquifer models that go into the deck, from named methods.

Every feature →

Verification

Viewers built for checking the work

Everything the agent does leaves a file in the project folder, and every file opens in a viewer meant for inspection. You don't have to take the agent's summary on trust.

A deck with mistakes and its Error List

Deck

Will it run?

Problems are listed before a run is spent: a table with no closing slash, or 1000 values for a 300-cell grid.

The grid coloured by gas, oil and water saturations

3D grid

Does the model look right?

Static and dynamic properties, cell by cell, at any report step.

Each producer's simulated oil rate against history

Summary plots

Does it match history?

Field, group and well vectors against observed data.

A sensitivity study over the Kestrel deck

Studies

Which uncertainties move recovery?

One .STUDY file: parameters, distributions, sampling (Latin hypercube, full factorial, one at a time), runs and objectives.

Changes

What did the agent change?

A side-by-side diff of every file it edited.

Run logs, logs and seismic

Are the inputs what we think?

The simulator's run log, LAS curves, SEG-Y traces, and INIT and restart arrays as tables.

Under the deck

Real engineering, not made-up maths

The agent doesn't invent its own correlations. It calls documented, tested, unit-aware libraries, so a PVT table or a material balance traces to a named method.

Reservoir simulation
Read and write Eclipse decks. Grids, initial and restart properties, summary vectors, RFT. Build a grid from raw inputs.
Black-oil PVT
Bubble point, Rs, Bo, z-factor, viscosity, compressibility. CO₂ properties from Span–Wagner. Consistency checks on PVT tables.
Equation of state
Peng–Robinson and SRK with volume shift. Simulated CCE, DLE, CVD, separator and swelling tests, regression to lab data, and black-oil tables exported to an Eclipse deck.
Rock and SCAL
Corey, LET, Honarpour and Ibrahim–Koederitz relative permeability, Stone I and II, capillary pressure from Brooks–Corey, van Genuchten and the Leverett J-function.
Material balance
Havlena–Odeh for oil, p/z for gas, drive indices, and Schilthuis, van Everdingen–Hurst and Fetkovich aquifers.
Pressure transient
Buildup, falloff, interference and multi-rate tests, eight boundary types, Bourdet derivative, regression to field data.
Uncertainty
Monte Carlo with correlated inputs, P10/P50/P90, tornado charts and convergence checks.

The PE library →