summaryrefslogtreecommitdiff
path: root/1460/CH8/EX8.1/8_1.sce
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.1/8_1.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 '1460/CH8/EX8.1/8_1.sce')
-rwxr-xr-x1460/CH8/EX8.1/8_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1460/CH8/EX8.1/8_1.sce b/1460/CH8/EX8.1/8_1.sce
new file mode 100755
index 000000000..553b82657
--- /dev/null
+++ b/1460/CH8/EX8.1/8_1.sce
@@ -0,0 +1,20 @@
+clc
+//Initialization of variables
+ratio=7
+Q=300 //B/lbm
+T1=60+460 //R
+P1=14.7 //lb/in^2
+cv=0.1715 //B/lvm F
+g=1.4
+//calculations
+Tratio=(ratio)^(g-1)
+T2=Tratio*T1
+T3=T2+Q/cv
+eta=1- 1/Tratio
+WbyJ=eta*Q
+W=778*WbyJ
+//results
+printf("Final temperature = %d R",T3)
+printf("\n Thermal efficiency = %.3f",eta)
+printf("\n Work done = %d ft-lb/lbm",W)
+//The answers in the textbook are a bit different due to rounding off error