summaryrefslogtreecommitdiff
path: root/1460/CH8/EX8.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH8/EX8.5
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 '1460/CH8/EX8.5')
-rwxr-xr-x1460/CH8/EX8.5/8_5.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/1460/CH8/EX8.5/8_5.sce b/1460/CH8/EX8.5/8_5.sce
new file mode 100755
index 000000000..3a45967b6
--- /dev/null
+++ b/1460/CH8/EX8.5/8_5.sce
@@ -0,0 +1,33 @@
+clc
+//initialization of variables
+P=14.7 //lb/in^2
+T=60+460 //R
+e1=0.8
+P2=3 //lb/in^2
+T2=1600+460 //R
+Pt4=15.6 //lb/in^2
+w=60 //lbm/sec
+e2=0.85
+//calculations
+disp("from table 6, initial conditions are")
+ht1=124.3
+Prt1=1.215
+Prt2s=6*Prt1
+ht2s=207.6
+ht2=ht1+(ht2s-ht1)/e1
+dht1=(ht2s-ht1)/e1
+ht3=521.4
+Prt3=196.2
+Pt3=6*P-P2
+Pratio=Pt3/Pt4
+Prt4s=Prt3/Pratio
+ht4=326.5
+dht3=e2*(ht3-ht4)
+W=778*(dht3-dht1)
+Q=ht3-ht2
+etaf=W/778/Q
+Wdot=w*W/550
+//results
+printf("Thermal efficiency = %.3f",W)
+printf("\n Horsepower output = %d hp",Wdot)
+//The answers in the textbook are a bit different due to rounding off error in the book