summaryrefslogtreecommitdiff
path: root/Heat_and_Thermodynamics_by_Brijlal_and_N._Subrahmanyam/ch2.ipynb
blob: 7e6e061ec1429cf98cdd27e2e23bcc31864ea26f (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:99719b77e4d25d0b510a7e6a71bd4ef254e2672471167e904ef1ad3797b62091"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 2 : Expansion \n"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.1  Page No : 24"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Input data\n",
      "l = 1.  # The thickness of the crystal in cm\n",
      "w = 5890. - 8  # The wavelength of light used in cm\n",
      "t2 = 50.  # The final temperature of the crystal in degree centigrade\n",
      "t1 = 20.  # The initial temperature of the crystal in degree centigrade\n",
      "p = 14.  # The number of fringes that crossed the field of view\n",
      "\n",
      "# Calculations\n",
      "t = t2 - t1  # The temperature difference in degree centigrade\n",
      "# The coefficient of linear expansion of the crystal in per degree centigrade\n",
      "a = (p * w) / (2 * l * t)\n",
      "\n",
      "# output\n",
      "print 'The coefficient of linear expansion of the crystal is %3.4g degree centigrade' % (a)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The coefficient of linear expansion of the crystal is 1372 degree centigrade\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.2  Page No : 31"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Input data\n",
      "L = 500.  # The length of a steel rod in cm\n",
      "t = 40.  # The increase in temperature in degree centigrade\n",
      "y = 2. * 10**12  # The youngs modulus of elasticity of steel in dynes/cm**2\n",
      "e = 12. * 10**-6  # The coefficient of linear expansion of steel in per degree centigrade\n",
      "\n",
      "# Calculations\n",
      "S = y * e * t  # The stress in the rod in dynes/cm**2\n",
      "\n",
      "# Output\n",
      "print 'The stress in the rod is %3g dynes/cm^2' % (S)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The stress in the rod is 9.6e+08 dynes/cm^2\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.3  Page No : 36"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# Input data\n",
      "L = 800.  # The length of the wire in cm\n",
      "r = 0.2  # The radius of the wire in cm\n",
      "t = 10.  # The temperature fall in degree centigrade\n",
      "a = 12. * 10**-6  # The coefficient of linear expansion of steel wire in per degree centigrade\n",
      "y = 2. * 10**12  # The youngs modulus of elasticity of steel in dynes/cm**2\n",
      "pi = (22. / 7)  # Mathematical constant pi\n",
      "\n",
      "# Calculations\n",
      "I = y * a * t * pi * r**2  # The increase in tension in dynes\n",
      "\n",
      "# Output\n",
      "print 'The increase in tension is %3g dynes' % (I)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The increase in tension is 3.01714e+07 dynes\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.4  Page No : 39"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Input data\n",
      "A = 2. * 10**-6  # The cross section area of a uniform rod in m**2\n",
      "t = 20.  # The change in temperature in degree centigrade\n",
      "y = 10.**11  # The youngs modulus of the rod in newtons/m**2\n",
      "a = 12. * 10**-6  # The coefficient of linear expansion of rod in per degree centigrade\n",
      "\n",
      "# Calculations\n",
      "F = y * a * t * A  # The force required to prevent it from expanding in newtons\n",
      "E = (1. / 2) * y * a * t * a * t  # The energy stored per unit volume in j/m**3\n",
      "\n",
      "# Output\n",
      "print 'The force required to prevent the rod from expanding is %3.0f newtons  \\\n",
      "\\nThe Energy stored per unit volume is %3.0f j/m^3' % (F, E)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The force required to prevent the rod from expanding is  48 newtons  \n",
        "The Energy stored per unit volume is 2880 j/m^3\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.5  Page No : 41"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "# Input data\n",
      "d = 10.**-3  # The diameter of a steel wire in m\n",
      "t = 20.  # The difference in the temperature in degree centigrade\n",
      "y = 2. * 10**11  # The youngs modulus of a steel wire in newtons/m**2\n",
      "a = 12. * 10**-6  # The coefficient of linear expansion of steel wire in per degree centigrade\n",
      "pi = (22. / 7)  # Mathematical constant value\n",
      "\n",
      "# calculations\n",
      "A = (pi * d**2) / 4  # The cross sectional area of the steel wire in m**2\n",
      "# Force required to maintain the original length in kg wt\n",
      "F = (y * a * t * A) / (9.8)\n",
      "\n",
      "# output\n",
      "print 'Force required to maintain the original length is %3.3f kg wt ' % (F)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Force required to maintain the original length is 3.848 kg wt \n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}