summaryrefslogtreecommitdiff
path: root/617/CH9/EX9.6/Example9_6.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /617/CH9/EX9.6/Example9_6.sci
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 '617/CH9/EX9.6/Example9_6.sci')
-rwxr-xr-x617/CH9/EX9.6/Example9_6.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/617/CH9/EX9.6/Example9_6.sci b/617/CH9/EX9.6/Example9_6.sci
new file mode 100755
index 000000000..c5e9b521a
--- /dev/null
+++ b/617/CH9/EX9.6/Example9_6.sci
@@ -0,0 +1,17 @@
+clc();
+clear;
+
+// To calculate temperature difference for heat exchanger
+
+Tc1 = 120; // Inlet cold fluid temperature in degF
+Tc2 = 310; // Outlet cold fluid temperature in degF
+Th1 = 500; // Inlet hot fluid temperature in degF
+Th2 = 400; // Outlet hot fluid temperature in degF
+K = (Tc2-Tc1)/(Th2-Tc2); // Temperature ratio
+R = (Th1-Th2)/(Tc2-Tc1); // Temperature ratio
+delt1 = Th2-Tc1; // Maximum temperature difference in degF
+delt2 = Th1-Tc2; // Minimum temperature difference in degF
+LMTD = (delt1-delt2)/log(delt1/delt2); // Log mean temperature difference
+f = 0.99; // Correction factor as seen from figure
+LMTDc = round(LMTD*f); // Corrected log mean temperature difference
+printf("Log mean temperature difference is %d degF",LMTDc); \ No newline at end of file