summaryrefslogtreecommitdiff
path: root/Materials_Science_and_Engineering/Chapter14.ipynb
blob: 19b9f8603d18d1a9afedf7011f44b95795d252d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 14 : Conductors and Resistors"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.1, Page No 336"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "n_x1 = 1.0  # atomic level\n",
      "n_y1 = 1.0  # atomic level\n",
      "n_z1 = 1.0  # atomic level\n",
      "n_x2 = 2.0  # atomic level\n",
      "L = 10.0    # lattice parameter in mm\n",
      "h = 6.626e-34 # plank constant\n",
      "m_e = 9.109e-31 # mass of electron in kg\n",
      "\n",
      "#Calculations\n",
      "E1 = h**2*(n_x1**2+n_y1**2+n_z1**2)/(8*m_e*(L*1e-3)**2)\n",
      "E2 = h**2*(n_x2**2+n_y1**2+n_z1**2)/(8*m_e*(L*1e-3)**2)\n",
      "E = E2-E1 # energy difference \n",
      "\n",
      "#Results\n",
      "print(\"Energy difference is %.2e J \" %E)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Energy difference is 1.81e-33 J \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.2, Page No 340"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "tau = 2e-14 # collision time of electron in s\n",
      "e = 1.602e-19 # charge on electron\n",
      "m_e = 9.1e-31 # mass of electron in kg\n",
      "\n",
      "#Calculations\n",
      "n = 6.023e23*8960/0.06354\n",
      "sigma= n*e**2*tau/m_e\n",
      "\n",
      "#Results\n",
      "print(\"Conductivity of copper at 300 K is %.1e ohm^-1 m^-1 \" %sigma)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Conductivity of copper at 300 K is 4.8e+07 ohm^-1 m^-1 \n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 14.3, Page No 341"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "r_cu = 1.8e-8 \t\t# resistivity of pure copper in ohm-m\n",
      "r_Ni_cu = 7e-8 \t\t#resistivity of copper 4% Ni in ohm-m\n",
      "per1 = 4.0\t\t\t#impurity in percent\n",
      "per2 = 1.0\t\t\t # impurity in percent\n",
      "\n",
      "#Calculations\n",
      "r = (r_Ni_cu-r_cu)*per2/per1 \t# resistivity of copper 1% Ni in ohm-m\n",
      "\n",
      "#Results\n",
      "print(\"Resistivity due to impurity scattering of 1 %% of Nickel in copper lattice is %.1e ohm-m\" %r)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Resistivity due to impurity scattering of 1 % of Nickel in copper lattice is 1.3e-08 ohm-m\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}