# Orifice Flow & Discharge Calculator AI Agent Connect

> Orifice Flow & Discharge Calculator MCP handles complex fluid dynamics math for your AI agent. It calculates mass and volumetric flow, velocity, and Reynolds numbers for both liquids and gases. Your agent can account for sonic choking in compressible fluids and verify physical units before running any calculations.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_MT3kn8d7iJbMRM2g4j06ewWBjPGBxfHNVI3EkKZy/ai-agent-connect
- **Tags:** fluid-dynamics, orifice-plate, flow-rate, compressible-flow, engineering-tools

## Description

You can use this MCP to perform professional-grade fluid dynamics calculations directly within your AI client. Instead of manually solving for flow parameters, you give your agent the upstream and downstream pressures, orifice diameter, and fluid properties. The MCP handles the heavy lifting for both incompressible liquids and compressible gases. It specifically accounts for choking, which is critical when dealing with gas flow through an orifice. You can also ask your agent to check the flow regime to see if the state is transitional or fully developed. To prevent calculation errors, the MCP includes a utility to check if your provided physical units are valid and compatible before the math starts. It turns your agent into a specialized engineering tool for orifice plate metering and flow measurement analysis.

## Tools

### calculate_gas_flow
Calculates flow parameters for compressible gases. This tool accounts for sonic choking during the calculation process.

### calculate_liquid_flow
Handles flow parameter calculations for incompressible liquids.

### get_flow_regime_summary
Provides a qualitative assessment of the current flow state based on the calculated parameters.

### validate_units
Checks if your input strings contain valid and compatible physical units like bar or mm.

## Prompt Examples

**Prompt:** 
```
Calculate the liquid flow for an orifice with 100,000 Pa upstream pressure, 50,000 Pa downstream pressure, 0.05 m diameter, 0.62 discharge coefficient, 1000 kg/m3 density, and 0.001 Pa·s viscosity.
```

**Response:** 
```
The mass flow rate is 1.57 kg/s and the volumetric flow rate is 0.00157 m3/s.
```

**Prompt:** 
```
What is the flow regime for a Reynolds number of 2500 and no choking?
```

**Response:** 
```
The flow is in the Transitional regime.
```

**Prompt:** 
```
Check if these units are valid: ['10 bar', '50 mm', '298 K']
```

**Response:** 
```
The units are valid.
```

## Capabilities

### Gas Flow Modeling
Your agent uses this to calculate parameters for compressible fluids while accounting for choking.

### Liquid Flow Modeling
Your agent uses this to determine flow for incompressible fluids.

### Flow Regime Analysis
Your agent uses this to identify the qualitative state of the flow.

### Unit Validation
Your agent uses this to verify that input units are compatible before performing math.

## Use Cases

### Orifice Plate Sizing
Use the agent to calculate necessary diameters and discharge coefficients for a specific pressure drop.

### Gas Flow Verification
Check if a gas flow is reaching sonic choking limits in a metering setup.

### Liquid Metering Analysis
Determine mass and volumetric flow rates for incompressible liquid systems.

### Data Integrity Checks
Run unit validation on sensor data before feeding it into larger engineering models.

## Benefits

- Reduces manual calculation errors by automating fluid dynamics math.
- Handles compressible gas choking logic automatically.
- Prevents invalid inputs through built-in unit validation.
- Provides qualitative flow state summaries instantly.

## How It Works

Connect the MCP to your client and start asking for calculations.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide the fluid properties and pressure data to your agent.
3. The agent uses validate_units to ensure the data is correct.
4. The agent runs the specific liquid or gas flow tool.
5. The agent returns the calculated flow rates and regime summary.

## Frequently Asked Questions

**How does this MCP handle gas flow?**
It uses the calculate_gas_flow tool, which specifically accounts for choking and sonic limitations in compressible fluids.

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

**Does it support unit checking?**
Yes, the validate_units tool allows your agent to verify that physical units are valid and compatible before running calculations.

**What kind of flow data can it provide?**
It provides mass flow, volumetric flow, velocity, and Reynolds number, along with a qualitative flow regime summary.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You just connect your client and start using the tools.

**How do I calculate flow for a gas?**
Use the `calculate_gas_flow` tool. You will need to provide the upstream and downstream pressures, orifice diameter, discharge coefficient, gas temperature, gas constant, isentropic exponent, and fluid density.

**What is choked flow?**
Choked flow occurs in compressible fluids when the pressure ratio reaches a critical threshold, causing the velocity at the orifice to reach the speed of sound. The `calculate_gas_flow` tool automatically detects this state.

**Can I verify my units before calculating?**
Yes, you can use the `validate_units` tool to check if your measurement strings (like '10 bar' or '50 mm') use supported physical units.
