summaryrefslogtreecommitdiff
path: root/680/CH6/EX6.09
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.09
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.09')
-rwxr-xr-x680/CH6/EX6.09/6_09.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/680/CH6/EX6.09/6_09.sce b/680/CH6/EX6.09/6_09.sce
new file mode 100755
index 000000000..15e0c6020
--- /dev/null
+++ b/680/CH6/EX6.09/6_09.sce
@@ -0,0 +1,25 @@
+//Problem 6.09:
+
+//initializing the variables:
+H0 = 28; // in Btu/lb
+H1 = 1151; // in Btu/lb
+Qh = 700; // in Btu/lb
+S0 = 0.056; // in Btu/lb deg R
+S1 = 1.757; // in Btu/lb deg R
+Th = 300; // in deg F
+Tc = 60; // in deg F
+P1 = 1; // in atm
+T1 = 212; // in deg F
+T0 = 60; // in deg F
+
+
+//calculation:
+Qc = H1 - H0 - Qh
+//the entropy change of the steam
+dSs = S0 - S1
+dSh = Qh/(Th + 460)
+dSc = Qc/(Tc + 460)
+dSt = dSs + dSh + dSc
+
+printf("\n\nResult\n\n")
+printf("\n total entropy change is %.3f Btu/lb deg R",dSt) \ No newline at end of file