summaryrefslogtreecommitdiff
path: root/Modern_Physics_By_G.Aruldas/Chapter14.ipynb
diff options
context:
space:
mode:
authorhardythe12015-04-07 15:58:05 +0530
committerhardythe12015-04-07 15:58:05 +0530
commitc7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131 (patch)
tree725a7d43dc1687edf95bc36d39bebc3000f1de8f /Modern_Physics_By_G.Aruldas/Chapter14.ipynb
parent62aa228e2519ac7b7f1aef53001f2f2e988a6eb1 (diff)
downloadPython-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.gz
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.tar.bz2
Python-Textbook-Companions-c7fe425ef3c5e8804f2f5de3d8fffedf5e2f1131.zip
added books
Diffstat (limited to 'Modern_Physics_By_G.Aruldas/Chapter14.ipynb')
-rwxr-xr-xModern_Physics_By_G.Aruldas/Chapter14.ipynb107
1 files changed, 107 insertions, 0 deletions
diff --git a/Modern_Physics_By_G.Aruldas/Chapter14.ipynb b/Modern_Physics_By_G.Aruldas/Chapter14.ipynb
new file mode 100755
index 00000000..b2beeab9
--- /dev/null
+++ b/Modern_Physics_By_G.Aruldas/Chapter14.ipynb
@@ -0,0 +1,107 @@
+{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f383b09bed78232b6f6bef91df71b6fd8febd00a3f89287a33c756d53748eb03"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "14: Superconductivity"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 14.1, Page number 272"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "Bc0=0.0305; #critical field(T)\n",
+ "T=2; #temperature(K)\n",
+ "Tc=3.722; #critical temperature(K)\n",
+ "r=2*10**-3; #diameter(m)\n",
+ "mew0=4*math.pi*10**-7; #magnetic permeability\n",
+ "\n",
+ "#Calculation\n",
+ "BcT=Bc0*(1-(T/Tc)**2); #critical field(T)\n",
+ "Ic=2*math.pi*r*BcT/mew0; #current(A)\n",
+ "\n",
+ "#Result\n",
+ "print \"current is\",round(Ic,1),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "current is 216.9 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example number 14.2, Page number 274"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#importing modules\n",
+ "import math\n",
+ "from __future__ import division\n",
+ "\n",
+ "#Variable declaration\n",
+ "lamda0=37; #london penetration depth(nm)\n",
+ "T=5.2; #temperature(K)\n",
+ "Tc=7.193; #critical temperature(K)\n",
+ "\n",
+ "#Calculation\n",
+ "a=1-(T/Tc)**4;\n",
+ "lamdaT=lamda0*(a**(-1/2)); #penetration depth of lead(nm)\n",
+ "\n",
+ "#Result\n",
+ "print \"penetration depth of lead is\",round(lamdaT,3),\"nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "penetration depth of lead is 43.398 nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file