0% found this document useful (0 votes)
9 views3 pages

Formation of Bus Admittance Matrix Using

The document outlines a MATLAB program designed to form the bus admittance matrix (Ybus) for a power system. It includes an algorithm detailing the steps to read input data, calculate self and mutual admittances, and compute both the Ybus and Zbus matrices. Sample input data and corresponding MATLAB code are provided to facilitate the implementation.

Uploaded by

Naveen Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Formation of Bus Admittance Matrix Using

The document outlines a MATLAB program designed to form the bus admittance matrix (Ybus) for a power system. It includes an algorithm detailing the steps to read input data, calculate self and mutual admittances, and compute both the Ybus and Zbus matrices. Sample input data and corresponding MATLAB code are provided to facilitate the implementation.

Uploaded by

Naveen Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

FORMATION OF BUS ADMITTANCE MATRIX USING

MATLAB SOFTWARE

Aim: To develop a computer program to form the bus admittance matrix, Ybus
of a power system.

ALGORITHM:

Step 1:Read the values of number of buses and the number of lines of the given
system.

Step2: create a new script and write the input data on that file and save it.the
save file of that name has to write in your code(Here I save the file of the name
matrix).

Step 3:Read the self


admittance of each bus and the mutual admittance between the buses.

Step 4:Calculate the diagonal element term called the bus driving point admittan,

Yij,which is the sum of the admittance connected to bus i.

Step 5:The off-diagonal term called the transfer admittance, Yij


which is the negative of the admittance connected from bus i to bus j.

Step 6:Check for the end of bus count and print the computed Y-bus matrix.

Step 7:Compute the Z-bus matrix by inverting the Y-bus matrix.

Step 8:Stop the program and display the result.


The given below data is input data,

zdata=
[ 0 1 0 1.0
0 2 0 0.8
1 2 0 0.4
1 3 0 0.2
2 3 0 0.2
3 4 0 0.08]

MATLAB CODE:

clc %clear the window


clear all %clear the command history
matrix; % given input function
n1=zdata(:,1); %extract first column from given data
nr=zdata(:,2); %extract second column from given data
r=zdata(:,3); %extract third column from given data
x=zdata(:,4); %extract fourth column from given data
nbr=length(zdata(:,1));
nbus=max(max(n1),max(nr));
z=r+1j*x; %impedance formula
y=1./z; %admittance
Y=zeros(nbus,nbus);
for k=1:nbr
if n1(k)>0 && nr(k)>0
Y(n1(k),nr(k))=Y(n1(k),nr(k))-y(k);
Y(nr(k),n1(k))=Y(n1(k),nr(k));
end
end
for n=1:nbus
for k=1:nbr
if n1(k)==n | nr(k)==n
Y(n,n)=Y(n,n)+y(k);
else,end
end
end
disp(Y) %the admittance bus matrix
Zbus=inv(Y) %the impedance bus matrix
The results obtained is:

THANKS

You might also like