Professional Documents
Culture Documents
A LGORITHMS
k = 16
cal truncation error is defined as follows (see e.g. [6]):
c0 = 3 h2
Hence, an integration method is required having a minimum
error around the steady state frequency.
c = ;h
(9) In [3], an integration method has been introduced comply-
;1 2
ing with this requirement. The method is defined by setting
in (4):
b0 = b1 = !1 tan !n2h
It’s local truncation error is:
(16)
"l = x(t + h) ; x(t) ; c0 x_ (t) ; c;1 x_ (t ; h) (10) n
Using a Taylor approximation, " l can be approximated by: Unhappily, error estimation is here much more difficult than
for classical integration methods because the local trunca-
" 5 h x(t)
3
tion error cannot be approximated by a Taylor series any
l 12 (11)
more.
But an adaptive step size algorithm can only be imple- 4.3 Predictor-Corrector Scheme
mented if an error estimation is possible. A precise anal-
The local error of the classical trapezoidal rule could be ap-
ysis of the local truncation error according to (5) in the fre-
proximated with the help of a predictor.
Hence, for estimating " l of the modified trapezoidal rule, a
quency domain is therefore required:
; !h j!h
"l (!) = e ; 1 ; b0 j! ; b1 j!e x(j!) (17) predictor scheme must be found having a local error func-
| {z } tion similiar to el (! ) according to (17).
el (!) This leads to a modified Adams-Bashforth method whose
Equation (17) can be seen as a linear system with the trans- zeros have to be placed at ! = 0 and ! = ! n as well.
fer function el (! ) which is called local error function, the Transforming (10) into frequency domain leads to the fol-
input x(! ) and " (! ) as output. lowing conditions for the coefficients c 0 and c1 :
l
The local error function of the normal trapezoidal rule with e(!n ) = ej! h ; 1 ; c0 j!n ; c;1 j!n e;j!
n nh=0
b0 = b1 = h=2 has a triple zero around ! = 0 and can e(;!n ) = e;j! h ; 1 + c0 j!n + c;1 j!n ej! n nh
=0
hence be called a Butterworth Method (see Fig. 2).
(18)
1 ...
.. The resulting coefficients are:
...
c;1 = ; ! sin(! h) = ; ! tan !2n h
1 ; cos(!n h) 1
.
0:8
..
...
....
...
"
.
0:6 ....
...
..
n n n (19)
e(!) . .
.....
c0 = cos( !n h ) ; cos(2!n h)
0:4 ....
.....
.......
... ..
........
...........
.......... !n sin(!n h)
0:2 ....
...
.. . ........
.........
....
....
...........
......... .................. The local truncation error can now be approximated by the
............ .......................
0 ........................................................................................................................... .... .... .... .... .... .... .... .... .... .... .... .... .... ....
difference of a predictor solution x P (t + h) obtained with
0 50 100 150 200 250 the modified Adams Bashforth method according to (19)
f [Hz] ! and the actual solution x(t + h) calculated by the modified
............................................. h = 2ms trapezoidal rule.
.................................... h = 1ms e^(!) = k jxP ; xj = k j(eP (!) ; e(!)j
.... .... .... .... .... .... h = 0:5ms (20)
Figure 2: Magnitude of the local error function of the trape- Figure 4 shows the magnitudes of the exact and the approx-
zoidal rule imated local error function.
It can be seen that the approximated error is a very good
estimate for the local error function, at least in the frequency
In contrast to Butterworth methods, the modified trape- band of interest. If ncessary, it could further be improved by
zoidal rule according to (16) has zeros at ! = 0 and adjusting the factor k in (20).
! = !n , independant of the integration step size (see fig.
3). 0:4 .
.. ..
.
..
... . ..
Hence, this method is perfectly adapted to the steady state 0:3 .. .
"
. .
.. ..
of instantaneous values of voltages and currents. Because .. .....
0:2
..
... ...
of the zero at ! = 0, also slowly decaying DC components e(!) .. ..
.... ...
.
0:1
.
. ..
are analyzed with high precision even in case of large inte- .......
................................................................. ......
...
...
................. .... .. ....... ......... .
gration step sizes. 0 ........... ..........
0 25 50 75 100
1 ...
..
.. ..
..
...
f [Hz] !
....
0:8
...
..
..
.
..
...
. ............................................. e(!)
" 0:6 .
...
...
.. .... .... .... .... .... .... e^(!)
.. ...
.. ...
e(!) 0:4 ..
.
...
...
...
..
Figure 4: Estimated and exact local error function of modi-
...
..
.. . ...
.... ....
.. fied trapezoidal rule (h = 4ms,k = 1=6
0:2 ...
.
.
. ..
.......
.....
..
.. .
... .
... ....
... .... .
. . ...... .... ....
......................... .... ............ .... .... .... ....
0 .................................................................................. ................... ............... ........... ....... ....... ....... ....... ...... ....... ....... .......
0 50 100 150 200 250 4.4 Numerical Oscillations
f [Hz] ! Another requirement for the numerical integration method
............................................. h = 4ms is A-stability. Only together with an A-stable method, the
.................................... h = 2ms integration step size can be increased independent of the
.... .... .... .... .... .... h = 1ms
....... ....... ....... ....... h = 0:5ms eigenvalues of the electrical network.
The easiest way of analyzing the stability of implicit, lin-
Figure 3: Magnitude of local error function of modified ear integration methods is their description as a mapping of
trapezoidal rule complex frequencies.
Methods according to (4) are performing the following 5. E XAMPLES
mapping of complex frequenies:
lim 1 + b( + j!) = ;1
The same fault has been simulated using the adaptive step
!;1 1 ; b( + j! )
(25) size algorithm. Annex 2 shows that the simulation with step
size adaptation is in great accordance to a normal EMT-
Very large eigenvalues are therefore mapped near to z = simulation.
;1. Using Annex 3 shows results of the same simulation run but in a
;1 = ej
larger time scale.
Even if there is a considerable speed deviation and hence a
it can be seen that z = ;1 corresponds to an oscillatory detuning of the integration method, the integration step size
mode at f = 21h . can be increased up to h = 6:4ms, without any consider-
For the practical use of the modified integration method, it able drawback to the precision of the numerically calculated
is absolutely necessary that these numerical oscillations are state variables.
well damped which requires:
b0 < 1 C ONCLUSION
b1 Two methods have been presented which are increasing
In order to comply with this condition, a damped modified the performance of simulation programs for power systems
trapezoidal rule can be defined by: considerably.
b1 = !1 tan 1 ; 2 !n h
The multirate method uses different integration step sizes
for different state variables. It can be applied for linear and
n
b0 = !1 tan 2 !n h
(26) nonlinear systems under the condition that the state vari-
ables of the slow subsystem are only weakly influenced by
n fast transients. The described decomposition is leading to
Equation (26) complies with the condition b 1 > b0 for 0 < such a form in almost all cases.
< 1 and is hence damping numerical oscillations. The second method adapts the integration step size in time.
In order to match the precision requirements at ! = ! n , By modifying the trapzoidal rule, the integration step size
has to be placed very near to 1. The local error function is can be increased up to h = 10ms if voltages and currents
then not equal zero at nominal frequency but it has still a are reaching their sinusoidal steady state. Limitations are
very low value. here systems with a considerable high amount of harmonics
2.0000 1.0800
1.0400
1.000
1.0000
0.000 0.960
0.920
-1.0000
0.880
-2.0000 0.840
0.000 0.050 0.100 0.150 0.200 [s] 0.250 0.000 0.050 0.100 0.150 0.200 [s] 0.250
G 1: Electrical torque in p.u. G 1: Voltage phasor in p.u./EMT
G 1: Filtered and resampled electrical torque G 1: Voltage phasor in p.u./multirate
1.0125 30.000
1.0100
20.000
1.0075
10.000
1.0050
0.000
1.0025
-10.000
1.0000
0.998 -20.000
0.000 0.050 0.100 0.150 0.200 [s] 0.250 0.000 0.050 0.100 0.150 0.200 [s] 0.250
G 1: Speed in p.u./EMT G 1: Current, phase A in kA/EMT
G 1: Speed in p.u./multirate G 1: Current, phase A in kA/multirate
which are limiting the maximum integration step size. [6] J. Stoer and R. Bulirsch, Numerische Mathematik 2.
The adaptive step size method is particularly well suited for Springer-Verlag, 1990.
applications in which mutual influences between the electri-
cal grid and the electromechanical system have to be taken [7] P. M. Anderson, B. L. Agrawal, and J. E. Van Ness,
into account. Subsynchronous resonances or self excitation Subsynchronous Resonance in Power Systems. IEEE
of induction machines belong to these applications. Here, a Press, 1990.
steady state grid model cannot be used and traditional EMT-
programs are leading to huge calculation times even if there
are only slow transients to be analyzed.
R EFERENCES
[1] H. W. Dommel, “EMTP theory book,” tech. rep., Uni-
versity of British Colombia, 1986.
30.000
20.000
10.000
0.000
-10.000
-20.000
0.000 0.050 0.100 0.150 0.200 [s] 0.250
G 1: Current, phase A in kA/EMT
G 1: Current, phase A in kA/adaptive step size
0.003
0.002
0.002
0.001
0.001
0.000
0.000 0.050 0.100 0.150 0.200 [s] 0.250
Results: Integration step size
Results: Integration-Error EMT
1.1500 1.0160
1.1000
1.0120
1.0500
1.0080
1.0000
1.0040
0.950
1.0000
0.900
0.850 0.996
0.000 1.2500 2.5000 3.7500 [s] 5.0000 0.000 1.2500 2.5000 3.7500 [s] 5.0000
G 1: Voltage Phasor, Magnitude in p.u. G 1: Speed in p.u.
0.010 4.0000
0.008 3.0000
0.006 2.0000
0.004 1.0000
0.002 0.000
0.000 -1.0000
0.000 1.2500 2.5000 3.7500 [s] 5.0000 0.000 1.2500 2.5000 3.7500 [s] 5.0000
Results: Integration-Step Size EMT G 1: Excitation voltage in p.u.
Results: Integration-Error EMT