diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1460/CH7/EX7.9 | |
download | Scilab-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.9')
-rwxr-xr-x | 1460/CH7/EX7.9/7_9.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1460/CH7/EX7.9/7_9.sce b/1460/CH7/EX7.9/7_9.sce new file mode 100755 index 000000000..bf18b455c --- /dev/null +++ b/1460/CH7/EX7.9/7_9.sce @@ -0,0 +1,17 @@ +clc
+//initialization of variables
+g=1.4
+cv=0.171 //B/lbm
+P1=14.7 //lb/in^2
+P2=100 //lb/in^2
+T1=60+460 //R
+w=1 //lbm
+//calculations
+Tratio=(P2/P1)^((g-1)/g)
+T2=T1*Tratio
+WbyJ=cv*(T1-T2)
+W=WbyJ*778
+//results
+printf("Work done = %.1f B/lbm",W)
+printf("\n CHange in internal energy = %d ft-lb/lbm",WbyJ)
+//The answer in the textbook varies a bit due to rounding of error in textbook
|