# Liquid-Liquid Equilibrium Engine AI Agent Connect

> Calculates phase compositions, distribution coefficients, and tie lines for immiscible liquid systems.

## Overview
- **Category:** scientific-computing
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ty3Ni3ovvPiwuEvqC4MfQHSuu3mmvKVQuEalfGlq/ai-agent-connect
- **Tags:** lle, equilibrium, thermodynamics, chemistry, phase-behavior

## Description

This MCP server provides specialized thermodynamic tools for analyzing liquid-liquid equilibrium (LLE) in multi-component systems. It allows AI agents to determine phase compositions, calculate distribution coefficients, and generate tie lines for both Type I and Type II phase behaviors. Use `calculate_phase_compositions` to find component concentrations in separated phases, `calculate_distribution_coefficients` to find partitioning preferences, `generate_tie_lines` to map equilibrium relationships, and `analyze_phase_behavior` to identify miscibility gaps.

## Tools

### analyze_phase_behavior
Classifies the system behavior and identifies the presence of a miscibility gap

### calculate_distribution_coefficients
Calculates the partitioning preference of each component between the two phases

### calculate_phase_compositions
Determines the concentration of each component in each separated liquid phase

### generate_tie_lines
Identifies the equilibrium relationship between phases across a range of compositions for a specific temperature

## Prompt Examples

**Prompt:** 
```
What are the phase compositions for a mixture of Water (0.6) and Benzene (0.4) at 298K using the Standard Model?
```

**Response:** 
```
Phase 1 (Aqueous): Water 0.95, Benzene 0.05. Phase 2 (Organic): Water 0.02, Benzene 0.98.
```

**Prompt:** 
```
Is this system a single phase at 350K with a composition of Water 0.5 and Benzene 0.5 using the Advanced Non-Ideal Model?
```

**Response:** 
```
No, the system exhibits a miscibility gap with a width of 0.15.
```

**Prompt:** 
```
What is the distribution coefficient for Benzene between the two phases if Phase 1 is 0.1 Benzene and Phase 2 is 0.8 Benzene?
```

**Response:** 
```
The distribution coefficient for Benzene is 0.125.
```

## Frequently Asked Questions

**What kind of phase behaviors can this engine model?**
The engine supports both Type I and Type II phase behavior models to account for different solubility patterns in immiscible systems.

**How do I find the concentration of components in each phase?**
You can use the `calculate_phase_compositions` tool, providing the system composition, temperature, and the chosen thermodynamic model.

**Can I calculate the partitioning preference of a component?**
Yes, use the `calculate_distribution_coefficients` tool by providing the compositions of the two phases.
