
modelPartialFFT
Partial model containing the common part of the FFT blocks
Parameters
| Type | Name | Default | Description |
| Boolean | storeFFTonFile | true | = true, if FFT results shall be stored on file <modelName>/FFT.<instanceName>.<index>.mat |
| Modelica.Units.SI.Frequency | f_max | | Maximum frequency of interest (sampling frequency >= 10*f_max) |
| Modelica.Units.SI.Frequency | f_resolution | | Frequency resolution (frequency axis points are an integer multiple of f_resolution) |
| Integer | ns | Internal.get_ns(f_max, f_resolution) | Number of FFT sample points (is even and can be expressed as ns = 2^i*3^j*5^k) |
| Modelica.Units.SI.Frequency | f_max_FFT | f_resolution*div(ns, 2) | Maximum frequency used by FFT |
| Integer | nf | div(ns, 2) + 1 | Number of frequency points |
| Modelica.Units.SI.Time | Ts | 1/(2*f_max_FFT) | Sample period |
| Modelica.Units.SI.Time | T | (ns - 1)*Ts | Simulation time for one FFT calculation |
| Integer | np | max(1, min(integer(ceil(f_max/f_resolution)) + 1, nf)) | Number of frequency points used for plotting (only up to interested frequency |
| Modelica.Units.SI.Frequency | f_max_plot | (np - 1)*f_resolution | |
Components
| Type | Name | Default | Description |
| Boolean | periods_ok | | = true, if all periods for FFT computations have been long enough |
| Integer[3] | fillColor | if scaledDistance >= 0 then {245, 245, 245} else {255, 218, 213} | |
| Real[3*np,2] | fA_plot | | [frequency, amplitude] matrix used for plotting in icon |
Revisions
| Date | Description |
| Nov. 29, 2015 |
Initial 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. |