diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1073/CH2/EX2.39/2_39.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1073/CH2/EX2.39/2_39.sce')
-rwxr-xr-x | 1073/CH2/EX2.39/2_39.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1073/CH2/EX2.39/2_39.sce b/1073/CH2/EX2.39/2_39.sce new file mode 100755 index 000000000..575b14bb7 --- /dev/null +++ b/1073/CH2/EX2.39/2_39.sce @@ -0,0 +1,20 @@ + +clc; +clear; +//Example 2.39 +//Given +h=11.36 //W/sq m.K +k=43.3 //w/(m.K) +r=25.4 //radius in mm +r=r/1000 // radius in m +A=4*%pi*r^2 //Area of sphere [sq m] +V=A*r/3 //Volume in [cubic m] +rho=7849 //kg/cubic m +Cp=0.4606*10^3 //J/kg.K +t=1 //hour +t=t*3600 //seconds +T_inf=394.3 //[K] +T0=700 //[K] +// (T-T_inf)/(T0-T_inf)=e^(-3*h*t/rho*Cp*V) +T=T_inf+(T0-T_inf)*(%e^((-h*A*t)/(rho*Cp*V))); +printf("Temperature of ball after 1 h= %f K (%f degree C)",T,T-273) |