0% found this document useful (0 votes)
11 views

Psa 1

The document describes an experiment to compute the bus admittance matrix (Ybus) for small power systems using MATLAB. Ybus relates the bus voltages and currents and is essential for power flow analysis. It is derived from the branch admittances and bus shunt admittances. The experiment involves writing a MATLAB code that takes the line data as input, calculates the primitive branch admittances, and sums them to compute the Ybus matrix elements. The code is tested on 5-bus and 14-bus IEEE test systems and results are verified with manual calculations. The conclusion is that the experiment successfully developed a MATLAB program to derive the Ybus matrix for any IEEE bus system.

Uploaded by

Vinit Singh
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)
11 views

Psa 1

The document describes an experiment to compute the bus admittance matrix (Ybus) for small power systems using MATLAB. Ybus relates the bus voltages and currents and is essential for power flow analysis. It is derived from the branch admittances and bus shunt admittances. The experiment involves writing a MATLAB code that takes the line data as input, calculates the primitive branch admittances, and sums them to compute the Ybus matrix elements. The code is tested on 5-bus and 14-bus IEEE test systems and results are verified with manual calculations. The conclusion is that the experiment successfully developed a MATLAB program to derive the Ybus matrix for any IEEE bus system.

Uploaded by

Vinit Singh
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/ 8

EXPERIMENT-I

Aim: To compute the bus admittance matrix Ybus for small power system
network given below using MATLAB file.
Theory: The bus admittance matrix (Ybus) is a crucial component in power
system analysis. It is used to represent the electrical network in a simplified
form and is particularly useful in solving power flow and other analyses. The
Ybus matrix relates the bus voltages and currents in a power system and is an
essential tool for studying the behaviour of the system.In a power system, the
network is often represented by buses and branches. Buses represent the
connection points in the network, while branches represent the transmission
lines and other elements connecting these buses. The Ybus matrix is derived
from the admittances of the individual branches and the buses in the system.
The general form of the Ybus matrix is given by:
Ybus = Yshunt + Σ Yk
where: Ybus is the bus admittance matrix, Yshunt represents the shunt admittances
of the buses and Yk is the admittance of the k-th branch.
The shunt admittance of a bus is usually due to the presence of loads or other
devices connected to the bus. It is a combination of the load admittance and the
shunt capacitance of the transmission lines connected to the bus.

STEPS IN CONSTRUCTING THE Ybus BY INSPECTION:


1. The Ybus matrix is symmetric.
2. Yij, is the self-admittance (diagonal term), is equal to the sum of the
primitive admittances of all the components connected to the ith node.
3. Yij, the ijth element of the Ybus (off-diagonal element), is equal to the
negative of the primitive admittance of all components connected
between nodes i and j. It is to be noted here that if more than one
component is connected in parallel between two nodes, the equivalent
primitive admittance of the components is first obtained before
determining the entry in the Ybus .

Procedure:
Step-1: Enter in the branch data (i.e. R, X and B as given) in a matrix ‘D’. ‘D’
should contain five columns and as many rows as that in the given branch data/
line data of given network. The five columns correspond to 'From bus number',
'To bus number', R, X and B respectively. Check if data B corresponds to Btotal
or B1/2.
Step-2: Type the code given below save it in a MATLAB .m file.
Save the code.
Step-3: Debug the code to generate Ybus.
Step-4: check the program results with the manually calculated values.

Code:
clc;
clear;
promptBuses = 'Enter number of buses : ';
nb = input(promptBuses) ;
z = inf (nb, nb) ;
promptArray = 'Enter the values of the array : ';
D = input (promptArray) ;
r = size (D);
rows = r(1) ;
for i=1:rows
z(D(i,1),D(i,2))=D(i,3)+j*D(i,4) ;
z(D(i,2),D(i,1))=z(D(i,1),D(i,2));
b(D(i,1),D(i,2))=D(i,5);
b(D(i,2),D(i,1))=b(D(i,1),D(i,2));
end
for i=1:nb
y0(i)=j*sum(b(i,:))/2;
end
for i=1:nb
for m=1:nb
if i~=m
Y(i,m)=-1/z(i,m);
else
Y(i,m)=y0(i)+sum(1./z(i,:));
end
end
end
disp(Y);

CIRCUIT DIAGRAM:

SINGLE LINE DIAGRAM FOR IEEE 5 BUS SYSTEM

SINGLE LINE DIAGRAM FOR IEEE 14 BUS SYSTEM


OBSERVATIONS:

For bus size = 5:

Line Data for IEEE 5 Bus System:


From To Resistance Line Charging
SNo. Reactance(PU)
Bus Bus (PU) Susceptance(PU)

1 1 2 0.004 0.0533 0

2 2 3 0.02 0.25 0.22

3 3 4 0.02 0.25 0.22

4 2 4 0.01 0.15 0.11

5 4 5 0.006 0.08 0

Output Ybus matrix


For bus size = 14:
Line Data for IEEE 14 Bus System:

From To Resistanc Reactance(PU Line Charging Tap


SNo.
Bus Bus e ) Susceptance(PU) Ratio
(PU)
1 1 2 0.01938 0.05917 0.0528 1
2 1 5 0.05403 0.22304 0.0492 1
3 2 3 0.04699 0.19797 0.0438 1
4 2 4 0.05811 0.17632 0.0374 1
5 2 5 0.05695 0.17388 0.034 1
6 3 4 0.06701 0.17103 0.0346 1
7 4 5 0.01335 0.04211 0.0128 1
8 4 7 0 0.20912 0 0.978
9 4 9 0 0.55618 0 0.969
10 5 6 0 0.25202 0 0.932
11 6 11 0.09498 0.1989 0 1
12 6 12 0.12291 0.25581 0 1
13 6 13 0.06615 0.13027 0 1
14 7 8 0 0.17615 0 1
15 7 9 0 0.11001 0 1
16 9 10 0.03181 0.0845 0 1
17 9 14 0.12711 0.27038 0 1
18 10 11 0.08205 0.19207 0 1
19 12 13 0.022092 0.19988 0 1
20 13 14 0.17093 0.34802 0 1

Output Ybus matrix :

CONCLUSION:
Through this experiment we have successfully learnt how to derive the Ybus
matrix of any IEEE bus system and developed a MATLAB program to derive
the same. We also verified the results of the program with the manually
calculated values.

You might also like