modelRectifier6pulseFFT

Example of FFT block

Extends from Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse (6-pulse rectifier with 1 transformer).

Information

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.

Parameters

TypeNameDefaultDescription
Integerm (from Rectifier6pulse)3Number of phases
SI.VoltageV (from Rectifier6pulse)100*sqrt(2/3)Amplitude of star-voltage
SI.Frequencyf (from Rectifier6pulse)50Frequency
SI.ResistanceRL (from Rectifier6pulse)0.4Load resistance
SI.CapacitanceC (from Rectifier6pulse)0.005Total DC-capacitance
SI.VoltageVC0 (from Rectifier6pulse)sqrt(3)*VInitial voltage of capacitance
Machines.Utilities.TransformerDatatransformerData1 (from Rectifier6pulse)Data of transformer 1

Components

TypeNameDefaultDescription
Modelica.Electrical.Polyphase.Sources.SineVoltagesource (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Basic.StarstarAC (from Rectifier6pulse)
Modelica.Electrical.Analog.Basic.GroundgroundAC (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Sensors.CurrentSensorcurrentSensor (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Ideal.IdealDiodediode1 (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Basic.Starstar1 (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Ideal.IdealDiodediode2 (from Rectifier6pulse)
Modelica.Electrical.Polyphase.Basic.Starstar2 (from Rectifier6pulse)
Modelica.Electrical.Analog.Basic.Resistorload (from Rectifier6pulse)
Modelica.Electrical.Analog.Basic.CapacitorcDC1 (from Rectifier6pulse)
Modelica.Electrical.Analog.Basic.CapacitorcDC2 (from Rectifier6pulse)
Modelica.Electrical.Analog.Basic.GroundgroundDC (from Rectifier6pulse)
Machines.BasicMachines.Transformers.Dy.Dy01transformer1 (from Rectifier6pulse)
Modelica.Blocks.Math.RealFFTrealFFT