araba_2

Upload: aleff-passos

Post on 08-Oct-2015

216 views

Category:

Documents


0 download

DESCRIPTION

segundo codigo matlab

TRANSCRIPT

%----------------------------% CIRCUITO%----------------------------R1 = 0.057;X1 = 5.679;R2 = 0.0512;X2 = 25.171;Xm = 11.957;%----------------------------% MOTOR%----------------------------Pcv = 0.5;Pw = Pcv*735.5;n = 0.42;Pwu = (%*Pw)/n;Fp = 0.52;Vm = 110;In = 9.2;f = 60;w = 2*pi*f;Q = Pwu*tan(acos(Fp));S = Pwu + j*Q;Im = conj(S/Vm);Z = Vm/Im;%--------------% A%--------------%SRIE:Xs = imag(Z);Rs = real(Z);Ls = Xs/w;%PARALELO:Y = 1/Z;Xp = 1/imag(Y);Rp = 1/real(Y);Lp = Xp/w;%--------------% B%--------------% figure(1), plot([0 real(Vm)],[0 imag(Vm)],[0 real(Im)],[0 imag(Im)]),grid, zoom, legend('V_motor','I_motor'), title('Diagrama Fasorial')% pause;%% figure(2), plot([0 real(S)],[0 imag(S)], [0 Pwu],[0 0], [Pwu Pwu],[0 Q]), grid, zoom, legend('S_motor','P_motor','Q_motor'), title('Tringulo de Potncias')% pause;%% close all %--------------% C%--------------I2 = Im;A = [R1+j*X1 -1; -j*Xm 0];B = [I2*j*Xm; I2*(-Z-R2-j*X2)];X = inv(A)*B;I1 = X(1,1);E = X(2,1);S_ab = E*conj(I1);P_ab = real(S_ab);Q_ab = imag(S_ab);Fator_ab = P_ab/abs(S);figure(3), plot([0 real(E)],[0 imag(E)],[0 real(I1)],[0 imag(I1)]), grid, zoom, legend('E','I1'), title('Diagrama Fasorial')% pause;%figure(4), plot([0 real(S_ab)],[0 imag(S_ab)], [0 P_ab],[0 0], [P_ab P_ab],[0 Q_ab]), grid, zoom, legend('S_ab','P_ab','Q_ab')% pause;%% close all%--------------% D%--------------Amplitude_E = abs(E);Anglo_E = 180*(phase(E))/pi;%--------------% E%--------------Xc = imag(Z);C = 1/(w*Xc);