diff options
Diffstat (limited to 'Materials_science_and_engineering_an_introduction/CH4.ipynb')
-rw-r--r-- | Materials_science_and_engineering_an_introduction/CH4.ipynb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Materials_science_and_engineering_an_introduction/CH4.ipynb b/Materials_science_and_engineering_an_introduction/CH4.ipynb index 93bc9a2e..253ffd46 100644 --- a/Materials_science_and_engineering_an_introduction/CH4.ipynb +++ b/Materials_science_and_engineering_an_introduction/CH4.ipynb @@ -27,23 +27,17 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Number of Vacancies Computation at a Specified temperature\n",
"\n",
- "#Given\n",
"Na=6.023*10**23 #Avogadro No.\n",
"den=8.4*10**6 #Density of Copper\n",
"A=63.5 #Atomic weight of Copper\n",
"\n",
- "#Calculation\n",
- "#No. of atomic site per cubic meter\n",
"N=Na*den/A\n",
- "#No. of vacancies at 1000 C\n",
"Qv=0.9 #Activation energy in eV\n",
"k=8.62*10**-5 # Boltzmann Constatnt in eV/K\n",
"T=1000.0+273.0 #Temperature in K\n",
"Nv=N*exp(-Qv/(k*T))\n",
"\n",
- "#Result\n",
"print\"No.of vacancies are \",round(Nv,-24),\"/m**3\"\n",
"\n"
],
@@ -72,10 +66,7 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Composition Conversion- From weight percent to Atom percent\n",
"\n",
- "#Given\n",
- "#Conversion to Atom percent\n",
"C_Al=97.0 #Aluminium wt%\n",
"C_Cu=3.0 #Copper wt%\n",
"A_Al=26.98 #Atomic wt of Aluminium\n",
@@ -114,20 +105,14 @@ "cell_type": "code",
"collapsed": false,
"input": [
- "#Computations of ASTM Grain Size Number\n",
"\n",
- "#Given\n",
"N=45.0 #No. of grains per square inch\n",
"\n",
- "#Calculation\n",
- "#Dterminin grain size no. N=2**(n-1)\n",
"n=(math.log(N)/math.log(2))+1\n",
"\n",
- "#Number of Grains Per Unit Area\n",
"M=85.0\n",
"Nm=(100/M)**2*2**(n-1)\n",
"\n",
- "#Result\n",
"print\"Grain size no. is \",round(n,1)\n",
"print\"No. of grains per inch square are \",round(Nm,1)\n",
"\n"
|