summaryrefslogtreecommitdiff
path: root/587/CH1/EX1.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /587/CH1/EX1.5
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 '587/CH1/EX1.5')
-rwxr-xr-x587/CH1/EX1.5/example1_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/587/CH1/EX1.5/example1_5.sce b/587/CH1/EX1.5/example1_5.sce
new file mode 100755
index 000000000..23b1602a8
--- /dev/null
+++ b/587/CH1/EX1.5/example1_5.sce
@@ -0,0 +1,20 @@
+clear;
+clc;
+
+//Example1.5 (The cost of Heat loss through a Roof)
+
+//(a)
+k=0.8;//The thermal conductivity of the roof[W/m.degree.C]
+A=6*8;//Area of the roof[m^2]
+t1=15;//temperature of inner surface roof[degree C]
+t2=4;//temperature of outer surface roof[degree C]
+L=0.25;//thickness of roof[m]
+Q_=k*A*(t1-t2)/L;//[W]
+disp("W",Q_,"The steady rate of heat transfer through the roof is")
+
+//(b)
+dt=10;//time period[h]
+Q=Q_*dt/1000;//[kWh]
+u_cost=0.08;//Unit cost of energy[$/kWh]
+Cost=Q*u_cost;//[$]
+disp(Cost,"and its cost is $","kWh",Q,"The amount of heat lost through the roof")