From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 617/CH9/EX9.6/Example9_6.sci | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 617/CH9/EX9.6/Example9_6.sci (limited to '617/CH9/EX9.6/Example9_6.sci') 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 -- cgit