# Well Inflow Performance Relationship (IPR) Engine AI Agent Connect

> Calculate oil well inflow performance, AOF, and optimal production rates using Vogel and Fetkovich models.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_YhndZOZsin1EuXa79Xo8VLR1UcBVIFbyxGK4IS1V/ai-agent-connect
- **Tags:** reservoir-engineering, oil-well, ipr, vogel-model, production-optimization

## Description

This MCP server provides specialized engineering calculations for modeling the Inflow Performance Relationship (IPR) of oil wells. It allows AI agents to determine potential flow rates based on reservoir pressure, bubble point pressure, and productivity index. Using tools like `calculate_ipr_parameters` and `get_maximum_flow_capacity`, agents can identify if a well is in a single-phase or two-phase regime and calculate the Absolute Open Flow (AOF). The engine also includes `optimize_producing_rate` to find the best production balance and `analyze_gas_drive_impact` to evaluate how gas liberation affects flow performance.

## Tools

### get_maximum_flow_capacity
Calculates the theoretical maximum flow rate (AOF)

### calculate_ipr_parameters
Determines the core inflow performance metrics for a well

### analyze_gas_drive_impact
Evaluates how solution gas drive affects the inflow performance as pressure declines

### optimize_producing_rate
Identifies the optimal flow rate to balance production against pressure drawdown constraints

## Prompt Examples

**Prompt:** 
```
Calculate the IPR parameters for a well with 3000 psi reservoir pressure, 2500 psi bubble point, 1.5 PI, and 2000 psi flowing bottomhole pressure.
```

**Response:** 
```
The current flow rate is 1500 STB/d and the well is operating in a Two-Phase regime.
```

**Prompt:** 
```
What is the maximum flow capacity for a reservoir with 4000 psi pressure, 3000 psi bubble point, and 2.0 PI?
```

**Response:** 
```
The Absolute Open Flow (AOF) for this well is 8000 STB/d.
```

**Prompt:** 
```
Find the optimal rate for a well with 3500 psi reservoir pressure, 2800 psi bubble point, 1.2 PI, and a minimum allowed pressure of 2200 psi.
```

**Response:** 
```
The optimal rate is 1560 STB/d at a bottomhole pressure of 2200 psi, with a safety margin of 600 psi before two-phase flow begins.
```

## Frequently Asked Questions

**How does the tool handle two-phase flow?**
When the flowing bottomhole pressure drops below the bubble point pressure, the `calculate_ipr_parameters` tool automatically switches to Vogel's model to account for gas evolution.

**What is Absolute Open Flow (AOF)?**
AOF is the theoretical maximum flow rate achievable if the bottomhole pressure were reduced to zero. You can find this using `get_maximum_flow_capacity`.

**Can I optimize my production rate?**
Yes, the `optimize_producing_rate` tool identifies the highest achievable rate without letting the bottomhole pressure drop below your specified minimum safety threshold.
