summaryrefslogtreecommitdiff
path: root/1022/CH8/EX8.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1022/CH8/EX8.2
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 '1022/CH8/EX8.2')
-rwxr-xr-x1022/CH8/EX8.2/8_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1022/CH8/EX8.2/8_2.sce b/1022/CH8/EX8.2/8_2.sce
new file mode 100755
index 000000000..5eea878be
--- /dev/null
+++ b/1022/CH8/EX8.2/8_2.sce
@@ -0,0 +1,17 @@
+clc
+//initialisation of variables
+P= 10 //bar
+P1= 38 //bar
+T= 310 //C
+v= 64.03 //cm^3/gm
+s= 6.4415 //J/gm K
+vf= 1.12773 //cm^3/gm
+vg= 194.44 //cm^3/gm
+sf= 2.1387 //J/gm K
+sfg= 4.4478 //J/gm K
+//CALCULATIONS
+x= (v-vf)/(vg-vf)
+sx= sf+x*sfg
+S= s-sx
+//RESULTS
+printf ('Change in Entropy= %.3f J/gm',S)