summaryrefslogtreecommitdiff
path: root/1328/CH5/EX5.1/5_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1328/CH5/EX5.1/5_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1328/CH5/EX5.1/5_1.sce')
-rw-r--r--1328/CH5/EX5.1/5_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1328/CH5/EX5.1/5_1.sce b/1328/CH5/EX5.1/5_1.sce
new file mode 100644
index 000000000..ad15d4da7
--- /dev/null
+++ b/1328/CH5/EX5.1/5_1.sce
@@ -0,0 +1,20 @@
+printf("\t example 5.1 \n");
+T1=300; // hot fluid inlet temperature,F
+T2=200; // hot fluid outlet temperature,F
+t1=100; // cold fluid inlet temperature,F
+t2=150; // cold fluid outlet temperature,F
+printf("\t for counter current flow \n");
+delt1=T1-t2; //F
+delt2=T2-t1; // F
+printf("\t delt1 is : %.0f F \n",delt1);
+printf("\t delt2 is : %.0f F \n",delt2);
+LMTD=((delt2-delt1)/((2.3)*(log10(delt2/delt1))));
+printf("\t LMTD is :%.1f F \n",LMTD);
+printf("\t for parallel flow \n");
+delt1=T1-t1; // F
+delt2=T2-t2; // F
+printf("\t delt1 is : %.0f F \n",delt1);
+printf("\t delt2 is : %.0f F \n",delt2);
+LMTD=((delt2-delt1)/((2.3)*(log10(delt2/delt1))));
+printf("\t LMTD is :%.0f F \n",LMTD);
+//end