File Exchange

version 1.2 (2.88 KB) by

This program can be used for admittance bus formation for load flow analysis.

Updated

This program can be used for admittance bus formation for load flow analysis.

jeyaprakash ammavasi

### Muhammad Danish Ali (view profile)

please mail me universal Y bus formation data or function

ANJALI BHANDAKKAR

### ANJALI BHANDAKKAR (view profile)

it solved my problem, thanks

kannan selva

### kannan selva (view profile)

pleasae i need ybus matlab code explanation

pleasae i need ybus matlab code for large power system with parallel lines connected between buses

drakshayani ks

no comment

Valeriu

### Valeriu (view profile)

hello,
your algorithm needs to consider at diagonal elements also the shunt elements susceptances to be complete. Form the bus data!
am i right?

umakanth ramineedi

### umakanth ramineedi (view profile)

i need explonation for each step

bibha boro

### bibha boro (view profile)

thanx it helped me a lot

Duane Hanselman

### Duane Hanselman (view profile)

Of use to the author only. Here is what the file ybusppg.m contains:
num = 14;
fb = linedata(:,1); % From bus number...
tb = linedata(:,2); % To bus number...
r = linedata(:,3); % Resistance, R...
x = linedata(:,4); % Reactance, X...
b = linedata(:,5); % Ground Admittance, B/2...
a = linedata(:,6); % Tap setting value..
z = r + i*x; % Z matrix...
y = 1./z; % To get inverse of each element...
b = i*b; % Make B imaginary...

nbus = max(max(fb),max(tb)); % no. of buses...
nbranch = length(fb); % no. of branches...
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)/a(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)/(a(n)^2) + b(n);
elseif tb(n) == m
Y(m,m) = Y(m,m) + y(n) + b(n);
end
end
end

jehan hussian

norhan2000 king

iam interested in matlap program