You are on page 1of 9

MATLAB-SIMULINK-Based

Simulation for Digital


Differential Relay Protection of
Power Transformer for
Educational Purpose
B. VAHIDI,1 E. ESMAEELI2
1
Department of Electrical Engineering, Amirkabir University of Technology, Tehran, Iran
2
Department of Electrical Engineering, Iran University of Science and Technology, Tehran, Iran

Received 13 January 2010; accepted 1 August 2010

ABSTRACT: Differential protection was already applied toward the end of the 19th century and was one of the
first protection systems ever used. Faults are detected by comparison of the currents flowing into and out of the
protected plant item. As a result of the fast tripping with absolute selectivity, it is suited as main protection of all
important items of plant. The article presents an approach to teaching relay laboratory using specially designed
exercises that can be done using MATLAB-SIMULINK. This article presents a MATLAB-SIMULINK-based
technology to simulate differential relay for determining behavior of it during transformer internal fault
protection. The results show that this simulation method can work properly and this design can be used for
power system simulation in MATLAB-SIMULINK. Evaluation of the simulation with more than 60 students
is very positive in terms of their developing confidence in and understanding of this kind of relay operation.
ß 2010 Wiley Periodicals, Inc. Comput Appl Eng Educ; View this article online at wileyonlinelibrary.com;
DOI 10.1002/cae.20493

Keywords: MATLAB-SIMULINK; differential relay; protection

INTRODUCTION although it has not protection component models. Power System


Analysis toolbox (PSAT)—a freely available MATLAB imple-
Computer simulation plays an important role in engineering mentation—is a MATLAB toolbox for electric power system
course teaching. Nowadays, a variety of software tools are analysis and control. PSAT includes power flow, continuation
available to simulate electrical circuits. While most of these tools power flow, optimal power flow, small signal stability analysis,
are computationally very efficient and reasonably user-friendly, and time domain simulation, although it has no protection
they have a closed architecture where it is very difficult or component models either. Some commercial tools like ETAP and
impossible to simulate component models. Further, most DIgSILENT have most of protection component models but
industrial-grade tools require substantial training before they require substantial training. A widespread environment for
can be used productively. A simulation package like PowerWorld simulation of power engineering problems is MATLAB-SIMU-
Simulator has the power for serious engineering analysis and also LINK. Many simulations of different aspects of a power system
it can be used to explain power system operations to non- and engineering application using MATLAB_SIMULINK have
technical audiences. The simulator allows the user to visualize the been presented by different researchers [111]. Martin and
system through the use of full-color animated oneline diagrams Fernandez [1] used SIMULINK to model the overcurrent relay
and fault circuit breaker. Zhang et al. used MATLAB-SIMULINK
to test and model the protection devices for shipboard power
Correspondence to B. Vahidi (vahidi@aut.ac.ir). systems [2]. Luo and Kezunovic [3] introduced SIMULINK for
ß 2010 Wiley Periodicals Inc. modeling digital relay. Zocholl and Mooney [4] used MATLAB

1
2 VAHIDI AND ESMAEELI

simulation to compare with overcurrent relay testing. Chow and


Cheung [5] introduced a MATLAB-based toolbox for power
system dynamics and control engineering education and research.
MATLAB simulation is used by El Sayed and Eldin [6] for
discrimination between inrush current and fault current. Deep
et al. [7] used MATLAB for optimal relay operating times
determination. Using MATLAB for power systems simulation
and analysis are described in Ref. [8]. Application of MATLAB
in ferroresonance modeling is introduced in Ref. [9]. Kezunovic
et al. [10] developed computer exercise by using MATLAB
software. Karagiannis et al. [11] used MATLAB web server to
facilitate the education of mathematical programming.
Other methods are employed by other researcher, Larsson
[12] described a power system library called ObjectStab for
power system stability simulation. Lazaridis et al. [13] used Figure 2 Characteristic of a percentage differential relay.
visual LinProg in mathematical programming course to supple-
ment the teaching. (stabilizing or bias current). Thereby, the protection sensitivity is
A power transformer, being a vital and expensive piece of automatically matched to the prevailing short circuit conditions
equipment in a power system, requires critical attention from the [14].
standpoint of its protection. Therefore, it is highly desirable to Implementation of differential protection is simpler in the
simulate the differential protection of a transformer. case of protected objects that are not geographically spread out
The protection design for a transformer is the duty of power (transformers, generators, busbars), where the CTs are situated
system engineers; therefore, the students of power system close together. In this case, the CTs may be connected to the
engineering should be familiar with differential protection of protection device directly via control cables [14,15].
power transformers. Our course on power system protection is Percentage restraint differential protection employs the
taken by students in 15 weeks (3 h per week). In this course restraint current IRT, together with the operating current IOP, to
fundamentals and different methods of protection are taught, one define the relay operation on a coordinate plane, as shown in
of them is differential protection of power transformers. Figure 2. A line divides the coordinate plane into two parts. The
The authors of this article have been using MATLAB- upper part is the operating region while the lower part is the
SIMULINK 7.1 as an instructional tool to teach differential restraining region. This dividing line is called the characteristic of
protection of power transformer to undergraduate students. This the differential relay. Typical characteristic of differential relays
method of instruction has enabled students to understand the presents a small slope for low currents to allow sensitivity to light
techniques of this kind of protection (a power system together internal faults. At higher currents, the slope of the characteristic is
with relay are simulated and results are obtained from much higher, which requires that the operating current, IOP, be
simulation). The success rate of students in understanding the higher in order to cause operation of the differential relay
subject shows the ability of this method.
IOP ¼ I1s I2s ð1Þ

IRT ¼ kðI1s þ I2s Þ ð2Þ


PRINCIPLE OF DIFFERENTIAL PROTECTION
where k is a compensation factor, generally taken as 0.5 or 1.
Differential protection calculates the sum of all currents flowing The operation of a percentage-differential relay can be
into and out of the protected object. Apart from magnetizing expressed by the following equation:
currents and capacitive charging currents, this current sum must
IOP > SLPi  IRT ð3Þ
always be equal to zero (Kirchhoff’s current law) if the protected
object is unfaulted (Fig. 1). Internal faults are therefore detected where SLPi is the slope of the ith characteristic of the differential
by the appearance of a differential or operating current [1416]. relay.
For security against maloperation due to current transformer The effectiveness of the differential relay used for protecting
(CT) transformation errors, the pick-up threshold of the transformers against faults is undisputed [17,18]. However, the
protection is increased in proportion to the total current flow major drawback of this technique stems from its potential for false
tripping caused by the transient magnetizing inrush current. Given
that harmonic content of the short circuit currents is negligible, the
harmonic-based methods are used for either restraining or blocking
the relay from operation during initial current inrush. Harmonic-
based methods allow the differential relay to remain sensitive to
fault currents while keeping the relay from operating due to
magnetizing currents. The harmonic-restrained differential relay
compares the fundamental component of the operating current with
a restraint signal consisting of the unfiltered restraint current plus
the harmonics of the operating current. The differential relay
operation condition can be expressed as
IOP > SLPi  IRT þ k2 I2h þ k3 I3h þ    ð4Þ
Figure 1 Differential protection principle.
MATLAB-SIMULINK-BASED SIMULATION 3

Table 1 Typical Amplitude of the Harmonics SIMULATED CIRCUIT


Harmonic components in Amplitude
magnetizing inrush current (% of fundamental) The circuit that is simulated on MATLAB-SIMULINK is shown
in Figure 3 and simulated circuit for differential relay is shown in
DC 55
Figure 4. Descriptions of different parts of circuit are as follows
Second harmonic 63
Third harmonic 26.8
[25,26]:
Fourth harmonic 5.1 (4) CT relay: The CT relay consists of three saturable trans-
Fifth harmonic 4.1 former block model. The model takes into account the winding
Sixth harmonic 3.7 resistances and the leakage inductances as well as the magnetizing
Seventh harmonic 2.4 characteristics of the core, which is modeled by a resistance
simulating the core active losses and a saturable inductance. In the
present simulation for 800/10 A the CT burden is 1.62 þ j0.784 O.
(5) Three-phase transformer: Power and voltage of power
where IOP is the fundamental component of the operating current, transformer that is used in the present simulation is Pn ¼
I2h, I3h, . . . are higher harmonics of the operating current, IRT is the 150 MVA, Vlow voltage (phase to phase) ¼ 33 kV, Vhigh voltage (phase
unfiltered restraint current, k2, k3, . . . are constant coefficients. to phase) ¼ 132 kV.
The second-order harmonic of the asymmetrical magnet- (8) Relay: Described in the next section.
ization is peculiar to the inrush. A more recent set of techniques (2) Fcn block: The Fcn block applies the specified C
use only the second harmonic to identify inrush currents and the language style expression to its input.
fifth harmonic to avoid misoperations for transformer due to over- This block removes the zero-sequence component of the
excitation [19,20] In Table 1 typical amplitudes of the harmonics input current.
are shown, compared with the fundamental (100%) [21]. The math functions for these blocks are 1/
Many studies based on the use of wavelet and neural 3*(2*u(1)  u(2)  u(3)), 1/3*(u(1) þ 2*u(2)  u(3)), and 1/
network analysis to characterize inrush currents aim to recognize 3*(u(1)  u(2) þ 2*u(3)) for a, b, c phases, respectively.
the inrush current and to distinguish it from an internal fault (4) Fourier: The Fourier block performs a Fourier analysis
current [2224]; these methods are out of scope of this of the input signal over a running window of one cycle of the
educational article. fundamental frequency of the signal.

Figure 3 Simulated circuit on MATLAB-SIMULINK [25].


4 VAHIDI AND ESMAEELI

Figure 4 Simulated circuit for differential relay [25].

The Fourier block can be programmed to calculate the function x ¼ fcn(I)


magnitude and phase of the DC component, the fundamental or i1_m ¼ I(1:3); %I1s
any harmonic component of the input signal. i2_m ¼ I(4:6); %I2s
i_setting1 ¼ I(15); % current setting
The voltage incidence angle and the residual flux are main
i_setting2 ¼ i_setting1;
factors to determine the first peak value of the inrush current and
k1 ¼ I(16); % bias percent
it mainly contains the fundamental frequency and second k2 ¼ k1;
harmonic. Both magnitudes decrease as the inrush current % I(8:10) ! k2*I2h (2nd harmonic) I(11:13) ! k3*I3h (3rd harmonic)
diminishes and we do not want the differential relay to declare inrush ¼ (I(8:10) þ I(11:13)); % k2*I2h þ k3*I3h
a trip condition while energizing an unfaulted transformer. Digital idiff ¼ abs(i1_m  i2_m)  inrush;
filters (Fourier blocks) extract the fundamental, second-, and ibias ¼ sqrt(2)*abs(i2_m þ i1_m)/2;
fifth-harmonic (overexcitation can introduce fifth-harmonic level) inrush ¼ max(I(8:10) þ I(11:13));
quantities from the digital signals. i ¼ 1; x ¼ 1;
(10) Embedded MATLAB function: MATLAB and SIMU- while i  3
if I(14) > 0.1 % energize the power transformer
LINK presently do not have a toolbox, which helps us in
x ¼ 1;
simulating power system protection equipment. Therefore, end
MATLAB scripts must be written in order to model the relays. if I(7) < 0.5 % if there is a fault
Zero sequence elimination and extraction of fundamental x ¼ 0;
component are implemented by blocks (2) and (4) and are inputs break
of the Embedded Function block (I(1:6)). Other inputs end
are second- and third-harmonic components (I(8:13)) to utilize if ibias(i) > i_setting1
in inrush current detection. Relay settings and command if idiff(i) > (k1*ibias(i) þ i_setting1 þ inrush) %
feedback are entered as I(14:16) and I(7), respectively. This IOP SLPi IRT þ k2 I2h þ k3 I3h
x ¼ 0; % open the circuit breaker if there is a fault
decision block implements the characteristic of a percentage
break
differential relay.
MATLAB-SIMULINK-BASED SIMULATION 5

else SIMULATION RESULTS


x ¼ 1; % leave circuit in close circuit if there is a balanced
situation
Inrush Current
end
else In order to check the behavior of the relay under inrush current,
if idiff(i) > (k1*ibias(i) þ i_setting1 þ (k1  k2)*i_setting2) the transformer is energized at no-load condition and the result is
x ¼ 0; % open the circuit breaker if there is an unbalanced
shown in Figure 5. During energize period of transformer the
situation
differential relay should not operate. Results show that the
break
else designed differential relay is not operated under inrush current.
x ¼ 1; % leave circuit in close circuit if there is balanced
situation
end
end Fault Conditions
i ¼ i þ 1;
end %while In order to show the behavior of differential relay under different
if x ¼ 0 fault conditions and confirm that the relay operate under fault
x ¼ 1; condition a series of simulation is conducted and results are
else shown in Figures 69. For all these kinds of faults the relay
x ¼ 0; should operate and remove the fault. Figure 6 shows the A Phase
end to B Phase to ground fault condition on the high-voltage side of
transformer under load condition. Figure 7 shows the A Phase to
B Phase to ground fault condition on the high-voltage side of
transformer during inrush current process (fault þ inrush current)
under load condition.

Figure 5 Currents and voltages during inrush current condition.


6 VAHIDI AND ESMAEELI

Figure 6 Currents and voltages during A Phase to B Phase to ground fault condition.

Figure 7 Currents and voltages during A Phase to B Phase to ground fault condition þ inrush current.
MATLAB-SIMULINK-BASED SIMULATION 7

Figure 8 Currents and voltages during A Phase to ground fault condition.

Figure 9 Currents and voltages during A Phase to B Phase to C Phase fault condition.
8 VAHIDI AND ESMAEELI

Figure 10 Number of students who have understood the concept


before using the simulator.

Figure 8 shows the A Phase to ground fault condition on the Figure 12 Students understanding chart.
high-voltage side of transformer under load condition.
Figure 9 shows the A Phase to B Phase to C Phase fault
condition on the high-voltage side of transformer under load The following questions are prepared for testing the students
condition. whether they gained all the concepts or not:
From the above results, it can be concluded that the designed
relay is working properly and can discriminate inrush from (1) How is differential relay acting?
internal faults and it works on different fault condition. The (2) Explain the differences between voltage and current
designed relay is tested for high impedance fault and it works waveforms due to inrush current phenomena and fault
properly on this kind of internal fault. phenomena.

The test is performed on four groups (i.e., G1, G2, G3, and
STUDENTS FEEDBACK G4) of students (15 students per group). Before using the
simulator, the understanding rate of students in each group is
Assessment of learning outcomes refers to specific processes shown in Figure 10. As it can be seen from this chart, the learning
through which learners demonstrate the attainment of learning rate in all four groups is low. However, after the first try, the rate
outcomes. In a course, the instructor has the obligation to check of understanding increases.
learners whether they have attained the learning outcomes or not. Figure 11 shows the understanding rate of students of each
To assess the depth of learning of learners of this test, a group in four successive tries. The final result is also shown for
question sheet is prepared. The students are required to answer cumulative number of learning of students during four tries in
the questions after theoretical sessions are attained and before Figure 12. After four tries, all the students have got the concepts
using the simulator. Same questions are asked of students after by using the simulation utilities (at the end of each try the same
each try of using the simulator. To be noted is that before the first questions are asked). It is good to mention that during each try,
try of using the simulator, working procedure with simulator is the students may focus on the questions that they have not
taught first and the questions are based only on the machine itself. answered correctly. In a different test, with different learners, it
A student is said to understand the concept, if he/she answers all may take more than four tries for educators to learn the subject to
the questions correctly. all the learners.

CONCLUSION

The present article has outlined and illustrated a MATLAB-


SIMULINK model to simulate power transformers digital
differential protection. The method considerably reduces
the time and cost needed to teach power transformers differential
protection. Therefore, it is very useful for educational purposes
where the budget is limited, or to serve as useful preparatory
exercises during the power system protection course. Several
fault conditions are simulated and interruption of current shows
that designed differential relay work properly. The students can
get the idea from this article and design differential relays or other
kind of relays for different simulation jobs. The undergraduate
Figure 11 Number of students in each group who have under- students can learn how to model and simulate the relay for power
stood the concept in successive four tries of using the simulator. system protection studies.
MATLAB-SIMULINK-BASED SIMULATION 9

Several semesters’ evaluation of the project involving 60 server to facilitate the education of mathematical programming,
students indicates benefits of this project in teaching the power Int J Math Educ Sci Technol 37 (2006), 765782.
transformer differential protection. [12] M. Larsson, ObjectStab—An educational tool for power system
stability studies, IEEE Trans Power Syst 19 (2004), 5663.
[13] V. Lazaridis, K. Paparrizos, N. Samaras, and A. Sifaleras, Visual
REFERENCES Linprog: A web-based educational software for linear program-
ming, Comput Appl Eng Educ 15 (2007), 114.
[14] G. Ziegler, Numerical differential protection: Principles and
[1] S. S. Martin and M. B. Fernandez, Model and performance
applications, 1st edition, Publicis Corporate Publishing, Erlangen,
simulation for overcurrent relay and fault-circuit-breaker using
2005.
SIMULINK, Int J Electr Eng Educ 43 (2006), 8091.
[15] L. G. Hewitson, M. Brown, and R. Balakrishnan, Practical power
[2] Y. Zhang, J. L. Bastos, and N. N. Schulz, Modeling and testing of
systems protection, 1st edition, Elsevier, Oxford, 2005.
protection devices for SPS using MATLAB-SIMULINK and VTB,
Proceedings of IEEE 2007 Electric Ship Technologies Symposium [16] W. A. Elmore, Protective relaying: Theory and applications (ABB),
(ESTS’07), 2007, pp 103108. Marcel Dekker, Inc., New York, 1994.
[3] X. Luo and M. Kezunovic, A novel digital relay model based on [17] P. Liu, O. P. Malik, D. Chen, G. S. Hope, and Y. Guo, Improved
SIMULINK and its validation based on expert system, IEEE Asia operation of differential protection of power transformers for
and Pacific Transmission and Distribution Conference and Exhibi- internal faults, IEEE Trans Power Deliv 7 (1992), 19121919.
tion, 2005, pp 16. [18] M. Gomez-Morante and D. W. Nicoletti, A wavelet-based differ-
[4] S. E. Zocholl and J. Mooney, Primary high-current testing of relays ential transformer protection, IEEE Trans Power Deliv 14 (1999),
with low ratio current transformers, 57th Annual Conference for 13511358.
Protective Relay Engineers, 2004, pp 182189. [19] R. L. Sharp and W. E. Glassburn, A transformer differential relay
[5] J. H. Chow and K. W. Cheung, A toolbox for power system with second-harmonic restraint, AIEE Trans 77 (1958), 913918.
dynamics and control engineering education and research, IEEE [20] C. H. Einval and J. R. Linders, A three-phase differential relay for
Trans Power Syst 7 (1992), 15591564. transformer protection, IEEE Trans PAS PAS-94 (1975),
[6] M. El Sayed and T. Eldin, A novel approach for classifying transient 19711980.
phenomena in power transformers, Int J Emerg Electr Power Syst 1 [21] A. Guzman, S. Zocholl, G. Benmouyal, and H. J. Altuve,
(2004), article 1010. Performance analysis of traditional and improved transformer
[7] K. Deep, D. Birlar, R. P. Maheshwari, H. O. Gupta, and M. Thakur, differential protective relays, SEL Technical Papers.
A population based heuristic algorithm for optimal relay [22] J. Faiz and S. Lotfi-Fard, A novel wavelet-based algorithm for
operating times, World J Model Simulat 2 (2006), 167176. discrimination of internal faults from magnetizing inrush currents in
[8] University of Bologna, EES-UETP Course, Simulation and analysis power transformers, IEEE Trans Power Deliv 21 (2006),
of power systems using MATLAB, http://www.eesuetp.unibo.it/pdf/ 19891996.
matlabcoursebrochure.pdf. [23] S. A. Saleh and M. A. Rahman, Modeling and protection of a three-
[9] B. Vahidi and A. Haghani Abandansari, Teaching ferroresonance in phase power transformer using wavelet packet transform, IEEE
power system to undergraduate students by using MATLAB- Trans Power Deliv 20 (2005), 12731283.
SIMULINK, Comput Appl Eng Educ. http://www3.interscience. [24] M. Nagpal, M. S. Sachdev, K. Ning, and L. M. Wedephol, Using a
wiley.com/journal/38664/home [accessed June 24, 2009]. DOI: neural network for transformer protection, Proceedings of 1995
10.1002/cae.20316. EMPD (Energy Management and Power Delivery), 1995, pp
[10] M. Kezunovic, A. Abur, A. Bose, K. Tomsovic, G. Huang, and M. 674679.
Venkatasubramanian, Using modeling, simulation and digital [25] Mathworks, Inc., MATLAB Manual, Version 7.1, Mathworks, Inc.,
simulators for power engineering education. URL: http://www.e- Massachusetts.
ce.utk.edu/tomsovic/Vitae/Publications/KEZU99.pdf. [26] SIPROTEC 4 7UT6 differential protection relay catalog, https://
[11] P. Karagiannis, I. Markelis, K. Paparrizos, N. Samaras, and A. www.easy-line.siemens.com/irj/portal/ptddss/public/en/global-04/
Sifaleras, E-learning technologies: Employing MATLAB web home.

BIOGRAPHIES

Behrooz Vahidi was born in Abadan, Iran in Ehsan Esmaeeli was born in Najafabad, Iran
1953. He received the BS in electrical engi- in 1981. He received the BS in electrical
neering from Sharif University of Technology, engineering from Isfahan University of Tech-
Tehran, Iran in 1980 and MS degree in nology, Isfahan, Iran in 2004, and MSc in
electrical engineering from Amirkabir Univer- electrical engineering from Amirkabir Univer-
sity of Technology, Tehran, Iran in 1989. He sity of Technology, Tehran, Iran in 2006.
also received his PhD in electrical engineering Presently, he is a PhD student at the Depart-
from UMIST, Manchester, UK in 1997. From ment of Electrical Engineering of Iran Uni-
1980 to 1986 he worked in the field of high versity of Science and Technology, Tehran,
voltage in industry as chief engineer. From Iran. His main fields of research are power system and high-voltage
1989 to present he has been with the Department of Electrical engineering.
Engineering of Amirkabir University of Technology where he is now
a professor. Prof. Vahidi is a senior member of IEEE. His main fields
of research are high voltage, electrical insulation, power system
transient, lightning protection, and pulse power technology. He has
authored and co-authored five books and 200 articles on high-voltage
engineering and power system.

You might also like