# Smelter Mass Balance Engine AI Agent Connect

> Calculate mass distributions, metal recoveries, and off-gas compositions for smelting operations.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_IbOMslvZEzQW54zKMPd8e8r0CDQYQCfecHEaWAEY/ai-agent-connect
- **Tags:** smelting, mass-balance, metallurgy, chemical-engineering, recovery

## Description

This MCP server provides a specialized calculation engine for metallurgical smelting operations. It allows AI agents to perform precise mass balance calculations by determining how elements distribute between matte and slag phases using `calculate_matte_slag_distribution`. Users can evaluate process efficiency with `calculate_metal_recovery`, predict environmental impact via `calculate_offgas_composition`, and optimize flux additions using `simulate_flux_optimization` to control slag viscosity and metal loss.

## Tools

### calculate_matte_slag_distribution
Determines the mass and elemental distribution between the matte and slag phases

### calculate_metal_recovery
Evaluates the efficiency of the smelting operation for specific target metals

### calculate_offgas_composition
Predicts the chemical makeup of the gases released during the smelting process

### simulate_flux_optimization
Analyzes how varying flux amounts affects the resulting slag composition and matte recovery

## Prompt Examples

**Prompt:** 
```
Calculate the matte and slag mass for 1000kg of concentrate with 30% copper and 20% iron, using 200kg of silica flux and a copper distribution coefficient of 0.5.
```

**Response:** 
```
The calculation results in a matte mass of 450kg and a slag mass of 750kg, with the copper distributed according to the provided coefficient.
```

**Prompt:** 
```
What is the metal recovery if I have 500kg of concentrate (25% Cu) and the resulting matte is 150kg (40% Cu)?
```

**Response:** 
```
The copper recovery rate is 40.0%.
```

**Prompt:** 
```
Predict the off-gas composition for 500kg of concentrate with 30% sulfur and a 0.8 oxidation rate with 1000kg of air.
```

**Response:** 
```
The off-gas will consist of SO2, N2, and O2, with a total gas mass calculated based on the sulfur oxidation and air input.
```

## Frequently Asked Questions

**How do I calculate the metal recovery rate?**
You can use the `calculate_metal_recovery` tool by providing the initial concentrate mass and composition, along with the final matte mass and composition.

**Can I predict the gas emissions from the furnace?**
Yes, the `calculate_offgas_composition` tool predicts the chemical makeup of gases like SO2 and N2 based on the sulfur oxidation rate and air input.

**How can I optimize the slag composition?**
Use the `simulate_flux_optimization` tool to analyze how different flux masses affect slag viscosity and metal recovery.
