summaryrefslogtreecommitdiff
path: root/1394/CH20/EX20.3.2/Ex20_3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1394/CH20/EX20.3.2/Ex20_3_2.sce')
-rwxr-xr-x1394/CH20/EX20.3.2/Ex20_3_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1394/CH20/EX20.3.2/Ex20_3_2.sce b/1394/CH20/EX20.3.2/Ex20_3_2.sce
new file mode 100755
index 000000000..3fbd1f6bc
--- /dev/null
+++ b/1394/CH20/EX20.3.2/Ex20_3_2.sce
@@ -0,0 +1,15 @@
+
+clc
+//initialization of variables
+T = 32 //F
+T0 = 10//F
+Tinf= 80 //F
+U = 3.6 //Btu/hr-ft^2-F
+A = 27 //ft^2
+d = 8.31 //lb/gal
+V = 100 //gal
+Cv = 1//Btu/lb-F
+//Calculations
+t = (-log((T-T0)/(Tinf-T0)))*d*V*Cv/(U*A)//hr
+//Results
+printf("The time we can wait before the water in the tank starts to freeze is %.f hr",t)