# Compressible Flow Normal Shock Calculator AI Agent Connect

> Compressible Flow Normal Shock Calculator MCP handles the heavy lifting for aerodynamic analysis. It lets your AI client calculate Mach numbers, pressure, temperature, density, and velocity following a normal shock wave. Instead of manual calculations, your agent uses these tools to determine fluid states and property ratios based on gas properties and upstream conditions.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_6PlhYKIn0Y27YqKUNKGxxiA9NM6JSdQHXGhKcW7J/ai-agent-connect
- **Tags:** fluid-dynamics, mach-number, thermodynamics, gas-dynamics, shock-waves

## Description

You can use this MCP to solve complex aerodynamic problems without manual derivation. When you're analyzing gas dynamics, you can hand off the math to your AI client. It calculates the complete downstream thermodynamic and kinematic state of a fluid after a shock wave. If you only need dimensionless changes, it provides property ratios without needing absolute values. You can also check for entropy increases or stagnation pressure losses. It even handles unit conversions between SI and Imperial systems so you don't have to. It's built for engineers who need fast, high-precision answers for normal shock wave analysis.

## Tools

### calculate_shock_state
This tool calculates the full downstream thermodynamic and kinematic state of the fluid after a shock.

### calculate_total_pressure_loss
Use this to find the total pressure loss and the resulting entropy increase across the shock.

### convert_units
This tool converts calculated downstream properties between different unit systems like SI and Imperial.

### get_property_ratios
This tool provides the dimensionless ratios of properties across the shock wave without absolute values.

## Prompt Examples

**Prompt:** 
```
Calculate the downstream state for a shock with Mach 2.0, gamma 1.4, gas constant 287, pressure 101325 Pa, temperature 300 K, and density 1.225 kg/m3.
```

**Response:** 
```
The downstream Mach number is 0.5774, the pressure is 79311.5 Pa, the temperature is 541.2 K, the density is 2.534 kg/m3, and the velocity is 245.6 m/s.
```

**Prompt:** 
```
What is the pressure ratio across a normal shock with an upstream Mach number of 1.5 and gamma of 1.4?
```

**Response:** 
```
The pressure ratio (P2/P1) across the shock is 2.823.
```

**Prompt:** 
```
Find the total pressure loss for a Mach 2.5 shock with gamma 1.4 and an upstream total pressure of 100000 Pa.
```

**Response:** 
```
The total pressure ratio is 0.499, resulting in a total pressure loss of 50100 Pa.
```

## Capabilities

### State Analysis
Your agent calculates Mach number, pressure, temperature, density, and velocity.

### Dimensionless Ratios
Your agent gets property ratios across the shock without needing absolute values.

### Entropy Calculation
It determines the entropy increase and stagnation pressure loss.

### Unit Conversion
The tool switches between SI and Imperial units for any calculated property.

## Use Cases

### Shock Wave Analysis
Determine the state of a fluid after it passes through a normal shock.

### Pressure Loss Assessment
Calculate how much total pressure is lost across a shock wave.

### Dimensionless Scaling
Get property ratios to compare different flow conditions without absolute values.

### Unit Conversion
Convert pressure or temperature results from SI to Imperial units.

## Benefits

- Calculates complete downstream states including velocity and density.
- Provides dimensionless property ratios for quick scaling.
- Determines stagnation pressure loss and entropy increases.
- Handles unit conversions between SI and Imperial systems.

## How It Works

Connect your client to Vinkius and start running aerodynamic calculations immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide the upstream Mach number and gas properties to your agent.
3. Your agent calls the appropriate tool to perform the math.
4. Receive the downstream thermodynamic or kinematic results.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates downstream Mach number, pressure, temperature, density, and velocity following a normal shock.

**Does it support unit conversion?**
Yes, it includes a tool to convert calculated properties between SI and Imperial systems.

**Can I get the ratios of properties?**
Yes, the get_property_ratios tool provides dimensionless ratios without requiring absolute values.

**How does it handle entropy?**
The calculate_total_pressure_loss tool determines the entropy increase and stagnation pressure loss across the shock.

**Which AI clients can use this?**
You can use this with any MCP-compatible client like Claude, Cursor, or Windsurf.

**Can I calculate shock properties for subsonic flow?**
No, a normal shock wave can only occur if the upstream flow is supersonic. The `calculate_shock_state` tool will return an error if the upstream Mach number is not strictly greater than one.

**How do I convert the results to Imperial units?**
You can use the `convert_units` tool to transform any calculated value (such as pressure in Pa or temperature in K) into target units like psi, Rankine, or ft/s.

**What information is provided by the property ratios tool?**
The `get_property_ratios` tool provides the dimensionless ratios for pressure, density, temperature, and Mach number across the shock wave.
