Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

%Mfile:prob7_9a.

m
%Mfilecreateaplotofthetorquespeedcurveofthe
%inductionmotorofProblem77.
%First,initializethevaluesneededinthisprogram.
r1=0.200;%Statorresistance
x1=0.410;%Statorreactance
r2=0.120;%Rotorresistance
x2=0.410;%Rotorreactance
xm=15.0;%Magnetizationbranchreactance
v_phase=208/sqrt(3);%Phasevoltage
n_sync=3600;%Synchronousspeed(r/min)
w_sync=377;%Synchronousspeed(rad/s)
%CalculatetheTheveninvoltageandimpedancefromEquations
%741aand743.
v_th=v_phase*(xm/sqrt(r1^2+(x1+xm)^2));
z_th=((j*xm)*(r1+j*x1))/(r1+j*(x1+xm));
r_th=real(z_th);
x_th=imag(z_th);
%Nowcalculatethetorquespeedcharacteristicformany
%slipsbetween0and1.Notethatthefirstslipvalue
%issetto0.001insteadofexactly0toavoiddivide
%byzeroproblems.
s=(0:1:50)/50;%Slip
s(1)=0.001;
nm=(1s)*n_sync;%Mechanicalspeed
%Calculatetorqueversusspeed
forii=1:51
t_ind(ii)=(3*v_th^2*r2/s(ii))/...
(w_sync*((r_th+r2/s(ii))^2+(x_th+x2)^2));
end
%Plotthetorquespeedcurve
figure(1);
plot(nm,t_ind,'k','LineWidth',2.0);
xlabel('\bf\itn_{m}');
ylabel('\bf\tau_{ind}');
title('\bfInductionMotorTorqueSpeedCharacteristic');
gridon;

%Mfile:mag_field2.m
%Mfiletocalculatethenetmageticfieldproduced
%byathreephasestator.
%Setupthebasicconditions
bmax=1;%Normalizebmaxto1
freq=60;%60Hz
w=2*pi*freq;%angluarvelocity(rad/s)
%First,generatethethreecomponentmagneticfields
t=0:1/6000:1/60;
Baa=sin(w*t).*(cos(0)+j*sin(0));
Bbb=sin(w*t+2*pi/3) .*(cos(2*pi/3)+j*sin(2*pi/3));
Bcc=sin(w*t-2*pi/3) .*(cos(2*pi/3)+j*sin(2*pi/3));
%CalculateBnet
Bnet=Baa+Bbb+Bcc;
%Calculateacirclerepresentingtheexpectedmaximum
%valueofBnet
circle=1.5*(cos(w*t)+j*sin(w*t));
%Plotthemagnitudeanddirectionoftheresultingmagnetic
%fields.NotethatBaaisblack,Bbbisblue,Bccis
%magneta,andBnetisred.
forii=1:length(t)
%Plotthereferencecircle
plot(circle,'k');
holdon;
%Plotthefourmagneticfields
plot([0real(Baa(ii))],[0imag(Baa(ii))],'k','LineWidth',2);
plot([0real(Bbb(ii))],[0imag(Bbb(ii))],'b','LineWidth',2);
plot([0real(Bcc(ii))],[0imag(Bcc(ii))],'m','LineWidth',2);
plot([0real(Bnet(ii))],[0imag(Bnet(ii))],'r','LineWidth',3);
axissquare;
axis([2222]);
drawnow;
holdoff;

You might also like