summaryrefslogtreecommitdiff
path: root/Heat_And_Thermodynamics_by_A._Manna/ch10.ipynb
blob: f0d6123bc805f4d1ccc489729e4664cb5bb7c09e (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
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 10 : Thermodynamic relations"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.1 pageno: 329"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "t = 289.6;\t\t\t#temperature in K\n",
      "dt = 0.0244;\t\t\t#raise in temperature in deg.C\n",
      "v1 = 0.00095;\t\t\t#volume occupied in liquid state in litres\n",
      "v2 = 0.00079;\t\t\t#volume occupied in solid state in litres\n",
      "\n",
      "# Calculations\n",
      "l = t*(v1-v2)/dt;\t\t\t#latent heat of fusion in lit.atm\n",
      "\n",
      "# Result\n",
      "print 'the latent heat of fusion is %3.2f lit.atm'%(l)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the latent heat of fusion is 1.90 lit.atm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.2 pageno : 329"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "t = 295.    \t\t\t#temperature of water in K\n",
      "dp = 10**6.\t    \t\t#cahnge in pressure in dyne/sq.cm\n",
      "j = 4.2*10**7;\t\t\t#joules constant in ergs/cal\n",
      "\n",
      "# Calculations\n",
      "dc = -t*10**-5*dp/j;\t\t\t#change in specific heat\n",
      "\n",
      "# Result\n",
      "print 'the change in specific heat is %.e cal/degree'%(dc)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the change in specific heat is -7e-05 cal/degree\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.3 pageno: 329"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "cp = 0.0909\t    \t\t#specific heat at consmath.tant pressure in cal/degree\n",
      "t = 273;\t\t    \t#temperature in K\n",
      "v = 0.112;\t\t\t    #specific volume in lit/deg.C\n",
      "a = 5.01*10**(-6);\t\t#coefficient of linear expansion\n",
      "k = 8*10**-7;\t\t\t#compressibility of copper in per atoms\n",
      "\n",
      "# Calculations\n",
      "cv = cp+(9*a**2*v*t*0.024142*10**3/k);\t\t\t#specific heat at constant volume in cal/deg.C\n",
      "\n",
      "# Result\n",
      "print 'specific heat at constant volume is %3.2f cal/deg.C'%(cv)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "specific heat at constant volume is 0.30 cal/deg.C\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.5 pageno : 331"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "t = 289.6;\t\t\t#temperature in K\n",
      "dt = 0.0244;\t\t\t#raise in temperature in deg.C\n",
      "v1 = 0.00095;\t\t\t#volume occupied in liquid state in litres\n",
      "v2 = 0.00079;\t\t\t#volume occupied in solid state in litres\n",
      "\n",
      "# Calculations\n",
      "l = t*(v1-v2)/dt;\t\t\t#latent heat of fusion in lit.atm\n",
      "\n",
      "# Result\n",
      "print 'the latent heat of fusion is %3.3f lit.atm'%(l)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the latent heat of fusion is 1.899 lit.atm\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.6 pageno : 331"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "l = 539;\t\t\t#latent heat of water at 100deg.C in cal\n",
      "j = 4.2*10**7;\t\t\t#joules constant in ergs/cal\n",
      "t = 373;\t\t\t#temperature of water in K\n",
      "v2 = 1670;\t\t\t#volume of steam formed in cc\n",
      "v1 = 1;\t\t\t#intial volume in cc\n",
      "g = 981;\t\t\t#acceleration due to gravity in cm/sec**2\n",
      "d = 13.6;\t\t\t#specific gravity of hg\n",
      "\n",
      "# Calculations\n",
      "dp = l*j/(t*(v2-v1)*g*d);\t\t\t#rate of change of saturation pressure in cm of mercury\n",
      "\n",
      "# Result\n",
      "print 'the rate of change of saturation pressure is %3.1f cm of hg'%(dp)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the rate of change of saturation pressure is 2.7 cm of hg\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.7 pageno : 331"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "p1 = 77.371;\t\t\t#pressure at 100.5deg.C in cm of hg\n",
      "p2 = 74.650;\t\t\t#pressure at 99.5deg.C in cm of hg\n",
      "g = 981;\t\t\t#universal gas constant in cm/sec**2\n",
      "d = 13.6;\t\t\t#specific gravity\n",
      "l = 537;\t\t\t#latent heat of vapourisation in cal/gm\n",
      "t = 373;\t\t\t#temperature of water in K\n",
      "j = 4.2*10**7;\t\t\t#joules constant in ergs/cal\n",
      "v1 = 1;\t\t\t#intial volume in cc\n",
      "\n",
      "# Calculations\n",
      "v2 = v1+(l*j/(t*(p1-p2)*g*d));\t\t\t#volume of gram of steam at 100deg.C in cc\n",
      "\n",
      "# Result\n",
      "print 'volume of gram of steam at 100deg.C is %.f cc'%(v2)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "volume of gram of steam at 100deg.C is 1667 cc\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.8 pageno : 332"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "t = 350;\t\t\t#boiling point temperature in K\n",
      "l = 46;\t\t\t#latent heat of vapourisation in cal/gm\n",
      "v1 = 1/1.6;\t\t\t#intial volume in cc\n",
      "dp = 2.3;\t\t\t#change in pressure with temperature in cm of hg/deg.C\n",
      "d = 13.6;\t\t\t#specific gravity of mercury\n",
      "g = 981;\t\t\t#acceleration due to gravity in cm/sec**2\n",
      "j = 4.2*10**7;\t\t\t#joukes constant in ergs/cal\n",
      "\n",
      "#CALCULTIONS\n",
      "v2 = v1+(l*j)/(t*dp*d*g);\t\t\t#specific volume in cc\n",
      "\n",
      "# Result\n",
      "print 'specific volume of vapour of carbon is %3.3f cc'%(v2)\n",
      "print \"Note : Answer is slightly different because of rounding error\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "specific volume of vapour of carbon is 180.513 cc\n",
        "Note : Answer is slightly different because of rounding error\n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.9 pageno : 332"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "l = 536.;\t\t\t#latent heat of vapourisation in cal/gm\n",
      "v1 = 1.;\t\t\t#volume of 1 gm of water in cc\n",
      "v2 = 1600.;\t\t\t#volume of steam in cc\n",
      "t = 373.;\t\t\t#boiling point of water in K\n",
      "p = 1.;\t\t\t#pressure in cm of hg\n",
      "d = 13.6;\t\t\t#specific gravity of mercury\n",
      "g = 981.;\t\t\t#gravitational constant in cm/sec**2s/cal\n",
      "j = 4.2*10**7;\t\t\t#joules constant in erg/cal\n",
      "\n",
      "# Calculations\n",
      "dt = (t*(v2-v1)*d*g)/(l*j);\t\t\t#change in temperature in deg.C\n",
      "\n",
      "# Result\n",
      "print 'change in temperature is %3.2f deg.C'%(dt)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "change in temperature is 0.35 deg.C\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.10 page no : 332"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "t = 353;\t\t\t#temperature in K\n",
      "p = 76*13.6*981;\t\t\t#pressure in dynes/sq.cm\n",
      "v = 0.146;\t\t\t#specific volume in cc/kg\n",
      "l = 35.6;\t\t\t#latent heat of fusion in cal/gm\n",
      "j = 4.18*10**7;\t\t\t#joules constant in ergs/cal\n",
      "\n",
      "# Calculations\n",
      "dt = t*p*v/(l*j);\t\t\t#change in melting point per atmosphere\n",
      "\n",
      "# Result\n",
      "print 'the rate of change in melting point is %.3f per atmosphere'%(dt)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the rate of change in melting point is 0.035 per atmosphere\n"
       ]
      }
     ],
     "prompt_number": 12
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.11 pageno : 333"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "l = 79.6*4.18*10**7;\t\t\t#latent heat of water in ergs/gm\n",
      "t = 273.16;\t\t\t#temperature of water in K\n",
      "v1 = 1.0001;\t\t\t#specific volume of water at 0deg.C in cc\n",
      "v2 = 1.0908;\t\t\t#specific volume of ice at 0deg.C in cc\n",
      "p = 1.013*10**6;\t\t\t#pressure of atmosphere in dyne/sq.cm\n",
      "\n",
      "# Calculations\n",
      "dt = t*(v1-v2)*p/l;\t\t\t#change in freezing point of water in deg.C\n",
      "\n",
      "# Result\n",
      "print 'change in freezing point of water is %3.4f deg.C'%(dt)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "change in freezing point of water is -0.0075 deg.C\n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}