summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_H_K_Malik/17-BAND_THEORY_OF_SOLIDS.ipynb
blob: 51a4fa13e6fd275674c1dcf3b332fcc749af6bb4 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 17: BAND THEORY OF SOLIDS"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.1: EX17_1.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"a = 3e-10 // side of square lattice in m\n",
"h = 6.62e-34 // Planck constant in J sec\n",
"e = 1.6e-19 // charge on an electron in C\n",
"m = 9.1e-31 // mass of electron in kg\n",
"// Sample Problem 1 on page no. 17.18\n",
"printf('\n # PROBLEM 1 # \n')\n",
"printf('Standard formula used \n ')\n",
"printf('E = P^2 / (2*m) \n P = h_cut*k \n')\n",
"p = (h / (2 * a))\n",
"E = (p^2 / (2 * m)) * (1 / e)\n",
"printf('\n Electron momentum value at the sides of first Brilloin zone is %e kg-m/sec.\n Enrgy of free electron is %f eV.',p,E)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.2: Calculation_of_Position_of_Fermi_level.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"n = 5e22 // no. of atoms per m^3\n",
"t = 300 // room temperature in K\n",
"k = 1.37e-23 // Boltzmann's constant in J/K\n",
"h = 6.62e-34 // Planck constant in J sec\n",
"e = 1.6e-19 // charge on an electron in C\n",
"m = 9.1e-31 // mass of electron in kg\n",
"// Sample Problem 2 on page no. 17.19\n",
"printf('\n # PROBLEM 2 # \n')\n",
"printf('Standard formula used \n')\n",
"printf('n_c = 2*(2*pi*m*k*T/h^2)^(3/2) * e^(E_f-E_c)/kT \n')\n",
"d = (k * t) * log(n * h^3 / (2 * (2 * %pi * m * k * t)^(3/2)))\n",
"printf('\n Position of fermi level is %f eV.',-d/e)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.3: Calculation_of_New_position_of_Fermi_level.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"E = 0.3 // Fermi energy in eV\n",
"T = 330 // temperature in K\n",
"t = 300 // room temperature in K\n",
"k = 1.37e-23 // Boltzmann's constant in J/K\n",
"h = 6.62e-34 // Planck constant in J sec\n",
"e = 1.6e-19 // charge on an electron in C\n",
"m = 9.1e-31 // mass of electron in kg\n",
"// Sample Problem 3 on page no. 17.19\n",
"printf('\n # PROBLEM 3 # \n')\n",
"printf('Standard formula used \n')\n",
"printf('n_c = n_d * e^(E_f-E_c)/kT \n')\n",
"d = (T / t) * (E)\n",
"printf('\n New position of fermi level is %f eV.',d)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.4: Calculation_of_Density_of_holes_and_electron.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"E = 0.7 // band gap for semiconductor in eV\n",
"t = 300 // room temperature in K\n",
"k = 1.38e-23 // Boltzmann's constant in J/K\n",
"h = 6.62e-34 // Planck constant in J sec\n",
"e = 1.6e-19 // charge on an electron in C\n",
"m = 9.1e-31 // mass of electron in kg\n",
"// Sample Problem 4 on page no. 17.20\n",
"printf('\n # PROBLEM 4 # \n')\n",
"printf('Standard formula used \n')\n",
"printf('n_c = 2*(2*pi*m*k*T/h^2)^(3/2) * e^(E_f-E_c)/kT \n')\n",
"n = 2 * ((2 * %pi * k * t * m) / h^2)^(3/2) * exp(-(E * e / (2 * k * t)))\n",
"printf('\n Density of holes and electron is %e per m^3.',n)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.5: Calculation_of_Hall_coefficient.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"n = 5e28 // no. of atoms in per m^3\n",
"e = 1.6e-19 // charge on an electron in C\n",
"// Sample Problem 5 on page no. 17.20\n",
"printf('\n # PROBLEM 5 # \n')\n",
"printf('Standard formula used \n')\n",
"printf('R_h = 1/(n*e) \n')\n",
"R = -(1 / (n * e))\n",
"printf('\n Hall coefficient is %e m^3/C.',R)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 17.6: Calculation_of_Hall_coefficient.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"clc \n",
"// Given that \n",
"a = 4.28e-10 // cell side of Na in m\n",
"e = 1.6e-19 // charge on an electron in C\n",
"// Sample Problem 6 on page no. 17.20\n",
"printf('\n # PROBLEM 6 # \n')\n",
"printf('Standard formula used \n')\n",
"printf('R_h = 1/(n*e) \n')\n",
"n = (2 / a^3)\n",
"R = -(1 / (n * e))\n",
"printf('\n Hall coefficient is %e m^3/C.',R)"
   ]
   }
],
"metadata": {
		  "kernelspec": {
		   "display_name": "Scilab",
		   "language": "scilab",
		   "name": "scilab"
		  },
		  "language_info": {
		   "file_extension": ".sce",
		   "help_links": [
			{
			 "text": "MetaKernel Magics",
			 "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
			}
		   ],
		   "mimetype": "text/x-octave",
		   "name": "scilab",
		   "version": "0.7.1"
		  }
		 },
		 "nbformat": 4,
		 "nbformat_minor": 0
}