marginPerMode function

Requirements.LinearAnalysis.marginPerMode  · source

Icon of marginPerMode

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), -inf for 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

NameTypeDescription
metric inputEigenMetricThe predicate
bound inputRealThe bound in the metric's unit (as for EigenvalueCheck)
fBandLo inputRealThe band's lower frequency [Hz] (0 = none)
fBandHi inputRealThe band's upper frequency [Hz] (0 = none)
re[…] inputRealReal parts of the modes
im[…] inputRealImaginary parts (>= 0) of the modes
n inputIntegerThe number of valid modes (entries beyond n are ignored)

Outputs

NameTypeDescription
m[…] outputRealThe raw margin per mode (>= 0 where the predicate holds)