Comparison of Simulation Tools ATP-EMTP and MATLAB
Comparison of Simulation Tools ATP-EMTP and MATLAB
discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/237125284
Article
CITATIONS READS
7 1,325
3 authors, including:
David Raisz
RWTH Aachen University
46 PUBLICATIONS 101 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by David Raisz on 12 December 2014.
Miklós Danyek, Péter Handl, Dávid Raisz Department of Electric Power Systems
Budapest University of Technology and Economics Egry Jozsef street 18.
Hungary 1111 Budapest, Hungary
Tel: +36 14633021, Fax: +36 14633013
danyekm | handlp | raisz @vmt.bme.hu
1 Introduction
There are numerous widespread commercial software tools used by power engineers for
electrical circuit simulation purposes. It is, however, a challenging and time consuming task
to get acquainted with all the details and specialities of such a program, that's why the
majority of the users is not inclined to keep tabs on the evolution of similar products or does
not even know them.
This paper aims to compare the capabilities of two of such software packages: ATP-
EMTP/ATPDRAW and MATLAB-SIMULINK. The first one is a universal program system
for digital simulation of transient phenomena of electromagnetic as well as electromechanical
nature, whereas SIMULINK was created to model general dynamic systems using MATLAB
simulation engine.
2.2. Switches
ATP-EMTP MATLAB
Single phase time controlled, Single and three-phase logical controlled
Three-phase time controlled, (opens at next current zero-crossing)
Voltage controlled, ideal switch (parallel to an RC snubber
TACS (external) controlled, circuit)
Statistic (random, based on predefined
distribution functions),
Systematic (periodic).
ATP-EMTP has some specialised switches and an external controlled one. On the other hand
MATLAB has two, which can be controlled by logical functions. To model current chopping
ATP-EMTP needs only the current threshold while in MATLAB the snubber parameters have
to be adjusted.
2.3. Machines
ATP-EMTP MATLAB
Synchronous, 3 phase, Synchronous, 3 phase (Fundamental or
Synchronous with TACS control, 3 standard parameters, former ones in SI or
phase, pu),
Synchronous, set initialisation under Simplified synchronous,
ATP, 3 phase Permanent magnet synchronous,
Induction (Asynchronous), set Synchronous machine voltage regulator
initialisation under ATP, 3 phase, and exciter,
Induction (Asynchronous), set Asynchronous,
initialisation under ATP, 1 phase, DC,
DC, set initialisation under ATP. Steam turbine and governor,
Hydraulic turbine and governor.
Both software include the models of the basic electrical rotating machines with the possibility
of the correct parameter setting. MATLAB does not contain 1 phase asynchronous machine,
but it also includes steam/hydraulic turbine models and permanent magnet synchronous
machines. ATP-EMTP comprises a synchronous 3-phase machine, where the field voltage
and the mechanical power can be controlled externally (by TACS).
2.5. Transformers
ATP-EMTP MATLAB
Ideal, 1 phase (only the turn ratio can be Linear, 1 phase (2 or 3 windings),
given), Linear, 3 phase (YgY, YgD1, YgD11,
Ideal, 3 phase (only the turn ratio can be D1Yg, D11Yg, YgYD, YgYgD),
given), Saturable, 1 phase (2 or 3 windings),
Saturable, 1 phase (2 windings), Saturable, 3 phase (YgYgD),
Saturable, 3 phase (2 or 3 windings, the 12 terminal linear 3 phase transformer
winding connection and phase shift can (the connections can be set manually)
be chosen), Three phase transformers are assembled from
Saturable, 3 phase, 3-leg core type (Y/Y single-phase ones.
only) with high homopolar reluctance
BCTRAN
The transformers are defined by the parameters of the magnetising branch, the voltage, the
resistance and the inductance of the windings. The non-linear characteristic of the
magnetising branch of a saturable transformer can be given with point-pairs manually or read
from a file. MATLAB can not handle the flux linkage between legs.
2.13. Others
ATP-EMTP MATLAB
Transposition (Makes defined Controller blocks: PID, fuzzy, neural
transposition between interconnected 3 networks, etc.
phase elements) Optimal control toolbox
User specified (Some possibilities to load DSP blockset
the user specified elements from disk) Fixed point blockset
Frequency (Harmonic source and some Data acquisition and system
frequency dependent elements ) identification toolboxes
With certain restrictions a C code can be
generated from the models and this code
can be compiled to an executable file.
MATLAB models can communicate with
other Windows programs over DDE or
ActiveX protocol.
Hungarian 400 kV tower type IRSA Japanese 500 kV tower Nishi-Gunma line
(total height: 49.9 m, span 400 m) (total height: 120.5 m, span 650 m)
Fig 1. - The analysed towers
The equivalent circuits of the towers are determined on the basis of Japanese papers. These
papers have replaced the towers by a cylinder to calculate the tower surge impedance because
the authors have achieved good arrangement between simulations and field measurements.
Table 1. presents the parameters of the equivalent circuits of the analysed towers.
Hungarian Japanese
H=49.9 m H=120.5 m
Z [Ohm] 132.96 124.22
H1 [m] 4.50 12.50
R1[Ohm] 10.02 10.55
L1 [microH] 3.33 8.47
Z [Ohm] 132.96 124.22
H2 [m] 9.70 20.00
R2 [Ohm] 21.60 16.88
L2 [microH] 7.18 13.56
Z [Ohm] 132.96 124.22
H3 [m] 7.10 20.00
R3 [Ohm] 15.81 16.88
L3 [microH] 5.26 13.56
Z [Ohm] 132.96 124.22
H4 [m] 28.60 68.00
R4 [Ohm] 47.42 44.31
L4 [microH] 15.78 35.59
Grounding R1=50 Ohm R2=20 Ohm
L2=5 microH
On the basis of the travelling wave phenomenon the neighbouring towers had to be simulated
correctly because these elements have a significant effect during lightning. The transmission
lines between the towers are defined by the electrical and geometrical parameters of the
conductors (phase conductors and shield wire). The phase conductors are bundled. J-Marti
transmission line model is used during simulations in the frequency range of 5x10-2 Hz -
5x108 Hz, taking into account the skin effect. Fig 2. shows the parameters of the Hungarian
transmission line.
The lightning flash is substituted by a HEIDLER-type surge current generator and a resistor
(Norton generator). Fig 3. shows the voltage stress of the insulator strings in each phase for
one current (lightning) flash. The effect of the reflected waves can be analysed on the basis of
the voltage curves. The main reflection points are the grounding (0.34 µs = 2x0.17 µs = 2x
travelling time of a Hungarian tower [∼50m]) and the neighbouring towers (2.66 µs = 2x1.33
µs = 2x travelling time of the span between the towers [400m]).
[MV] [MV]
4 4
3 3
2 2
1 1
0 0
-1 -1
0 2 4 6 8 [us] 10 0 2 4 6 8 [us] 10
(file Irsa_2.pl4; x-var t) v:UPPER -X0001A v:MID -X0001B v:BOTTOM-X0001C (file Japan_1.pl4; x-var t) v:UPPER -X0001A v:MID -X0001B v:BOTTOM-X0001C
The load voltage is regulated at 1 pu (380 V rms) by a PI voltage regulator using abc to dq
and dq to abc transformations (Fig 5. shows the inside of the „Voltage regulator" block seen
in Fig. 4.):
The output of the voltage regulator is a vector containing the three modulating signals used by
the PMW Generator to generate the 6 IGBT pulses. These signals can be modified so that the
inverter acts as an active filter: the correction signal is obtained by measuring the current of
the non-linear load, filtering out the 50 Hz component (see block „4th order 50 Hz elliptic
filter”) and applying a gain and a phase-shift.
The simulation is started at steady-state. At 0.04 sec the voltage set-point of the voltage
regulator is raised from 0.8 to 1, and at 0.16 sec the active filter is switched on. On Fig 6, 7, 8
and 9 one can observe the effect of these interventions.
Set-point change
Filter on
For the „Fourier" block it takes one period of 20 ms to swing in to steady-state output, this
can be seen at the beginning of the simulation and at 40 ms, where the set-point change
occurs.
6 An example realised in both environments
The following study has been realised both in ATP-EMTP and in MATLAB-Simulink (see
Fig 10. and 11.). This example is intended to demonstrate the comparison of the simulated
quantities and the calculation speed of both programs.
Fig 12. shows the current flowing from the supply and remote network to the fault. The latter
component has relatively small amplitude because it is the zero sequence return current of the
Y/∆ transformer. It can be observed that the circuit breaker located at the left side opens at the
first current zero after 0.1 sec, the right side breaker opens after 0.2 sec.
Fig 12. – Components of the fault current (currents in phase A from the left and the right)
Fig 13. presents the voltages at the primary and the secondary side of the transformer. Both
programs yield very similar results, the difference is generally less than 0.15 %.
Deviation between the simulation results (voltages of the transformer) were normalized to the
nominal phase peak voltage and plotted in Fig 14. In case of the primary side voltage there is
a difference of more than 1.5 % at 0.2 sec, i.e. when the remote side breaker opens. These
deviations mainly result from the different solvers used to solve differential equations and the
slight differences between the models of certain elements (e.g. transmission lines,
transformers).
At the primary side of the transformer At the secondary side of the transformer
Fig 14 – Deviation between the simulation results (voltages of the transformer) carried out
with ATP and MATLAB (in percent)
On the basis of many simulations it can be stated that the ATP calculation speed is much
faster than that of the MATLAB. In the case of the last example ATP simulation time was
15 s and MATLAB simulation took 77 seconds.
7 Conclusions
In the paper two widely used program packages for electric network simulation were
compared. It has to be pointed out that both tools are capable of simulating the same class of
problems, since it is possible to build user defined elements in both cases (though this requires
experience and is time-consuming). There are however some differences between the pre-
defined components. ATP-EMTP is designed to simulate the physical processes of
transmission lines and transformers quickly and in a convenient way but MATLAB offers
more possibilities in power electronics, signal processing and control. The paper also shows
three examples that demonstrate the mainstays of the surveyed software tools.
8 References
[1] L. Prikler, H.K. Hoidalen, ATPDraw version 3.5 for Windows 9x/NT/2000/XP User’s
Manual, SEfAS TR F5680, ISBN 82-594-2344-8, Aug. 2002.
[2] MATLAB On-line Manual
[3] H.W. Dommel, ElectroMagnetic Transients Program. Reference Manual (EMTP
Theory Book), Bonneville Power Administration, Portland, 1986
[4] Can/Am EMTP Users Group, ATP Rule Book, 1998
9 Biographies
Miklós, DANYEK was born in Budapest, Hungary, on February 28, 1976. He studied at the
Budapest University of Technology and Economics. After receiving the MSc degree in 2000 he is
a postgraduate student at the Department of Electric Power Systems. The topics of his research
are: the transients of the high voltage power systems, using similitude theory to mitigate the
spread of the experimental data about secondary arc duration, multi circuit lines secondary arcing.
He has studentship to the National Power Line Company Ltd. (OVIT).
Péter, HANDL was born in Pécs, Hungary, on July 11, 1977. He studied at the Budapest
University of Technology and Economics. After receiving the MSc degree in 2000 he is a
postgraduate student at the Department of Electric Power Systems. His main field is the transients
in the high voltage power systems, specially the transients caused by lighting flashes and the
secondary arcs. He is a holder of a scholarship at the National Power Line Company in Hungary.
Dávid, RAISZ was born in Budapest, Hungary in 1977. He graduated from the Department of
Power Systems of the University of Technology and Economics Budapest, Hungary, in June 2000
after a one year research stay at Department for Electrical Power Systems of University of
Technology Graz, Austria. He is now working towards his Ph.D. degree in Electrical Engineering.