diff options
Diffstat (limited to '172/CH5/EX5.11/ex11.sce')
-rwxr-xr-x | 172/CH5/EX5.11/ex11.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/172/CH5/EX5.11/ex11.sce b/172/CH5/EX5.11/ex11.sce new file mode 100755 index 000000000..0648afff6 --- /dev/null +++ b/172/CH5/EX5.11/ex11.sce @@ -0,0 +1,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)
\ No newline at end of file |