summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Uma_Mukherji/Chapter2.ipynb
blob: e5649f50ad0073f3daed92d40ea8773f64cfa3ee (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:a390c22e8bbeba1dfd4031b28f9e625838df0d3c214c564a212b1961eafc18f9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "2: Thermoelectricity"
     ]
    },
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Example number 2.1, Page number 54"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "Tn=285;        #neutral temperature(C)\n",
      "Tc=-20;         #temperature at junction(C)\n",
      "\n",
      "#Calculation\n",
      "Ti=(2*Tn)-Tc;     #temperature of inversion(C)\n",
      "\n",
      "#Result\n",
      "print \"temperature of inversion is\",Ti,\"C\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "temperature of inversion is 590 C\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 2.2, Page number 54"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "aFe=16.65;          #value of a of Fe\n",
      "bFe=-0.095;         #value of b of Fe\n",
      "aAg=2.86;           #value of a of Ag\n",
      "bAg=0.017;          #value of b of Ag\n",
      "t=100;              #temperature(C)\n",
      "\n",
      "#Calculation\n",
      "a=aFe-aAg;     #value of aFe_Ag\n",
      "b=bFe-bAg;     #value of bFe_Ag\n",
      "Tn=-a/b;    #neutral temperature(C)\n",
      "EFe_Ag=(a*t)+(0.5*b*t**2);      #thermo emf of thermocouple\n",
      "\n",
      "#Result\n",
      "print \"neutral temperature is\",Tn,\"C\"\n",
      "print \"thermo emf of thermocouple is\",EFe_Ag"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "neutral temperature is 123.125 C\n",
        "thermo emf of thermocouple is 819.0\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 2.3, Page number 54"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "#PFe=1734-4.87t\n",
      "#PCu=136+0.95t\n",
      "aFe_Pb=1734;\n",
      "bFe_Pb=-4.87;\n",
      "aCu_Pb=136;\n",
      "bCu_Pb=0.95\n",
      "\n",
      "#Calculation\n",
      "a=aFe_Pb-aCu_Pb;        #value of aFe_Cu\n",
      "b=bFe_Pb-bCu_Pb;        #value of bFe_Cu\n",
      "EFe_Cu=(a*t)+(0.5*b*t**2);       #thermo emf of thermocouple(microV)\n",
      "EFe_Cu=EFe_Cu*10**-6;            #thermo emf of thermocouple(V)\n",
      "\n",
      "#Result\n",
      "print \"thermo emf of thermocouple is\",EFe_Cu,\"V\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "thermo emf of thermocouple is 0.1307 V\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}