summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_K._Rajagopal/Chapter_13.ipynb
blob: 2ee7f8d7cbe9f9037c262d05f0d88a5ce315d7c9 (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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 13: Magnetic Materials"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.1, Page 457"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import pi\n",
      "\n",
      "#Variable declaration\n",
      "u0=4*pi*1e-7;\n",
      "H=1e7;#magnetic field strength\n",
      "X=(-0.9)*1e-6;#magnetic suseptiblity\n",
      "\n",
      "#Calculations&Results\n",
      "M=X*H;#magnetization of material\n",
      "print 'magnetization of material is %.f A/m'%M\n",
      "B=u0*H;#magnetic flux density\n",
      "print 'magnetic flux density is %.2f Wb/m^2'%B\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "magnetization of material is -9 A/m\n",
        "magnetic flux density is 12.57 Wb/m^2\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.2, Page 457"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import pi\n",
      "\n",
      "#Variable declaration\n",
      "X=2*1e-3;#magnetic suseptibility of material at room temp.\n",
      "H=1e3;#magnetic field intrnsity of piece of ferricoxide\n",
      "u0=4*pi*1e-7;\n",
      "\n",
      "#Calculatons&Results\n",
      "M=X*H;#magnetization\n",
      "print 'magnetization is %.f A/m'%M\n",
      "ur=X+1;#relative permiability\n",
      "B=u0*ur*H;#magnetic flux density\n",
      "print 'magnetic flux density is %.3f*10^-3 W/m^2'%(B/1e-3)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "magnetization is 2 A/m\n",
        "magnetic flux density is 1.259*10^-3 W/m^2\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.3, Page 458"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable declaration\n",
      "M=2.74*1e8;#magnetization per atom in A/m\n",
      "a=2.66*1e-10;#elementry cube edge\n",
      "n=2;#Iron in BCC\n",
      "\n",
      "#Calculations&Results\n",
      "B=(M*a**3)/2;#Am^2 per atom\n",
      "print 'Average number of Bohr magnetons contributed are %.2f*10^-22'%(B/1e-22)\n",
      "#interms of bohr megneton\n",
      "b=B/(9.27*1e-24);#dipole moment\n",
      "print 'dipole moment is %.f bohr megneton/atom'%b\n",
      "#Incorrect answers in the textbook\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Average number of Bohr magnetons contributed are 25.78*10^-22\n",
        "dipole moment is 278 bohr megneton/atom\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.4, Page 258"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import pi\n",
      "\n",
      "#Variable declaration\n",
      "u0=4*pi*1e-7;\n",
      "b=9.27*1e-24;\n",
      "H=1e3;#homogeneous field\n",
      "k=1.38*1e-23;#boltzmann constant\n",
      "T=303;#temp in kelvin\n",
      "\n",
      "#Calculations\n",
      "T1 = T - 273; # Temp In Degree\n",
      "x=u0*b*H/(k*T);#avg magnetic moment\n",
      "\n",
      "#Result\n",
      "print 'avg magnetic moment is %.2f*10^-6 bohr magneton/spin'%(x/1e-6)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "avg magnetic moment is 2.79*10^-6 bohr magneton/spin\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 13.5, Page 459"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable declaration\n",
      "ur=16;#relative permiability\n",
      "I=3300;#intensity of magnetization\n",
      "\n",
      "#Calculation\n",
      "H=I/(ur-1);#strength of the field\n",
      "\n",
      "#Result\n",
      "print 'strength of the field =%.f A/m'%H\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "strength of the field =220 A/m\n"
       ]
      }
     ],
     "prompt_number": 5
    }
   ],
   "metadata": {}
  }
 ]
}