summaryrefslogtreecommitdiff
path: root/Materials_Science_and_Engineering/Chapter16.ipynb
blob: d253752e2fb7468d7a817116bdc6ab4db65e95bc (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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 16 : Magnetic Materials"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 16.1, Page No 396"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "a = 2.87 # lattice parameter in angstrom\n",
      "n = 2 # number of atoms per unit cell\n",
      "m = 1750 # Saturation magnetization in kAm^-1\n",
      "mu = 9.273e-24 # bohr magneton \n",
      "\n",
      "#Calculations\n",
      "m_atom = m*1e3*(a*1e-10)**3/n\n",
      "mu_b = m_atom/mu\n",
      "\n",
      "#Results\n",
      "print(\" Net magnetic moment per iron atom in crystal is %.3e Am^2\" %m_atom)\n",
      "print(\" In unit of mu_b, Net magnetic moment per iron atom in crystal is %.1f \" %mu_b)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Net magnetic moment per iron atom in crystal is 2.068e-23 Am^2\n",
        " In unit of mu_b, Net magnetic moment per iron atom in crystal is 2.2 \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 16.2, Page No 398"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "t1 = 0 \t\t\t# temperature in kelvin\n",
      "t2 = 300.0 \t\t# temperature in kelvin\n",
      "m_net_Gd = 7.0 \t# net magnetic moment of gadolinium\n",
      "m_net_Co = 1.7 \t# net magnetic moment of cobalt\n",
      "t_c_Gd = 289.0 # curie temperature for Gd\n",
      "\n",
      "#Calculations\n",
      "print(\" Part A:\")\n",
      "if m_net_Gd> m_net_Co :\n",
      "\tprint(\" At %d K, Net magnetic moment of gadolinium i.e. %d is greater than net magnetic moment of cobalt i.e. %.1f \" %(t1,m_net_Gd,m_net_Co))\n",
      "\tprint(\" So, Gd will have higher saturation magnetization\")\n",
      "\n",
      "print(\" Part B:\")\n",
      "if t_c_Gd<t2 :\n",
      "    print(\" At temperature %d K, Gd is above its curie temperature of %dK\" %(t2,t_c_Gd))\n",
      "    print(\" Gd will be paramagnetic at %d K and will have negligible magnetization as compared to Co, which has higher curie temperature\" %t2)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Part A:\n",
        " At 0 K, Net magnetic moment of gadolinium i.e. 7 is greater than net magnetic moment of cobalt i.e. 1.7 \n",
        " So, Gd will have higher saturation magnetization\n",
        " Part B:\n",
        " At temperature 300 K, Gd is above its curie temperature of 289K\n",
        " Gd will be paramagnetic at 300 K and will have negligible magnetization as compared to Co, which has higher curie temperature\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 16.4, Page No 402"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "v = 0.01 # volume in m^3\n",
      "x = 1e-4 # axis intercept\n",
      "y = 1e2 # axis intercept\n",
      "a = 60000.0 # Hysteresis loop area\n",
      "f = 50.0 # frequency in Hz\n",
      "\n",
      "#Calculations\n",
      "e = x*y*a # Energy loss in one loop\n",
      "E = e*v # energy loss in core in one cycle\n",
      "P = E*f # Power loss\n",
      "\n",
      "#Results\n",
      "print(\" Power loss due to hysteresis is %d W\" %P)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Power loss due to hysteresis is 300 W\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 16.5 Page No 405"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#initialisation of variables\n",
      "Total1 = 2300.0 \t# total iron loss in W at 440 V and 50 Hz\n",
      "Total2 = 750.0 \t# total iron loss in W at 220 V and 25 Hz\n",
      "\n",
      "#Calculations\n",
      "W_e = 1.0/2*(Total1-2*Total2)\n",
      "\n",
      "#Results\n",
      "print(\" Eddy current loss at normal voltage and frequency is %d W\" %(4*W_e))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Eddy current loss at normal voltage and frequency is 1600 W\n"
       ]
      }
     ],
     "prompt_number": 4
    }
   ],
   "metadata": {}
  }
 ]
}