| name | reservoir-production |
| description | Guide AI agents through reservoir management and production optimization. |
Skill: Reservoir & Production Pipeline
Guide AI agents through reservoir management and production optimization.
Purpose
Support reservoir and production engineers in managing hydrocarbon extraction and optimizing well performance.
Roles
- Reservoir Engineer - Reservoir modeling, forecasting, depletion strategy
- Production Engineer - Well performance, artificial lift, well intervention
- Well Intervention Engineer - Workovers, stimulation, completions
Data Types
| Data | Source | Frequency |
|---|
| Oil/gas/water rates | SCADA/Metering | Daily/Real-time |
| Pressure (BHP, THP) | Downhole gauges | Real-time |
| Temperature | Downhole gauges | Real-time |
| Reservoir models | Eclipse, CMG, tNavigator | Updated annually |
| Well tests | Separators/MPFM | Monthly |
Workflow
Phase 1: Reservoir Characterization
- Integrate seismic, logs, core data
- Build geological model
- Upscale to simulation model
- History match to production data
- Validate model
Phase 2: Production Forecasting
- Define development scenarios
- Run reservoir simulation
- Generate production forecast
- Estimate reserves (P10/P50/P90)
- Economic evaluation
Phase 3: Well Optimization
- Analyze well performance (inflow performance, vertical lift)
- Identify production bottlenecks
- Optimize artificial lift (gas lift, ESP, rod pump)
- Plan well interventions
- Monitor results
Phase 4: Reservoir Monitoring
- Track production vs. forecast
- Monitor pressure trends
- Analyze well interference
- Update model as needed
- Optimize depletion strategy
Domain Tasks
These tasks are handled by this skill:
- Decline curve analysis
- Inflow performance relationship (IPR)
- Nodal analysis
- Material balance
- Reserves estimation
Software Tasks
These tasks invoke petropowers:oil-gas-delegation:
- Production allocation system
- Reservoir monitoring dashboard
- Automated well testing workflow
- Production database
Example Workflows
Decline Curve Analysis
import numpy as np
import pandas as pd
from scipy.optimize import curve_fit
def arps_decline(t, qi, di, b):
"""Arps decline equation"""
return qi / (1 + b * di * t)**(1/b)
months = np.arange(1, 61)
actual_rate = 1000 / (1 + 0.1 * months)**(1/0.5)
popt, _ = curve_fit(arps_decline, months, actual_rate, p0=[1000, 0.1, 0.5])
qi, di, b = popt
print(f"Initial rate (qi): {qi:.0f} bpd")
print(f"Initial decline (di): {di:.2f}")
print(f"Arps exponent (b): {b:.2f}")
forecast_months = np.arange(1, 121)
forecast_rate = arps_decline(forecast_months, *popt)
print(f"Forecast at 10 years: {forecast_rate[-1]:.0f} bpd")
Inflow Performance (IPR)
def vogel_ipr(p_res, p_wf, q_test):
"""Vogel IPR equation for undersaturated oil"""
pi = q_test / (p_res - p_wf)
q_max = q_test / (1 - 0.2*(p_wf/p_res) - 0.8*(p_wf/p_res)**2)
def rate_at_pressure(pwf):
return q_max * (1 - 0.2*(pwf/p_res) - 0.8*(pwf/p_res)**2)
return rate_at_pressure
p_res = 3000
p_wf = 2000
q_test = 500
ipr = vogel_ipr(p_res, p_wf, q_test)
for pwf in [2500, 2000, 1500, 1000]:
rate = ipr(pwf)
print(f"Pwf = {pwf} psi: Rate = {rate:.0f} bpd")
Nodal Analysis
def vlp_gas_lift(q, thp, depth, gl_rate, pipe_id=2.992):
"""Simplified vertical lift performance with gas lift"""
liquid_rate = q / 24
glr = gl_rate / liquid_rate if liquid_rate > 0 else 0
gradient = 0.35 - 0.001 * glr
gradient = max(gradient, 0.15)
bhp = thp + gradient * depth
return bhp
thp = 150
depth = 8000
q = 500
print("Gas Lift Rate | BHP Required")
print("-" * 30)
for gl_rate in [0, 1, 2, 3, 4]:
bhp = vlp_gas_lift(q, thp, depth, gl_rate)
print(f"{gl_rate:.0f} MMscfd | {bhp:.0f} psi")
Material Balance
def material_balance_oil(p, N, pi, bob, ce, cf):
"""Simplified material balance for undersaturated oil reservoir"""
expansion = (pi - p) * ce / bob
Np = N * expansion
return Np
N = 100
pi = 4000
p = 3500
bob = 1.2
ce = 15e-6
cf = 3e-6
Np = material_balance_oil(p, N, pi, bob, ce, cf)
print(f"Cumulative production: {Np:.1f} MMbbl")
print(f"Recovery factor: {Np/N*100:.1f}%")
Performance Indicators
| KPI | Units | Target |
|---|
| Uptime | % | >95% |
| Water cut | % | Varies |
| Gas/oil ratio | scf/stb | Varies |
| Drawdown | psi | Optimized |
| Artificial lift efficiency | % | >80% |
Quality Checklist
References
- Craft & Hawkins (1991), "Applied Petroleum Reservoir Engineering"
- Arps (1945), "Analysis of Decline Curves"
- Vogel (1968), "Inflow Performance Relationships"
- SPE Reservoir Evaluation & Engineering