summaryrefslogtreecommitdiff
path: root/2741/CH8/EX8.3/Chapter8_Example3.sce
blob: 9b9a352d79de796118fa0b7d1d421a21f73e569f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Input data 
l=30;//The length of the bar in cm 
A=5;//The uniform area of cross section of a bar in cm^2 
ta=200;//The temperature maintained at the end A in degree centigrade 
tc=0;//The temperature maintained at the end C in degree centigrade 
Kc=0.9;//The thermal conductivity of copper 
Ki=0.12;//The thermal conductivity of iron 

//Calculations 
T=((Kc*A*ta)+(Ki*A*tc))/((Kc+Ki)*A);//The temperature after the steady state is reached in degree centigrade 
Q=(Kc*A*(ta-T))/(l/2);//The rate of flow of heat along the bar when the steady state is reached in cal/sec 

//Output 
printf('The rate of flow of heat along the bar when the steady state is reached is Q = %3.2f cal/s ',Q)