# Pressure Relief Valve Sizing AI Agent Connect

> Calculate required orifice area and rated capacity for PSVs using API 520 standards.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_4e5hKbqQH7MqVVVR2kCxoZAAN5l16QuKKwGZohu4/ai-agent-connect
- **Tags:** api-520, psv, pressure-relief, fluid-dynamics, mechanical-engineering

## Description

This MCP server provides specialized engineering tools for sizing Pressure Safety Valves (PSV) according to API 520 standards. It handles gas, liquid, and two-phase flow scenarios, accounting for critical factors like backpressure and fluid properties. Use `get_relief_area_requirement` to find the minimum orifice size, `analyze_backpressure_impact` to evaluate capacity reduction, `validate_fluid_properties` for physical consistency checks, and `get_installation_constraints` for physical setup requirements.

## Tools

### get_installation_constraints
Provides physical and installation requirements based on the calculated orifice size and fluid type

### get_relief_area_requirement
Calculates the minimum required orifice area for a specific relief scenario

### validate_fluid_properties
Ensures that the provided fluid properties are physically consistent for the chosen phase

### analyze_backpressure_impact
Determines if the existing backpressure will prevent the valve from meeting its rated capacity

## Prompt Examples

**Prompt:** 
```
Calculate the required orifice area for a gas relief scenario with a set pressure of 150 psi and 10% overpressure.
```

**Response:** 
```
The required orifice area for the specified gas relief scenario is 1.25 square inches with a rated capacity of 4500 lb/hr.
```

**Prompt:** 
```
Check if a 2.0 sq in orifice valve is sufficient given a set pressure of 200 psi and 50 psi backpressure for a liquid.
```

**Response:** 
```
The valve is effective, and the capacity reduction factor is 0.85.
```

**Prompt:** 
```
What are the installation requirements for a valve with a 0.5 sq in orifice for a two-phase fluid?
```

**Response:** 
```
The minimum pipe size required is 2 inches, with standard carbon steel material compatibility and a vertical mounting type.
```

## Frequently Asked Questions

**Which standards does this tool follow?**
The sizing calculations and logic are based on the API 520 standards for pressure-relieving devices.

**Can I calculate sizing for two-phase flow?**
Yes, the `get_relief_area_requirement` tool supports gas, liquid, and two-phase flow scenarios.

**How does backpressure affect my results?**
Backpressure can reduce the effective pressure differential. You can use `analyze_backpressure_impact` to determine if the existing backpressure will prevent the valve from meeting its rated capacity.
