# Combustor Residence Time Calculator MCP. AI Agent Connect

> Combustor Residence Time Calculator MCP handles the heavy lifting for combustion chamber thermodynamics. It lets your AI client calculate gas density, volumetric flow, residence time, and fuel-air ratios using the Ideal Gas Law with compressibility factors. You can choose between inlet, exit, or average density conventions to handle pressure and temperature gradients accurately.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_DnS9fPyD8KYl47eLINywLstzsBx3EgaNyhY3360R/ai-agent-connect
- **Tags:** combustion, residence-time, gas-density, mass-flow, thermodynamics

## Description

This MCP gives your AI agent the mathematical backbone needed for combustion chamber analysis. Instead of manually calculating gas properties, you can feed your agent thermodynamic state variables to get immediate results for residence time and volumetric loading. It uses a modified Ideal Gas Law that accounts for compressibility, making it useful for real-world gas behavior. You can switch between density conventions, such as inlet, exit, or average, to account for how pressure and temperature change throughout the chamber. This is built for engineers who need to verify if a combustor is operating within its physical limits or if the gas flow is meeting specific design requirements. Your agent can check if inputs are physically plausible or determine if the current volumetric loading exceeds your target limits.

## Tools

### calculate_combustor_metrics
This tool performs core thermodynamic calculations to find residence time and loading. You can provide exit pressure and temperature if you are using the exit or average density conventions.

### calculate_loading_efficiency
This tool determines how effectively the combustor volume is being used compared to your specific target loading limit.

### get_density_convention_definitions
This tool provides descriptions and details for the different density calculation methods available.

### validate_gas_properties
This tool checks your thermodynamic inputs to ensure they are physically plausible before you run further calculations.

## Prompt Examples

**Prompt:** 
```
Calculate the residence time for a combustor with a volume of 0.5 m3, total mass flow of 2.0 kg/s, fuel mass flow of 0.1 kg/s, pressure of 101325 Pa, temperature of 1200 K, gas constant of 287 J/(kg·K), compressibility factor of 1.0, and using the inlet convention.
```

**Response:** 
```
The calculated gas density is 0.305 kg/m3, the volumetric flow rate is 6.557 m3/s, the residence time is 0.076 seconds, the fuel-air ratio is 0.05, and the volumetric loading is 4.0 kg/m3.
```

**Prompt:** 
```
What are the available density calculation methods?
```

**Response:** 
```
The available density calculation methods are: inlet (uses properties at the entrance), exit (uses properties at the exit), and average (uses the mean of inlet and exit conditions).
```

**Prompt:** 
```
If my current volumetric loading is 5.0 kg/m3 and my target limit is 4.5 kg/m3, is the combustor overloaded?
```

**Response:** 
```
Yes, the combustor is overloaded with a utilization of 111.11%.
```

## Capabilities

### Thermodynamic Modeling
Your agent uses the Ideal Gas Law with compressibility factors to model gas behavior.

### Density Convention Switching
Your agent can select between inlet, exit, or average density methods based on your chamber data.

### Loading Assessment
Your agent compares current volumetric loading against target limits to detect overloads.

### Input Validation
Your agent checks thermodynamic variables to ensure they make physical sense.

## Use Cases

### Residence Time Verification
An engineer provides mass flow and volume to confirm if the gas stays in the chamber long enough for complete combustion.

### Loading Limit Checks
A designer checks if a specific volumetric loading exceeds the safety or efficiency limits of a combustor.

### Gradient Analysis
A user calculates density using the average convention to account for changes between the inlet and the exit.

### Data Sanity Checks
An analyst runs a validation check on new sensor data to ensure the thermodynamic inputs are physically possible.

## Benefits

- Reduces manual math errors by using a modified Ideal Gas Law for gas density.
- Accounts for pressure and temperature gradients through multiple density conventions.
- Automates the comparison between current loading and target limits.
- Prevents invalid calculations by validating gas properties first.

## How It Works

Connect your client to Vinkius and start running calculations immediately.

1. Connect your MCP-compatible client to the Vinkius hosted MCP.
2. Provide thermodynamic variables like pressure, temperature, and mass flow to your agent.
3. Your agent uses the specific tools to calculate metrics or validate inputs.
4. Receive precise results for residence time, density, or loading efficiency.

## Frequently Asked Questions

**How does this MCP handle gas density?**
It offers three different density calculation methods: inlet, exit, or average. This allows you to account for pressure and temperature changes throughout the chamber.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client including Claude, Cursor, and Windsurf.

**What math is used for the calculations?**
The MCP uses the Ideal Gas Law modified by a compressibility factor to determine gas density and other metrics.

**How do I know if my combustor is overloaded?**
You can use the loading efficiency tool to compare your current volumetric loading against a target limit.

**Do I need to host this myself?**
No, Vinkius hosts and manages the MCP for you. You connect your client and it is ready to use.

**What is the purpose of the `calculate_combustor_metrics` tool?**
The `calculate_combustor_metrics` tool performs the primary thermodynamic calculations to determine gas density, volumetric flow, residence time, and fuel-air ratio based on the provided combustor parameters.

**How do I handle density gradients in the combustor?**
You can use the `get_density_convention_definitions` tool to see available methods, then select the appropriate convention (inlet, exit, or average) within the `calculate_combustor_metrics` tool to account for temperature and pressure changes.

**Can I check if my input values are physically valid?**
Yes, use the `validate_gas_properties` tool to check if your pressure, temperature, and gas constant values are physically plausible before performing full calculations.
