Bus Admittance Matrix
Bus Admittance Matrix
STEP 2: Initialization
YBUS=zeros(n,n)
i=1 line index
2
Bus Admittance Matrix, YBUS
Algorithm for formation of Bus admittance matrix:
STEP 3: For the given bus i
frombus=linedata(i,2)
tobus=linedata(i,3)
r=linedata(i,4)
x=linedata(i,5)
b=linedata(i,6)
t=linedata(i,7)
y=1/(r+jx)
3
Bus Admittance Matrix, YBUS
Algorithm for formation of Bus admittance matrix:
STEP 4: if t==1
YBUS(frombus , tobus)=YBUS(frombus , tobus) - y
YBUS(tobus , frombus)=YBUS(tobus , frombus) - y
YBUS(frombus , frombus)=YBUS(frombus , frombus) + y + jb/2
YBUS(tobus , tobus)=YBUS(tobus , tobus) + y + jb/2
else
YBUS(frombus , tobus)=YBUS(frombus , tobus) – y/t
YBUS(tobus , frombus)=YBUS(tobus , frombus) – y/t
YBUS(frombus , frombus)=YBUS(frombus , frombus) + y /t2
YBUS(tobus , tobus)=YBUS(tobus , tobus) + y
end
4
Bus Admittance Matrix, YBUS
Algorithm for formation of Bus admittance matrix:
STEP 5:
i=i+1
check whether i > m ?
If YES, go to step 6
else go to step 3
STEP 6: for i=1:n
Read Bsh(i)
YBUS(i,i)=YBUS(i,i)+jBsh(i)
end
STEP 7: STOP
5
Bus Admittance Matrix, YBUS
For manual calculation: