SlideShare a Scribd company logo
1 of 33
FACULTY OF ENGINEERING
(INDUSTRIAL ELECTRONIC AND CONTROL)
Semester II
Academic Session 2016
POWER QUALITY IN INDUSTRY
(KXGK6104)
ASSIGNMENT #1:
VOLTAGE SAGS EVALUATION STUDIES
KHAIRI AHMED ELRMALI
KGK1500011
SUBMITTED TO:DR. HAZLIE BIN MOKHLIS
SUBMITTED DATE: 4TH
JUNE 2016
Given below is an IEEE test system of 14-bus network:
Based on the data system given,figure 1 and 2 below are the Y-admittance matrix and Z
impedance matrix using MATLAB software. Here are some coding to obtain these matrices;
% Program to form Admittance And Impedance Bus Formation...
% Bus bus R X B/2 distance
% fr to p.u p.u p.u
linedata=[ 1 2 0.01938 0.05917 0.0528/2 12
1 5 0.05403 0.22304 0.0492/2 35
2 3 0.04699 0.19797 0.0438/2 20
2 4 0.05811 0.17632 0.0374/2 18
2 5 0.05695 0.17388 0.034/2 23
3 4 0.06701 0.17103 0.0346/2 19
4 5 0.01335 0.04211 0.0128/2 5
4 7 0 0.20912 0 0
4 9 0 0.55618 0 0
5 6 0 0.25202 0 0
6 11 0.09498 0.1989 0 24
6 12 0.12291 0.25581 0 61
6 13 0.06615 0.13027 0 23
7 8 0 0.17615 0 0
7 9 0 0.11001 0 0
9 10 0.03181 0.0845 0 16
10 14 0.12711 0.27038 0 22
10 11 0.08205 0.19207 0 16
12 13 0.22092 0.19988 0 21
13 14 0.17093 0.34802 0 30];
%==============///### calculate voltage sag ###///======
% bus voltage angle
v_bus = [1 1.06 0
2 1.045 -4.98
3 1.01 -12.72
4 1.019 -10.33
5 1.02 -8.78
6 1.07 -14.22
7 1.062 -13.37
8 1.09 -13.36
9 1.056 -14.94
10 1.051 -15.1
11 1.057 -14.79
12 1.055 -15.07
13 1.05 -15.16
14 1.036 -16.04];
%==============### Generator data ###==========
% generator X capacity
gendata = [ 1 0.12 250
2 0.15 100
3 0.10 80
6 0.15 50
8 0.1 50 ];
base = 100;
% nl=linedata(:,1); % From bus number..
% nr=linedata(:,2); % To bus number...
% R=linedata(:,3); % Resistance, R...
% X=linedata(:,4); % Reactance, X...
nbranch=length(linedata(:,1)); % no. of branches...
nbus=max(v_bus(:,1)); % no. of buses...
Zline=R+j*X; % Z matrix...
y=ones(nbranch,1)./Zline; % To get inverse of each element...
Y=zeros(nbus,nbus); % Initialize YBus...
% Formation of the Off Diagonal Elements...
for k=1:nbranch;
Y(linedata(k,1),linedata(k,2))= -1/Zline(k);
Y(linedata(k,2),linedata(k,1))= -1/Zline(k);
end
aaa = zeros(nbus,1);
% Formation of Diagonal Elements....
for k=1:nbus
for l=1:nbranch
if((k==linedata(l,1))||(k==linedata(l,2)))
aaa(k,:)=1/(linedata(l,3)+linedata(l,4)*i+linedata(l,5)*i)+ aaa(k,:);
Y(k,k)=aaa(k,:);
end
end
end
YY = Y;
%========= To add generator sub-transient data into the Y matrix
for ia=1:nbus
for ib = 1:length(gendata)
if (ia == gendata(ib,1))
Y(ia,ia) = Y(ia,ia) + 1/(gendata(ib,2)*gendata(ib,3)/base)
end
end
end
Y; % Bus Admittance Matrix
Z = inv(Y); % Bus Impedance Matrix
Figure 1: Y-admittance matrix(data workspace)
Figure 2: Z-impedance matrix (data workspace)
Question1
1. Calculate voltage sag at bus 5 and 14 when three-phase-fault occurs at each bus in the
system.The pre-fault voltage (per unit) of all buses are given below:
Voltage sag formula:
Data for the pre-fault voltage (p.u) of
all the buses are convert into real and
imaginary form;
Figure 4 is obtain from these coding below;
% calculate angle
for ia = 1:nbus
ang = v_bus(ia,3)*3.142/180;
mag = v_bus(ia,2);
[a,b] = pol2cart(ang,mag);
v_bus_new(ia,:) = [a + b*i];
end
Figure 3: Cartesian form
Figure 4 is obtain from these coding below;
% voltage sag at 5
i_s = 5;
for i_f = 1:nbus;
V_val5(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f);
end
V_val5
Figure 4 : voltage sag at 5
Figure5 is obtain from these coding below;
% voltage sag at 14
i_s = 14;
ff
fi
fii
Z
Z
VVVsag −=
for i_f = 1:nbus;
V_val14(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f);
end
V_val14
Figure5: voltage sag at 14
% %% polar form
Figure 6 is obtain from these coding below;
for ia=1:nbus
[x1,y1] = cart2pol(real(V_val5(ia,1)),imag(V_val5(ia,1)));
plot_y(ia,1) = y1;
[x2,y2] = cart2pol(real(V_val14(ia,1)),imag(V_val14(ia,1)));
plot_y(ia,2) = y2;
end
%
Vsag1
4Vsag5
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.5
1
1.5
voltage sag at bus 5
line bus of system
voltagesagmagnitude
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.2
0.4
0.6
0.8
1
1.2
1.4
voltage sag at bus 14
line bus of system
voltagesagmagnitude
Figure 6: Bar graph for both voltage sag at bus 5 and bus 14
Question2
(a) Line 11 –10 and line 13 -14 is open.
Figure 7 and 8 are the Y-admittance and Z-impedance matrices when line 11-10 and line 13-14
are open
Figure 7: Y-admittance matrix when line 11-10 and line 13-14 is open
Figure 8: Z-impedance matrix when line 11-10 and line 13-14 is open
Figure 9 and 10 are the values of both voltage sag at bus 5 and 14 respectively when the line 11-
10 and line 13-14 are open.
Figure 9: Voltage sag at bus 5&14 when lines are open
Figure 10: bar graph of voltage sag at bus 5&14 when lines are open
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.5
1
1.5
system of 14-bus network
voltagesagmagnitude
Voltage sag at bus 5 line 11-10 & line 13-14 are open
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.2
0.4
0.6
0.8
1
1.2
1.4
system of 14 bus network
voltagesagmagnitude
voltage sag at 14 when line 10-11 and 13-14 are open
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.2
0.4
0.6
0.8
1
1.2
1.4
system 14 bus network
voltagemagnitude
comparison between voltage sag at 14 present lines & open lines
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.5
1
1.5
system of 14 bus network
voltagesagmagnitude
Comparison between valtage sag at 5 present lines & open lines
Figure 11 : comparison between voltage sag at bus 5&14

Q2 cont....
(b) Generator at bus 6 and 8 are taken out from the system.
Figure 12 and 13 are the Y-admittance and Z-impedance when generator at bus 6 and 8 are taken
out from the system.
Figure12: Y-admittance when generator at bus 6 and bus 8 are taken out from system
Figure13: Z-impedance when generator at bus 6 and bus 8 are taken out from system
Figure 14 and 15 are the values of voltage sag at bus 5 and 14 respectively when the generator 6
and 8 are taken out from the system.
Figure 14: voltage sag at bus 5 and 14 when generator are taken out
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.5
1
1.5
2
2.5
system of 14 bus network
voltagesagmagnitude
comparison between voltage sag at bus 5 present & generator taken out
1 2 3 4 5 6 7 8 9 10 11 12 13 14
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
2
Comparison between voltage sag at 14 present & generator taken out
system of 14 bus network
voltagesagmagnitude
Figure 15 : comparison between voltage sag at bus 5&14
Question 3
*Short circuit
event = 5
events/100km/year
Figure 16 is obtain from these coding below;
for ia =1:nbranch
Event_data(ia,:) = [linedata(ia,:) linedata(ia,6)*5/100];
end
Event_data
eventcicuitShortc
100km
(km)Distance
frequencyVsagExpected ×=
Figure 16 :Expected V sag frequency
Estimation of voltage sag on a line can be calculated as the average of voltage sag between the
two connected busses
Figure 17 average of voltage sag between the two connected busses occurred at bus 5 & bus 14
for each lines.
is obtain from these coding below;
for ia = 1:nbranch
Vol_Event_data5(ia,1)= (V_val5(linedata(ia,1),1) + V_val5(linedata(ia,2),1))/2;
Vol_Event_data14(ia,1)= (V_val14(linedata(ia,1),1) + V_val14(linedata(ia,2),1))/2;
end
for ia = 1:nbranch
[x1,y1] = cart2pol (real(Vol_Event_data5(ia,1)),imag(Vol_Event_data5(ia,1)));
V_event5(ia,1) = y1;
[x1,y1] = cart2pol (real(Vol_Event_data14(ia,1)),imag(Vol_Event_data14(ia,1)));
V_event14(ia,1) = y1;
end
Event_val = [linedata(:,1) linedata(:,2) Event_data(:,7) V_event5(:,1) V_event14(:,1)];
Figure 17 average of voltage sag occurred at bus 5 & bus 14 for each lines.
Estimation of voltage event under 50% of the nominal 1.0 p.u a year for Bus 5: Voltage sag
< 0.5 :
To obtain from these coding below”
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)<0.5) %VOLTAGE AS SEEN AT BUS 5
store5(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
Events_under_50_bus_5 = sum(store5(:,3))
Estimation of voltage event = 0.6 + 1.75 + 0.9 + 1.15 + 0.25 = 4.6500
Events_under_50_bus_5 =
4.6500
Estimation of voltage event under 50% of the nominal 1.0 p.u a year for Bus 14: Voltage
sag < 0.5 :
To obtain from these coding below”
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,5)<0.5) %VOLTAGE AS SEEN ATBUS 14
store14(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
Events_under_50_bus_14= sum(store14(:,3)) % script file
Estimation of voltage event = 1.2 + 1.15 + 0.8 + 1.1 + 0.8 + 1.5 = 6.55
Events_under_50_bus_14 = % script file
6.5500
1 2 3 4 5 6
0
0.2
0.4
0.6
0.8
1
1.2
1.4
1.6
1.8
voltage event under 50% for Bus 5 & Bus 14
bus network
averagevoltagesag
Estimation of voltage event under 50%
Question 4
1. Based on the analysis the number of voltage sag at bus 5 and bus 14 according to the sag
magnitude level as in the following table (% nominal 1.0 pu).
%% less than 10 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)<0.1)
store5_10(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)<0.1)
store14_10(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_10 = 0;
else
Vsag (%) 0-10 10-20 20 - 30 30- 40 40 - 50 50- 60 60 70 70- 80 80 - 90 90- 100
Number of
sag at
bus 5
3.50 1.15 0 0 0 0 0 1.0 0.95 0
Number of
sag at
bus 14
0 1.10 1.5 1.15 2.8 4.1 0.0 4.65 0.0 1.0
b5_10 = sum(store5_10(:,3));
end
if (ic <2 )
b14_10 = 0;
else
b14_10 = sum(store14_10(:,3));
End
Q5
By analyzing from the above graph we have seen that in Figure below on the estimation of
voltage event under 50% of the nominal a year for both bus 5 and 14, given that the value
estimation for bus 5 is lower than the value estimation of bus 14 which is 4.65 and 6.55
respectively.
To place a factory manufacturing electronic components, the place at bus 5 is more suitable place
rather than at bus 14 since it gives lower voltage sags under the voltage event.
Q6
The number of voltage sags that can occur at your facility depends on where you're located, the
characteristics of your utility's distribution system (underground vs. overhead, lengths of the
distribution feeder circuits, and number of feeders), lightning level in the area, number of trees
adjacent to the power lines, and several other factors.
 For improve lines and area in proper stability, we should arrange some methods and steps
thus system will back on its stability though fault is occurred in other lines. We have
introduces capacitor bank or Super Capacitor in the transmission lines
 Magnetic synthesizers, which are 3-phase devices that take advantage of their 3-phase
magnetics to provide improved voltage sag support and regulation.
Useful link
-http://ecmweb.com/content/dealing-voltage-sags-your-facility
clear all
clc
% Program to form Admittance And Impedance Bus Formation...
% Bus bus R X B/2 distance
% fr to p.u p.u p.u
linedata = [1 2 0.01938 0.05917 0.0528/2 12
1 5 0.05403 0.22304 0.0492/2 35
2 3 0.04699 0.19797 0.0438/2 20
2 4 0.05811 0.17632 0.0374/2 18
2 5 0.05695 0.17388 0.034/2 23
3 4 0.06701 0.17103 0.0346/2 19
4 5 0.01335 0.04211 0.0128/2 5
4 7 0 0.20912 0 0
4 9 0 0.55618 0 0
5 6 0 0.25202 0 0
6 11 0.09498 0.1989 0 24
6 12 0.12291 0.25581 0 61
6 13 0.06615 0.13027 0 23
7 8 0 0.17615 0 0
7 9 0 0.11001 0 0
9 10 0.03181 0.0845 0 16
10 14 0.12711 0.27038 0 22
10 11 0.08205 0.19207 0 16
12 13 0.22092 0.19988 0 21
13 14 0.17093 0.34802 0 30];
%==============///### calculate voltage sag ###///======
% bus voltage angle
v_bus = [1 1.06 0
2 1.045 -4.98
3 1.01 -12.72
4 1.019 -10.33
5 1.02 -8.78
6 1.07 -14.22
7 1.062 -13.37
8 1.09 -13.36
9 1.056 -14.94
10 1.051 -15.1
11 1.057 -14.79
12 1.055 -15.07
13 1.05 -15.16
14 1.036 -16.04];
%==============### Generator data ###==========
% generator X capacity
gendata = [1 0.12 250
2 0.15 100
3 0.10 80
6 0.15 50
8 0.1 50];
base = 100;
% nl=linedata(:,1); % From bus number..
% nr=linedata(:,2); % To bus number...
R=linedata(:,3); % Resistance, R...
X=linedata(:,4); % Reactance, X...
nbranch=length(linedata(:,1)); % no. of branches...
nbus=max(v_bus(:,1)); % no. of buses...
Zline=R+j*X; % Z matrix...
y=ones(nbranch,1)./Zline; % To get inverse of each element...
Y=zeros(nbus,nbus); % Initialise YBus...
% Formation of the Off Diagonal Elements...
for k=1:nbranch;
Y(linedata(k,1),linedata(k,2))= -1/Zline(k);
Y(linedata(k,2),linedata(k,1))= -1/Zline(k);
end
aaa = zeros(nbus,1);
% Formation of Diagonal Elements....
for k=1:nbus
for l=1:nbranch
if((k==linedata(l,1))||(k==linedata(l,2)))
aaa(k,:)=1/(linedata(l,3)+linedata(l,4)*i+linedata(l,5)*i)+ aaa(k,:);
Y(k,k)=aaa(k,:);
end
end
end
YY = Y;
%========= To add generator sub-transient data into the Y matrix
for ia=1:nbus
for ib = 1:length(gendata)
if (ia == gendata(ib,1))
Y(ia,ia) = Y(ia,ia) + 1/(gendata(ib,2)*gendata(ib,3)/base);
end
end
end
Y; % Bus Admittance Matrix
Z = inv(Y); % Bus Impedance Matrix
% calculate angle
for ia = 1:nbus
ang = v_bus(ia,3)*3.142/180;
mag = v_bus(ia,2);
[a,b] = pol2cart(ang,mag);
v_bus_new(ia,:) = [a + b*i];
end
%% Q 1 /// voltage sag calculation for faulted bus ////
% voltage sag at 5 and 14
i_s = 5;
for i_f = 1:nbus;
%V_val5(i_f,:) = v_bus(i_s,2) - v_bus(i_f,2)*Z(i_s,i_f)/Z(i_f,i_f);
V_val5(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f);
end
V_val5;
i_s = 14;
for i_f = 1:nbus;
%V_val10(i_f,:) = v_bus(i_s,2) - v_bus(i_f,2)*Z(i_s,i_f)/Z(i_f,i_f);
V_val14(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f);
end
V_val14;
%
% %% polar form
for ia=1:nbus
[x1,y1] = cart2pol(real(V_val5(ia,1)),imag(V_val5(ia,1)));
plot_y(ia,1) = y1;
[x2,y2] = cart2pol(real(V_val14(ia,1)),imag(V_val14(ia,1)));
plot_y(ia,2) = y2;
end
%
%% Question 3
for ia =1:nbranch
Event_data(ia,:) = [linedata(ia,:) linedata(ia,6)*5/100];
end
Event_data
for ia = 1:nbranch
Vol_Event_data5(ia,1)= (V_val5(linedata(ia,1),1) + V_val5(linedata(ia,2),1))/2;
Vol_Event_data14(ia,1)= (V_val14(linedata(ia,1),1) + V_val14(linedata(ia,2),1))/2;
end
for ia = 1:nbranch
[x1,y1] = cart2pol (real(Vol_Event_data5(ia,1)),imag(Vol_Event_data5(ia,1)));
V_event5(ia,1) = y1;
[x1,y1] = cart2pol (real(Vol_Event_data14(ia,1)),imag(Vol_Event_data14(ia,1)));
V_event14(ia,1) = y1;
end
Event_val = [linedata(:,1) linedata(:,2) Event_data(:,7) V_event5(:,1) V_event14(:,1)];
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)<0.5) %VOLTAGE AS SEEN AT BUS 5
store5(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)<0.5) %VOLTAGE AS SEEN AT BUS 14
store14(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
Events_under_50_bus_5 = sum(store5(:,3))
Events_under_50_bus_14= sum(store14(:,3))
%
% %%Question 4
%% less than 10 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)<0.1)
store5_10(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)<0.1)
store14_10(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_10 = 0;
else
b5_10 = sum(store5_10(:,3));
end
if (ic <2 )
b14_10 = 0;
else
b14_10 = sum(store14_10(:,3));
end
%% between 10 - 20 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.1 && Event_val(ia,4)<0.2)
store5_20(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.1 && Event_val(ia,5)<0.2)
store14_20(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_20 = 0;
else
b5_20 = sum(store5_20(:,3));
end
if (ic <2 )
b14_20 = 0;
else
b14_20 = sum(store14_20(:,3));
end
%% between 20 - 30 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.2 && Event_val(ia,4)<0.3)
store5_30(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.2 && Event_val(ia,5)<0.3)
store14_30(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_30 = 0;
else
b5_30 = sum(store5_30(:,3));
end
if (ic <2 )
b14_30 = 0;
else
b14_30 = sum(store14_30(:,3));
end
%% between 30 - 40 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.3 && Event_val(ia,4)<0.4)
store5_40(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.3 && Event_val(ia,5)<0.4)
store14_40(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_40 = 0;
else
b5_40 = sum(store5_40(:,3));
end
if (ic <2 )
b14_40 = 0;
else
b14_40 = sum(store14_40(:,3));
end
%% between 40 - 50 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.4 && Event_val(ia,4)<0.5)
store5_50(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.4 && Event_val(ia,5)<0.5)
store14_50(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_50 = 0;
else
b5_50 = sum(store5_50(:,3));
end
if (ic <2 )
b14_50 = 0;
else
b14_50 = sum(store14_50(:,3));
end
%% between 50 - 60 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.5 && Event_val(ia,4)<0.6)
store5_60(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.5 && Event_val(ia,5)<0.6)
store14_60(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_60 = 0;
else
b5_60 = sum(store5_60(:,3));
end
if (ic <2 )
b14_60 = 0;
else
b14_60 = sum(store14_60(:,3));
end
%% between 60 - 70 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.6 && Event_val(ia,4)<0.7)
store5_70(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.6 && Event_val(ia,5)<0.7)
store14_70(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_70 = 0;
else
b5_70 = sum(store5_70(:,3));
end
if (ic <2 )
b14_70 = 0;
else
b14_70 = sum(store14_70(:,3));
end
%% between 70 - 80 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.7 && Event_val(ia,4)<0.8)
store5_80(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.7 && Event_val(ia,5)<0.8)
store14_80(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_80 = 0;
else
b5_80 = sum(store5_80(:,3));
end
if (ic <2 )
b14_80 = 0;
else
b14_80 = sum(store14_80(:,3));
end
%% between 80 - 90 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.8 && Event_val(ia,4)<0.9)
store5_90(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.8 && Event_val(ia,5)<0.9)
store14_90(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_90 = 0;
else
b5_90 = sum(store5_90(:,3));
end
if (ic <2 )
b14_90 = 0;
else
b14_90 = sum(store14_90(:,3));
end
%% between 90 - 100 percent
ib=1;
ic=1;
for ia=1:nbranch
if(Event_val(ia,4)>0.9 && Event_val(ia,4)<1)
store5_100(ib,:) = [Event_val(ia,1:4)];
ib = ib +1;
end
if(Event_val(ia,5)>0.9 && Event_val(ia,5)<1)
store14_100(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)];
ic = ic +1;
end
end
if (ib <2)
b5_100 = 0;
else
b5_100 = sum(store5_100(:,3));
end
if (ic <2 )
b14_100 = 0;
else
b14_100 = sum(store14_100(:,3));
end
bus_5_sags = [b5_10 b5_20 b5_30 b5_40 b5_50 b5_60 b5_70 b5_80 b5_90 b5_100]
bus_14_sags = [b14_10 b14_20 b14_30 b14_40 b14_50 b14_60 b14_70 b14_80 b14_90
b14_100]
%% display for question 4
fprintf ('| Bus number | 0-10 | 10-20 | 20-30 | 30-40 | 40-50 | 50-60 | 60-70 | 70-80 | 80-90 | 90-100
|n')
fprintf ('| Bus_5 | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f
|n',bus_5_sags)
fprintf ('| Bus_14 | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f
|n',bus_14_sags)

More Related Content

What's hot

如何修改TOTOLINK路由器的LAN IP
如何修改TOTOLINK路由器的LAN IP如何修改TOTOLINK路由器的LAN IP
如何修改TOTOLINK路由器的LAN IPTOTO LINK
 
A tundra élővilága
A tundra élővilágaA tundra élővilága
A tundra élővilágabkovacs209
 
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼如何查詢TOTOLINK N100RE無線路由器的無線網路密碼
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼臺灣塔米歐
 
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)
TOTOLINK 路由器要如何Reset(完全恢復原廠預設值)TOTOLINK 路由器要如何Reset(完全恢復原廠預設值)
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)臺灣塔米歐
 
[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote Shellcode[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote ShellcodeAj MaChInE
 
TDOH x 台科 pwn課程
TDOH x 台科 pwn課程TDOH x 台科 pwn課程
TDOH x 台科 pwn課程Weber Tsai
 
多憑證網路承保作業系統-107.10版
多憑證網路承保作業系統-107.10版多憑證網路承保作業系統-107.10版
多憑證網路承保作業系統-107.10版中央健康保險署
 
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?臺灣塔米歐
 
Understanding of linux kernel memory model
Understanding of linux kernel memory modelUnderstanding of linux kernel memory model
Understanding of linux kernel memory modelSeongJae Park
 
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?臺灣塔米歐
 
Informatika története
Informatika történeteInformatika története
Informatika történeteRóbert Moór
 
Cours Internet - Téléchargement de fichiers
Cours Internet - Téléchargement de fichiersCours Internet - Téléchargement de fichiers
Cours Internet - Téléchargement de fichiersTunisie collège
 
腓利門書第一章 從奴隸變成弟兄
腓利門書第一章從奴隸變成弟兄腓利門書第一章從奴隸變成弟兄
腓利門書第一章 從奴隸變成弟兄查經簡報分享
 
20170925 onos and p4
20170925 onos and p420170925 onos and p4
20170925 onos and p4Yi Tseng
 

What's hot (19)

如何修改TOTOLINK路由器的LAN IP
如何修改TOTOLINK路由器的LAN IP如何修改TOTOLINK路由器的LAN IP
如何修改TOTOLINK路由器的LAN IP
 
A tundra élővilága
A tundra élővilágaA tundra élővilága
A tundra élővilága
 
使徒行傳第13章(上)ppt
使徒行傳第13章(上)ppt使徒行傳第13章(上)ppt
使徒行傳第13章(上)ppt
 
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼如何查詢TOTOLINK N100RE無線路由器的無線網路密碼
如何查詢TOTOLINK N100RE無線路由器的無線網路密碼
 
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)
TOTOLINK 路由器要如何Reset(完全恢復原廠預設值)TOTOLINK 路由器要如何Reset(完全恢復原廠預設值)
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)
 
[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote Shellcode[若渴計畫] Challenges and Solutions of Window Remote Shellcode
[若渴計畫] Challenges and Solutions of Window Remote Shellcode
 
1.11 실행계획 해석 predicate
1.11 실행계획 해석 predicate1.11 실행계획 해석 predicate
1.11 실행계획 해석 predicate
 
TDOH x 台科 pwn課程
TDOH x 台科 pwn課程TDOH x 台科 pwn課程
TDOH x 台科 pwn課程
 
多憑證網路承保作業系統-107.10版
多憑證網路承保作業系統-107.10版多憑證網路承保作業系統-107.10版
多憑證網路承保作業系統-107.10版
 
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?
02.為什麼在網址列輸入totolink路由器的ip位址10.1.1.1,卻無法顯示網頁?
 
Understanding of linux kernel memory model
Understanding of linux kernel memory modelUnderstanding of linux kernel memory model
Understanding of linux kernel memory model
 
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?
為什麼在網址列輸入TOTOLINK路由器的IP位址192.168.1.1,卻無法顯示網頁?
 
Informatika története
Informatika történeteInformatika története
Informatika története
 
Kernel cooperativo
Kernel cooperativoKernel cooperativo
Kernel cooperativo
 
撒母耳記上 第六章
撒母耳記上 第六章撒母耳記上 第六章
撒母耳記上 第六章
 
Cours Internet - Téléchargement de fichiers
Cours Internet - Téléchargement de fichiersCours Internet - Téléchargement de fichiers
Cours Internet - Téléchargement de fichiers
 
腓利門書第一章 從奴隸變成弟兄
腓利門書第一章從奴隸變成弟兄腓利門書第一章從奴隸變成弟兄
腓利門書第一章 從奴隸變成弟兄
 
20170925 onos and p4
20170925 onos and p420170925 onos and p4
20170925 onos and p4
 
ARM and SoC Traning Part I -- Overview
ARM and SoC Traning Part I -- OverviewARM and SoC Traning Part I -- Overview
ARM and SoC Traning Part I -- Overview
 

Similar to Voltage sags evaluation studies

Distance Algorithm for Transmission Line with Mid-Point Connected STATCOM
Distance Algorithm for Transmission Line with Mid-Point Connected STATCOMDistance Algorithm for Transmission Line with Mid-Point Connected STATCOM
Distance Algorithm for Transmission Line with Mid-Point Connected STATCOMIRJET Journal
 
Multi phase Star Rectifier
Multi phase Star Rectifier Multi phase Star Rectifier
Multi phase Star Rectifier ZunAib Ali
 
Gate ee 2008 with solutions
Gate ee 2008 with solutionsGate ee 2008 with solutions
Gate ee 2008 with solutionskhemraj298
 
Electrical Engineering Assignment Help
Electrical Engineering Assignment HelpElectrical Engineering Assignment Help
Electrical Engineering Assignment HelpEdu Assignment Help
 
Errors analysis in distance relay readings with presence of facts devices
Errors analysis in distance relay readings with presence of facts devicesErrors analysis in distance relay readings with presence of facts devices
Errors analysis in distance relay readings with presence of facts devicesAlexander Decker
 
Fault Analysis using Z Bus..pdf
Fault Analysis using Z Bus..pdfFault Analysis using Z Bus..pdf
Fault Analysis using Z Bus..pdfSaravanan A
 
FAULT DETECTION ON OVERHEAD TRANSMISSION LINE USING ARTIFICIAL NEURAL NET...
 FAULT DETECTION ON OVERHEAD TRANSMISSION LINE  USING ARTIFICIAL NEURAL NET... FAULT DETECTION ON OVERHEAD TRANSMISSION LINE  USING ARTIFICIAL NEURAL NET...
FAULT DETECTION ON OVERHEAD TRANSMISSION LINE USING ARTIFICIAL NEURAL NET...Politeknik Negeri Ujung Pandang
 
A New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierA New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierYayah Zakaria
 
A New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierA New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierIJECEIAES
 
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...IJERA Editor
 
D0372027037
D0372027037D0372027037
D0372027037theijes
 
Fault modeling and parametric fault detection in analog VLSI circuits using d...
Fault modeling and parametric fault detection in analog VLSI circuits using d...Fault modeling and parametric fault detection in analog VLSI circuits using d...
Fault modeling and parametric fault detection in analog VLSI circuits using d...IJECEIAES
 
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...Alexander Litvinenko
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdfssuser476810
 
Gate ee 2005 with solutions
Gate ee 2005 with solutionsGate ee 2005 with solutions
Gate ee 2005 with solutionskhemraj298
 

Similar to Voltage sags evaluation studies (20)

Distance Algorithm for Transmission Line with Mid-Point Connected STATCOM
Distance Algorithm for Transmission Line with Mid-Point Connected STATCOMDistance Algorithm for Transmission Line with Mid-Point Connected STATCOM
Distance Algorithm for Transmission Line with Mid-Point Connected STATCOM
 
Ee2404.set2
Ee2404.set2Ee2404.set2
Ee2404.set2
 
Multi phase Star Rectifier
Multi phase Star Rectifier Multi phase Star Rectifier
Multi phase Star Rectifier
 
Gate ee 2008 with solutions
Gate ee 2008 with solutionsGate ee 2008 with solutions
Gate ee 2008 with solutions
 
Electrical Engineering Assignment Help
Electrical Engineering Assignment HelpElectrical Engineering Assignment Help
Electrical Engineering Assignment Help
 
Errors analysis in distance relay readings with presence of facts devices
Errors analysis in distance relay readings with presence of facts devicesErrors analysis in distance relay readings with presence of facts devices
Errors analysis in distance relay readings with presence of facts devices
 
Uv CBPSD lab
Uv CBPSD labUv CBPSD lab
Uv CBPSD lab
 
Report_AKbar_PDF
Report_AKbar_PDFReport_AKbar_PDF
Report_AKbar_PDF
 
Final Project
Final ProjectFinal Project
Final Project
 
Fault Analysis using Z Bus..pdf
Fault Analysis using Z Bus..pdfFault Analysis using Z Bus..pdf
Fault Analysis using Z Bus..pdf
 
FAULT DETECTION ON OVERHEAD TRANSMISSION LINE USING ARTIFICIAL NEURAL NET...
 FAULT DETECTION ON OVERHEAD TRANSMISSION LINE  USING ARTIFICIAL NEURAL NET... FAULT DETECTION ON OVERHEAD TRANSMISSION LINE  USING ARTIFICIAL NEURAL NET...
FAULT DETECTION ON OVERHEAD TRANSMISSION LINE USING ARTIFICIAL NEURAL NET...
 
A New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierA New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation Amplifier
 
A New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation AmplifierA New Proposal for OFCC-based Instrumentation Amplifier
A New Proposal for OFCC-based Instrumentation Amplifier
 
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...
Design And Simulation Of Distributed Statcom Controller For Power Factor Impr...
 
Fq3510001006
Fq3510001006Fq3510001006
Fq3510001006
 
D0372027037
D0372027037D0372027037
D0372027037
 
Fault modeling and parametric fault detection in analog VLSI circuits using d...
Fault modeling and parametric fault detection in analog VLSI circuits using d...Fault modeling and parametric fault detection in analog VLSI circuits using d...
Fault modeling and parametric fault detection in analog VLSI circuits using d...
 
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...
Computation of Electromagnetic Fields Scattered from Dielectric Objects of Un...
 
BS LAB Manual (1).pdf
BS LAB Manual  (1).pdfBS LAB Manual  (1).pdf
BS LAB Manual (1).pdf
 
Gate ee 2005 with solutions
Gate ee 2005 with solutionsGate ee 2005 with solutions
Gate ee 2005 with solutions
 

More from Web Design & Development

power electronic computer simulation and analysis
power electronic computer simulation and analysispower electronic computer simulation and analysis
power electronic computer simulation and analysisWeb Design & Development
 
Selecting efficiency and estimating savings
Selecting efficiency and estimating savingsSelecting efficiency and estimating savings
Selecting efficiency and estimating savingsWeb Design & Development
 
Capacitive cmos sensors for cell viability testing
Capacitive cmos sensors for cell viability testingCapacitive cmos sensors for cell viability testing
Capacitive cmos sensors for cell viability testingWeb Design & Development
 
design and simulation of valveless piezoelectric micropumppresentation
design and simulation of valveless piezoelectric micropumppresentationdesign and simulation of valveless piezoelectric micropumppresentation
design and simulation of valveless piezoelectric micropumppresentationWeb Design & Development
 
Electromagnetic pollution and its health effects on the organism
Electromagnetic pollution and its  health effects on the organismElectromagnetic pollution and its  health effects on the organism
Electromagnetic pollution and its health effects on the organismWeb Design & Development
 
Dc motor speed controller by pwm technique
Dc motor speed controller by pwm techniqueDc motor speed controller by pwm technique
Dc motor speed controller by pwm techniqueWeb Design & Development
 

More from Web Design & Development (18)

Basic PLC Ladder Programming
Basic PLC Ladder ProgrammingBasic PLC Ladder Programming
Basic PLC Ladder Programming
 
Emi emc-pdf
Emi emc-pdfEmi emc-pdf
Emi emc-pdf
 
Unipolar pulse width modulation inverter
Unipolar pulse width modulation inverterUnipolar pulse width modulation inverter
Unipolar pulse width modulation inverter
 
mosfet scaling_
mosfet scaling_mosfet scaling_
mosfet scaling_
 
Estimating parameters of IM
Estimating parameters of IM Estimating parameters of IM
Estimating parameters of IM
 
power electronic computer simulation and analysis
power electronic computer simulation and analysispower electronic computer simulation and analysis
power electronic computer simulation and analysis
 
How to calculate β
How to calculate βHow to calculate β
How to calculate β
 
Opertional amplifier khiri elrmali libya
Opertional amplifier khiri elrmali  libyaOpertional amplifier khiri elrmali  libya
Opertional amplifier khiri elrmali libya
 
DC servo motor
DC servo motorDC servo motor
DC servo motor
 
Cantilever1
Cantilever1Cantilever1
Cantilever1
 
Selecting efficiency and estimating savings
Selecting efficiency and estimating savingsSelecting efficiency and estimating savings
Selecting efficiency and estimating savings
 
ceiling fan
 ceiling fan  ceiling fan
ceiling fan
 
Capacitive cmos sensors for cell viability testing
Capacitive cmos sensors for cell viability testingCapacitive cmos sensors for cell viability testing
Capacitive cmos sensors for cell viability testing
 
Presentation1
Presentation1Presentation1
Presentation1
 
design and simulation of valveless piezoelectric micropumppresentation
design and simulation of valveless piezoelectric micropumppresentationdesign and simulation of valveless piezoelectric micropumppresentation
design and simulation of valveless piezoelectric micropumppresentation
 
emc
emcemc
emc
 
Electromagnetic pollution and its health effects on the organism
Electromagnetic pollution and its  health effects on the organismElectromagnetic pollution and its  health effects on the organism
Electromagnetic pollution and its health effects on the organism
 
Dc motor speed controller by pwm technique
Dc motor speed controller by pwm techniqueDc motor speed controller by pwm technique
Dc motor speed controller by pwm technique
 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 

Voltage sags evaluation studies

  • 1. FACULTY OF ENGINEERING (INDUSTRIAL ELECTRONIC AND CONTROL) Semester II Academic Session 2016 POWER QUALITY IN INDUSTRY (KXGK6104) ASSIGNMENT #1: VOLTAGE SAGS EVALUATION STUDIES KHAIRI AHMED ELRMALI KGK1500011 SUBMITTED TO:DR. HAZLIE BIN MOKHLIS SUBMITTED DATE: 4TH JUNE 2016
  • 2. Given below is an IEEE test system of 14-bus network: Based on the data system given,figure 1 and 2 below are the Y-admittance matrix and Z impedance matrix using MATLAB software. Here are some coding to obtain these matrices; % Program to form Admittance And Impedance Bus Formation... % Bus bus R X B/2 distance % fr to p.u p.u p.u linedata=[ 1 2 0.01938 0.05917 0.0528/2 12 1 5 0.05403 0.22304 0.0492/2 35 2 3 0.04699 0.19797 0.0438/2 20 2 4 0.05811 0.17632 0.0374/2 18 2 5 0.05695 0.17388 0.034/2 23 3 4 0.06701 0.17103 0.0346/2 19 4 5 0.01335 0.04211 0.0128/2 5 4 7 0 0.20912 0 0 4 9 0 0.55618 0 0 5 6 0 0.25202 0 0
  • 3. 6 11 0.09498 0.1989 0 24 6 12 0.12291 0.25581 0 61 6 13 0.06615 0.13027 0 23 7 8 0 0.17615 0 0 7 9 0 0.11001 0 0 9 10 0.03181 0.0845 0 16 10 14 0.12711 0.27038 0 22 10 11 0.08205 0.19207 0 16 12 13 0.22092 0.19988 0 21 13 14 0.17093 0.34802 0 30]; %==============///### calculate voltage sag ###///====== % bus voltage angle v_bus = [1 1.06 0 2 1.045 -4.98 3 1.01 -12.72 4 1.019 -10.33 5 1.02 -8.78 6 1.07 -14.22 7 1.062 -13.37 8 1.09 -13.36 9 1.056 -14.94 10 1.051 -15.1 11 1.057 -14.79 12 1.055 -15.07 13 1.05 -15.16 14 1.036 -16.04]; %==============### Generator data ###========== % generator X capacity gendata = [ 1 0.12 250 2 0.15 100 3 0.10 80 6 0.15 50 8 0.1 50 ]; base = 100; % nl=linedata(:,1); % From bus number.. % nr=linedata(:,2); % To bus number... % R=linedata(:,3); % Resistance, R... % X=linedata(:,4); % Reactance, X... nbranch=length(linedata(:,1)); % no. of branches... nbus=max(v_bus(:,1)); % no. of buses... Zline=R+j*X; % Z matrix...
  • 4. y=ones(nbranch,1)./Zline; % To get inverse of each element... Y=zeros(nbus,nbus); % Initialize YBus... % Formation of the Off Diagonal Elements... for k=1:nbranch; Y(linedata(k,1),linedata(k,2))= -1/Zline(k); Y(linedata(k,2),linedata(k,1))= -1/Zline(k); end aaa = zeros(nbus,1); % Formation of Diagonal Elements.... for k=1:nbus for l=1:nbranch if((k==linedata(l,1))||(k==linedata(l,2))) aaa(k,:)=1/(linedata(l,3)+linedata(l,4)*i+linedata(l,5)*i)+ aaa(k,:); Y(k,k)=aaa(k,:); end end end YY = Y; %========= To add generator sub-transient data into the Y matrix for ia=1:nbus for ib = 1:length(gendata) if (ia == gendata(ib,1)) Y(ia,ia) = Y(ia,ia) + 1/(gendata(ib,2)*gendata(ib,3)/base) end end end Y; % Bus Admittance Matrix Z = inv(Y); % Bus Impedance Matrix
  • 5. Figure 1: Y-admittance matrix(data workspace)
  • 6. Figure 2: Z-impedance matrix (data workspace) Question1 1. Calculate voltage sag at bus 5 and 14 when three-phase-fault occurs at each bus in the system.The pre-fault voltage (per unit) of all buses are given below:
  • 7. Voltage sag formula: Data for the pre-fault voltage (p.u) of all the buses are convert into real and imaginary form; Figure 4 is obtain from these coding below; % calculate angle for ia = 1:nbus ang = v_bus(ia,3)*3.142/180; mag = v_bus(ia,2); [a,b] = pol2cart(ang,mag); v_bus_new(ia,:) = [a + b*i]; end Figure 3: Cartesian form Figure 4 is obtain from these coding below; % voltage sag at 5 i_s = 5; for i_f = 1:nbus; V_val5(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f); end V_val5 Figure 4 : voltage sag at 5 Figure5 is obtain from these coding below; % voltage sag at 14 i_s = 14; ff fi fii Z Z VVVsag −=
  • 8. for i_f = 1:nbus; V_val14(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f); end V_val14 Figure5: voltage sag at 14 % %% polar form Figure 6 is obtain from these coding below; for ia=1:nbus [x1,y1] = cart2pol(real(V_val5(ia,1)),imag(V_val5(ia,1))); plot_y(ia,1) = y1; [x2,y2] = cart2pol(real(V_val14(ia,1)),imag(V_val14(ia,1))); plot_y(ia,2) = y2; end % Vsag1 4Vsag5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.5 1 1.5 voltage sag at bus 5 line bus of system voltagesagmagnitude 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.2 0.4 0.6 0.8 1 1.2 1.4 voltage sag at bus 14 line bus of system voltagesagmagnitude
  • 9. Figure 6: Bar graph for both voltage sag at bus 5 and bus 14 Question2 (a) Line 11 –10 and line 13 -14 is open. Figure 7 and 8 are the Y-admittance and Z-impedance matrices when line 11-10 and line 13-14 are open
  • 10. Figure 7: Y-admittance matrix when line 11-10 and line 13-14 is open Figure 8: Z-impedance matrix when line 11-10 and line 13-14 is open Figure 9 and 10 are the values of both voltage sag at bus 5 and 14 respectively when the line 11- 10 and line 13-14 are open.
  • 11. Figure 9: Voltage sag at bus 5&14 when lines are open Figure 10: bar graph of voltage sag at bus 5&14 when lines are open 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.5 1 1.5 system of 14-bus network voltagesagmagnitude Voltage sag at bus 5 line 11-10 & line 13-14 are open 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.2 0.4 0.6 0.8 1 1.2 1.4 system of 14 bus network voltagesagmagnitude voltage sag at 14 when line 10-11 and 13-14 are open 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.2 0.4 0.6 0.8 1 1.2 1.4 system 14 bus network voltagemagnitude comparison between voltage sag at 14 present lines & open lines 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.5 1 1.5 system of 14 bus network voltagesagmagnitude Comparison between valtage sag at 5 present lines & open lines
  • 12. Figure 11 : comparison between voltage sag at bus 5&14 Q2 cont.... (b) Generator at bus 6 and 8 are taken out from the system. Figure 12 and 13 are the Y-admittance and Z-impedance when generator at bus 6 and 8 are taken out from the system.
  • 13. Figure12: Y-admittance when generator at bus 6 and bus 8 are taken out from system
  • 14. Figure13: Z-impedance when generator at bus 6 and bus 8 are taken out from system Figure 14 and 15 are the values of voltage sag at bus 5 and 14 respectively when the generator 6 and 8 are taken out from the system. Figure 14: voltage sag at bus 5 and 14 when generator are taken out 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.5 1 1.5 2 2.5 system of 14 bus network voltagesagmagnitude comparison between voltage sag at bus 5 present & generator taken out 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Comparison between voltage sag at 14 present & generator taken out system of 14 bus network voltagesagmagnitude
  • 15. Figure 15 : comparison between voltage sag at bus 5&14 Question 3 *Short circuit event = 5 events/100km/year Figure 16 is obtain from these coding below; for ia =1:nbranch Event_data(ia,:) = [linedata(ia,:) linedata(ia,6)*5/100]; end Event_data eventcicuitShortc 100km (km)Distance frequencyVsagExpected ×=
  • 16. Figure 16 :Expected V sag frequency Estimation of voltage sag on a line can be calculated as the average of voltage sag between the two connected busses Figure 17 average of voltage sag between the two connected busses occurred at bus 5 & bus 14 for each lines. is obtain from these coding below; for ia = 1:nbranch Vol_Event_data5(ia,1)= (V_val5(linedata(ia,1),1) + V_val5(linedata(ia,2),1))/2; Vol_Event_data14(ia,1)= (V_val14(linedata(ia,1),1) + V_val14(linedata(ia,2),1))/2; end for ia = 1:nbranch
  • 17. [x1,y1] = cart2pol (real(Vol_Event_data5(ia,1)),imag(Vol_Event_data5(ia,1))); V_event5(ia,1) = y1; [x1,y1] = cart2pol (real(Vol_Event_data14(ia,1)),imag(Vol_Event_data14(ia,1))); V_event14(ia,1) = y1; end Event_val = [linedata(:,1) linedata(:,2) Event_data(:,7) V_event5(:,1) V_event14(:,1)]; Figure 17 average of voltage sag occurred at bus 5 & bus 14 for each lines. Estimation of voltage event under 50% of the nominal 1.0 p.u a year for Bus 5: Voltage sag < 0.5 : To obtain from these coding below” ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)<0.5) %VOLTAGE AS SEEN AT BUS 5 store5(ib,:) = [Event_val(ia,1:4)];
  • 18. ib = ib +1; end Events_under_50_bus_5 = sum(store5(:,3)) Estimation of voltage event = 0.6 + 1.75 + 0.9 + 1.15 + 0.25 = 4.6500 Events_under_50_bus_5 = 4.6500 Estimation of voltage event under 50% of the nominal 1.0 p.u a year for Bus 14: Voltage sag < 0.5 : To obtain from these coding below” ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,5)<0.5) %VOLTAGE AS SEEN ATBUS 14 store14(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end Events_under_50_bus_14= sum(store14(:,3)) % script file Estimation of voltage event = 1.2 + 1.15 + 0.8 + 1.1 + 0.8 + 1.5 = 6.55 Events_under_50_bus_14 = % script file 6.5500 1 2 3 4 5 6 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 voltage event under 50% for Bus 5 & Bus 14 bus network averagevoltagesag
  • 19. Estimation of voltage event under 50% Question 4 1. Based on the analysis the number of voltage sag at bus 5 and bus 14 according to the sag magnitude level as in the following table (% nominal 1.0 pu). %% less than 10 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)<0.1) store5_10(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)<0.1) store14_10(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_10 = 0; else Vsag (%) 0-10 10-20 20 - 30 30- 40 40 - 50 50- 60 60 70 70- 80 80 - 90 90- 100 Number of sag at bus 5 3.50 1.15 0 0 0 0 0 1.0 0.95 0 Number of sag at bus 14 0 1.10 1.5 1.15 2.8 4.1 0.0 4.65 0.0 1.0
  • 20. b5_10 = sum(store5_10(:,3)); end if (ic <2 ) b14_10 = 0; else b14_10 = sum(store14_10(:,3)); End Q5 By analyzing from the above graph we have seen that in Figure below on the estimation of voltage event under 50% of the nominal a year for both bus 5 and 14, given that the value estimation for bus 5 is lower than the value estimation of bus 14 which is 4.65 and 6.55 respectively. To place a factory manufacturing electronic components, the place at bus 5 is more suitable place rather than at bus 14 since it gives lower voltage sags under the voltage event.
  • 21. Q6 The number of voltage sags that can occur at your facility depends on where you're located, the characteristics of your utility's distribution system (underground vs. overhead, lengths of the distribution feeder circuits, and number of feeders), lightning level in the area, number of trees adjacent to the power lines, and several other factors.  For improve lines and area in proper stability, we should arrange some methods and steps thus system will back on its stability though fault is occurred in other lines. We have introduces capacitor bank or Super Capacitor in the transmission lines  Magnetic synthesizers, which are 3-phase devices that take advantage of their 3-phase magnetics to provide improved voltage sag support and regulation. Useful link -http://ecmweb.com/content/dealing-voltage-sags-your-facility
  • 22. clear all clc % Program to form Admittance And Impedance Bus Formation... % Bus bus R X B/2 distance % fr to p.u p.u p.u linedata = [1 2 0.01938 0.05917 0.0528/2 12 1 5 0.05403 0.22304 0.0492/2 35 2 3 0.04699 0.19797 0.0438/2 20 2 4 0.05811 0.17632 0.0374/2 18 2 5 0.05695 0.17388 0.034/2 23 3 4 0.06701 0.17103 0.0346/2 19 4 5 0.01335 0.04211 0.0128/2 5 4 7 0 0.20912 0 0 4 9 0 0.55618 0 0 5 6 0 0.25202 0 0 6 11 0.09498 0.1989 0 24 6 12 0.12291 0.25581 0 61 6 13 0.06615 0.13027 0 23 7 8 0 0.17615 0 0 7 9 0 0.11001 0 0 9 10 0.03181 0.0845 0 16 10 14 0.12711 0.27038 0 22 10 11 0.08205 0.19207 0 16 12 13 0.22092 0.19988 0 21 13 14 0.17093 0.34802 0 30];
  • 23. %==============///### calculate voltage sag ###///====== % bus voltage angle v_bus = [1 1.06 0 2 1.045 -4.98 3 1.01 -12.72 4 1.019 -10.33 5 1.02 -8.78 6 1.07 -14.22 7 1.062 -13.37 8 1.09 -13.36 9 1.056 -14.94 10 1.051 -15.1 11 1.057 -14.79 12 1.055 -15.07 13 1.05 -15.16 14 1.036 -16.04]; %==============### Generator data ###========== % generator X capacity gendata = [1 0.12 250 2 0.15 100 3 0.10 80 6 0.15 50 8 0.1 50]; base = 100; % nl=linedata(:,1); % From bus number.. % nr=linedata(:,2); % To bus number... R=linedata(:,3); % Resistance, R... X=linedata(:,4); % Reactance, X... nbranch=length(linedata(:,1)); % no. of branches... nbus=max(v_bus(:,1)); % no. of buses... Zline=R+j*X; % Z matrix... y=ones(nbranch,1)./Zline; % To get inverse of each element... Y=zeros(nbus,nbus); % Initialise YBus... % Formation of the Off Diagonal Elements... for k=1:nbranch; Y(linedata(k,1),linedata(k,2))= -1/Zline(k); Y(linedata(k,2),linedata(k,1))= -1/Zline(k); end aaa = zeros(nbus,1);
  • 24. % Formation of Diagonal Elements.... for k=1:nbus for l=1:nbranch if((k==linedata(l,1))||(k==linedata(l,2))) aaa(k,:)=1/(linedata(l,3)+linedata(l,4)*i+linedata(l,5)*i)+ aaa(k,:); Y(k,k)=aaa(k,:); end end end YY = Y; %========= To add generator sub-transient data into the Y matrix for ia=1:nbus for ib = 1:length(gendata) if (ia == gendata(ib,1)) Y(ia,ia) = Y(ia,ia) + 1/(gendata(ib,2)*gendata(ib,3)/base); end end end Y; % Bus Admittance Matrix Z = inv(Y); % Bus Impedance Matrix % calculate angle for ia = 1:nbus ang = v_bus(ia,3)*3.142/180; mag = v_bus(ia,2); [a,b] = pol2cart(ang,mag); v_bus_new(ia,:) = [a + b*i]; end %% Q 1 /// voltage sag calculation for faulted bus //// % voltage sag at 5 and 14
  • 25. i_s = 5; for i_f = 1:nbus; %V_val5(i_f,:) = v_bus(i_s,2) - v_bus(i_f,2)*Z(i_s,i_f)/Z(i_f,i_f); V_val5(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f); end V_val5; i_s = 14; for i_f = 1:nbus; %V_val10(i_f,:) = v_bus(i_s,2) - v_bus(i_f,2)*Z(i_s,i_f)/Z(i_f,i_f); V_val14(i_f,:) = v_bus_new(i_s,1) - v_bus_new(i_f,1)*Z(i_s,i_f)/Z(i_f,i_f); end V_val14; % % %% polar form for ia=1:nbus [x1,y1] = cart2pol(real(V_val5(ia,1)),imag(V_val5(ia,1))); plot_y(ia,1) = y1; [x2,y2] = cart2pol(real(V_val14(ia,1)),imag(V_val14(ia,1))); plot_y(ia,2) = y2; end % %% Question 3 for ia =1:nbranch Event_data(ia,:) = [linedata(ia,:) linedata(ia,6)*5/100]; end Event_data for ia = 1:nbranch Vol_Event_data5(ia,1)= (V_val5(linedata(ia,1),1) + V_val5(linedata(ia,2),1))/2; Vol_Event_data14(ia,1)= (V_val14(linedata(ia,1),1) + V_val14(linedata(ia,2),1))/2; end for ia = 1:nbranch [x1,y1] = cart2pol (real(Vol_Event_data5(ia,1)),imag(Vol_Event_data5(ia,1))); V_event5(ia,1) = y1; [x1,y1] = cart2pol (real(Vol_Event_data14(ia,1)),imag(Vol_Event_data14(ia,1))); V_event14(ia,1) = y1;
  • 26. end Event_val = [linedata(:,1) linedata(:,2) Event_data(:,7) V_event5(:,1) V_event14(:,1)]; ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)<0.5) %VOLTAGE AS SEEN AT BUS 5 store5(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)<0.5) %VOLTAGE AS SEEN AT BUS 14 store14(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end Events_under_50_bus_5 = sum(store5(:,3)) Events_under_50_bus_14= sum(store14(:,3)) % % %%Question 4 %% less than 10 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)<0.1) store5_10(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)<0.1) store14_10(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_10 = 0; else
  • 27. b5_10 = sum(store5_10(:,3)); end if (ic <2 ) b14_10 = 0; else b14_10 = sum(store14_10(:,3)); end %% between 10 - 20 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.1 && Event_val(ia,4)<0.2) store5_20(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.1 && Event_val(ia,5)<0.2) store14_20(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_20 = 0; else b5_20 = sum(store5_20(:,3)); end if (ic <2 ) b14_20 = 0; else b14_20 = sum(store14_20(:,3)); end %% between 20 - 30 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.2 && Event_val(ia,4)<0.3) store5_30(ib,:) = [Event_val(ia,1:4)];
  • 28. ib = ib +1; end if(Event_val(ia,5)>0.2 && Event_val(ia,5)<0.3) store14_30(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_30 = 0; else b5_30 = sum(store5_30(:,3)); end if (ic <2 ) b14_30 = 0; else b14_30 = sum(store14_30(:,3)); end %% between 30 - 40 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.3 && Event_val(ia,4)<0.4) store5_40(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.3 && Event_val(ia,5)<0.4) store14_40(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_40 = 0; else b5_40 = sum(store5_40(:,3)); end if (ic <2 )
  • 29. b14_40 = 0; else b14_40 = sum(store14_40(:,3)); end %% between 40 - 50 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.4 && Event_val(ia,4)<0.5) store5_50(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.4 && Event_val(ia,5)<0.5) store14_50(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_50 = 0; else b5_50 = sum(store5_50(:,3)); end if (ic <2 ) b14_50 = 0; else b14_50 = sum(store14_50(:,3)); end %% between 50 - 60 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.5 && Event_val(ia,4)<0.6) store5_60(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.5 && Event_val(ia,5)<0.6) store14_60(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end
  • 30. if (ib <2) b5_60 = 0; else b5_60 = sum(store5_60(:,3)); end if (ic <2 ) b14_60 = 0; else b14_60 = sum(store14_60(:,3)); end %% between 60 - 70 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.6 && Event_val(ia,4)<0.7) store5_70(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.6 && Event_val(ia,5)<0.7) store14_70(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_70 = 0; else b5_70 = sum(store5_70(:,3)); end if (ic <2 ) b14_70 = 0; else b14_70 = sum(store14_70(:,3)); end %% between 70 - 80 percent ib=1; ic=1; for ia=1:nbranch
  • 31. if(Event_val(ia,4)>0.7 && Event_val(ia,4)<0.8) store5_80(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.7 && Event_val(ia,5)<0.8) store14_80(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_80 = 0; else b5_80 = sum(store5_80(:,3)); end if (ic <2 ) b14_80 = 0; else b14_80 = sum(store14_80(:,3)); end %% between 80 - 90 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.8 && Event_val(ia,4)<0.9) store5_90(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.8 && Event_val(ia,5)<0.9) store14_90(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_90 = 0; else b5_90 = sum(store5_90(:,3)); end
  • 32. if (ic <2 ) b14_90 = 0; else b14_90 = sum(store14_90(:,3)); end %% between 90 - 100 percent ib=1; ic=1; for ia=1:nbranch if(Event_val(ia,4)>0.9 && Event_val(ia,4)<1) store5_100(ib,:) = [Event_val(ia,1:4)]; ib = ib +1; end if(Event_val(ia,5)>0.9 && Event_val(ia,5)<1) store14_100(ic,:) = [Event_val(ia,1:3) Event_val(ia,5)]; ic = ic +1; end end if (ib <2) b5_100 = 0; else b5_100 = sum(store5_100(:,3)); end if (ic <2 ) b14_100 = 0; else b14_100 = sum(store14_100(:,3)); end bus_5_sags = [b5_10 b5_20 b5_30 b5_40 b5_50 b5_60 b5_70 b5_80 b5_90 b5_100] bus_14_sags = [b14_10 b14_20 b14_30 b14_40 b14_50 b14_60 b14_70 b14_80 b14_90 b14_100] %% display for question 4 fprintf ('| Bus number | 0-10 | 10-20 | 20-30 | 30-40 | 40-50 | 50-60 | 60-70 | 70-80 | 80-90 | 90-100 |n') fprintf ('| Bus_5 | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f |n',bus_5_sags) fprintf ('| Bus_14 | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f | %.3f