summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_G._Vijayakumari/Chapter7.ipynb
blob: 13a2a17f6ee675c870b1e44f315421fd27485c83 (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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#7: Conducting Materials"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.1, Page number 178"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The current density in the conductor corresponds to a drift velocity is 5.9 *10**9 A m^-1\n",
      "Mobility of the charge carrires is 6.58898 *10**-3 m^2 V^-1 s^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "n=5.9*10**28;   #electron concentration of conductor(m^-3)\n",
    "v=0.625;    #drift velocity of a conductor(ms^-1)\n",
    "x=6.22*10**7;   #electrical conductivity(ohm^-1 m^-1)\n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "\n",
    "#Calculation\n",
    "J=n*e*v;      #current density in the conductor corresponds to drift velocity(Am^-1)\n",
    "z=x/(n*e);    #mobility of the charge(m^2V^-1s^-1)\n",
    " \n",
    "#Result\n",
    "print \"The current density in the conductor corresponds to a drift velocity is\",J/10**9,\"*10**9 A m^-1\"\n",
    "print \"Mobility of the charge carrires is\",round(z*10**3,5),\"*10**-3 m^2 V^-1 s^-1\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.2, Page number 179"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The drift velocity of free electron in a copper wire is 7.0028 *10**-5 ms^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "n=8.5*10**28;   #density of free electrons in copper(m^-3)\n",
    "A=1.05*10**-6;   #sectional area of copper(m^2)\n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "I=1;  #copper wire carries a current(A)\n",
    "\n",
    "#Calculation\n",
    "V=1/(A*n*e);    #drift velocity of free electrons in copper wire(ms^-1)\n",
    "\n",
    "#Result\n",
    "print \"The drift velocity of free electron in a copper wire is\",round(V*10**5,4),\"*10**-5 ms^-1\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.3, Page number 179"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The drift velocity of free electrons in copper is 1.75 *10**-3 ms^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "X=3.5*10**-3;  #mobility of free electrons in copper(m^2 V^-1 s^-1)\n",
    "E=0.5;    #elactric field strength of copper(V m^-1)\n",
    "\n",
    "#Calculation\n",
    "V=X*E;   #drift velocity of free electrons in copper(m s^-1)\n",
    "\n",
    "#Result\n",
    "print \"The drift velocity of free electrons in copper is\",V*10**3,\"*10**-3 ms^-1\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.4, Page number 179"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The relaxation time of conduction electrons is 3.815 *10**-14 s\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "n=6.5*10**28;    #conduction electron(m^-3)\n",
    "r=1.435*10**-8;  #metal resistivity(ohm-metre)\n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "m=9.11*10**-31;   #mass of a electron(kg)\n",
    "\n",
    "#Calculation\n",
    "T=m/(r*n*e**2);    #relaxation time of conduction electrons(s)\n",
    "\n",
    "#Result\n",
    "print \"The relaxation time of conduction electrons is\",round(T*10**14,3),\"*10**-14 s\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.5, Page number 180"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The mean free path between collision of free electrons in copper is 2.8153 *10**-9 m\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "r=1.72*10**-8;   #resistivity of copper(ohm metre)\n",
    "T=293;     #temperature of copper(K)\n",
    "n=8.48*10**28;   #density of free electron(m^-3)\n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "m=9.11*10**-31;   #mass of a electron(kg)\n",
    "k=1.38*10**-23;   #boltzmann constant(m^2 Kg s^-2 k^-1)\n",
    "\n",
    "#Calculation\n",
    "t=m/(r*n*(e**2));   #relaxation time(s)\n",
    "v=math.sqrt(3*k*T/m);  #thermal velocity(ms^-1)\n",
    "Lamda=t*v;     #mean free path between collision of free electrons in copper(m)\n",
    "\n",
    "#Result\n",
    "print \"The mean free path between collision of free electrons in copper is\",round(Lamda*10**9,4),\"*10**-9 m\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.6, Page number 180"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thermal velocity is 116.76 *10**3 m s^-1\n",
      "Drift velocity of electrons is 40.0 m s^-1\n",
      "Thus the terminal velocity is high compared to the drift velocity\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "t=1*10**-3;   #thickness of metal(m)\n",
    "V=1;     #potential difference applied in volts(V)\n",
    "T=300;   #temperature(K)\n",
    "m=0.04;  #mobility(m^2 V^-1 s^-1)\n",
    "k=1.38*10**-23;   #boltzmann constant(m^2 Kg s^-2 k^-1)\n",
    "m1=9.11*10**-31;   #mass of a electron(kg)\n",
    "\n",
    "#Calculation\n",
    "v=math.sqrt(3*k*T/m1);  #thermal velocity(ms^-1)\n",
    "E=V/t;    #unit potenyial voltage gradient(V m^-1)\n",
    "vd=E*m;   #drift velocity of electrons(m s^-1)\n",
    "\n",
    "#Result\n",
    "print \"The thermal velocity is\",round(v/10**3,2),\"*10**3 m s^-1\"\n",
    "print \"Drift velocity of electrons is\",vd,\"m s^-1\"\n",
    "print \"Thus the terminal velocity is high compared to the drift velocity\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.7, Page number 181"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The electrical conductivity of copper is 5.9 *10**7 S m^-1\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "AW=63.5;   #atomic weight of copper\n",
    "D=8.93*10**3;   #density of copper(kg m^-3)\n",
    "t=2.48*10**-14;   #relaxation time of copper(s)\n",
    "AV=6.023*10**26;   #avagadro no(mole^-1)\n",
    "e=1.6*10**-19;     #charge of electron(c)\n",
    "m=9.11*10**-31;    #mass of a electron(kg)\n",
    "\n",
    "#Calculation\n",
    "n=AV*D/AW;    #density of electrons per unit volume(m^-3)\n",
    "sigma=n*e**2*t/m;   #electrical conductivity of copper(Sm^-1)\n",
    "\n",
    "#Result\n",
    "print \"The electrical conductivity of copper is\",round(sigma/10**7,1),\"*10**7 S m^-1\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.8, Page number 181"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The drift velocity in copper is 3.6657 *10**-6 ms^-1\n",
      "The current density in copper is 4.9736 *10**4 Am^-2\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "I=10;    #current(A)\n",
    "r=0.8*10**-2;   #radius of wire(m)\n",
    "n=8.48*10**28;  #density of free electron(m^-3)\n",
    "e=1.6*10**-19;  #charge of electron(c)\n",
    "\n",
    "#Calculation\n",
    "J=I/(math.pi*r**2);  #current density of copper(Am^-2)\n",
    "v=J/(n*e);     #drift velocity of copper(ms^-1)\n",
    "\n",
    "#Result\n",
    "print \"The drift velocity in copper is\",round(v*10**6,4),\"*10**-6 ms^-1\"\n",
    "print \"The current density in copper is\",round(J/10**4,4),\"*10**4 Am^-2\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.9, Page number 182"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The mobility of charge is 6.997 *10**-3 m^2 V^-1 s^-1\n",
      "The drift velocity of electrons is 0.6997 m s^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "r=1.54*10**-8;   #resistivity of silver wire at room temperature(ohm metre)\n",
    "E=100;    #Electric field along the wire(V/m)\n",
    "n=5.8*10**28;   #n is assuming of conduction electrons(m^-3)\n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "\n",
    "#Calculation\n",
    "mew=1/(r*n*e);    #mobility of charge(m^2 V^-1 s^-1)\n",
    "vd=mew*E;    #drift velocity of electrons(m s^-1)\n",
    "\n",
    "#Result\n",
    "print \"The mobility of charge is\",round(mew*10**3,3),\"*10**-3 m^2 V^-1 s^-1\"\n",
    "print \"The drift velocity of electrons is\",round(vd,4),\"m s^-1\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.10, Page number 182"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The relaxation time collision of electrons in copper obeying classical laws is 2.43 *10**-14 s\n",
      "The mobility charge of copper obeying classical laws is 0.427 *10**-2 m^2 V^-1 s^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "D=8.92*10**3;    #density of copper(kg m^-3)\n",
    "AW=63.5;     #atomic weight of copper\n",
    "r=1.73*10**-8;    #resistivity of copper(ohm metre)\n",
    "AV=6.023*10**26;   #avagadro no(mole^-1)\n",
    "e=1.6*10**-19;     #charge of electron(c)\n",
    "m=9.11*10**-31;    #mass of a electron(kg)\n",
    "\n",
    "#Calculation\n",
    "n=AV*D/AW;    #density of electrons per unit volume(m^-3)\n",
    "tow=m/(r*n*e**2);     #average time collision of electrons in copper(s)\n",
    "mew=1/(r*n*e);      #mobility of charge(m^2 V^-1 s^-1)\n",
    "\n",
    "#Result\n",
    "print \"The relaxation time collision of electrons in copper obeying classical laws is\",round(tow*10**14,2),\"*10**-14 s\"\n",
    "print \"The mobility charge of copper obeying classical laws is\",round(mew*10**2,3),\"*10**-2 m^2 V^-1 s^-1\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.11, Page number 183"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The electrical resistivity is 4.63 *10**-8 ohm metre\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "r=1.85*10**-10;    #the radius of sodium atom(m)\n",
    "t=3*10**-14;     #the classic value of mean free time(sec)\n",
    "temp=0;      #temperature(centigrade)\n",
    "na=2;        #number of atoms in a unit cell\n",
    "ne=1;        #number of electrons per unit cell\n",
    "e=1.6*10**-19;    #charge of electron(c)\n",
    "m=9.11*10**-31;   #mass of a electron(kg)\n",
    "\n",
    "#Calculation \n",
    "a=4*r/math.sqrt(3);    #a is one side in bcc structure unit cell(m)\n",
    "v=a**3;   #volume of bcc structure unit cell(m^3)\n",
    "n=na*ne/v;    #density of electrons per unit volume(m^-3)\n",
    "rho=m/(n*e**2*t);    #The electrical resistivity(ohm metre)\n",
    "\n",
    "#Result\n",
    "print \"The electrical resistivity is\",round(rho*10**8,2),\"*10**-8 ohm metre\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.12, Page number 184"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Free electron concentration in aluminium is 0.18 V/m\n",
      "Mobility of the charge is 1.28 *10**-3 m^2 V^-1 S^-1\n",
      "The drift velocity of electrons is 2.304 *10**-4 m s^-1\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "rho=2.7*10**-8;    #electrical resistivity of aluminium(ohm metre)\n",
    "AW=26.98;     #atomic weight of aluminium\n",
    "d=2.7*10**3;  #density of volume(Kg/m^3)\n",
    "R=60*10**-3;   #resistance(W)\n",
    "l=5;    #length of aluminium wire(m)\n",
    "i=15;     #aluminuim wire carries a current(A)\n",
    "fe=3;     #number of free electrons \n",
    "AV=6.023*10**26;    #avagadro no(mole^-1)\n",
    "e=1.6*10**-19;      #charge of electron(c)\n",
    "\n",
    "#Calculation\n",
    "n=AV*d*fe/AW;     #density of electrons per unit volume(electrons/m^-3)\n",
    "mew=1/(n*e*rho);   #mobility of the charge(m^2 V^-1 S^-1)\n",
    "E=i*R/l;     #free electron concentration(V/m)\n",
    "vd=mew*E;      #drift velocity(m s^-1)\n",
    "\n",
    "#Result\n",
    "print \"Free electron concentration in aluminium is\",E,\"V/m\"\n",
    "print \"Mobility of the charge is\",round(mew*10**3,2),\"*10**-3 m^2 V^-1 S^-1\"\n",
    "print \"The drift velocity of electrons is\",round(vd*10**4,3),\"*10**-4 m s^-1\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.13, Page number 184"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The resistance of an intrinsic Ge rod is 4310 ohm\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "l=1*10**-2;    #length of intrinsic Ge rod(m)\n",
    "b=1*10**-3;    #breadth of intrinsic Ge rod(m)\n",
    "t=1*10**-3;    #thickness of intrinsic Ge rod(m)\n",
    "temp=300;    #temperature(K)\n",
    "d=2.5*10**19;   #intrinsic carrier density(Kg/m^3)\n",
    "z=0.39;     #mobility of electron(m^2 V^-1 S^-1)\n",
    "zh=0.19;   #mobility of hole(m^2 V^-1 S^-1) \n",
    "e=1.6*10**-19;   #charge of electron(c)\n",
    "\n",
    "#Calculation\n",
    "x=d*e*(z+zh);   #electrical conductivity(ohm^-1 m^-1)\n",
    "r=1/x;     #electrical resistivity(ohm metre)\n",
    "A=b*t;     #area(m^2)\n",
    "R=r*l/A;   #resistance of an intrinsic Ge rod(ohm)\n",
    "\n",
    "#Result\n",
    "print \"The resistance of an intrinsic Ge rod is\",int(R),\"ohm\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.14, Page number 188"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thermal conductivity of copper is 189.9299 W m^-1 K^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "d=8.48*10**28;    #free electron density of copper(m^-3)\n",
    "y=2.8138*10**-9;  #mean free path(m)\n",
    "v=1.1536*10**5;   #velocity of copper(m s^-1)\n",
    "t=20;    #temperature of copper(C)\n",
    "Kb=1.38*10**-23;    #Boltzmann's constant(m^2 Kg s^-2 k^-1)\n",
    "\n",
    "#Calculation\n",
    "K=1/2*(d*v*y*Kb);    #thermal conductivity of copper(W m^-1 K^-1)\n",
    "\n",
    "#Result\n",
    "print \"The thermal conductivity of copper is\",round(K,4),\"W m^-1 K^-1\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.15, Page number 189"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thermal conductivity of brass is 14.64 W m^-1 K^-1\n",
      "The thermal resistance of brass is 4.503 K W^-1\n",
      "answer varies due to rounding off errors\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "er=50*10**-8;    #electrical resistivity(ohm metre)\n",
    "t=300;    #temperature(K)\n",
    "r=13*10**-3;   #radius of brass(m)\n",
    "th=35*10**-3;   #thickness of brass(m)\n",
    "L=2.44*10**-8;   #Lorentz number(W ohm K^-2)\n",
    "\n",
    "#Calculation\n",
    "K=L*t/er;    #thermal conductivity of brass(W m^-1 K^-1)\n",
    "A=math.pi*r**2;   #area of brass disk(m^2)\n",
    "Rt=th/(K*A);      #thermal resistance of brass(K W^-1)\n",
    "\n",
    "#Result\n",
    "print \"The thermal conductivity of brass is\",K,\"W m^-1 K^-1\"\n",
    "print \"The thermal resistance of brass is\",round(Rt,3),\"K W^-1\"\n",
    "print \"answer varies due to rounding off errors\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.16, Page number 189"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Lorentz number is 2.2094 *10**-8 W ohm K^-2\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "x=5.87*10**7;    #electrical conductivity(ohm^-1 m^-1)\n",
    "k=380;     #thermal conductivity of copper(W m-1 K^-1)\n",
    "t=293;     #temperature of copper(K)\n",
    "\n",
    "#Calculation\n",
    "L=k/(x*t);     #Lorentz number(W ohm K^-2)\n",
    "\n",
    "#Result\n",
    "print \"Lorentz number is\",round(L*10**8,4),\"*10**-8 W ohm K^-2\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 7.17, Page number 189"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thermal conductivity of copper is 468.48 W m^-1 K^-1\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "x=6.40*10**7;   #electrical conductivity(mho m^-1)\n",
    "t=300;    #temperature of copper(K)\n",
    "L=2.44*10**-8;   #Lorentz number(W ohm K^-2)\n",
    "\n",
    "#Calculation\n",
    "K=x*t*L;      #thermal conductivity of copper(W m^-1 K^-1)\n",
    "\n",
    "#Result\n",
    "print \"The thermal conductivity of copper is\",K,\"W m^-1 K^-1\""
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}