calc_bode

Build a state-space model from M, K, and C matrices and generate a Bode plot with python-control.

1|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/tatsuki-washimi/gwexpy --skill calc-bode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: calc_bode
Source: https://github.com/tatsuki-washimi/gwexpy/tree/main/.agent/skills/calc_bode
Command: npx skills add https://github.com/tatsuki-washimi/gwexpy --skill calc-bode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill builds a state-space model from mass (M), stiffness (K), and damping (C) matrices and generates a frequency response (Bode plot) using the python-control library.

Core Features & Use Cases

  • Build a state-space representation for mechanical systems (MIMO capable) from M, K, and C.
  • Generate and visualize Bode plots to assess stability and resonance characteristics.
  • Apply to mechanical vibration analysis and control-system design for multi-degree-of-freedom models.

Quick Start

Provide a state-space model with M, K, and C, and generate the Bode plot using python-control.

Frequently Asked Questions about calc_bode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Bode plot from mass, stiffness, and damping matrices?

You can generate a Bode plot from M, K, and C matrices by building a state-space model and computing the frequency response using the python-control library. The skill handles matrix construction and visualization automatically.

Can I analyze multi-degree-of-freedom mechanical vibrations using state-space models?

Yes, you can analyze multi-degree-of-freedom mechanical vibrations using state-space models. This skill accepts M, K, and C matrices to support MIMO systems and visualizes resonance characteristics in the frequency response.

What python packages do I need to compute frequency response for mechanical dynamics?

You need numpy and the python-control package to compute frequency response for mechanical dynamics. These dependencies construct the A and B matrices, produce the transfer function, and generate the Bode plots.

Does this approach work for control-system design as well as vibration analysis?

Yes, this approach works for both control-system design and vibration analysis. By constructing state-space representations from M, K, and C matrices, the generated Bode plots help assess stability and resonance across multi-degree-of-freedom models.

What is the best way to assess stability and resonance characteristics from modal data?

The best way to assess stability and resonance characteristics from modal data is to build a state-space model from M, K, and C matrices and generate a Bode plot, which visually represents the frequency response for analysis.