# Spill Volume Estimation Engine AI Agent Connect

> Calculates chemical spill volume, spread area, and containment requirements.

## Overview
- **Category:** fluid-dynamics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_WspLVceIZC5spRQNsMmcWUkbjPSi9jVPcCzx60O8/ai-agent-connect
- **Tags:** chemical-spill, containment, viscosity, safety-planning, fluid-dynamics

## Description

This MCP server provides specialized fluid dynamics tools for environmental safety and containment planning. It allows AI agents to model chemical breach events by calculating the total spilled volume using `calculate_spill_volume`, predicting the geographic footprint via `estimate_spread_area`, and determining necessary secondary containment capacity with `determine_containment_needs`. The engine also accounts for temperature-dependent viscosity changes using `get_viscosity_at_temperature` to ensure accurate modeling of liquid flow and spread.

## Tools

### calculate_spill_volume
Determine the total quantity of chemical lost during the breach event

### determine_containment_needs
Calculate the required capacity of secondary containment structures

### estimate_spread_area
Predict the geographic footprint of the spilled chemical on a flat surface

### get_viscosity_at_temperature
Adjust the fluid's viscosity based on temperature changes

## Prompt Examples

**Prompt:** 
```
Calculate the spilled volume for a tank with a 5m radius, 10m liquid level, a 0.05m² breach, lasting 3600 seconds, with a viscosity of 1.0 and temperature of 20°C.
```

**Response:** 
```
The total spilled volume is 125.45 cubic meters with an initial flow rate of 0.035 cubic meters per second.
```

**Prompt:** 
```
What is the required containment volume for a 50 cubic meter spill with a 1.2 safety factor in a controlled facility?
```

**Response:** 
```
The required containment volume is 60.0 cubic meters with a recommended dike height of 1.2 meters.
```

**Prompt:** 
```
Predict the spread area for a 10 cubic meter spill of a liquid with 0.8 viscosity at 25°C.
```

**Response:** 
```
The spill will cover a total surface area of 45.2 square meters with a maximum radius of 3.79 meters.
```

## Frequently Asked Questions

**How does temperature affect the spill calculations?**
Temperature changes the fluid's viscosity. You can use `get_viscosity_at_temperature` to find the adjusted viscosity, which then influences the flow rate in `calculate_spill_volume` and the footprint in `estimate_spread_area`.

**Can I calculate the required dike height for a spill?**
Yes, the `determine_containment_needs` tool provides both the required containment volume and the recommended dike height based on the spilled volume and safety factors.

**What inputs are needed to estimate the spread area?**
To use `estimate_spread_area`, you need the total spilled volume, the fluid's viscosity, and the current temperature.
