summaryrefslogtreecommitdiff
path: root/416/CH14/EX14.2/example14_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /416/CH14/EX14.2/example14_2.sce
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 '416/CH14/EX14.2/example14_2.sce')
-rwxr-xr-x416/CH14/EX14.2/example14_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/416/CH14/EX14.2/example14_2.sce b/416/CH14/EX14.2/example14_2.sce
new file mode 100755
index 000000000..3a9c5920d
--- /dev/null
+++ b/416/CH14/EX14.2/example14_2.sce
@@ -0,0 +1,13 @@
+clc
+clear
+disp('example14.2')
+p=100 //power of alternator
+f=50 //frequency
+h=5 //h constant of machine kW-sec kVA
+inl=50 //load suddenly increase by
+de=0.5 //time delay
+ke=h*p*10^3 //kinetic energy
+lke=inl*10^3*de //loss in kinetic energy
+nf=((1-(lke/ke))^(de))*f //now frequency
+fd=(1-nf/f)*100 //frequency deviation
+printf("kinetic energy stored at rated speed %.1e kW-sec \nloss in kinetic energy due to increase in load %.1e kW-sec \n new frequency %.3fHz \nfrequency deviation %.3f",ke,lke,nf,fd) \ No newline at end of file