diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH15/EX15.12/Ex15_12.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2510/CH15/EX15.12/Ex15_12.sce')
-rwxr-xr-x | 2510/CH15/EX15.12/Ex15_12.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2510/CH15/EX15.12/Ex15_12.sce b/2510/CH15/EX15.12/Ex15_12.sce new file mode 100755 index 000000000..fc71588f8 --- /dev/null +++ b/2510/CH15/EX15.12/Ex15_12.sce @@ -0,0 +1,24 @@ + +//Variable declaration: +B = 3.33*10**-5 +b = 4.48*10**-5 +//From example 15.11: +A = 108.2 //Inside area of pipe (ft^3/ft) +U = 482 //Overall heat transfer coefficient (Btu/h.ft^2..) +MC = 30000.0 +mc = 23000.0 +T1 = 300.0 //Inlet temperature of hot fluid in pipe (.) +t1 = 60.0 //Inlet temperature of cold fluid in pipe (.) +e = %e + +//Calculation: +//From equation 15.28: +T2 = ((B/b)*(e**(U*A*(B-b))-1)*t1+T1*(B/b-1))/((B/b)*e**(U*A*(B-b))-1) //Outlet temperature of hot fluid (.) +//From equation 15.32: +t2 = ((b/B)*(e**(U*A*(b-B))-1)*T1+t1*(b/B-1))/((b/B)*e**(U*A*(b-B))-1) //Outlet temperature of cold fluid (.) +DT = ((T2-t1)-(T1-t2))/(log((T2-t1)/(T1-t2))) //Log mean difference temperature (.) +Q1 = U*A*DT //Heat transfer rate of hot fluid (Btu/h) +Q2 = MC*(T1-T2) //Heat transfer rate of cold fluid (Btu/h) +Q2 = round(Q2 * 10**-3)/10**-3 +//Result: +printf("The heat load is : %f Btu/h.",Q2) |