Sei sulla pagina 1di 2

%For the first case alpha+theta is zero

Vm=220;
f=50;
w=2*pi*f;
l=3;
r=0.35;
z=sqrt(r^2+w^2*l^2);
thieta=atan(w*l/r);
alfa=-thieta;
b=alfa+thieta;
Im=-Vm/z; %becuase z approximately equals to jx and r is very small
a=r/l;
t=0:0.499:50;
c=Im*sin(w*t+b);
d=Im*sin(b)*exp(-a*t);
i=c+d;
plot(t,i,t,c,t,d);
xlabel('t,ms');
ylabel('current in Ampere');
title('synchronous machine transient wave form');
grid on;





0 5 10 15 20 25 30 35 40 45 50
-0.25
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
0.2
0.25
t,ms
c
u
r
r
e
n
t

i
n

A
m
p
e
r
e
synchronous machine transient wave form

%For second case for alpha-theta is pi/2
Vm=220;
f=50;
w=2*pi*f;
l=3;
r=0.35;
z=sqrt(r^2+w^2*l^2);
thieta=atan(w*l/r);
alfa=pi/2-thieta;
b=alfa+thieta;
Im=-Vm/z; %becuase z approximately equals to jx and r is very small
a=r/l;
t=0:0.499:50;
c=Im*sin(w*t+b);
d=Im*sin(b)*exp(-a*t);
i=c+d;
plot(t,i,t,c,t,d);
xlabel('t,ms');
ylabel('current in Ampere');
title('synchronous machine transient wave form');
grid on;



0 5 10 15 20 25 30 35 40 45 50
-0.5
-0.4
-0.3
-0.2
-0.1
0
0.1
0.2
0.3
t,ms
c
u
r
r
e
n
t

i
n

A
m
p
e
r
e
synchronous machine transient wave form

Potrebbero piacerti anche