summaryrefslogtreecommitdiff
path: root/2510/CH21/EX21.3/Ex21_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH21/EX21.3/Ex21_3.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 '2510/CH21/EX21.3/Ex21_3.sce')
-rwxr-xr-x2510/CH21/EX21.3/Ex21_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2510/CH21/EX21.3/Ex21_3.sce b/2510/CH21/EX21.3/Ex21_3.sce
new file mode 100755
index 000000000..a340e8add
--- /dev/null
+++ b/2510/CH21/EX21.3/Ex21_3.sce
@@ -0,0 +1,16 @@
+//Variable declaration:
+//From figure 21.5:
+m = 2 //Mass flowrate (lb)
+cP = 1 //Heat capacity (Btu/lb. F)
+DS1 = -0.2744 //Entropy for hot fluid for E exchanger (Btu/ F)
+T1 = 180 //Temperature cold fluid entering the E exchabger ( F)
+T2 = 60 //Temperature cold fluid leaving the E exchabger ( F)
+
+//Calculation:
+DS2 = m*cP*log((T1+460)/(T2+460)) //Entropy for cold fluid for E exchanger (Btu/ F)
+DS_E = DS1+DS2 //Entropy for E exchanger (Btu/ F)
+DS_F = DS_E //Entropy for F exchanger (Btu/ F)
+DSt = DS_F+DS_E //Entropy change in exchangers E and F (Btu/ F)
+
+//Result:
+printf("The entropy change in exchangers E and F is : %.4f Btu/ F",DSt)