Source Code:: Name of The Experiment
Source Code:: Name of The Experiment
Theory:
Impedance matrix, also known as the Z bus impedance matrix, is built from the branch
consisting of positive sequence data, negative sequence and zero sequence impedance.
The positive and negative sequence are treated equally for practical purposes.
The whole system is assembled by starting with a single element connected to the
reference bus, and if one element is added at a time, we have to modify the matrix for
that added element. Each of the element added should be connected to the system by a
single node or two nodes.
Source Code:
clc
clear all
n=input('enter node: ');
link=input('enter link: ');
z=[zeros(n-1,n-1)];
del=[zeros(n-1,1)];
for i=1:1:n-1
a=input('which node: ');
for j=1:1:n-1
if a==0
z(i,i)=input('enter value of Z:'); break
else
if i==j
z(i,j)=z(a,a)+input('enter value of Z:');
else
z(i,j)=z(a,j);
(j,i)=z(j,a);
end
end
end
end
Zold=z;
for k=1:1:link
x=input('enter value of x= ');
y=input('enter value of y= ');
Zxy=input('enter value of Zxy: ');
z(n,n)=Zxy+z(x,x)+z(y,y)-2*z(x,y);
for j=1:1:n-1
z(n,j)=z(y,j)-z(x,j);
z(j,n)=z(j,y)-z(j,x);
del(j,1)=z(j,n);
end
z;
Zold;
m=(del*del')/z(n,n);
Znew=Zold-m; Zold=Znew;
z=Znew;
end
z
Input / Output:
Conclusion:
The elements of Z bus matrix are the impedances of transmission line connected
between two buses .Z bus matrix is utilized for fault analysis in the power system. Z
bus is called the open circuit impedance matrix in circuit theory with the elements of
the matrix known as the driving point and transfer impedance. It is also known as bus
impedance matrix.