Vous êtes sur la page 1sur 2

EXPERIMENT

FORMATION OF Z-BUS MATRIX


AIM: To perform the formation of Z-bus

APPARATUS:

1. MATLAB.

PROCEDURE:-
1. Open MATLAB
2. Open new script
3. Type the program
4. Save in current directory
5. Compile and Run the program
6. For the output see command window\ Figure window

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:-

Vous aimerez peut-être aussi