summaryrefslogtreecommitdiff
path: root/Engineering_Physics/Chapter_10.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Engineering_Physics/Chapter_10.ipynb')
-rw-r--r--Engineering_Physics/Chapter_10.ipynb189
1 files changed, 168 insertions, 21 deletions
diff --git a/Engineering_Physics/Chapter_10.ipynb b/Engineering_Physics/Chapter_10.ipynb
index d1968a2f..22ab6eae 100644
--- a/Engineering_Physics/Chapter_10.ipynb
+++ b/Engineering_Physics/Chapter_10.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": "Chapter 10"
+ "name": "",
+ "signature": "sha256:d58d66ad9738120c070e76177ecbb4c809f35b6cd83a911351fcdee8be9798f2"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -11,25 +12,50 @@
"cell_type": "heading",
"level": 1,
"metadata": {},
- "source": "Magnetic materials"
+ "source": [
+ "Magnetic materials"
+ ]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.1, Page number 305"
+ "source": [
+ "Example number 10.1, Page number 305"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the intensity of magnetisation and flux density\n\n#importing modules\nimport math\n\n#Variable declaration\nH=10**6; #magnetic field strength in A/m\nchi=0.5*10**-5; #magnetic susceptibility\n\n#Calculation\nmew0=4*math.pi*10**-7;\nM=chi*H;\nB=mew0*(M+H);\nB=math.ceil(B*10**3)/10**3; #rounding off to 3 decimals\n\n#Result\nprint(\"intensity of magnetisation in A/m is\",M);\nprint(\"flux density in Wb/m^2 is\",B);\n",
+ "input": [
+ " \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"
+ "text": [
+ "('intensity of magnetisation in A/m is', 5.0)\n",
+ "('flux density in Wb/m^2 is', 1.257)\n"
+ ]
}
],
"prompt_number": 1
@@ -38,19 +64,46 @@
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.2, Page number 306"
+ "source": [
+ "Example number 10.2, Page number 306"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the magnetic moment\n\n#importing modules\nimport math\n\n#Variable declaration\nA=6.022*10**23; #avagadro number\nmew0=4*math.pi*10**-7;\nw=58.7; #atomic weight of Ni\nB=0.65; #saturation magnetic induction in Wb/m^2\nrho=8906; #density in kg/m^3\n\n#Calculation\nrho=rho*10**3; #converting into gm/m^3\nN=(rho*A)/w;\nmew_m=B/(N*mew0);\n#mew_m/(9.27*10^-24) gives mew_m in mewB\nmew_m=mew_m/(9.27*10**-24);\nmew_m=math.ceil(mew_m*10**3)/10**3; #rounding off to 3 decimals\n\n#Result\nprint(\"magnetic moment of Ni is\",mew_m,\"mew_b\");\n#that is mew_m=0.61 mew_b",
+ "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"
+ "text": [
+ "('magnetic moment of Ni is', 0.611, 'mew_b')\n"
+ ]
}
],
"prompt_number": 5
@@ -59,19 +112,42 @@
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.3, Page number 306"
+ "source": [
+ "Example number 10.3, Page number 306"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the permeability\n\n#importing modules\nimport math\n\n#Variable declaration\nmew_0=4*math.pi*10**-7;\nH=1800; #magnetic field in A/m\nphi=3*10**-5; #magnetic flux in Wb\nA=0.2; #area of cross section in cm^2\n\n#Calculation\nA=A*10**-4; #area in m^2\nB=phi/A;\nmew_r=B/(mew_0*H);\nmew_r=math.ceil(mew_r*10**3)/10**3; #rounding off to 3 decimals\n\n#Result\nprint(\"permeability of material is\",mew_r);",
+ "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"
+ "text": [
+ "('permeability of material is', 663.146)\n"
+ ]
}
],
"prompt_number": 6
@@ -80,19 +156,42 @@
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.4, Page number 307"
+ "source": [
+ "Example number 10.4, Page number 307"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the saturation magnetisation \n\n#importing modules\nimport math\n\n#Variable declaration\nmew=18.4; #magnetic moment in mew_b\na=0.835; #lattice parameter in nm\n\n#Calculation\nmew=mew*9.27*10**-24;\na=a*10**-9; #converting nm to m\nV=a**3;\nM=mew/V;\nM=M/10**5;\nM=math.ceil(M*10**4)/10**4; #rounding off to 4 decimals\n\n#Result\nprint(\"saturation magnetisation in A/m is\",M,\"*10**5\");",
+ "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"
+ "text": [
+ "('saturation magnetisation in A/m is', 2.9299, '*10**5')\n"
+ ]
}
],
"prompt_number": 8
@@ -101,19 +200,45 @@
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.5, Page number 307"
+ "source": [
+ "Example number 10.5, Page number 307"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the value of B and M\n\n#importing modules\nimport math\n\n#Variable declaration\nmew_0=4*math.pi*10**-7;\nH=2*10**5; #magnetic field strength in A/m\nmew_r=1.01; #relative permeability\n\n#Calculation\nB=mew_0*mew_r*H;\nB=math.ceil(B*10**5)/10**5; #rounding off to 3 decimals\nM=(B/mew_0)-H;\nM=math.ceil(M*10**2)/10**2; #rounding off to 2 decimals\n\n#Result\nprint(\"magnetic flux density in Wb/m^2 is\",B);\nprint(\"magnetisation in A/m is\",M);\n\n#answer for magnetisation given in the book is wrong",
+ "input": [
+ " \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"
+ "text": [
+ "('magnetic flux density in Wb/m^2 is', 0.25385)\n",
+ "('magnetisation in A/m is', 2007.42)\n"
+ ]
}
],
"prompt_number": 9
@@ -122,19 +247,41 @@
"cell_type": "heading",
"level": 2,
"metadata": {},
- "source": "Example number 10.6, Page number 307"
+ "source": [
+ "Example number 10.6, Page number 307"
+ ]
},
{
"cell_type": "code",
"collapsed": false,
- "input": "#To calculate the magnetic flux density\n\n#importing modules\nimport math\n\n#Variable declaration\nmew_0=4*math.pi*10**-7;\nH=500; #magnetic field strength in A/m\nchi=1.2; #susceptibility\n\n#Calculation\nM=chi*H;\nB=mew_0*(M+H);\nB=B*10**3;\nB=math.ceil(B*10**4)/10**4; #rounding off to 4 decimals\n\n#Result\nprint(\"magnetic flux density in Wb/m^2 is\",B,\"*10**-3\");",
+ "input": [
+ " \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"
+ "text": [
+ "('magnetic flux density in Wb/m^2 is', 1.3824, '*10**-3')\n"
+ ]
}
],
"prompt_number": 14
@@ -142,7 +289,7 @@
{
"cell_type": "code",
"collapsed": false,
- "input": "",
+ "input": [],
"language": "python",
"metadata": {},
"outputs": []