summaryrefslogtreecommitdiff
path: root/965/CH4/EX4.29/29.sci
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /965/CH4/EX4.29/29.sci
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '965/CH4/EX4.29/29.sci')
-rw-r--r--965/CH4/EX4.29/29.sci35
1 files changed, 35 insertions, 0 deletions
diff --git a/965/CH4/EX4.29/29.sci b/965/CH4/EX4.29/29.sci
new file mode 100644
index 000000000..c8404ab54
--- /dev/null
+++ b/965/CH4/EX4.29/29.sci
@@ -0,0 +1,35 @@
+clc;
+clear all;
+disp("Heat rate & energy")
+A=5;//m^2
+k=1.2;// W/(m.C)
+a=1.77*10^(-3);//m^2/h
+//t =(120-100*x+24*x^2+40*x^3-30*x^4
+//gradT=-100+48*x+120*x*x-120*x^3;
+//d2T=48+240*x-360*x*x
+
+x=0;
+t=120-100*x+24*x^2+40*x^3-30*x^4;
+gradT=-100+48*x+120*x*x-120*x^3;
+Qin=-k*A*gradT;
+disp("W",Qin," heat entering the slab Qin =")
+x=0.5;
+gradT=-100+48*x+120*x*x-120*x^3;
+Qout=-k*A*gradT;
+disp("W",Qout," heat leaving the slab Qout =")
+
+Qs=Qin-Qout;
+disp("W",Qs," heat stored in the unit time Qs =")
+
+x=0;
+d2T=48+240*x-360*x*x;
+Tt=a*d2T;
+disp("C/h",Tt,"rate of temperature change at inlet =")
+
+x=0.5;
+d2T=48+240*x-360*x*x;
+Tt=a*d2T;
+disp("C/h",Tt,"rate of temperature change at outlet =")
+//d3T =240-720x =0
+x=240/720;//m
+disp("m",x,"point where rate of heating/cooling is maximum x =")