marginPerMode function
Requirements.LinearAnalysis.marginPerMode
· source
The raw margin of one eigenvalue predicate per mode (0 outside the band, -inf for a non-decaying mode against a time constant)
Extends Modelica.Icons.Function
The raw (unscaled) margin of one eigenvalue predicate for each of the first n modes, in the
metric's unit, with the same definitions of f and ζ as in propertyPerMode:
RealPart:bound - re[1/s];Damping:ζ - bound;FrequencyMin/FrequencyMax:f - bound/bound - f[Hz];TimeConstant:bound + 1/re[s] for a decaying mode (re < 0),-inffor a non-decaying one (it has no time constant and no finite margin).
Modes outside the band and entries beyond n get 0; they are excluded from the fold by their
Undefined property (see worstMargin). Used by EigenvalueCheck and ModeTableCheck.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
metric input | EigenMetric | The predicate |
bound input | Real | The bound in the metric's unit (as for EigenvalueCheck) |
fBandLo input | Real | The band's lower frequency [Hz] (0 = none) |
fBandHi input | Real | The band's upper frequency [Hz] (0 = none) |
re[…] input | Real | Real parts of the modes |
im[…] input | Real | Imaginary parts (>= 0) of the modes |
n input | Integer | The number of valid modes (entries beyond n are ignored) |
Outputs
| Name | Type | Description |
|---|---|---|
m[…] output | Real | The raw margin per mode (>= 0 where the predicate holds) |