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 --- 587/CH14/EX14.7/example14_7.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 587/CH14/EX14.7/example14_7.sce (limited to '587/CH14/EX14.7/example14_7.sce') diff --git a/587/CH14/EX14.7/example14_7.sce b/587/CH14/EX14.7/example14_7.sce new file mode 100755 index 000000000..56027e119 --- /dev/null +++ b/587/CH14/EX14.7/example14_7.sce @@ -0,0 +1,15 @@ +clear; +clc; + +//Example14.7[Hardening of Steel by the diffusion of carbon] +//Given:- +D_AB=4.8*10^(-10);//Diffusion coefficient of carbon in steel at the furnace temperature [m^2/s] +wA_i=0.0015;//Initial carbon concentration +wA_e=0.012;//Equilibrium concentration of carbon +wA_t=0.01;//Concentration of carbon after desired time +x=0.0005;//Diffusion distance[m] +//Solution: +a=(wA_t-wA_i)/(wA_e-wA_i); +//Tthe argument whose complimentary error function is a=0.81 is 0.17 +t=(x^2)/(4*D_AB*(0.17^2));//[seconds] +disp("seconds",round(t),"Time taken to reach desired level of hardening is") \ No newline at end of file -- cgit