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

NON SALIENT

clc;

clear all;

r=input('enter resistance value/n');

Xd=input('enter d axis reactance/n');

Xq=input('enter q axis reactance/n');

V=input('enter voitage/n');

S=input('enter value of power/n');

Pf=input('enter power factor/n');

%calculation

Vt=V/sqrt(3);

I=S/(sqrt(3)*V);

ang=acos(Pf);

Ia=I*(cos(ang)-j*sin(ang));

eff=Vt+Ia*(r+j*Xq);

Id=I*sin(ang+angle(eff));

Eg=abs(eff)+Id*(Xd-Xq);

reg=(abs(Eg)-Vt)*100/Vt;

delta=0:0.314:3.142;

P1=(abs(Eg)*Vt/Xd)*sin(delta);

P2=((Vt^2)*(Xd-Xq)*sin(2*delta))/(2*Xd*Xq);

P=P1+P2;

plot(delta,P,'r',delta,P1,'b',delta,P2,'g');

%display results

exicitation_emf=abs(Eg)

reg

You might also like