Vous êtes sur la page 1sur 2

6.

For
EXPERIMENT the
FORMATION OF Z-BUS MATRIX out
put
AIM: To perform the formation of Z-bus see
co
APPARATUS: mm
and
1. MATLAB. win
do
w\
PROCEDURE:- Fig
1. Open MATLAB ure
win
2. Open new script do
3. Type the program w

4. Save in current directory


5. Compile and Run the program

PROGRAM:
%Formation of Z-Bus matrix using bus building algorithm
clc
clear all
z12 = 0.2j;
z13 = 0.4j;
z23 = 0.2j;
disp('STEP1: Add an element between reference node and node(1)') zBus1 = [z12]
disp('STEP2: Add an element between existing node(1) and new node(3)')
zBus2 = [zBus1(1,1) zBus1(1,1);
zBus1(1,1) zBus1(1,1)+z13]
disp('STEP3: Add an element between existing node(3) and reference node')
zBus3 = [zBus2(1,1) zBus2(1,2) zBus2(1,2);
zBus2(2,1) zBus2(2,2) zBus2(2,2);
zBus2(2,1) zBus2(2,2) zBus2(2,2)+z23]
disp('Using Krons reduction method')
zz11 = zBus3(1,1) - ((zBus3(1,3) * zBus3(3,1)) / zBus3(3,3));
zz12 = zBus3(1,2)- ((zBus3(1,3) * zBus3(3,2)) / zBus3(3,3));
zz21 = zz12;
zz22 = zBus3(2,2)- ((zBus3(2,3) * zBus3(3,2)) / zBus3(3,3)); disp('RESULT:')
zBus = [zz11 zz12;
zz21 zz22]

OUTPUT:-

RESULT:-