From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1085/CH7/EX7.1/ex7_1.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1085/CH7/EX7.1/ex7_1.sce (limited to '1085/CH7/EX7.1') 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 -- cgit