# Harmonic Balance Limit-Cycle Calculator AI Agent Connect

> Harmonic Balance Limit-Cycle Calculator identifies candidate limit-cycle oscillations by solving harmonic balance equations. It matches a system's frequency response against the inverse of its nonlinearity's describing function to pinpoint amplitude and frequency pairs. Use it within your AI client to evaluate solution stability and estimate linear responses.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NBlizqdkeRyhRl6bCoKNuibuki9wgf2D1qyD50t0/ai-agent-connect
- **Tags:** nonlinear-dynamics, harmonic-balance, limit-cycle, frequency-response, control-theory

## Description

You can use this MCP to solve complex nonlinear dynamics problems without manual root-finding. It works by finding roots of the harmonic balance equation, effectively matching the frequency response of your system with the inverse of its nonlinearity's describing function. This allows you to pinpoint exactly where a system might enter a limit-cycle oscillation.

Instead of guessing where oscillations occur, you can use the tool to locate specific amplitude and frequency pairs. Once you have candidates, you can check how solid those solutions are or estimate how the linear system would behave at different frequencies. It's a specialized engine built for engineers working with nonlinear frequency responses and control theory who need to move from theoretical equations to concrete oscillation data quickly.

## Tools

### find_candidate_cycles
This tool locates potential amplitude and frequency pairs for limit-cycle oscillations. It finds roots where the frequency response matches the describing function.

### interpolate_response
This tool estimates the linear system response at specific frequencies. It provides magnitude and phase values for points between known data.

### check_no_solution_status
This tool checks if any solutions exist for the current parameters. It returns a status if the harmonic balance equations yield no valid roots.

### evaluate_solution_stability
This tool assesses the robustness of a found oscillation. It determines how stable a candidate solution sits within your data set.

## Prompt Examples

**Prompt:** 
```
Find candidate limit cycles for my system using this frequency response and describing function.
```

**Response:** 
```
The identified candidate is an oscillation with an amplitude of 1.25 and a frequency of 50.0 Hz, with a magnitude residual of 0.002.
```

**Prompt:** 
```
How stable is the candidate oscillation found at 50 Hz?
```

**Response:** 
```
The candidate solution has a robustness score of 0.85 and is not heavily dependent on the current grid density.
```

**Prompt:** 
```
Estimate the linear system response at 45 Hz.
```

**Response:** 
```
The estimated linear response at 45 Hz is a magnitude of 0.707 and a phase of -45.0 degrees.
```

## Capabilities

### Oscillation Identification
Your agent uses this to find amplitude and frequency pairs for candidate limit cycles.

### Stability Assessment
Your agent checks how solid a specific oscillation solution is within the system data.

### Response Interpolation
Your agent estimates linear system responses at specific frequencies using interpolation.

### Root Finding
Your agent solves harmonic balance equations to match frequency responses with describing functions.

## Use Cases

### Limit-Cycle Detection
Identify where a nonlinear system might enter a self-sustained oscillation.

### Stability Verification
Check if a found oscillation is a solid solution or a mathematical artifact.

### Frequency Response Mapping
Fill in gaps in frequency data by interpolating linear system responses.

### Nonlinear System Modeling
Match frequency responses with describing functions to find system roots.

## Benefits

- Automates the search for amplitude and frequency pairs in nonlinear systems.
- Provides robustness scores to verify the reliability of oscillation candidates.
- Calculates estimated linear responses at any given frequency via interpolation.
- Reduces manual calculation by solving harmonic balance equations directly.

## How It Works

Connect your AI client to Vinkius to access the calculation engine instantly.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide your frequency response and describing function data to your agent.
3. Ask your agent to find candidate cycles or evaluate stability.
4. Receive specific amplitude, frequency, or stability metrics from the MCP.

## Frequently Asked Questions

**What is the primary purpose of this MCP?**
It is a specialized engine for identifying candidate limit-cycle oscillations in nonlinear systems using harmonic balance equations.

**Which AI clients can I use with this tool?**
You can use any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**How does it find limit cycles?**
It finds roots of the harmonic balance equation by matching the system's frequency response with the inverse of its nonlinearity's describing function.

**Can I check if an oscillation is stable?**
Yes, you can use the evaluate_solution_stability tool to assess how robustly a solution sits within your data.

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

**What is a limit cycle?**
A limit cycle is a self-sustained oscillation in a nonlinear system that repeats periodically.

**How do I find potential oscillations?**
You can use the `find_candidate_cycles` tool to identify amplitude and frequency pairs that satisfy the harmonic balance condition.

**Does this tool certify an actual oscillation?**
No, this tool identifies candidate pairs based on the harmonic balance equation. It does not certify an actual oscillation.
