summaryrefslogtreecommitdiff
path: root/1460/CH7/EX7.5/7_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH7/EX7.5/7_5.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/CH7/EX7.5/7_5.sce')
-rwxr-xr-x1460/CH7/EX7.5/7_5.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1460/CH7/EX7.5/7_5.sce b/1460/CH7/EX7.5/7_5.sce
new file mode 100755
index 000000000..fdd94ff07
--- /dev/null
+++ b/1460/CH7/EX7.5/7_5.sce
@@ -0,0 +1,21 @@
+clc
+//initialization of variables
+v=12.8 //ft^3
+T=80+460 //R
+P=14 //lb/in^2
+Pf=500 //lb/in^2
+//calculations
+Q=-53.3*T*log(Pf/P) /778
+W=778*Q
+v2=53.3*T/(144*Pf)
+w=v/v2
+Qdot=w*Q
+Wdot=w*W
+ds=Q/T
+dsbar=ds*w
+//results
+printf("Work required = %d ft-lb",Wdot)
+printf("\n Heat transfer = %d B",Qdot)
+printf("\n Change in entropy = %.3f B/lbm ",dsbar)
+//The answer given for Qdot is a printing error in textbook and the values are a bit different due to rounding off error
+printf("\n Change in internal energy is 0 cause this is a constant temperature process")