Sei sulla pagina 1di 6

Institute of Electrical and Electronic

Engineering
Department of Power and Control

Course title: EE 559-Power system operation &


control

Lab report N1 : Bus admittance matrix


construction

Done by:
OUBELAID Adel.
GUERMI Hamza.

Supervisor : Dr Bouchehdane.

Due to: 11 /08/15.

Objectives:
The aim of this laboratory experiment is to
enable the student to automatically generate an
admittance matrix starting from a given power
system topology, it is also required from the
student to write matlab code that generates the
system admittance matrix.

Part 01 : Theoretical part

In power engineering, the admittance matrix is


an (nn) matrix that describes a power system with n
buses. The Y matrix is a necessary data that must be
known in order to perform any power flow study.
It is given under the following form:

Ybus=

Y 11 Y 12 Y 1 n
Y 21 Y 22

Y n1

Y nn

Such that:
y ik if j =i
y ij =

y ii + yij if j i
k i

If the two buses( K and L) are linked by a transmission linwhose


shunt admittance is not neglected, then the diagonal elements are
given as follow :
B KL
Y(K,K)=Y(K,K)+j 2
B KL
Y(L,L)=Y(L,L) +j 2

Part 02 : Programming part


The Matlab script that allows us to build the
admittance matrix is shown below :

% Program to form Admittance Bus Formation with Transformer Tap setting..


clc
clear all
nbranch=input('enter total no. of lines in network');
disp('enter line data')
for p=1:1:nbranch
fb=input('from bus no. :');
tb=input('to bus no. :');
r=input('resistance of line =');
x=input('reactance of line =');
B=input('line charging admittance"b/2"=');
T=input('tap=');
z = r + i*x;
% Z matrix...
y = 1./z;
% To get inverse of each element...
Ldata(p,:)=[fb tb r x B T y];
end
fb = Ldata(:,1);
% From bus number...
tb = Ldata(:,2);
% To bus number...
r = Ldata(:,3);
% Resistance, R...
x = Ldata(:,4);
% Reactance, X...
b = Ldata(:,5);
% Ground Admittance, B/2...
a = Ldata(:,6);
% Tap setting value..
y = Ldata(:,7);
b = i*b;
% Make B imaginary...
nbus = max(max(fb),max(tb));
% no. of buses...
Y = zeros(nbus,nbus);
% Initialise YBus...
% Formation of the Off Diagonal Elements...
for k=1:nbranch
Y(fb(k),tb(k)) = Y(fb(k),tb(k))-y(k);
Y(tb(k),fb(k)) = Y(fb(k),tb(k));
end
% Formation of Diagonal Elements....
for m =1:nbus
for n =1:nbranch
if fb(n) == m
Y(m,m) = Y(m,m) + y(n) + b(n);
elseif tb(n) == m
Y(m,m) = Y(m,m) + y(n) + b(n);
end
end
end
Y
% Bus Admittance Matrix..

After executing the above matlab, the following


figure appears in the command window telling us to
enter the different values of resistances and reactances
between each two buses .i did so, and I got the
following figure:

After entering all the data we get the following final


output which is the Admittance matrix bus:

Conclusion:
At the end of this laboratory experiment I got
familiar with the use of matlab as a tool to build up the
admittance matrix for any given power system
topology.

Potrebbero piacerti anche