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 --- 1309/CH9/EX9.1/ch9_1.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1309/CH9/EX9.1/ch9_1.sce (limited to '1309/CH9/EX9.1/ch9_1.sce') diff --git a/1309/CH9/EX9.1/ch9_1.sce b/1309/CH9/EX9.1/ch9_1.sce new file mode 100755 index 000000000..ff9cd87a7 --- /dev/null +++ b/1309/CH9/EX9.1/ch9_1.sce @@ -0,0 +1,16 @@ +clc; +clear; +printf("\t\t\tChapter9_example1\n\n\n"); +// determination of counterflow and parallel-flow configurations. +// temperatures of hot fluid in degree C +T1=100; +T2=75; +// temperatures of cold fluid in degree C +t1=5; +t2=50; +// for counterflow +LMTD_counter=((T1-t2)-(T2-t1))/(log((T1-t2)/(T2-t1))); +printf("\nThe LMTD for counter flow configuration is %.1f degree C",LMTD_counter); +// for parallel flow +LMTD_parallel=((T1-t1)-(T2-t2))/(log((T1-t1)/(T2-t2))); +printf("\nThe LMTD for parallel flow configuration is %.1f degree C",LMTD_parallel); \ No newline at end of file -- cgit