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 /539/CH5/EX5.6/Design_Example_5_1.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 '539/CH5/EX5.6/Design_Example_5_1.sce')
-rwxr-xr-x | 539/CH5/EX5.6/Design_Example_5_1.sce | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/539/CH5/EX5.6/Design_Example_5_1.sce b/539/CH5/EX5.6/Design_Example_5_1.sce new file mode 100755 index 000000000..33e90e73b --- /dev/null +++ b/539/CH5/EX5.6/Design_Example_5_1.sce @@ -0,0 +1,33 @@ +//Diffusion Temperature–Time Heat Treatment Specification
+
+clear;
+clc;
+
+printf("\tDesign Example 5.1\n");
+
+C0=0.2; //Initial concentration in wt%
+Cs=1; //Surface conc in wt%
+Cx=0.6; //Conc at any position X in wt%
+x=7.5*10^-4; //Position in m
+D0=2.3*10^-5; //Preexponential factor in m^2/s
+R=8.31; //Gas law constant in J/mol-K
+Qd=148000; //Activation energy in J/mol
+
+C=1-((Cx-C0)/(Cs-C0));
+z=erfinv(C);
+Dt=(x/(2*z))^2;
+
+//Dt=D0*exp(-Qd/RT)*t = value of variable Dt
+D=Dt/D0;
+
+T=[900 950 1000 1050];
+for i=1:4
+ t(i)=D/exp(-Qd/(R*(T(i)+273)))/3600;
+end
+
+printf("\nTemperature(in Celsius) is\n");
+disp(T);
+printf("\nTime is (in hours)\n");
+disp(t);
+
+//End
\ No newline at end of file |