summaryrefslogtreecommitdiff
path: root/2519/CH19/EX19.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2519/CH19/EX19.2
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 '2519/CH19/EX19.2')
-rwxr-xr-x2519/CH19/EX19.2/Ex19_2.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2519/CH19/EX19.2/Ex19_2.sce b/2519/CH19/EX19.2/Ex19_2.sce
new file mode 100755
index 000000000..18fcbd3ff
--- /dev/null
+++ b/2519/CH19/EX19.2/Ex19_2.sce
@@ -0,0 +1,23 @@
+clc
+clear
+//Initialization of variables
+r1=4.035 //in
+r2=4.312 //in
+r3=5.312 //in
+r4=6.812 //in
+k12=25 //Btu/hr ft F
+k23=0.05 //Btu/hr ft F
+k34=0.04 //Btu/hr ft F
+t1=625 //F
+t4=125 //F
+l=100 //ft
+hr=1.7 //Btu/hr ft^2 F
+//calculations
+Rs=1/(2*%pi*l) *(log(r2/r1) /k12+log(r3/r2) /k23 +log(r4/r3) /k34)
+Qd=(t1-t4)/Rs
+dt=Qd*12/(hr*%pi*2*l*6.812)
+t0=t4-dt
+//results
+printf("Heat loss = %d Btu/hr",Qd)
+printf("\n Temperature required = %d F",t0)
+disp("The answers given in the textbook are a bit different due to rounding off error")