summaryrefslogtreecommitdiff
path: root/1586/CH5/EX5.8/EXP5_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1586/CH5/EX5.8/EXP5_8.sce
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 '1586/CH5/EX5.8/EXP5_8.sce')
-rw-r--r--1586/CH5/EX5.8/EXP5_8.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1586/CH5/EX5.8/EXP5_8.sce b/1586/CH5/EX5.8/EXP5_8.sce
new file mode 100644
index 000000000..c744c2dcf
--- /dev/null
+++ b/1586/CH5/EX5.8/EXP5_8.sce
@@ -0,0 +1,15 @@
+clc;funcprot(0);//EXAMPLE 5.8
+// Initialisation of Variables
+H=10;.......//Required time to successfully carburize a batch of 500 steel gears
+t1=1173;......//Temperature at carburizing a batch of 500 steel gears in K
+t2=1273;.......//Temperature at carburizing a batch of 500 steel gears in K
+Q=32900;.........//The activation energy for diffusion of BCC steel
+R=1.987;.........//Gas constant in cal/mol.K
+c1=1000;......//cost per hour to operate the carburizing furnace at 900degree centigrades
+c2=1500;......//Cost per hour to operate the carburizing furnace at 1000 degree centigrade
+H2=(exp(-Q /(R*t1))*H*3600)/exp(-Q /(R*t2));.......// Time requried to successfully carburize a batch of 500 steel gears at 1000 degree centigrade
+Cp1=c1*H/500;.......//The cost per Part of steel rods at 900 degree centigrade
+Cv=(c2*3.299)/500;.......//The cost per Part of steel rods at 1000 degree centigrade
+disp(H2/3600,"Time requried to successfully carburize a batch of 500 steel gears at 1000 degree centigrade:")
+disp(Cp1,"The cost of carburizing per Part of steel rods at 900 degree centigrade")
+disp(Cv,"The cost of carburizing per Part of steel rods at 1000 degree centigrade")