Вы находитесь на странице: 1из 2

# r1 = 0.

35;
x1 = 0.8;
x2 = 0.8;
xm = 33;
P_out = 37.285*1000;
V = 480;
V_phase = 480/sqrt(3);
slip = 0.038;
f = 50;
toD = 180/pi;
poles = 4;
% Calculate Zth and Vth (Thevenin equivalent) of the input circuit
Zth = ( (j*xm) * (r1 + j*x1) ) / ( r1 + j*(x1 + xm) );
str = ['display: Zth = ' num2str(Zth)];
disp(str);
fprintf('Zth = %0.4f + j %0.4f\n', real(Zth), imag(Zth));
fprintf('Zth = %0.4f cis %0.2f (in degree)\n\n', abs(Zth), angle(Zth)*toD);

## Vth = V_phase * (j*xm / (j*xm + r1+ j*x1) );

str = ['display: Vth = ' num2str(Vth)];
disp(str);
fprintf('Vth = (%0.4f + j %0.4f) V\n', real(Vth), imag(Vth));
fprintf('Vth = (%0.4f cis %0.2f (in degree)) V\n\n', abs(Vth), angle(Vth)*toD);

## % Calculate the synchronous speed

ssrpm = (120*f)/poles; % in rpm
fprintf('The synchronous speed of the motor is %0.0f rpm\n', ssrpm);

## ssrps = ssrpm * ( (2*pi) / 60); % in rad/s

fprintf('The synchronous speed of the motor is %0.4f rad/s\n', ssrps);

## % Calculate the mechanical shaft speed

mssrpm = (1-slip) * ssrpm; % in rpm
fprintf('The rotor speed of the motor is %0.0f rpm\n', mssrpm);

## mssrps = mssrpm * ( (2*pi) / 60); % in rad/s

fprintf('The rotor speed of the motor is %0.4f rad/s\n\n', mssrps);

## % Calculate the induced torque of rotor

fprintf('Induced torque = %0.4f Nm\n\n', T_load);

## % a) Calculate the value of the rotor resistance, R2

x = real(Zth);
y = imag(Zth);
z = 3 * ( abs(Vth)^2 );
a = T_ind*ssrps;
b = ( imag(Zth) + x2 )^2;
c = (2*a*x) - z;
d = ( ( a * (x^2) ) + a*b );

n = roots([a, c, d]);

## disp('a) The 1st root is '), disp(n(1));

disp(' The 2nd root is '), disp(n(2));

R_1 = n(1);
R_2 = n(2);
R2_1 = R_1*slip;
R2_2 = R_2*slip;
fprintf(' R2 = %0.4f ohms\n R2 = %0.4f ohms\n\n', R2_1, R2_2);

## % b) Calculate the slip at maximum torque

T_max_slip = (R2_1) / ( sqrt( (x^2) + b ) );
fprintf('b) The slip at maximum torque is %0.4f\n\n', T_max_slip);

## % c) Calculate the maximum torque

p = ( real(Zth)^2 ) + ( ( imag(Zth) + x2 )^2 );
T_max = (3/2) * ( ( abs(Vth)^2 ) * (1/ssrps) * (1 / ( real(Zth) + sqrt(p) )) );
fprintf('c) The maximum torque is %0.4f Nm\n\n', T_max);

## % d) Calculate the rotor speed at maximum torque

T_max_rs = (1-T_max_slip) * ssrpm;
fprintf('c) The rotor speed at maximum torque is %0.4f rpm\n\n', T_max_rs);

## % e) Calculate the starting torque

fprintf('e) Torque at slip 1\n');

## r = ( real(Zth) + R2_1 )^2;

s = ( imag(Zth) + x2 )^2;
T_start = z * R2_1 * ( 1/ssrps ) * ( 1/(r+s) );
fprintf(' The starting torque is %0.4f Nm\n', T_start);