WOLFRAM SYSTEM MODELER
Rectifier6pulseFFTExample of FFT block |
SystemModel["Modelica.Blocks.Examples.Rectifier6pulseFFT"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example is based on a 6-pulse rectifier example, calculating the harmonics with the FFT block.
Sampling starts after the initial transients are settled - waiting for
2 periods = 2/f = 0.04 s = realFFT.startTime
.
Choosing a maximum frequency f_max = 2000 Hz
,
a frequency resolution f_res = 5 Hz
(both given in the block realFFT
) and
the default oversampling factor f_max_factor = 5
,
we have to acquire n = 2*f_max/f_res*f_max_factor = 4000
sampling intervals.
The resulting sampling interval is samplePeriod = 1/(n*f_res) = 0.05 ms
.
Thus, we have to sample for a period of n*samplePeriod = 1/f_res = 0.2 s
.
The result file "rectifier6pulseFFTresult.mat" can be used to plot amplitudes versus frequencies. Note that for each frequency three rows exit: one with amplitude zero, one with the calculated amplitude, one with amplitude zero. Thus, the second column (amplitude) can be easily plotted versus the first column (frequency). As expected, one can see the 5th, 7th, 11th, 13th, 17th, 19th, 23th, 25th, … harmonic in the result.
V |
Value: 100 * sqrt(2 / 3) Type: Voltage (V) Description: Amplitude of star-voltage |
---|---|
f |
Value: 50 Type: Frequency (Hz) Description: Frequency |
RL |
Value: 0.4 Type: Resistance (Ω) Description: Load resistance |
C |
Value: 0.005 Type: Capacitance (F) Description: Total DC-capacitance |
VC0 |
Value: sqrt(3) * V Type: Voltage (V) Description: Initial voltage of capacitance |
transformerData1 |
Value: Type: TransformerData Description: Data of transformer 1 |
source |
Type: SineVoltage Description: Polyphase sine voltage source |
|
---|---|---|
starAC |
Type: Star Description: Star-connection |
|
groundAC |
Type: Ground Description: Ground node |
|
currentSensor |
Type: CurrentSensor Description: Polyphase current sensor |
|
diode1 |
Type: IdealDiode Description: Polyphase ideal diode |
|
star1 |
Type: Star Description: Star-connection |
|
diode2 |
Type: IdealDiode Description: Polyphase ideal diode |
|
star2 |
Type: Star Description: Star-connection |
|
load |
Type: Resistor Description: Ideal linear electrical resistor |
|
cDC1 |
Type: Capacitor Description: Ideal linear electrical capacitor |
|
cDC2 |
Type: Capacitor Description: Ideal linear electrical capacitor |
|
groundDC |
Type: Ground Description: Ground node |
|
transformerData1 |
Type: TransformerData Description: Data of transformer 1 |
|
transformer1 |
Type: Dy01 Description: Transformer Dy1 |
|
realFFT |
Type: RealFFT Description: Sampling and FFT of input u |