FFT model
Requirements.Examples.Elementary.Margin.FFT
ยท source
WithinAbsoluteDomain with a scale: the margin is scaledDistance/scale and agrees in sign with the verdict
Extends Modelica.Icons.Example
The stimulus of WithinAbsoluteDomain1
(5 + 3 sin 2 Hz + 1.5 sin 3 Hz against the limit polygon) with scale = 0.5 and without the terminate
block: the FFT completes at t = 4.975 s, the property is Satisfied and the margin is scaledDistance/scale,
positive -- the FFT blocks' scaledDistance is their robustness. The
value itself is not closed-form (leakage); it is the stored reference of this example in the regression lists.
The example runs on Dymola, OpenModelica and Modelon Impact.
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Components and variables
| Name | Type | Description |
|---|---|---|
fft | Requirements.ChecksInFixedWindow_withFFT.WithinAbsoluteDomain | FFT of u up to 4 Hz; the amplitudes must stay below the maxAmplitude curve, tolerance 0.5 |
sine2 | Modelica.Blocks.Sources.Sine | Sine of amplitude 3 at 2 Hz |
sine3 | Modelica.Blocks.Sources.Sine | Sine of amplitude 1.5 at 3 Hz |
const | Modelica.Blocks.Sources.Constant | Constant offset 5 |
multiSum | Modelica.Blocks.Math.MultiSum | Sum of offset and sines: the analysed signal |
const1 | Requirements.Sources.BooleanConstant | Condition, always true: one FFT at the start |