summaryrefslogtreecommitdiff
path: root/Strength_of_Materials_by_Dr.R.K.Bansal/chapter12.ipynb
blob: cf8facd0d2fff20fffa9955d3f36c0b49d5fb21f (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:ced402d1abd8ee6656b1d5779752e65300ae4ab42f06bdc7c60dba927fb54a5a"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 12:Deflection of Beams"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.1,page no.518"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=6*1000        #Length in mm\n",
      "W=50*1000       #Point load in N\n",
      "I=78e6          #Moment of Inertia in mm^4\n",
      "E=2.1e5         #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "yc=round((W*L**3)/(48*E*I),3)                      #The deflection at the centre in mm\n",
      "thetaB=round(math.degrees((W*L**2)/(16*E*I)),4)    #The slope at the supports\n",
      "\n",
      "#Result\n",
      "print \"Deflection at the centre =\",yc,\"mm\"\n",
      "print \"NOTE:The answer given for slope at the support is wrong.The correct answer is,\"\n",
      "print \"Slope at the support =\",thetaB,\"degree\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Deflection at the centre = 13.736 mm\n",
        "NOTE:The answer given for slope at the support is wrong.The correct answer is,\n",
        "Slope at the support = 0.3935 degree\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.2,page no.518"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=4*1000              #Length in mm\n",
      "\n",
      "#Calculation\n",
      "thetaA=round(math.radians(1),5)    #Slope at the ends in radians\n",
      "yc=float(str(thetaA*(L/3))[:5])    #Deflection at the centre in mm\n",
      "\n",
      "#Result\n",
      "print \"Deflection at the centre =\",yc,\"mm\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Deflection at the centre = 23.26 mm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.3,page no.519"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=3*1000              #Length in mm\n",
      "\n",
      "#Calculation\n",
      "thetaA=round(math.radians(1),5)    #Slope at the ends in radians\n",
      "yc=float(str(thetaA*(L/3))[:5])    #Deflection at the centre in mm\n",
      "\n",
      "#Result\n",
      "print \"Deflection at the centre =\",yc,\"mm\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Deflection at the centre = 17.45 mm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.4,page no.526"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=5*1000        #Length in mm\n",
      "W=5*1000        #Point load in N\n",
      "a=3*1000        #Distance between point load and left end in mm\n",
      "E=2e5           #Young's modulus in N/sq.mm\n",
      "I=1e8           #Moment of Inertia in mm^4\n",
      "\n",
      "#Calculation\n",
      "b=L-a           #Width in mm\n",
      "#case(i):The slope at the left support\n",
      "thetaA=-(W*a*b)/(6*E*I*L)*(a+2*b)\n",
      "#case(iii): The deflection under the load\n",
      "yc=(W*a**2*b**2)/(3*E*I*L)\n",
      "#case(iii):The maximum deflection\n",
      "y_max=round((W*b)/(9*math.sqrt(3)*E*I*L)*(((a**2)+(2*a*b))**(3/2)),4)\n",
      "\n",
      "#Result\n",
      "print\"slope at the left support =\",thetaA,\"radians\"\n",
      "print\"Deflection under the load =\",yc,\"mm\"\n",
      "print\"Maximum deflection =\",y_max,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "slope at the left support = -0.00035 radians\n",
        "Deflection under the load = 0.6 mm\n",
        "Maximum deflection = 0.6173 mm\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.5,page no,529"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "b=200                #Width in mm\n",
      "d=300                #Depth in mm\n",
      "L=5*1000             #Span in mm\n",
      "L_star=5             #Span in m\n",
      "w=9*1000             #Uniformly distributed load in N/m            \n",
      "E=1e4                #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "W=w*L_star                                 #Total load in N\n",
      "I=b*d**3/12                                #Moment of Inertia in mm^4\n",
      "\n",
      "#case(i):the slope at the support\n",
      "thetaA=round(-(W*(L**2))/(24*E*I),4)\n",
      "\n",
      "#case(ii):maximum deflection\n",
      "yc=str((W*L**3)/(E*I)*(5/384))[:5]\n",
      "\n",
      "#Result\n",
      "print\"Slope at the support =\",-thetaA,\"radians\"\n",
      "print\"Maximum deflection =\",yc,\"mm\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the support = 0.0104 radians\n",
        "Maximum deflection = 16.27 mm\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.6,page no.529"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "#Variable declaration\n",
      "L=5*1000      #Length in mm\n",
      "L_star=5      #Length in m\n",
      "w=9           #Uniformly distributed load in kN/m\n",
      "f=7           #Bending stress in N/sq.mm\n",
      "E=1e4         #Young's modulus in N/sq.mm\n",
      "yc=10         #Central deflection in mm\n",
      "\n",
      "#Calculation\n",
      "W=w*L_star*1e3                       #Total load in N               \n",
      "bd3=((W*(L**3)*12*5)/(E*yc*384))     #width X depth^3 in mm^4\n",
      "M=(W*L/8)                            #Maximum bending moment in Nmm \n",
      "bd2=round(M*12/(f*2),2)              #width X depth^2 in mm^3\n",
      "d=round(bd3/bd2,2)                   #Depth of beam in mm\n",
      "b=str(M*12/(f*2)/d**2)[:6]           #Width of beam in mm\n",
      "\n",
      "#Result\n",
      "print \"Depth of beam =\",d,\"mm\"\n",
      "print \"Width of beam =\",b,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Depth of beam = 364.58 mm\n",
        "Width of beam = 181.36 mm\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.7,page no.531"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given \n",
      "#Variable declaration\n",
      "L=5*1000      #Length in mm\n",
      "f=8           #Bending stress in N/sq.mm\n",
      "yc=10         #Central deflection in mm\n",
      "E=1.2e4       #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "d=round((5*L**2*(f*2*8))/(E*384*yc)*1e-1,2)  #Depth of beam in cm\n",
      "\n",
      "#Result\n",
      "print \"Depth of beam =\",d,\"cm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Depth of beam = 34.72 cm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 12.8,page no.534"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "#Variable declaration\n",
      "L=6*1000       #Length in mm\n",
      "W=40*1000      #Point load in N\n",
      "a=4*1000       #Distance of point load from left support in mm\n",
      "I=7.33e7       #Moment of Inertia in mm^4\n",
      "E=2e5          #Young's modulus in sq.mm\n",
      "\n",
      "#Calculation\n",
      "b=L-a                                 #Width of beam in mm\n",
      "yc=round(-(W*a**2*b**2)/(3*E*I*L),1)  #Deflection under the load in mm\n",
      "\n",
      "#Result\n",
      "print \"Deflection under the load =\",yc,\"mm\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Deflection under the load = -9.7 mm\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}