FFT model

Requirements.Examples.Elementary.Margin.FFT  ยท source

Icon of FFT

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

NameTypeDescription
fftRequirements.ChecksInFixedWindow_withFFT.WithinAbsoluteDomainFFT of u up to 4 Hz; the amplitudes must stay below the maxAmplitude curve, tolerance 0.5
sine2Modelica.Blocks.Sources.SineSine of amplitude 3 at 2 Hz
sine3Modelica.Blocks.Sources.SineSine of amplitude 1.5 at 3 Hz
constModelica.Blocks.Sources.ConstantConstant offset 5
multiSumModelica.Blocks.Math.MultiSumSum of offset and sines: the analysed signal
const1Requirements.Sources.BooleanConstantCondition, always true: one FFT at the start