PROBLEM:
For the problem shown in the figure, find the bus
admittance matrix.
Theoretical Calculation:
MATLAB Program :
clc
clear
all;
disp(' Y-Bus Matrix Formation ');
a=input('\nEnter
send bus in 1st column, end bus in 2nd, Impedance in 3rd, admittance in 4th');
sb=a(:,1);
eb=a(:,2);
z=a(:,3);
ad=a(:,4);
y=(1./z);
sb1=max(sb);
eb1=max(eb);
bus=max(sb1,eb1)
line=length(a)
Y=zeros(bus,bus);
for
k=1:line
p=sb(k);
q=eb(k);
Y(p,p)=Y(p,p)+y(k)+ad(k);
Y(q,q)=Y(q,q)+y(k)+ad(k);
Y(p,q)=Y(p,q)-y(k);
Y(q,p)=Y(p,q);
end
disp('Y-Bus
Matrix = ');
disp(Y)
MATLAB Output:
YouTube Video of My Channel on the Problem you can use this also
( If you have any problem in doing this you can comment below , I will help as soon as possible)
1 Comments
thank you i solve my H.W by following you video and code
ReplyDelete