Professional Documents
Culture Documents
SINCRONA
Ref.:CHEE-MUN ONG: Dynamic
Simulation of Electric Machinery using
MATLAB/SIMULINK, PRENTICE HALL PTR
PROYECTO 2:
Falla en los Terminales de un Generador
Sncrono
El propsito de este Ejercicio es examinar la respuesta de un
generador sincrnico operando a valores fijados de velocidad del
rotor y de tensin de excitacin ante diferentes clases de fallas
elctricas en los terminales del estator.
A continuacin simularemos en
MATLAB
clear variables;
% seleccionamos el archivo con los parametros de la maquina para entrar en el area de trabajo de MATLAB
disp('introduzca nombre del archivo de parametros de la maquina .m')
disp('ejemplo: set1 or set3c')
setX = input('Input machine parameter filename > ','s')% string s
eval(setX); % evaluate MATLAB command
%****************************************************
% condicones iniciales establecidas para la simulacion puesta en marcha
wb=wbase;
xMQ = (1/xls + 1/xmq + 1/xplkq)^(-1);
xMD = (1/xls + 1/xmd + 1/xplf + 1/xplkd)^(-1);
% especifique las codiciones de las listas operativas deseadas
P = 1.0;% especifique el rango e incremento
Q = 0; % y la energia reactiva de salida,
% P is negative for motoring
Vt = 1. + 0*j;
% especifique el voltaje terminal
thetaeo = angle(Vt); % ingrese el angulo del voltaje
Vm = abs(Vt);
St = P+Q*j; % generated complex power
%
%
%
%
%
%
%
%
%
It = conj(St/Vt);
Eq = Vt + (rs + j*xq)*It;
delt = angle(Eq);
% angle Eq leads Vt
subplot(4,1,1)
plot(y(:,1),y(:,2),'-')
ylabel('|Vt| in pu')
axis([-inf inf 0.9 1.1])
title('la magnitud del voltaje del estator')
subplot(4,1,2)
plot(y(:,1),y(:,3),'-')
ylabel('|It| in pu')
axis([-inf inf 0 inf])
title('la magnitud de la corriente del estator')
subplot(4,1,3)
plot(y(:,1),y(:,4),'-')
ylabel('Pgen in pu')
title('el verdadero poder generado')
subplot(4,1,4)
plot(y(:,1),y(:,5),'-')
ylabel('Qgen in pu')
xlabel('time in sec')
title('Reactive power generated')
h2=figure;
subplot(4,1,1)
plot(y(:,1),y(:,6),'-')
ylabel('Delta in rad')
title('Power angle delta')
subplot(4,1,2)
plot(y(:,1),y(:,7),'-')
ylabel('Tem in pu')
title('la fuerza de torcion electrica instantanea')
subplot(4,1,3)
plot(y(:,1),y(:,8),'-')
ylabel('If in pu')
title('Field current')
subplot(4,1,4)
plot(y(:,1),y(:,9),'-')
ylabel('ia in pu')
xlabel('time in sec')
title('Instantaneous phase a current')
disp('Save plots array before typing return to exit')
keyboard
close (h2)
% prompt for options to repeat over with determination of Ipm
% for new terminal condition or
% just with new parameters, eg inertia or loading.
repeat_option = menu('Repeat run?,','Quit','Repeat run');
if isempty(repeat_option) % if empty return a 1 to terminate
repeat_option = 1;
end % if isempty
end % while repeat for another runs