Line No. Line Impedance (R + JX)
Line No. Line Impedance (R + JX)
No.
1-2 0.02 + j 0.12
1-3 0.20 + j 0.30
2-4 0.10 + j 0.25
2-3 0.15 + j 0.35
4-3 0.10 + j 0.20
Manual Calculation
Here, I11, I22, I33, I44, I41, I14 = 0 (clear from the figure above).
1
Y 12=
0.02+ j0.12
Rationalising it we get,
1
Y 13=
0.2+ j0.3
Rationalising it we get,
1
Y 23=
0.15+ j 0.35
Rationalising it we get,
1
Y 24 =
0.1+ j 0.25
Rationalising it we get,
Rationalising it we get,
MATLAB CODE :
clc;
clear all;
close all;
fprintf('FORMATION OF BUS ADMITTANCE AND IMPEDANCE
MATRIX\n\n')
fprintf('Enter Line Data in order of from bus, to bus,
r,x,\n\n')
linedata = input('Enter the line data : ')
fb = linedata(:,1);%From bus number...
tb = linedata(:,2);%To bus number...
r = linedata(:,3); %Resistance, R...
x = linedata(:,4); %Reactance, X...
z = r + i*x; %Z matrix
y = 1./z %To get inverse of each element
nbus = max(max(fb),max(tb)); %No. of buses...
nbranch = length(fb); %No. of branches...
ybus = zeros(nbus,nbus); %Initialize Y Bus...