Professional Documents
Culture Documents
% Module 6EJ998
% Assignment No2
% MODELLING LOAD FLOW STUDIES USING MATLAB
% USING THE GAUSS SEIDAL METHOD
% YEAR 2010/11
% STUDENT Ndumiso Nsingo
% NETWORK (see Fig 1)
% Input (1)
% Insert the Network Admittance Matrix
% (see page 2 of supplied assignment paperwork ignoring shunt capacitive admitt
ance)
format short
Y(1,1) = 10.95890411 - 26.02739726i
Y(1,2) = -3.424657534 + 7.534246575i;
Y(1,3) = -3.424657534 + 7.534246575i;
Y(1,4) = 0.00;
Y(1,5) = -4.109589041 + 10.95890411i;
Y(4,1) = 0.00;
Y(4,2) = -4.12371134 + 9.278350515i;
Y(4,3) = -2.926829268 + 6.341463415i;
Y(4,4) = 11.17425195 - 24.89816445i;
Y(4,5) = -4.12371134 + 9.278350515i;
% Input (2)
% Input the given node loadings .....see diagram on page 1 of the supplied assi
gnment paperwork
% A positive (+ sign) is for generated power,
% The negative (- sign) indicates load taken from the network.
% Per unit loading is used with a base loading taken at 100MVA
row = ones(size(vector));
Vnode1 = row; % each node voltage has the required storage spaces
Vnode2 = row;
Vnode3 = row;
Vnode4 = row;
Vnode5 = row;
for n = 1:m
Vnode1(n) = 1.0 + 0.00i; % inserts the assumed initial node voltages
Vnode2(n) = 1.0 + 0.00i;
Vnode3(n) = 1.0 + 0.00i;
Vnode4(n) = 1.0 + 0.00i;
Vnode5(n) = 1.0 + 0.00i;
end
S2star = P2 - Q2; % conjugates of the specified node loadings
S3star = P3 - Q3;
S4star = P4 - Q4;
S5star = P5 - Q5;
for n = 1:l
% NOW UPDATE THE NODE VOLTAGES TWENTY FIVE TIMES
% SIMILAR TO THE CALCULATION PROCEDURES
% AS DETAILED ON PAGE 5 OF THE ASSIGNMENT NOTES
I2(n) = S2star/V2star(n);
end
disp (':')
disp (' Electrical Power Utilisation 6EJ022 ')
disp (':')
disp (' Gauss Seidal Solution of Load Flow Assignment(2) 2010/11 ')
disp (':')
disp (' Ndumiso Nsingo 01/04/2011 ')
disp (':')
disp (' Successive Iteration Values ')
disp (':')
disp (' Vnode2 Vnode3 Vnode4 Vnode5
')
disp(':')
d = 0;
for c = 1:m
fprintf(' %1.4f %1.4fi\t, %1.4f %1.4fi\t, %1.4f %1.4fi\t, %1.4f %1.4fi\n
',...
real(Vnode2(1+d)), imag(Vnode2(1+d)), real(Vnode3(1+d)),...
imag(Vnode3(1+d)), real(Vnode4(1+d)), imag(Vnode4(1+d)), real(Vnode5(1+d
)), imag(Vnode5(1+d)));
d=d+1;
end
plot (vector,Vnode2,'r-',vector,Vnode3,'b-',vector,Vnode4,'g-',vector,Vnode5,'y-
');
legend ('Busbar 2','Busbar 3','Busbar 4','Busbar 5');
axis ([0,40,0.93,1]);
grid on;
title ('Gauss-Seidel Itteration Method Without Shunt Admittance');
xlabel ('Itteration number');
ylabel ('voltage at node');