From c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 7 Apr 2015 15:58:05 +0530 Subject: added books --- Material_Science/material_science_ch_5.ipynb | 106 +++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100755 Material_Science/material_science_ch_5.ipynb (limited to 'Material_Science/material_science_ch_5.ipynb') diff --git a/Material_Science/material_science_ch_5.ipynb b/Material_Science/material_science_ch_5.ipynb new file mode 100755 index 00000000..8213c119 --- /dev/null +++ b/Material_Science/material_science_ch_5.ipynb @@ -0,0 +1,106 @@ +{ + "metadata": { + "name": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 5: Crystal Imperfections" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.1, page no-130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Average distance between dislocations\n", + "\n", + "import math \n", + "#variable Declarat\n", + "a=3.615*10**-10 # interatomic distance of copper\n", + "t_ang=0.75 # angle of tilting\n", + "h=1.0 # Miller indices wrt X-axis\n", + "k=1.0 # Miller indices wrt Y-axis\n", + "l=0.0 # Miller indices wrt Z-axis\n", + "\n", + "#calculation\n", + "d_110=a/math.sqrt(h**2+k**2+l**2)\n", + "D=d_110/math.tan(t_ang*math.pi/(180*2))\n", + "\n", + "#Result\n", + "print('The average distance between the dislocations is %.3f A\u00b0'%(D*10**6))" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The average distance between the dislocations is 0.039 A\u00b0\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5.2, page no-130" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Schottky defects per unit cell\n", + "\n", + "import math\n", + "#variable declaration\n", + "lp=4.0185*10**-10 # lattice parameter\n", + "dens=4285.0 # Density of CsCl in kg/m^3\n", + "avg=6.022*10**26 # Avogadro's number\n", + "wt_cs=132.9 # Molecular weight of Cs\n", + "wt_cl=35.5 # Molecular weight of Cl\n", + "\n", + "#calculations\n", + "N=(dens*avg*lp**3)/(wt_cs+wt_cl)\n", + "sd=(1-N)*100.0/1.0\n", + "\n", + "#Result\n", + "print('The number of Schottky defects per unit cell = %.3f%%'%sd)" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "The number of Schottky defects per unit cell = 0.565%\n" + ] + } + ], + "prompt_number": 1 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file -- cgit