You are on page 1of 2

Experiment No: - 04

pm=input('Enter initial power: '); E=input('Enter the generator emf: '); V=input('Enter the infinite bus voltage: '); x1=input('Enter reactance before fault '); x2=input('Enter reactance uring fault: '); x!=input('Enter reactance after fault: '); pe1max=(E"V)#x1 pe2max=(E"V)#x2 pe!max=(E"V)#x! $=asin(pm#pe1max) max=pi%asin(pm#pe!max); cos c=(pm"( max% $)&pe!max"cos( max)%pe2max"cos( $))# (pe!max%pe2max); cr=acos(cos c); $=( $"1'$)#pi; cr=( cr"1'$)#pi; max=( max"1'$)#pi; fprintf('(n intial power angle) $=*+,!f') $); fprintf('(n fault clearing power angle) cr=*+,!f') cr); fprintf('(n maximum power angle) $max=*+,!f') max);

OUTPUT:-

Case A: Short circuit takes place near the generator en Enter Enter Enter Enter Enter Enter initial power: 1 the generator emf: 1,1 the infinite bus voltage: 1 reactance before fault: $,reactance uring fault: inf reactance after fault: $,+-

pe1max = 2,2$$$ pe2max = $ pe!max = 1,.//+ $ = $,.+10 initial power angle) $ = 2+,$!/ fault clearing power angle) cr = -.,+.maximum power angle) $max=1!+,$1.

Case !: Short circuit takes place at the mi transmission line# Enter Enter Enter Enter Enter Enter initial power: 1 the generator emf: 1,1 the infinite bus voltage: 1 reactance before fault: $,-$ reactance uring fault: 1,2reactance after fault: $,+-

le o" the

pe1max = 2,2$$$ pe2max = $,''$$ pe!max = 1,.//+ $ = $,.+10 initial power angle) $ = 2+,$!/ fault clearing power angle) cr = '!,'/$ maximum power angle) $max= 1!+,$1.

You might also like