Skip to content
Back to skills

Calc Bode Tatsuki Washimi Gwexpy

ASecurity

python-controlを使用して、メカニカルシステムの状態空間モデルから伝達関数(Bode Plot)を計算・表示する

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill calc-bode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Calc Bode Tatsuki Washimi Gwexpy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Calc Bode Tatsuki Washimi Gwexpy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-calc-bode-tatsuki-washimi-gwexpy-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-calc-bode-tatsuki-washimi-gwexpy-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: calc_bode
description: python-controlを使用して、メカニカルシステムの状態空間モデルから伝達関数(Bode Plot)を計算・表示する
---

# `calc_bode_control`

このスキルは、質量行列(M)や剛性行列(K)を持つ力学系から状態空間モデル(State Space)を構築し、`python-control`ライブラリを用いて周波数応答(Bode Plot)を生成します。

## ワークフロー

1.  **システム行列の取得**:
    -   物理モデルや線形化ツールから $M$ 行列と $K$ 行列を抽出します。
    -   必要に応じて減衰行列 $C$ (通常は剛性に比例、またはモード減衰) を定義します。

2.  **状態空間の構築**:
    -   状態ベクトルを $x = [q, v]^T$ ( $q$: 変位, $v$: 速度) と定義します。
    -   システムの運動方程式 $M \ddot{q} + C \dot{q} + K q = F u$ を、標準的な状態空間形式 $\dot{x} = Ax + Bu$ に変換します。
    -   $A = \begin{bmatrix} 0 & I \\ -M^{-1}K & -M^{-1}C \end{bmatrix}$
    -   $B = \begin{bmatrix} 0 \\ M^{-1}F \end{bmatrix}$

3.  **python-control の利用**:
    -   `import control as ct` を行います。
    -   `sys = ct.ss(A, B, C, D)` でシステムオブジェクトを作成します。

4.  **IO選択 (MIMOの場合)**:
    -   `sys_siso = sys[output_idx, input_idx]` を使用して、目的の入出力チャネルを選択します。

5.  **プロットと分析**:
    -   `ct.bode_plot(sys_siso, ...)` を使用してBodeプロットを生成します。
    -   `Hz=True`, `dB=True`, `deg=True` などのフラグを活用します。
    -   必要に応じて `sys.poles()` を確認して安定性をチェックします。

## 注意事項
- KAGRAのトップステージのような逆振子 (Inverted Pendulum) を含む系では、安定化制御をかける前の開ループ極が不安定側に存在することがあるため注意が必要です。
- 周波数範囲は `np.logspace(np.log10(start_hz * 2*np.pi), np.log10(end_hz * 2*np.pi), n_points)` のように角周波数(rad/s)で指定し、`bode_plot` 側で `Hz=True` を指定するのが確実です。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.