0% found this document useful (0 votes)
47 views

Source Code:: Name of The Experiment

The experiment builds a Z-bus matrix using MATLAB to represent the impedances of elements in an electrical network. It starts with a single element and reference bus, then iteratively adds one element at a time, modifying the matrix with each addition. The user inputs the nodes and impedance values to construct the matrix. The Z-bus matrix allows analysis of faults in a power system by representing the impedances between buses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Source Code:: Name of The Experiment

The experiment builds a Z-bus matrix using MATLAB to represent the impedances of elements in an electrical network. It starts with a single element and reference bus, then iteratively adds one element at a time, modifying the matrix with each addition. The user inputs the nodes and impedance values to construct the matrix. The Z-bus matrix allows analysis of faults in a power system by representing the impedances between buses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name of the experiment:

Formation of Z-Bus Matrix using MATLAB.

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.

You might also like