Differential Protection: Read Comtrade File Data
Differential Protection: Read Comtrade File Data
Differential Protection
(The relay setting sections are highlighted for your convenience. Please replace the default values with your setting
parameters. Please note: one relay setting should work for all the cases of internal and external faults.)
The MathCAD sheet below implements some basic relay calculations. The file takes data read from a Comtrade file
and postprocesses it.
config
...\EX110AGF1.cfg Right click on the floppy disk icon and select "Choose File" to open a file
browser. Choose the *.cfg file from the contrade file (you will need to type the
extension)
data
Right click on the floppy disk icon and select "Choose File" to open a file
..\EX110AGF1.dat browser. Choose the *.dat file from the contrade file (it should be an accepted file
type)
3
Isascale config Isascale 1.2828 10 Isaoffset config Isaoffset 0.2415
2 5 2 6
5
Isbscale config Isbscale 4.816 10 Isboffset config Isboffset 0.0135
3 5 3 6
5
Iscscale config Iscscale 4.8401 10 Iscoffset config Iscoffset 0.0124
4 5 4 6
3
Irascale config Irascale 1.2828 10 Iraoffset config Iraoffset 0.2415
5 5 5 6
5
Irbscale config Irbscale 4.816 10 Irboffset config Irboffset 0.0135
6 5 6 6
5
Ircscale config Ircscale 4.8401 10 Ircoffset config Ircoffset 0.0124
7 5 7 6
Enter Constants. Note that RS is the sampling rate, and the value of 16 here is assuming that the COMTRADE file was sampled at that rate.
1 1 1 1 a a2 1 a2 a
2
A012 1 a a B012 1 1 1 C012 2
Sampling rate (samples/sec) 1 a a
2 2
RS 16 1 a a 1 a a 1 1 1
ECE 526: Lab 3; Page 3/23
Protection of Power Systems II Spring 2017
Enter vector indices for filter and relay calculations (do not change these)
i 0 rows( data) 1
RS
v rows( data) 1 Offset samples by 1/4 cycles for phasor calculation
4
w RS rows( data) 1 Offset samples by 1 cycles for plotting in the alpha plane (so startup doesn't appear outside of restraint region)
If RS 1 rows( data) 1
CTR 1 VTR 1
The data from the COMTRADE file is now read into vectors for MathCAD to use.
Note that these vectors are assuming that IA, IB, etc are in certain columns in the table. The numbers below assume that the data is assigned as
described in the other handout. Columns 0 and 1 of the COMTRADE file do not store data of interest, so Column 2 is the first one of interest.
data4 data7
Iscoffset
IsC Iscscale Ircoffset
CTR CTR IrC Ircscale
VTR VTR
ECE 526: Lab 3; Page 4/23
Protection of Power Systems II Spring 2017
Now plot the currents and voltages. These should be sinusoidal. Note that the horizontal axis is in the number of cycles since the i/RS is sample
number divided by sampling rate.
As a check, the prefault data should be balanced three phase
60
40
20
IsAi
IsB i
0
IsC i
20
40
60
0 20 40 60
i
RS
ECE 526: Lab 3; Page 5/23
Protection of Power Systems II Spring 2017
60
40
20
IrA i
IrBi
0
IrCi
20
40
60
0 20 40 60
i
RS
ECE 526: Lab 3; Page 6/23
Protection of Power Systems II Spring 2017
RS 1 RS 1
cos 2 π k IsA cos 2 π k IrA
2 2
Isa [ If ( RS 1) ] k
Ira
If RS RS If RS RS [ If ( RS1) ] k
k0 k 0
RS 1 RS 1
cos 2 π k IsB cos 2 π k IrB
2 2
Isb [ If ( RS1) ] k Irb [ If ( RS1) ] k
If RS RS If RS RS
k 0 k0
RS 1
RS 1 cos 2 π k IrC
2
cos 2 π k IsC Irc
2
Isc [ If ( RS1) ] k If RS RS [ If ( RS1) ] k
If RS RS k 0
k0
1
1 IrAcpx Irav j Ira RS
IsAcpx
v Isa j Isa RS v 2 v
2 v v 4
4
1 1
IsBcpx
v Isb j Isb RS IrBcpx Irbv j Irb RS
2 v v v 2 v
4 4
1
1 IrCcpx Ircv j Irc RS
IsCcpx
v Isc j Isc
v RS
v
2 v
2 v 4
4
ECE 526: Lab 3; Page 7/23
Protection of Power Systems II Spring 2017
30 30
24
20
IsAsatv IrAsatv
18
IsBsatv IrBsatv
IsCsatv IrCsatv
12
10
0
0 0 10 20 30 40 50 60
0 10 20 30 40 50 60
v
v
RS
RS
ECE 526: Lab 3; Page 8/23
Protection of Power Systems II Spring 2017
60 60
40 40
Phase A: Is_OPA v 0.001 Ir_OPAv 0.001
20 20
(0.001 is added to get a
better view of the plots when
Y-axis quantity is zero.)
0 0
0 10 20 30 40 50 60 0 10 20 30 40 50 60
v v
RS RS
3 3
2
Is_OPBv 0.001 2
Ir_OPBv 0.001
Is_RTBv 0.001
Phase B: Ir_RTBv 0.001
1
1
0
0 10 20 30 40 50 60
v 0
0 10 20 30 40 50 60
RS v
RS
ECE 526: Lab 3; Page 10/23
Protection of Power Systems II Spring 2017
3 3
2 2
Is_OPCv 0.001 Ir_OPCv 0.001
Phase C: Is_RTCv 0.001 Ir_RTCv 0.001
1 1
0 0
0 10 20 30 40 50 60 0 10 20 30 40 50 60
v v
RS RS
IrAsat
v IsAsat
alpha_sA v
v IsAsat 0.001 alpha_rA
v v IrAsat 0.001 (0.001 is added to avoid the zero-divisor case)
v
IrBsat
v IsBsat
alpha_sB v
v IsBsat 0.001 alpha_rB
v v IrBsat 0.001
v
IrCsat
v IsCsat
alpha_sC v
v IsCsat 0.001 alpha_rC
v v IrCsat 0.001
v
ECE 526: Lab 3; Page 11/23
Protection of Power Systems II Spring 2017
Iaxis 0 1 50
Plot Restraint Slopes
Relay S Relay R
15 15
10 10
5 5
0 0
0 10 20 30 40 50 0 10 20 30 40 50
Iaxis Iaxis
ECE 526: Lab 3; Page 12/23
Protection of Power Systems II Spring 2017
Relay S Relay R
Relay S response
Phase A Phase B
10
10
8 8
Is_OPA v Is_OPBv
4 4
2 2
0
0 0 10 20 30 40 50
0 20 40 60
Iaxis Is_RTBv
Iaxis Is_RTA v
ECE 526: Lab 3; Page 13/23
Protection of Power Systems II Spring 2017
10
8
Phase C
βs_1 Iaxis 6
Is_OPCv
4
0
0 10 20 30 40 50
Iaxis Is_RTCv
Relay R response
Phase A
Phase B
10
10
8 8
Ir_OPAv Ir_OPBv
4 4
2 2
0 0
0 10 20 30 40 50 0 10 20 30 40 50
Iaxis Ir_RTAv Iaxis Ir_RTBv
ECE 526: Lab 3; Page 14/23
Protection of Power Systems II Spring 2017
10
Phase C
βr_1 Iaxis 6
Ir_OPCv
4
0
0 10 20 30 40 50
Iaxis Ir_RTCv
Relay Response
2
2
1.5
1.5
Tr_r1v 1
Tr_s1v 1
0.5
0.5
0
0 0 20 40 60
0 20 40 60
v
v
RS
RS
ECE 526: Lab 3; Page 15/23
Protection of Power Systems II Spring 2017
Relay S Relay R
Rs_E87 1 Rr_E87 1
Rs_87LANG 190 (the angular (in degrees) extent of the restraint region)
Rs_87LR 3 (the outer radius of the restraint region, the inner radius is calculated using the reciprocal of 87R)
Rs_87LPP 0 (the miniumum pickup current (Amp) for qualifies tripping when the alpha plane ratio lies outside the restraint
region)
Relay R
Rr_87LANG 190 (the angular (in degrees) extent of the restraint region)
Rr_87LR 5 (the outer radius of the restraint region, the inner radius is calculated using the reciprocal of 87R)
Rr_87LPP 0 (the minumum pickup current (Amp) for tripping when the alpha plane ratio lies outside the restraint region)
ECE 526: Lab 3; Page 16/23
Protection of Power Systems II Spring 2017
Im Innerk
Im Outerk
Note: the axis limits are set at
Rs_87LR and -Rs_87LR
Im( Upper) 2 0 2
Im( Lower)
2
Plot the relay S alpha plane response against the setting characteristic for each phase
You may want to change axis limits for better view of results:
Im Innerk
Im Outerk
Im( Upper)
Im( Lower)
2 0 2
Im alpha_sAw
Im alpha_sB w
Im alpha_sC w
2
Re Innerk Re Outerk Re( Upper) Re( Lower) Re alpha_sAw Re alpha_sB w Re alpha_sCw
Note that all three phases start at -1 in prefault load flow condition
ECE 526: Lab 3; Page 18/23
Protection of Power Systems II Spring 2017
Plot the relay R alpha plane response for each phase against the setting characteristic
Im Innerk
Im Outerk
Im( Upper)
Im( Lower)
2 0 2
Im alpha_rA w
Im alpha_rBw
Im alpha_rCw
2
Re Innerk Re Outerk Re( Upper) Re( Lower) Re alpha_rA w Re alpha_rBw Re alpha_rCw
ECE 526: Lab 3; Page 19/23
Protection of Power Systems II Spring 2017
Negative sequence element (modified to latch and stay one, no drop out for now)
Relay S
1
Rs_87LA 1 if alpha_sA Rs_87LR alpha_sA
v v v Rs_87LR
( Rs_87LANG 360 ) π ( 360 Rs_87LANG ) π
1 if
360
arg alpha_sA 0.001
v 360
0 otherwise
1
Rs_87LB 1 if alpha_sB Rs_87LR alpha_sB
v v v Rs_87LR
( Rs_87LANG 360 ) π ( 360 Rs_87LANG ) π
1 if
360
arg alpha_sB 0.001
v 360
0 otherwise
ECE 526: Lab 3; Page 20/23
Protection of Power Systems II Spring 2017
1
Rs_87LC 1 if alpha_sC Rs_87LR alpha_sC
v v v Rs_87LR
( Rs_87LANG 360 ) π ( 360 Rs_87LANG ) π
1 if
360
arg alpha_sC 0.001
v 360
0 otherwise
Relay R
1
Rr_87LB 1 if alpha_rB Rr_87LR alpha_rB
v v v Rr_87LR
( Rr_87LANG 360 ) π ( 360 Rr_87LANG) π
1 if
360
arg alpha_rB 0.001
v 360
0 otherwise
1
Rr_87LC 1 if alpha_rC Rr_87LR alpha_rC
v v v Rr_87LR
( Rr_87LANG 360 ) π ( 360 Rr_87LANG) π
1 if
360
arg alpha_rC 0.001
v 360
0 otherwise
2 Relay Response 2
First by phase:
1.5 1.5
0.5 0.5
0 0
0 20 40 60 0 20 40 60
v v
RS RS
2 2
1.5 1.5
0.5
0.5
0
0 0 20 40 60
0 20 40 60
v
v
RS
RS
ECE 526: Lab 3; Page 23/23
Protection of Power Systems II Spring 2017
2 2
1.5 1.5
0.5
0.5
0
0 0 20 40 60
0 20 40 60
v
v
RS
RS
Trip Response
2 2
1.5 1.5
Tr_sv 1 Tr_rv 1
0.5
0.5
0
0 0 20 40 60
0 20 40 60
v
v
RS
RS