summaryrefslogtreecommitdiff
path: root/680/CH6/EX6.02
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /680/CH6/EX6.02
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 '680/CH6/EX6.02')
-rwxr-xr-x680/CH6/EX6.02/6_02.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/680/CH6/EX6.02/6_02.sce b/680/CH6/EX6.02/6_02.sce
new file mode 100755
index 000000000..f14a32d48
--- /dev/null
+++ b/680/CH6/EX6.02/6_02.sce
@@ -0,0 +1,17 @@
+//Problem 6.02:
+
+//initializing the variables:
+mc = 20; // in lb
+T1 = 100; // in degrees C
+T2 = 25; // in Deg C
+mw = 6; // in gallons
+Cpc = 0.092; // Btu/lb.degF
+Cpw = 1.0; // Btu/lb.degF
+
+//calculation:
+T = (mc*Cpc*T1 + mw*8.33*Cpw*T2)/(mc*Cpc + mw*8.33*Cpw)
+Tk = T + 273
+dS = mw*8.33*Cpw*log(Tk/298)
+
+printf("\n\nResult\n\n")
+printf("\n the entropy change of the water is %.3f Btu/deg F",dS) \ No newline at end of file