summaryrefslogtreecommitdiff
path: root/2471/CH6/EX6.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2471/CH6/EX6.3
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 '2471/CH6/EX6.3')
-rwxr-xr-x2471/CH6/EX6.3/Ex6_3.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2471/CH6/EX6.3/Ex6_3.sce b/2471/CH6/EX6.3/Ex6_3.sce
new file mode 100755
index 000000000..7308da1ce
--- /dev/null
+++ b/2471/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,24 @@
+clear ;
+clc;
+// Example 6.3
+printf('Example 6.3\n\n');
+printf('Page No. 144\n\n');
+
+// given
+Th_i = 130;//Inlet temperature of hot liquid in degree celcius
+Th_o = 90;// Outlet temperature of hot liquid in degree celcius
+Tc_i = 20;// Inlet temperature of cold liquid in degree celcius
+Tc_o = 50;// Outlet temperature of cold liquid in degree celcius
+
+//For Couter-current flow
+T1 = Th_i - Tc_o;
+T2 = Th_o - Tc_i;
+Tm_1 = ((T2-T1)/log(T2/T1));
+printf('The logarithmic mean temperature difference for counter-current flow is %.0f degree celcius \n',Tm_1)
+
+
+//For Co-current flow
+T3 = Th_i - Tc_i;
+T4 = Th_o - Tc_o;
+Tm_2 = ((T3-T4)/log(T3/T4));
+printf('The logarithmic mean temperature difference for co-current flow is %.0f degree celcius \n',Tm_2)