summaryrefslogtreecommitdiff
path: root/503/CH8/EX8.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /503/CH8/EX8.9
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '503/CH8/EX8.9')
-rwxr-xr-x503/CH8/EX8.9/ch8_9.sci30
1 files changed, 30 insertions, 0 deletions
diff --git a/503/CH8/EX8.9/ch8_9.sci b/503/CH8/EX8.9/ch8_9.sci
new file mode 100755
index 000000000..3ab3421db
--- /dev/null
+++ b/503/CH8/EX8.9/ch8_9.sci
@@ -0,0 +1,30 @@
+//to calculate the generator current and its pf
+
+clc;
+j=sqrt(-1);
+X=.24;
+r=400; //rating in MVA
+rr=600; //rating in MVA
+Pe=r/rr;
+Vt=1;
+Vth=1;
+dl=asind(Pe*X/(Vt*Vth));
+Ia=2*sind(dl/2)/X;
+V=24000;
+IaB=(rr/3)*10^6/(V/sqrt(3));
+Iaa=Ia*IaB;disp(Iaa,'generating current(A)');
+phi=dl/2;
+pf= cosd(phi);disp(pf,'power factor');
+
+Pe=1;
+dl1=asind(Pe*X/(Vt*Vth));
+Ia=2*sind(dl1/2)/X;
+Iaa=Ia*IaB;disp(Iaa,'generating current(A)');
+phi=dl1/2;
+pf= cosd(phi);disp(pf,'power factor');
+Ef=Vt+j*Ia*(complex(cosd(-phi),sind(-phi)))*X;
+Eff=abs(Ef)*V;
+dl2=atand(imag(Ef)/real(Ef));
+
+Xth=.24;
+Pe=abs(Ef)*Vth*sind(dl1+dl2)/(X+Xth);disp(Pe,'Pe(pu)'); \ No newline at end of file