Professional Documents
Culture Documents
Fourier Source
DIgSILENT GmbH Heinrich-Hertz-Strasse 9 D-72810 Gomaringen Tel.: +49 7072 9168 - 0 Fax: +49 7072 9168- 88 http://www.digsilent.de e-mail: mail@digsilent.de
Fourier Source Published by DIgSILENT GmbH, Germany Copyright 2007. All rights reserved. Unauthorised copying or publishing of this or any part of this document is prohibited. TechRef ElmFsrc V1 Build 331 30.03.2007
Fourier Source
1 Introduction
1 Introduction
The Fourier Source Element (ElmFsrc) of DIgSILENT Power Factory, available since version 13.1, allows the definition of periodical signals in the frequency domain. It can be connected to any other dynamic PowerFactory model, especially to voltage or current source models, thus realizing harmonic voltage or current sources. The element may be used in both the balanced and three phases RMS simulation and in the three phases EMT simulation as well. Typical applications are: Harmonic voltage or current sources for modelling harmonic injections Small signal analysis, calculation of transfer functions
2 Element description
2.1 The element dialog in PF
Fourier Source
2 Element description
Inverse FFT
Both methods are briefly described in the following sections. The input parameters vary according to the selected calculation approach. While dc-component and frequency step are always to be specified in both cases, a minimum frequency is additionally required for the Fourier Series approach and an oversampling factor for the FFT one. For checking purposes, the specified, periodic signal is immediately shown in time- and frequency domain on the Diagram page of the input dialogue box.
y0 (t ) = Ao + Ai cos[2 ( f min + (i 1) f ) t + i ]
i =1
(1)
where
A0 the dc component and Ai and i the amplitude and phase of the ith harmonic.
yo defined by (1) is a continuos time domain function and realizes an ideal time-domain signal based on the specified spectrum.
However, many cosine-terms must be evaluated at every time step during a transient simulation, which can lead to slow calculation times in case of many specified frequencies.
which is applied to the discrete spectrum. Unlike the Fourier Series approach, the iFFT must be carried out only once at the beginning of a transient simulation why computational resources are used more efficiently. However, the resulting output signal
yo is a discrete time function and its time step will generally not match the simulation step size. This means that for each simulation time step the value of yo has to be interpolated. This introduces an interpolation error. This interpolation error can
be reduced by applying an over-sampling factor, as described below. The FF Transform pair is defined by Eq. (2) and (3):
(2)
(3)
Fourier Source
2 Element description
Subscripts
n and k represent the discrete time tn and discrete frequency k respectively and are permitted to range between 0 N is the number of samples. The following variables correspond to the FFT definition of (2) and (3):
TS =
1 Twindow = fS N
(4)
tn = n TS f0 =
(5)
1
Twindow
1 f = S n TS n 2 n TS
(6)
0 = 2 f 0 =
(7)
2 k = k . 0 = k n T S
As it can be seen from (6), the windowing time only, i.e. the frequency resolution or frequency step. Furthermore,
(8)
Twindow determines the minimum frequency of the discrete frequency spectrum Twindow has no relationship to the maximal frequency. Ts as defined in (4). Due to the time
The maximal frequency is related to the sampling frequency fs, i.e. to the sampling time
sampling, the FFT results in a periodic sequence of uniformly spaced frequencies with a period fs = 1/ Ts. Therefore, the sampling frequency must be chosen in such a way, that no superposition of subsequent harmonic spectrums (aliasing) will occur (comply with the sampling theorem). Factors between 5 and 20 seem to be appropriate in most cases. PF enables the user to specify this ratio by means of the oversampling factor OSF (see Figure 2) defined in (9):
OSF =
fS 2 f max
(9)
where fmax is the maximal frequency of the spectrum. The default value for the oversampling factor is 10 and the user may increase it as necessary. However, it must be pointed out, that with an increasing oversampling factor also the number of samples computational time. The diagram page in the element dialog (see Fig.3) helps the user to select a suitable oversampling factor. By modifying the oversampling factor in the data page, the curve in the diagram is automatically updated. With the zoom tools the user may analyse whether the aproximation is good enough or a higher oversampling factor is still required. Fig.3 depicts an example of the FFT modelling approach. The curves on the right side are a zoom near the peak value of those on the left side.
Fourier Source
2 Element description
1.00
-1.00
-1.20
0.00 -1.40
-1.60 -1.00
-1.80
-2.00 0.000
0.020 0.040 0.060 0.080 3rd Armonic with Serie: Output 3rd Armonic with FFT /overspl_10: Output 3rd Armonic with FFT /overspl_20: Output 3rd Armonic with FFT /overspl_30: Output
[s]
0.100
-2.00 0.008
0.009 0.010 0.011 3rd Armonic with Serie: Output 3rd Armonic with FFT /overspl_10: Output 3rd Armonic with FFT /overspl_20: Output 3rd Armonic with FFT /overspl_30: Output
[s]
0.012
Ts in Eq.(6) not be in any case smaller than the simulation step size Tstep and therefore, the oversampling factor
OSF =
1 2 f max Tstep
(10)
DIgSILENT
Fourier Source
2 Element description
Fourier Source