summaryrefslogtreecommitdiff
path: root/172/CH5/EX5.11/ex11.sce
blob: 0648afff60ab729e749cdf785ab4e321a3199869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example 11
//rate of change of temperature
clear
clc
Q=1500 //power produced by burning wood in J/s
mair=1 //mass of air in kg
mwood=5 //mass of soft pine wood in kg 
miron=25 //mass of cast iron in kg
Cvair=0.717 //constant volume specific heat for air in kJ/kg
Cwood=1.38 //constant volume specific heat for wood in kJ/kg
Ciron=0.42 //constant volume specific heat for iron in kJ/kg
dT=75-20 //increase in temperature in Celsius
T=(Q/1000)/(mair*Cvair+mwood*Cwood+miron*Ciron) //rate of change of temperature in K/s
dt=(dT/T)/60 //in minutes
printf(" hence,the rate of change of temperature is dt=%.4f K/s.\n", T)
printf(" and time taken to reach a temperature of T=%.0f min.\n", dt)