diff options
Diffstat (limited to '587/CH14/EX14.7')
-rwxr-xr-x | 587/CH14/EX14.7/example14_7.sce | 15 |
1 files changed, 15 insertions, 0 deletions
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 |