diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3760/CH5/EX5.24/Ex5_24.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3760/CH5/EX5.24/Ex5_24.sce')
-rw-r--r-- | 3760/CH5/EX5.24/Ex5_24.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3760/CH5/EX5.24/Ex5_24.sce b/3760/CH5/EX5.24/Ex5_24.sce new file mode 100644 index 000000000..95035647e --- /dev/null +++ b/3760/CH5/EX5.24/Ex5_24.sce @@ -0,0 +1,26 @@ +clc;
+xd=1.2; // d axis synchronous reactance
+xq=0.8; // q axis synchronous reactance
+ra=0.025; // armature resistance
+vt=1; // pu rated per phase voltage
+disp('case a');
+disp('For lagging power factor')
+pf=0.8; // power factor
+ia=1*(pf-sqrt(1-pf^2)*%i); // armature current
+Ef1=vt+%i*(ia*xq)+ia*ra; // excitation EMF
+id=1*sind(atand(imag(Ef1),real(Ef1))+acosd(pf)); // d component of armature current
+iq=1*cosd(atand(imag(Ef1),real(Ef1))+acosd(pf)); // q component of armature current
+Ef=abs(Ef1)+id*(xd-xq); // excitation EMF
+printf('Excitation EMF is %f p.u. at a load angle of %f degrees\n',abs(Ef),atand(imag(Ef1),real(Ef1)));
+disp('case b');
+disp('For leading power factor')
+pf=0.8; // power factor
+ia=1*(pf+sqrt(1-pf^2)*%i); // armature current
+Ef1=vt+%i*(ia*xq)+ia*ra; // excitation EMF
+id=1*sind(atand(imag(Ef1),real(Ef1))-acosd(pf)); // d component of armature current
+iq=1*cosd(atand(imag(Ef1),real(Ef1))-acosd(pf)); // q component of armature current
+Ef=abs(Ef1)+id*(xd-xq); // excitation EMF
+printf('Excitation EMF is %f p.u.at a load angle of %f degrees\n',abs(Ef),atand(imag(Ef1),real(Ef1)));
+
+
+
|