summaryrefslogtreecommitdiff
path: root/1985/CH17/EX17.3/Chapter17_example3.sce
blob: fac27627b1e358929cb4c01844f78139d3d17311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
clear
//Input data
d=0.2//Length of iron rod in m
A=0.685*10^-4//Area of cross-section in m^2
T1=100+273//Temperature of the hot end in K
T2=30+273//Temperature of the other end in K
K=62//Thermal conductivity of iron in W/m.K
t=10*60//Time in sec

//Calculations
Q=(K*A*(T1-T2)*t)/d//Quantity of heat conducted in J

//Output
printf('The iron rod conducts %3.2f J of energy in 10 minutes',Q)