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
|
{
"metadata": {
"name": "",
"signature": "sha256:e2ed8f14e9384f32112bf8b476c63d65b4316d749e72b2c8fa7bc92794bf7f8a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Magnetic materials"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.1, Page number 305"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"H=10**6; #magnetic field strength in A/m\n",
"chi=0.5*10**-5; #magnetic susceptibility\n",
"\n",
"#Calculation\n",
"mew0=4*math.pi*10**-7;\n",
"M=chi*H;\n",
"B=mew0*(M+H);\n",
"B=math.ceil(B*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print(\"intensity of magnetisation in A/m is\",M);\n",
"print(\"flux density in Wb/m^2 is\",B);\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('intensity of magnetisation in A/m is', 5.0)\n",
"('flux density in Wb/m^2 is', 1.257)\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.2, Page number 306"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"A=6.022*10**23; #avagadro number\n",
"mew0=4*math.pi*10**-7;\n",
"w=58.7; #atomic weight of Ni\n",
"B=0.65; #saturation magnetic induction in Wb/m^2\n",
"rho=8906; #density in kg/m^3\n",
"\n",
"#Calculation\n",
"rho=rho*10**3; #converting into gm/m^3\n",
"N=(rho*A)/w;\n",
"mew_m=B/(N*mew0);\n",
"#mew_m/(9.27*10^-24) gives mew_m in mewB\n",
"mew_m=mew_m/(9.27*10**-24);\n",
"mew_m=math.ceil(mew_m*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print(\"magnetic moment of Ni is\",mew_m,\"mew_b\");\n",
"#that is mew_m=0.61 mew_b"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('magnetic moment of Ni is', 0.611, 'mew_b')\n"
]
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.3, Page number 306"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"mew_0=4*math.pi*10**-7;\n",
"H=1800; #magnetic field in A/m\n",
"phi=3*10**-5; #magnetic flux in Wb\n",
"A=0.2; #area of cross section in cm^2\n",
"\n",
"#Calculation\n",
"A=A*10**-4; #area in m^2\n",
"B=phi/A;\n",
"mew_r=B/(mew_0*H);\n",
"mew_r=math.ceil(mew_r*10**3)/10**3; #rounding off to 3 decimals\n",
"\n",
"#Result\n",
"print(\"permeability of material is\",mew_r);"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('permeability of material is', 663.146)\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.4, Page number 307"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"mew=18.4; #magnetic moment in mew_b\n",
"a=0.835; #lattice parameter in nm\n",
"\n",
"#Calculation\n",
"mew=mew*9.27*10**-24;\n",
"a=a*10**-9; #converting nm to m\n",
"V=a**3;\n",
"M=mew/V;\n",
"M=M/10**5;\n",
"M=math.ceil(M*10**4)/10**4; #rounding off to 4 decimals\n",
"\n",
"#Result\n",
"print(\"saturation magnetisation in A/m is\",M,\"*10**5\");"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('saturation magnetisation in A/m is', 2.9299, '*10**5')\n"
]
}
],
"prompt_number": 8
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.5, Page number 307"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"mew_0=4*math.pi*10**-7;\n",
"H=2*10**5; #magnetic field strength in A/m\n",
"mew_r=1.01; #relative permeability\n",
"\n",
"#Calculation\n",
"B=mew_0*mew_r*H;\n",
"B=math.ceil(B*10**5)/10**5; #rounding off to 3 decimals\n",
"M=(B/mew_0)-H;\n",
"M=math.ceil(M*10**2)/10**2; #rounding off to 2 decimals\n",
"\n",
"#Result\n",
"print(\"magnetic flux density in Wb/m^2 is\",B);\n",
"print(\"magnetisation in A/m is\",M);\n",
"\n",
"#answer for magnetisation given in the book is wrong"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('magnetic flux density in Wb/m^2 is', 0.25385)\n",
"('magnetisation in A/m is', 2007.42)\n"
]
}
],
"prompt_number": 9
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example number 10.6, Page number 307"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"\n",
"#importing modules\n",
"import math\n",
"\n",
"#Variable declaration\n",
"mew_0=4*math.pi*10**-7;\n",
"H=500; #magnetic field strength in A/m\n",
"chi=1.2; #susceptibility\n",
"\n",
"#Calculation\n",
"M=chi*H;\n",
"B=mew_0*(M+H);\n",
"B=B*10**3;\n",
"B=math.ceil(B*10**4)/10**4; #rounding off to 4 decimals\n",
"\n",
"#Result\n",
"print(\"magnetic flux density in Wb/m^2 is\",B,\"*10**-3\");"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"('magnetic flux density in Wb/m^2 is', 1.3824, '*10**-3')\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|