# Phugoid Mode Calculator for flight dynamics. AI Agent Connect

> Phugoid Mode Calculator gives your AI agent the mathematical tools needed to analyze aircraft longitudinal stability. It handles everything from quick Phugoid approximations to full linearized state-space models. You can validate trim conditions or compare model accuracy to ensure your flight parameters are physically sound before running complex simulations.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_IKvlAoLA2NXpsB0nB32yt2ApxLTtpDFyKFI08nVS/ai-agent-connect
- **Tags:** flight-dynamics, aerodynamics, phugoid, stability, aircraft

## Description

If you are working on aircraft stability and control, you know that Phugoid oscillations can be a headache to model accurately. This MCP brings specialized flight dynamics math directly into your agent environment. Instead of manually calculating frequency or damping ratios, you can ask your agent to run the numbers for you. 

You can use simplified approximations for a fast look at oscillation characteristics or switch to the full linearized longitudinal state-space model when you need high-fidelity results. It also helps you avoid wasted computation by checking if your flight parameters actually represent a stable trim state before you dive into deeper analysis. If you need to know how much accuracy you're losing by using a simplified model, the comparison tool gives you a clear divergence score. It turns your AI client into a specialized engineering partner for longitudinal motion analysis.

## Tools

### compare_modes
This tool evaluates the accuracy gap between approximation results and the full model results.

### validate_trim_condition
This tool checks if your provided flight parameters represent a physically stable trim state.

### calculate_phugoid_approximation
This tool provides a quick estimate of Phugoid mode characteristics using a simplified mathematical approximation.

### calculate_phugoid_full_model
This tool performs high-fidelity analysis using the complete linearized longitudinal state-space model.

## Prompt Examples

**Prompt:** 
```
Give me a quick estimate of the Phugoid mode for an aircraft with a trim speed of 150 m/s, gravity of 9.81 m/s², and a drag coefficient of 0.02.
```

**Response:** 
```
The estimated Phugoid natural frequency is 0.045 rad/s with a damping ratio of 0.05 and a period of 139.6 seconds.
```

**Prompt:** 
```
Is a trim speed of 100 m/s, mass of 2000 kg, gravity of 9.81 m/s², and lift coefficient of 0.5 a stable trim condition?
```

**Response:** 
```
Yes, the lift force and weight force are balanced, indicating a stable trim state.
```

**Prompt:** 
```
Compare the approximation and full model results for my current flight data.
```

**Response:** 
```
The divergence score is 0.02, indicating that the approximation is highly accurate for this specific flight condition.
```

## Capabilities

### Oscillation Modeling
Your agent calculates natural frequency, damping ratios, and periods for Phugoid modes.

### Stability Validation
Your agent checks if flight parameters meet the requirements for a stable trim state.

### Model Comparison
Your agent quantifies the error between simplified and full state-space models.

### High-Fidelity Analysis
The tool uses complete linearized longitudinal state-space math for precise results.

## Use Cases

### Preliminary Design
Get fast Phugoid estimates for new aircraft configurations using approximations.

### Model Verification
Compare simplified models against full state-space models to check accuracy.

### Stability Checking
Confirm that a set of flight parameters results in a stable trim state.

### Research Analysis
Use high-fidelity longitudinal models to study specific oscillation characteristics.

## Benefits

- Reduces manual math errors by using standardized linearized models.
- Speeds up preliminary design phases with quick approximation tools.
- Ensures physical validity of flight data through trim state validation.
- Provides a direct way to measure model divergence.

## How It Works

Connect the MCP to your client and start running flight dynamics math immediately.

1. Connect your AI client to the Phugoid Mode Calculator via Vinkius.
2. Provide flight parameters like trim speed, mass, or lift coefficients.
3. Your agent selects the appropriate tool, such as the full model or approximation.
4. The MCP executes the math and returns the oscillation or stability data.

## Frequently Asked Questions

**What kind of models does this MCP use?**
It uses both simplified approximations and complete linearized longitudinal state-space models for Phugoid analysis.

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

**How do I know if my flight data is valid?**
You can use the validate_trim_condition tool to check if your parameters represent a stable trim state.

**What is the purpose of the compare_modes tool?**
It calculates the divergence between the simplified approximation and the full mathematical model.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect.

**What is the difference between the approximation and the full model?**
The approximation assumes a constant angle of attack for a quick estimate, while the full model uses the complete linearized longitudinal state-space for higher accuracy.

**How can I check if my flight parameters are valid?**
You can use the `validate_trim_condition` tool to check if lift and weight are sufficiently balanced for a stable trim state.

**What inputs are required for the full model calculation?**
The `calculate_phugoid_full_model` tool requires trim speed, gravity, mass, inertia, and a JSON string of stability derivatives.
