Internal package

Requirements.ChecksInFixedWindow_withFFT.Internal  · source

Icon of Internal

Library of internal components used by FFT blocks (should not be directly used)

Extends Modelica.Icons.InternalPackage

Internal components of the FFT check blocks of package ChecksInFixedWindow_withFFT; they should not be used directly. The package contains:

Revisions

DateDescription
Nov. 29, 2015Initial version implemented by Martin R. Kuhn and Martin Otter (DLR Institute of System Dynamics and Control)
The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001.
Sept. 14, 2026Functions checkRelativeDomain and checkTHD added (H. Tummescheit, Model Based Innovation LLC)
Sept. 14, 2026Runs in Modelon Impact; see the release notes of version 0.7.1 for the four changes and the comparison with Dymola and OpenModelica (H. Tummescheit, Model Based Innovation LLC)

Contents

NameKindDescription
PartialFFTpartial modelPartial model containing the common part of the FFT blocks
amplitudeFrequencyCurveForIconfunctionReturn amplitude = f(frequency) for icon animation
checkRelativeDomainfunctionWithinRelativeDomain's whole evaluation in one call: base frequency, scaled limit curve, check, icon curves
checkTHDfunctionMaxTotalHarmonicDistortion's whole evaluation in one call: base frequency, THD, check, icon curves
checkDomainfunctionCheck whether FFT is in required domain
get_nsfunctionReturn number of sample points
interpolatefunctionInterpolate polygon (abscissa values must be within polygon values)
maxAmplitudeCurveForIconfunctionReturn maxAmplitude = f(frequency) for icon animation in defined icon area
saveFFTonFileimpure functionSave FFT computation on file
fftScaledimpure functionCompute scaled FFT
removeFFTresultFilesimpure functionRemove FFT results files of previous simulation runs of the current model (if they exist)
findBaseFrequencyfunctionFind real base frequency (search around an interval of f_base for the largest amplitude
calculateTHDfunctionCompute Total Harmonic Distortion from amplitude of FFT
baseAmplitudeForIconfunctionDetermine amplitude line of base frequency for icon