# McCabe-Thiele Method AI Agent Connect

> Perform binary distillation analysis including stage counts and feed locations.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_S2r7XAnFYyRti2VFKgpSw6C5YOuqYCWhoKcEiSwt/ai-agent-connect
- **Tags:** distillation, chemical-engineering, mccabe-thiele, equilibrium, separation

## Description

This MCP server provides tools for binary distillation analysis using the McCabe-Thiele graphical method. It allows users to calculate the total number of theoretical stages, determine the optimal feed stage location, and find the minimum reflux ratio required for a specific separation. By using tools like `calculate_stages` and `get_minimum_reflux`, engineers can model distillation columns based on provided equilibrium data and feed conditions.

## Tools

### analyze_feed_impact
Evaluates how changing the feed's thermal condition affects the number of stages and the feed location

### validate_equilibrium_data
Ensures the provided equilibrium data is mathematically sound and suitable for distillation calculations

### calculate_stages
Determines the total number of theoretical stages required to meet product purity specifications

### get_minimum_reflux
Calculates the minimum reflux ratio required to achieve the specified separation

## Prompt Examples

**Prompt:** 
```
Calculate the stages for a benzene-toluene separation with feed composition 0.5, distillate 0.95, bottoms 0.05, reflux 2.0, and q-value 1.0 using this equilibrium data: [{"x":0, "y":0}, {"x":0.5, "y":0.6}, {"x":1, "y":1}]
```

**Response:** 
```
The distillation analysis requires 6 theoretical stages, with the feed stage located at stage 3.
```

**Prompt:** 
```
What is the minimum reflux ratio for a separation with distillate 0.9 and bottoms 0.1 using the provided equilibrium data?
```

**Response:** 
```
The minimum reflux ratio required for this separation is 1.45.
```

**Prompt:** 
```
Check if my equilibrium data is valid: [{"x":0, "y":0}, {"x":0.5, "y":0.4}, {"x":1, "y":1}]
```

**Response:** 
```
The equilibrium data is valid and monotonic.
```

## Frequently Asked Questions

**What can I calculate with this tool?**
You can use `calculate_stages` to find the total theoretical stages and feed stage, or `get_minimum_reflux` to find the minimum reflux ratio for your separation.

**How do I provide equilibrium data?**
Provide the equilibrium data as a JSON array of objects containing x and y coordinates representing the equilibrium curve.

**Can I analyze the impact of different feed conditions?**
Yes, the `analyze_feed_impact` tool allows you to test a range of q-values to see how the thermal state of the feed affects the column design.
