# SPWM Inverter Output Calculator AI Agent Connect

> SPWM Inverter Output Calculator MCP provides a mathematical modeling engine for analyzing Sinusoidal Pulse Width Modulation inverters. Your AI client uses this tool to calculate voltage utilization, map harmonic spectra, and simulate switching waveforms. It handles the heavy math for duty cycles, dead time effects, and power quality metrics so you can focus on design decisions.

## Overview
- **Category:** engineering
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_dxZ4s1tJOFglHZIRVl7UrF3OZP9TUtOcasrksVcs/ai-agent-connect
- **Tags:** spwm, inverter, harmonics, pwm, power-electronics

## Description

You can use this MCP to run precise mathematical models for SPWM inverter electrical characteristics. Instead of manually calculating modulation states or harmonic clusters, you tell your AI client what the DC link voltage and modulation index are, and it handles the rest. It's built for analyzing how switching waveforms behave under specific conditions, like adjusting for dead time or evaluating duty cycles. You can check if your system is stuck in overmodulation or if it's still in the linear state. It also maps out frequency components and provides a consolidated view of RMS output performance. This turns your AI agent into a specialized power electronics calculator that understands harmonic spectra and power quality metrics.

## Tools

### analyze_modulation_efficiency
This tool determines if your inverter is operating in linear or overmodulation states. It calculates voltage utilization based on your input parameters.

### calculate_harmonic_spectrum
Use this to map out frequency components. It identifies where harmonic clusters appear in the spectrum.

### get_rms_output_performance
This tool provides a consolidated view of power quality. It calculates the RMS output for your system design.

### simulate_switching_waveform
This tool evaluates duty cycles and the effects of dead time. It simulates how the switching waveform actually looks.

## Prompt Examples

**Prompt:** 
```
Calculate the modulation efficiency for a 400V DC link with a modulation index of 0.85.
```

**Response:** 
```
The inverter is operating in the Linear state with a fundamental voltage of 340V and an RMS voltage of 240.4V.
```

**Prompt:** 
```
What is the harmonic spectrum for a 50Hz reference, 2kHz carrier, and 0.9 modulation index using Unipolar PWM?
```

**Response:** 
```
The fundamental component is 318.2V, with harmonic clusters appearing around 2kHz and 4kHz.
```

**Prompt:** 
```
Simulate the switching waveform for a 3-phase system with a 10us dead time, 5kHz carrier, and 0.9 modulation index.
```

**Response:** 
```
The switching period is 200us, and the effective pulse widths have been adjusted to account for the 10us dead time.
```

## Capabilities

### Modulation State Analysis
Your agent identifies if the system is in linear or overmodulation modes.

### Harmonic Mapping
Your agent identifies specific frequency components and clusters in the spectrum.

### Waveform Simulation
Your client simulates duty cycles and accounts for dead time effects.

### Power Quality Assessment
The tool calculates RMS output performance for a quick quality check.

## Use Cases

### Inverter Design Validation
Check if your chosen modulation index keeps the inverter in the linear state.

### Harmonic Interference Analysis
Map out frequency clusters to ensure they don't interfere with other systems.

### Dead Time Compensation
Simulate how a specific dead time affects your effective pulse widths.

### Power Quality Audits
Get a quick RMS output performance reading for a specific DC link voltage.

## Benefits

- Calculates complex harmonic spectra without manual Fourier analysis.
- Identifies modulation states like linear or overmodulation instantly.
- Accounts for dead time in switching waveform simulations.
- Provides consolidated RMS output data for power quality checks.

## How It Works

Connect your AI client to the Vinkius-hosted MCP and start running calculations.

1. Connect your AI client to the MCP via Vinkius.
2. Provide your design parameters like DC link voltage or carrier frequency.
3. Your agent invokes the specific calculation tool needed.
4. The MCP returns the mathematical results directly to your chat interface.

## Frequently Asked Questions

**What can this MCP calculate?**
It calculates modulation efficiency, harmonic spectra, switching waveforms, and RMS output performance for SPWM inverters.

**How do I use this with Claude or Cursor?**
You connect your client to the Vinkius platform, which hosts the MCP. Once connected, your AI client can call the tools directly.

**Does it handle dead time in simulations?**
Yes, the simulate_switching_waveform tool specifically accounts for dead time effects on pulse widths.

**Can it tell if an inverter is overmodulating?**
Yes, the analyze_modulation_efficiency tool determines if the system is in a linear or overmodulation state.

**Do I need to host the math engine myself?**
No, Vinkius hosts and manages the MCP, so it is ready to use immediately after connection.

**What can I calculate with this tool?**
You can calculate fundamental voltage, RMS values, harmonic spectrum, duty cycles, and determine the operating state using `analyze_modulation_efficiency`.

**How does dead time affect the results?**
Dead time introduces low-order harmonics and distorts the fundamental voltage, which can be modeled using `simulate_switching_waveform`.

**Can I model different PWM conventions?**
Yes, the tool supports both Bipolar and Unipolar PWM conventions through the `calculate_harmonic_spectrum` and `get_rms_output_performance` tools.
