Loading the compressor package 0%
oggagan.ai

Digital twin / Upstream oil and gas

From reservoir
to sales line

A live 3D twin of a small oil and gas field: four well pads, the gathering lines and a compressor station. Every gauge, tank and pumpjack is driven by Modbus registers from field RTUs, with explainable AI watching for trouble.

Scroll to walk the field

01 / The field

Four pads, one station

Each pad is a different way to get fluid out of the ground. Oil, water and gas are separated on the pad; oil and water go to tanks, gas goes down a gathering line to the compressor station.

  • Pad ARod pump2 pumpjacks, oil
  • Pad BPlunger lift2 gas wells
  • Pad CGas lift2 oil wells, truck hauls
  • Pad DFlowing gas5 wells on one pad

Chips show live production, uptime and alarms per pad. Units: BOPD, Mcf/d.

02 / Rod pump

Reading a pumpjack's heartbeat

A pumpjack lifts a string of steel rods and a plunger pump at the bottom of the well. A load cell on the polished rod draws a dyno card every stroke. A healthy pump draws a fat rectangle.

When the well cannot keep up, the pump barrel only half fills and the plunger slams into fluid: fluid pound. The AI reads the card shape, estimates pump fillage and suggests a slower speed.

03 / Gas wells

Plunger lift and liquid loading

Gas wells also make water. If the gas is too slow to carry it, liquid piles up and chokes the well: liquid loading. A plunger cycles shut in, rise, afterflow to sweep it out.

The twin watches casing versus tubing pressure (the load factor) and how fast the plunger arrives, and flags a well that is loading up before it dies.

04 / Tanks and lift gas

Never top out a tank

Pad C's wells are helped by gas lift from the station. Its oil goes to 400 bbl tanks and leaves by truck. The twin fits the fill rate of every tank and says when it will reach the 15 ft high level, so hauls get scheduled instead of shut ins.

05 / Gathering

Follow the gas to the station

Gas arrives through pig receivers into a header and a slug catcher, then into the compressor. The twin balances what each pad meter sends against what the station receives: a gap plus a pressure drop on one line means a leak.

06 / Cause and effect

When a pad trips, the compressor feels it

A high high level on pad D's separator closes the ESD valves: 5.5 MMcf/d disappears from the inlet. Seconds later the compressor is starved and trips on low suction. The twin links the two and tells the operator the machine is fine: fix the pad.

07 / The station

Inside the compressor

The station's heart is a 3 stage reciprocating compressor, modelled bolt by bolt in Blender and wired to 29 live tags.

08 / The machine

Engine, frame, three stages

A gas engine (D-001) turns a 4 throw balanced opposed frame (K-100) at 1200 rpm. Gas is squeezed in three steps, from 3.5 barg to 69 barg, and cooled between stages by the fin fan cooler E-400.

  • Stage 1C-101A/B3.5 to 13 barg
  • Stage 2C-20112.6 to 36 barg
  • Stage 3C-30135.3 to 69 barg

09 / The data

29 tags, one register map

Every pressure, temperature, vibration, speed and level transmitter is a node in the 3D model with the same tag as the P&ID. A Python simulator serves them as Modbus input registers; a bridge polls at 5 Hz and streams JSON over a WebSocket.

PLC registers>Modbus TCP>Python bridge>WebSocket>Three.js

10 / The gas path

Follow the gas

Scrubber, suction bottle, cylinder, discharge bottle, cooler, next scrubber. The glowing lines ride on the real pipe centre lines exported from Blender; speed follows the flow meter and colour follows the line temperature.

cool suction hot discharge

11 / Catch it early

Flag the drift before the alarm

The PLC only trips on fixed limits. The bridge learns a rolling baseline for every tag and flags a deviation as soon as it is statistically real, then fits the trend to estimate the time left until the alarm limit.

Recorded from the simulator: bearing wear on the frame drive end. Anomaly flagged about 10 s before the 10 mm/s vibration alarm.

12 / Your turn

Break it yourself

Fly between the field, each pad and the compressor, click any pad, equipment or transmitter, and inject a field or compressor fault. With the simulator running locally the twin is live; otherwise it replays a recorded session of the field.