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 /1085/CH7/EX7.1/ex7_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 '1085/CH7/EX7.1/ex7_1.sce')
-rwxr-xr-x | 1085/CH7/EX7.1/ex7_1.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1085/CH7/EX7.1/ex7_1.sce b/1085/CH7/EX7.1/ex7_1.sce new file mode 100755 index 000000000..1191e1873 --- /dev/null +++ b/1085/CH7/EX7.1/ex7_1.sce @@ -0,0 +1,12 @@ +//Exam:7.1
+clc;
+clear;
+close;
+D=1.28*10^(-11);//diffusion coefficient of carbon in given steel in m2/s
+c_s=0.9;//Surface concentration of diffusion element in the surface
+c_o=0.2;//Initial uniform concentration of the element in the solid
+c_x=0.4;//Concentration of the diffusingelement at a distance x from thesurface
+x=0.5*10^(-3);//depth from the surface in m
+//(c_s-c_x)/(c_s-c_o)=erf(x/(2*(D*t)^(1/2)))
+t=(x/(2*erfinv((c_s-c_x)/(c_s-c_o))*D^(1/2)))^2;//time required for carburization(in sec)
+disp(t,'time required for carburization(in sec)=');
\ No newline at end of file |