# Capillary Pressure Model AI Agent Connect

> Capillary Pressure Model MCP gives your agent the mathematical tools needed for reservoir engineering and soil science. It handles Brooks-Corey model calculations, determines threshold pressures, and estimates transition zone thickness. You can also normalize data across different porous media using Leverett J scaling, while the MCP accounts for hysteresis in both drainage and imbibition processes.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_PGVdDS6XCWy8WN5N56gClUinWUF04HnjcJ1FA5tb/ai-agent-connect
- **Tags:** reservoir-engineering, capillary-pressure, porous-media, fluid-dynamics, geoscience

## Description

You can now bring specialized fluid dynamics modeling into your existing AI workflows. This MCP provides the specific mathematical frameworks required for analyzing porous media, whether you are working in petroleum reservoir engineering or soil science. Instead of manually running scripts, you can ask your AI client to generate capillary pressure curves or calculate the thickness of fluid transition zones based on your specific parameters. 

The tool handles the heavy lifting of the Brooks-Corey model and manages the complexities of hysteresis by accounting for both drainage and imbibition. If you need to compare data from different media, you can use the scaling tools to normalize your results. It's a direct way to turn raw pore size distributions and interfacial tension data into actionable engineering insights without leaving your chat interface.

## Tools

### estimate_transition_zone_thickness
This tool calculates the thickness of fluid transition zones. It uses saturation, pressure, and physical properties like permeability and porosity to provide an estimate.

### calculate_capillary_pressure_curve
This tool generates capillary pressure curves. It uses the Brooks-Corey model to model fluid behavior in drainage or imbibition modes.

### get_threshold_pressure
This tool determines the threshold pressure for fluid entry. It calculates this value based on provided pore size distributions and interfacial tension.

### scale_via_leverett_j
This tool performs data normalization. It uses Leverett J scaling to allow you to compare capillary pressure data across different porous media.

## Prompt Examples

**Prompt:** 
```
What is the threshold pressure for a medium with this pore size distribution: [{"diameter": 0.005, "volumeFraction": 0.2}, {"diameter": 0.01, "volumeFraction": 0.8}] and an interfacial tension of 0.03?
```

**Response:** 
```
The threshold pressure for the provided pore size distribution and interfacial tension is 150.5 kPa.
```

**Prompt:** 
```
Calculate the transition zone thickness given a pressure curve with saturations [0.2, 0.5, 0.8] and pressures [10, 50, 100], permeability of 150 mD, porosity of 0.2, gravity of 9.8, and a density difference of 500 kg/m³.
```

**Response:** 
```
The estimated transition zone thickness is 1.24 meters.
```

**Prompt:** 
```
Generate a capillary pressure curve for a water-wet medium in drainage mode.
```

**Response:** 
```
The generated drainage curve shows a gradual pressure increase starting from a threshold of 25.0 kPa.
```

## Capabilities

### Brooks-Corey Modeling
Your agent uses this to generate accurate capillary pressure curves.

### Hysteresis Accounting
The MCP handles both drainage and imbibition processes for realistic modeling.

### Data Normalization
Your agent can scale data to compare different porous media using Leverett J.

### Transition Zone Estimation
The tool calculates the thickness of fluid transition zones using physical parameters.

### Threshold Pressure Calculation
Your agent determines the pressure required for fluid entry into a medium.

## Use Cases

### Reservoir Characterization
Calculate the thickness of transition zones to better understand fluid distribution in a reservoir.

### Comparative Media Analysis
Use Leverett J scaling to compare the capillary properties of two different rock samples.

### Fluid Entry Modeling
Determine the exact threshold pressure needed for a specific fluid to enter a porous medium.

### Saturation Curve Generation
Generate drainage or imbibition curves to visualize how pressure changes with saturation.

## Benefits

- Eliminates manual Brooks-Corey calculations by running them through your AI client.
- Provides a way to normalize disparate datasets using Leverett J scaling.
- Accounts for hysteresis by modeling both drainage and imbibition.
- Converts raw pore size data into threshold pressure values instantly.

## How It Works

Connect your client to Vinkius and start running calculations immediately.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your physical data, such as pore size distribution or permeability, to your AI client.
3. The agent invokes the specific tool needed for your calculation.
4. The MCP processes the math and returns the result to your chat interface.

## Frequently Asked Questions

**What models does this MCP use for calculations?**
The MCP uses the Brooks-Corey model to generate capillary pressure curves.

**Can I compare different types of porous media?**
Yes, you can use the scale_via_leverett_j tool to normalize data for comparison.

**Does the model account for hysteresis?**
Yes, the MCP handles both drainage and imbibition processes to account for hysteresis.

**What kind of clients can I use with this MCP?**
You can use any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**What data do I need to calculate transition zone thickness?**
You typically need the pressure curve, saturation levels, permeability, porosity, gravity, and the density difference.

**How do I calculate the entry pressure for a new medium?**
You can use the `get_threshold_pressure` tool by providing the pore size distribution, interfacial tension, and wettability.

**Can I model both drainage and imbibition?**
Yes, the `calculate_capillary_pressure_curve` tool supports both 'drainage' and 'imbibition' modes to account for hysteresis.

**How can I compare different reservoir units?**
Use the `scale_via_leverett_j` tool to normalize your capillary pressure curves into a dimensionless form.
