# Relative Permeability Engine AI Agent Connect

> Generates multi-phase relative permeability curves using Corey and empirical models.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_a5W7Qfxcpfzw3tchtjAZRYJn2w6O09ubap5p4mwz/ai-agent-connect
- **Tags:** reservoir, permeability, petroleum, corey-model, fluid-flow

## Description

This MCP server provides specialized tools for reservoir engineering. It allows AI agents to calculate multi-phase flow behavior using the `get_corey_curves` tool for fundamental two-phase modeling, or `get_three_phase_permeability` for simultaneous oil, water, and gas flow. It also supports `get_hysteresis_adjustment` to account for saturation history and `get_empirical_correlation` for established rock-specific relationships.

## Tools

### get_empirical_correlation
Provides permeability values based on established empirical relationships

### get_corey_curves
Generates fundamental two-phase relative permeability curves based on the Corey model

### get_hysteresis_adjustment
Modifies existing permeability curves to account for the direction of saturation change

### get_three_phase_permeability
Calculates the simultaneous flow capabilities for oil, water, and gas

## Prompt Examples

**Prompt:** 
```
Generate Corey curves for a water-wet sandstone with 0.2 irreducible water saturation and 0.3 residual oil saturation.
```

**Response:** 
```
The generated curves show water permeability increasing from 0.0 at 0.2 saturation to its maximum, while oil permeability decreases from its maximum at 0.2 saturation towards 0.0 at 0.7 saturation.
```

**Prompt:** 
```
What are the permeability values for water, oil, and gas when water saturation is 0.4, oil is 0.5, and gas is 0.1 in a carbonate rock?
```

**Response:** 
```
For the specified saturations in carbonate rock, the effective permeabilities are krw: 0.15, kro: 0.25, and krg: 0.08.
```

**Prompt:** 
```
Apply a hysteresis adjustment for imbibition to a base curve with a trapping coefficient of 0.1.
```

**Response:** 
```
The adjusted curve shows a reduction in non-wetting phase permeability due to the applied trapping coefficient.
```

## Frequently Asked Questions

**How do I calculate curves for a water-wet sandstone?**
You can use the `get_corey_curves` tool by specifying 'sandstone' as the rockType and 'water-wet' as the wettability.

**Can I account for gas trapping during imbibition?**
Yes, use the `get_hysteresis_adjustment` tool with the saturationHistory set to 'imbibition' to apply trapping effects.

**Does the engine support three-phase flow calculations?**
Yes, the `get_three_phase_permeability` tool calculates simultaneous flow for oil, water, and gas phases.
