You are on page 1of 3

clear all

close all
clc
t = 0:0.00001:0.1; %vetor de tempo
f=60; %frequencia
w=2*pi*f; %frequencia em rad/s
a=(2*pi)/3; %angulo de 120
% FMM para correntes equilibradas
for n = 1:10001
Ia(n) = cos (w*t(n));
Ib(n) = cos (w*t(n) - a);
Ic(n) = cos (w*t(n) + a);
FMMa(n) = Ia(n);
FMMb(n) = Ib(n)*cos (a)+ j* Ib(n) *sin (a);
FMMc(n) = Ic(n)*cos (-a)+ j* Ic(n) *sin (-a);
FMMt(n) = FMMa(n) + FMMb(n) + FMMc(n);
r(n) = real (FMMt(n));
i(n) = imag(FMMt(n));
end;
figure ()
plot (r,i,'--k','linewidth',3);
title ('FMM Correntes Equilibradas');
xlabel('Real');
ylabel('Imag');

% FMM para correntes desequilibradas


for n = 1:10001
Ia(n) = cos (w*t(n));
Ib(n) = 0.8*cos (w*t(n) - a);
Ic(n) = cos (w*t(n) + a);
FMMa(n) = Ia(n);
FMMb(n) = Ib(n)*cos (a)+ j* Ib(n) *sin(a);
FMMc(n) = Ic(n)*cos (-a)+ j* Ic(n) *sin (-a);
FMMt(n) = FMMa(n) + FMMb(n) + FMMc(n);
r(n) = real (FMMt(n));
i(n) = imag(FMMt(n));
end;
figure ()
plot (r,i,'--k','linewidth',3);
title ('FMM Correntes em Desequilbrio');
xlabel(' Real');
ylabel(' Imag');

% FMM para correntes poludas com 5 harmnico


for n = 1:10001
Ia(n) = cos (w*t(n))+ 0.1*cos(5*w*t(n));
Ib(n) = cos (w*t(n) - a)+0.1*cos(5*w*t(n)+a);
Ic(n) = cos (w*t(n) + a)+0.1*cos(5*w*t(n)-a);
FMMa(n) = Ia(n);
FMMb(n) = Ib(n)*cos (a)+ j* Ib(n) *sin(a);
FMMc(n) = Ic(n)*cos(-a)+ j* Ic(n) *sin (-a);

FMMt(n) = FMMa(n) + FMMb(n) + FMMc(n);


r(n) = real (FMMt(n));
i(n) = imag(FMMt(n));
end;
figure ()
plot (r,i,'--k','linewidth',3);
title ('FMM Correntes com 5 harmnico');
xlabel('Real');
ylabel('Imag');