summaryrefslogtreecommitdiff
path: root/Strength_of__Materials_by_Dr.R.K.Bansal/chapter13.ipynb
blob: f1b032068cb85f0f997d7775e81813c833831566 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:645699e2826749157978cc3139b5b4362e98aa81aba9d727772115e7ecd189e3"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 13:Deflection of Cantilevers"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.1,page no.557"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=3*1000           #Length in mm\n",
      "W=25*1000          #Point load in N\n",
      "I=1e8              #Moment of Inertia in mm^4\n",
      "E=2.1e5            #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "#case(i):Slope of the cantilever at the free end\n",
      "thetaB=round((W*(L**2))/(2*E*I),6)\n",
      "#case(ii):Deflection at the free end\n",
      "yB=round((W*L**3)/(E*I*3),2)\n",
      "\n",
      "#Result\n",
      "print \"Slope at the free end =\",thetaB,\"rad\"\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the free end = 0.005357 rad\n",
        "Deflection at the free end = 10.71 mm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.2,page no.557"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=3*1000           #Length in mm\n",
      "W=50*1000          #Point load in N\n",
      "a=2*1000           #Distance between the load and fixed end in mm\n",
      "I=1e8              #Moment of Inertia in mm^4\n",
      "E=2e5              #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "#case(i):Slope at the free end\n",
      "thetaB=(W*(a**2))/(2*E*I)\n",
      "#case(ii):Deflection at the free end\n",
      "yB=round(((W*a**3)/(E*I*3))+((W*(a**2))/(2*E*I)*(L-a)),2)\n",
      "\n",
      "#Result\n",
      "print \"Slope at the free end =\",thetaB,\"rad\"\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the free end = 0.005 rad\n",
        "Deflection at the free end = 11.67 mm\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.3,page no.559"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=2.5*1000           #Length in mm\n",
      "w=16.4               #Uniformly distributed load in kN/m \n",
      "I=7.95e7             #Moment of Inertia in mm^4\n",
      "E=2e5                #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "W=w*L                           #Total load in N\n",
      "yB=round((W*L**3)/(E*I*8),3)    #Deflection at the free end in mm\n",
      "\n",
      "#Result\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Deflection at the free end = 5.036 mm\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.4(A),page no.560"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Given\n",
      "#Variable declaration\n",
      "b=120          #Width in mm\n",
      "d=200          #Depth in mm\n",
      "L_star=2.5     #Length in m\n",
      "L=2.5*1000     #Length in mm\n",
      "yB=5           #Deflection at free end in mm\n",
      "E=2e5          #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "I=(b*d**3)/12                        #Moment of Inertia in mm^4\n",
      "w=(yB*8*E*I)/(L**3*L_star)/1e3       #Uniformly distributed load in N/m\n",
      "\n",
      "#Result\n",
      "print \"Uniformly distributed load =\",w,\"kN/m\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Uniformly distributed load = 16.384 kN/m\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.5,page no.563"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=3*1000           #Length in mm\n",
      "w=10               #Uniformly distributed load in N/mm\n",
      "a=2*1000           #Length of Uniformly distributed load from fixed end in mm\n",
      "I=1e8              #Moment of Inertia in mm^4\n",
      "E=2e5              #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "#case(i):Slope at the free end\n",
      "thetaB=str((w*(a**3))/(6*E*I))[:7]\n",
      "#case(ii):Deflection at the free end\n",
      "yB=round(((w*a**4)/(E*I*8))+((w*(a**3))/(6*E*I)*(L-a)),2)\n",
      "\n",
      "#Result\n",
      "print \"Slope at the free end =\",thetaB,\"rad\"\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the free end = 0.00066 rad\n",
        "Deflection at the free end = 1.67 mm\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.6,page no.563"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=3*1000           #Length in mm\n",
      "w=10               #Uniformly distributed load in N/mm\n",
      "a=2*1000           #Length of Uniformly distributed load from fixed end in mm\n",
      "I=1e8              #Moment of Inertia in mm^4\n",
      "E=2e5              #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "#case(i):Slope at the free end\n",
      "thetaB=round(((w*(L**3))/(6*E*I))-((w*((L-a)**3))/(6*E*I)),6)\n",
      "#case(ii):Deflection at the free end\n",
      "yB=round(((w*L**4)/(E*I*8))-(((w*(L-a)**4)/(8*E*I))+((w*(L-a)**3)/(6*E*I)*a)),4)\n",
      "\n",
      "#Result\n",
      "print \"Slope at the free end =\",thetaB,\"rad\"\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the free end = 0.002167 rad\n",
        "Deflection at the free end = 4.8333 mm\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem 13.10,page no.569"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Given\n",
      "#Variable declaration\n",
      "L=4*1000           #Length in mm\n",
      "w=50               #load at fixed end in N/mm\n",
      "I=1e8              #Moment of Inertia in mm^4\n",
      "E=2e5              #Young's modulus in N/sq.mm\n",
      "\n",
      "#Calculation\n",
      "#case(i):Slope at the free end\n",
      "thetaB=round(-(w*(L**3))/(24*E*I),5)\n",
      "#case(ii):Deflection at the free end\n",
      "yB=round((w*L**4)/(E*I*30),2)\n",
      "\n",
      "#Result\n",
      "print \"Slope at the free end =\",-thetaB,\"rad\"\n",
      "print \"Deflection at the free end =\",yB,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope at the free end = 0.00667 rad\n",
        "Deflection at the free end = 21.33 mm\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}