modes function
Requirements.LinearAnalysis.modes
· source
The modes of a state matrix: its eigenvalues with conjugate pairs folded into their Im >= 0 member, the integrator rule and the parasitic cut applied, sorted by magnitude
Extends Modelica.Icons.Function
The modes of A:
LAPACK's dgeev (what Modelica.Math.Matrices.eigenValues wraps), a complex pair folded into one mode represented by
its Im ≥ 0 member, an imaginary or real part below 1e-12 of the largest eigenvalue's
magnitude taken as zero, the integrator rule of tauSlow (a mode slower than the plant's slowest
expected time constant is an integrator, its real part zero) and the parasitic cut of tauFast (a
mode faster than the fastest expected one is left out), sorted by magnitude with the slowest first. The
damping ratio of a mode is -Re/|λ| (1 for a real non-positive eigenvalue), its frequency
|λ|/2π, its time constant -1/Re where it decays.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
A[…] input | Real | The state matrix |
tauSlow input | Real | The slowest expected time constant [s]: a mode with |Re| < 1/tauSlow is an integrator (Re := 0); 0 = the roundoff rule alone |
tauFast input | Real | The fastest expected time constant [s]: a mode with |lambda| > 1/tauFast is parasitic and left out; 0 = none |
Outputs
| Name | Type | Description |
|---|---|---|
re[…] output | Real | Real parts of the modes kept (entries beyond n unused) |
im[…] output | Real | Imaginary parts (>= 0) of the modes kept |
n output | Integer | The number of modes kept |