Professional Documents
Culture Documents
clear all;
clc;
Z0=input('enter value of zero sequence impedance in P.U :');
Z1=input('enter value of positive sequence impedance in P.U :');
Z2=input('enter value of negative sequence impedance in P.U :');
Z = Z0+Z1+Z2; %equivalent_impedance
equivalent_impedance = j*Z;
% Z1+Z2+Z0 = 0.7j
% positive sequence generated voltage of reference phase 'a'
Ea=1+(j*0.0);
Ia1 = Ea/equivalent_impedance;
fprintf('The value of Ia1 is ');
disp(Ia1);
Ia2=Ia1 ;
Ia0=Ia1;
Ia=Ia1+Ia2+Ia0; % fault current in P.U
fprintf('The value of Ia is ');
disp(Ia);
VA=input('enter value of apparent power in MVA:');
V=input('enter value of voltage in KV(line):');
I=(VA*1000)/(1.732*V); % base current
fprintf('The value of I(base current) is ');
disp(I);
fault_current =I*Ia; % Fault current in amperes
disp(Vc0);
Vc1=lambda*Va1;
fprintf('The value of positive sequence voltage for phase c :');
disp(Vc1);
Vc2=(lambda^2)*Va2;
fprintf('The value of negative sequence voltage for phase c :');
disp(Vc2);
Vb=Vb1+Vb2+Vb0;
fprintf('The value of voltage for phase b :');
disp(Vb);
Vc=Vc1+Vc2+Vc0;
fprintf('The value of voltage for phase c :');
disp(Vc);
Va=0;
Vab=Va-Vb;
fprintf('The value of line voltage between a and b :');
disp(Vab);
Vac=Va-Vc;
fprintf('The value of line voltage between a and c :');
disp(Vac);
Vbc=Vb-Vc;
fprintf('The value of line voltage between b and c :');
disp(Vbc);
cc
clear all;
clc;
Z1=input('enter value of positive sequence impedance in P.U :');
Z2=input('enter value of negative sequence impedance in P.U :');
Z = Z1+Z2; %equivalent_impedance
equivalent_impedance = j*Z;
Ea=1+(j*0.0);
% Z1+Z2 =Z
% positive sequence generated voltage of reference phase 'a'
Ia1 = Ea/equivalent_impedance;
fprintf('The value of Ia1 is ');
disp(Ia1);
Ia2=-Ia1 ;
Vb=(lambda^2)*Va1+(lambda)*Va2;
fprintf('The value of voltage in phase b is: ');
disp(Vb);
Vc=Vb; %result for LL fault
Vab=Va-Vb;
fprintf('The value of line voltage between a and b :');
disp(Vab);
Vac=Va-Vc;
fprintf('The value of line voltage between a and c :');
disp(Vac);
Vbc=Vb-Vc;
fprintf('The value of line voltage between b and c :');
disp(Vbc);
VAB=(Vab*V)/1.732;%Llne to line voltage at terminals of alternator
fprintf('The value of line voltage between a and b :');
disp(VAB);
VAC=(Vac*V)/1.732;%Llne to line voltage at terminals of alternator
fprintf('The value of line voltage between a and c :');
disp(VAC);
VBC=(Vbc*V)/1.732;%Llne to line voltage at terminals of alternator
fprintf('The value of line voltage between b and c :');
disp(VBC);
cc
clear all;
clc;
Z0=input('enter value of zero sequence impedance in P.U :');
Z1=input('enter value of positive sequence impedance in P.U :');
Z2=input('enter value of negative sequence impedance in P.U :');
K=(Z0*Z2)/(Z0+Z2);
Z=K+Z1;
%equivalent_impedance
% Z1+Z2+Z0 = 0.7j
equivalent_impedance = j*Z;
Ea=1+(j*0.0);
Ia1 = Ea/equivalent_impedance;
fprintf('The value of Ia1 is ');
disp(Ia1);
Va1=Ea-(Ia1*j*Z1);
fprintf('The value of positive sequence voltage is: ');
disp(Va1);
Va2=Va1;
Va0=Va1;
Ia2=-(Va2/Z2);
%fault_current=Ib+Ic in P.U
+,. $$
+ ,/
(0")
(0"1)
/ (0"#)
3 4 /
(0")
/
(0"%)7+,.
8
6 (0"9)7+,.
68
(0"&)7+,.
6 (0":)7+,.
6
6 (0";)7+,.
, 4.
6- (0"$)7+,.
,- 4.
8
!!! "
!!! #$"
!!! %&
6 6 6
6 68 6
3 4
6 6
6 3 4
8 (')
*44 -
+ (')
34 4 -
. ( 1 < )
/ +
= ( #)
6 +
. (.)
= (=)
2
? (")
6 ? (")
*4 6
0
5 0
() () @ /()A /(5)A(8("5)A4( ()
(5)) @
+("5)A( ()
(5)))
6() 6() @ /()A /(5)A(8("5)A( ()
(5))
+("5)A4( ()
(5)))
B & CC
> 1
D 4 45 &
10
() 1
68 6()@6()
68 B 6()
/() /() @ $$
68 > 6-()
/() /()
$$
, E 6F
,4 / 4
G4
G
H ..
I 4
G1
H ..
G1 ? (
"=)
0(
)
@
5 0=
I 4
/
=(5)
0
G1("5) G1("5) @ /()A(8(")A4( ()
()) @
+(")A( ()
()))
G1("5) G1("5) @ /()A8(")
G1("5) /()A(8(")A4( ()
()) @
+(")A( ()
()))
G#
H .. 4.
I 4
G
H .. 4.
I 4
/
G4 ,-
K .(G)A,
* 4 / 4
* /
/ K(0 )
L 3 / 4
(10) 2 @ (10)
/
5
10
() #
/() /(5) @ /()
/ ,
5 5@
@
2 -((,))
2 4
("/" "+,.)
+
*
I 4" C
()
()
8
8
*. 4
H :$7A
(0")
(0"1)
()
(0"&)
6 (0":)
6
+ *
I 4
'A/
( )
( )
*
0
() = ()
I("=)
(/()
/(=))A'("=) '(")
(")
I(=")
I("=)
I ( I)
I ( I)
I ( I)
0
0
M
3I(") /()A4I( I("))A+,.
3I (3I)
I (3I)
6I (3I)
I ? (")
0
() = ()
I() 3I("=) @ 3I(=")
I (I)
=I (I)
+
I 4
0
5 0
3() 3() @ 4I(/())A /(5)A'("5)A+,.
(3)
6
(3)
@
6 6@6
(NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOON)
(N
N)
(N
N)
(N
N)
(N< + <
<
(N<
<
,P
<
<
<
<N)
<
< H <
,/ < N)
I 4
,P
<
<
,/
<
8
,P
<
,.
0
(N
N)
(N#N" ) (N
:N" H ())
(N
:#N" 6())
(N
:#N" 6())
(N
(N
N)
(N 2
:#N" (6))
N)(N
(N
(N
:#N" (6@6))
(N
N)
(NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOON)
(N
N)
(N
N)
(N
N)
(N<<2 <
<N)
<
<
<
(N<+ <+<
,P
,P
<
,/ <N)
<
,/
,P
<
,/
<
0
() = ()
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