# Safety Valve Sizing AI Agent Connect

> Calculate SSSV dimensions, flow coefficients, and pressure drops.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_u331R6Q0Fj8n6zXBFMTisCvKWQZn8Xr6Fj2tfIWz/ai-agent-connect
- **Tags:** sssv, fluid-dynamics, wellbore, pressure-drop, erosion-velocity

## Description

This MCP server provides specialized engineering tools for sizing Subsurface Safety Valves (SSSV). It allows engineers to determine the required `calculate_valve_id` to accommodate specific flow rates, calculate the `calculate_flow_coefficient` for existing valves, and predict energy loss using `calculate_pressure_drop`. It also includes `validate_well_safety_margin` to ensure operating conditions respect erosion velocity and pressure limits.

## Tools

### calculate_flow_coefficient
Calculates the valve's flow coefficient based on existing physical parameters

### calculate_pressure_drop
Predicts the energy loss (pressure reduction) as fluid passes through a valve of a known size

### calculate_valve_id
You can optionally provide an erosion velocity limit.

Determines the required internal diameter of the SSSV to accommodate a specific flow rate without exceeding safety limits

### validate_well_safety_margin
Checks if the current valve configuration meets safety requirements regarding erosion and pressure limits

## Prompt Examples

**Prompt:** 
```
What is the required valve ID for a liquid flow of 500 units at 2000 psi upstream?
```

**Response:** 
```
The required minimum internal diameter is 2.45 inches with an expected velocity of 12.3 ft/s.
```

**Prompt:** 
```
Calculate the pressure drop for a 3-inch valve with a flow rate of 1000 and upstream pressure of 3000.
```

**Response:** 
```
The predicted pressure drop is 150 psi, resulting in a downstream pressure of 2850 psi.
```

**Prompt:** 
```
Is my current valve configuration safe for a flow rate of 800 and an erosion limit of 50?
```

**Response:** 
```
Yes, the configuration is safe with a safety margin of 15.2.
```

## Frequently Asked Questions

**How do I determine the correct valve size?**
You can use the `calculate_valve_id` tool by providing the flow rate, fluid type, and upstream pressure.

**Can I check for erosion risks?**
Yes, the `validate_well_safety_margin` tool checks if the fluid velocity stays below the specified erosion velocity limit.

**Does it support gas flow calculations?**
Yes, all tools support both gas and liquid flow types, accounting for gas compressibility where necessary.
