summaryrefslogtreecommitdiff
path: root/Mechanics_of_Materials_by_Pytel_and_Kiusalaas/Chapter10.ipynb
blob: 913e9f201a51e7635db38ab9adfaf3abf271388e (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:39be4bd5a29fce6d0d8085f52939f9fac01e348dbfffcb5b53194aa4be7d5f98"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter10:Columns"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.10.1, Page No:369"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variable Decleration\n",
      "Le=7 #Effective length in m\n",
      "P=450 #Applied axial Load in kN\n",
      "FOS=3 #Factor of safety \n",
      "sigma_pl=200*10**6 #Stress allowable in Pa\n",
      "E=200*10**9 #Youngs Modulus in Pa\n",
      "end_cond=0.7 #End Condition factor to be multiplied\n",
      "\n",
      "#Calculations\n",
      "Pcr=P*FOS #Critical Load in kN\n",
      "A=Pcr*sigma_pl**-1*10**9 #Area in mm^2\n",
      "\n",
      "#Part 1\n",
      "I1=10**15*(Pcr*Le**2)*(pi**2*E)**-1 #Moment of Inertia Required in mm^4\n",
      "#From table selecting appropriate Section W250x73\n",
      "\n",
      "#Part 2\n",
      "I2=10**15*(Pcr*end_cond**2*Le**2)*(pi**2*E)**-1 #Moment of Inertia Required in mm^4\n",
      "#From table selecting appropriate Section W200x52\n",
      "\n",
      "#Lightest Section that meets these criterion is W250x58 section\n",
      "\n",
      "\n",
      "#Result\n",
      "print \"From the above computation we select W250x58 section\"\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "From the above computation we select W250x58 section\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.10.2, Page No:375"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variabel Decleration\n",
      "E=200*10**9 #Youngs Modulus in Pa\n",
      "sigma_yp=380*10**6 #Stress allowable in Pa\n",
      "Le=10 #Length in m\n",
      "end_cond=0.5 #Support condition factor to be ,ultiplied to length\n",
      "A=15.5*10**-3 #Area in m^2\n",
      "\n",
      "#Calculations\n",
      "Cc=sqrt((2*pi**2*E)*sigma_yp**-1) #Slenderness Ratio\n",
      "\n",
      "#Part 1\n",
      "S_R1=142.9 #Slenderness ratio \n",
      "sigma_w=(12*pi**2*E)/(23*S_R1**2) #Allowable Working Stress in Pa\n",
      "P=sigma_w*A #Maximum Allowable Load in kN\n",
      "\n",
      "#Part 2\n",
      "S_R2=79.37 #Slenderness ratio \n",
      "N=5*3**-1+((3*S_R2)/(8*Cc))-(S_R2**3*(8*Cc**3)**-1) #Factor Of Safety\n",
      "\n",
      "sigma_w2=(1-(S_R2**2*0.5*Cc**-2))*(sigma_yp*N**-1) #Allowable working Stress in Pa\n",
      "P2=sigma_w2*A #Allowable Load in kN\n",
      "\n",
      "#Part 3\n",
      "S_R3=55.56 #Slenderness Ratio\n",
      "N3=5*3**-1+((3*S_R3)/(8*Cc))-(S_R3**3*(8*Cc**3)**-1) #Factor Of Safety\n",
      "\n",
      "sigma_w3=(1-(S_R3**2*0.5*Cc**-2))*(sigma_yp*N3**-1) #Allowable working Stress in Pa\n",
      "P3=sigma_w3*A #Allowable Load in kN\n",
      "\n",
      "#Result\n",
      "print \"The results for Part 1 are\"\n",
      "print \"Maximum Allowable Load P=\",round(P*10**-3),\"kN\"\n",
      "print \"Part 2\"\n",
      "print \"Maximum Allowable Load P=\",round(P2*10**-3),\"kN\"\n",
      "print \"Part 3\"\n",
      "print \"Maximum Allowable Load P=\",round(P3*10**-3),\"kN\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The results for Part 1 are\n",
        "Maximum Allowable Load P= 782.0 kN\n",
        "Part 2\n",
        "Maximum Allowable Load P= 2161.0 kN\n",
        "Part 3\n",
        "Maximum Allowable Load P= 2710.0 kN\n"
       ]
      }
     ],
     "prompt_number": 22
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.10.3, Page No:383"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "import numpy as np\n",
      "\n",
      "#Variabel Decleration\n",
      "E=29*10**6 #Youngs Modulus in psi\n",
      "sigma_yp=36*10**3 #Stress in psi\n",
      "L=25 #Length in ft\n",
      "A=17.9 #Area in in^2\n",
      "Iz=640 #Moment of inertia in in^4\n",
      "Sz=92.2 #Sectional Modulus in in^3\n",
      "P=150*10**3 #Load in lb\n",
      "e=4 #Eccentricity in inches\n",
      "\n",
      "#Calculations\n",
      "\n",
      "#Part 1\n",
      "a=1.09836\n",
      "sigma_max=P*A**-1+(P*e*Sz**-1)*a #Maximum Stress in psi\n",
      "\n",
      "#Part 2\n",
      "#After simplification we get the equation to compute N\n",
      "N=2.19 #Trial and Error yields\n",
      "\n",
      "#Part 3\n",
      "v_max=e*((np.cos(sqrt((P*L**2*12**2)*(4*E*Iz)**-1)))**-1-1)\n",
      "\n",
      "#Result\n",
      "print \"The maximum compressive stress in the Column is\",round(sigma_max,2),\"psi\"\n",
      "print \"The factor of safety is\",N\n",
      "print \"The maximum lateral dfelection is\",round(v_max,3),\"in\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The maximum compressive stress in the Column is 15527.57 psi\n",
        "The factor of safety is 2.19\n",
        "The maximum lateral dfelection is 0.393 in\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 10.10.4, Page No:384"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "#Variable Decleration\n",
      "Le=7 #Effective Length in m\n",
      "N=2 #Factor of Safety\n",
      "h_max=400 #Maximum depth in mm\n",
      "E=200 #Youngs Modulus in GPa\n",
      "sigma_yp=250 #Maximum stress in yielding in MPa\n",
      "P1=400 #Load 1 in kN\n",
      "P2=900 #Load 2 in kN\n",
      "x1=75 #Distance in mm\n",
      "x2=125 #Distance in mm\n",
      "\n",
      "#Calculations\n",
      "e=(P2*x2-P1*x1)*(P1+P2)**-1 #Eccentricity in mm\n",
      "P=N*(P1+P2) #Applied load after factor of safety is considered in kN\n",
      "\n",
      "#Part 1 is not computable\n",
      "I=415*10**-6 #Moment of inertia from the table in mm^4\n",
      "\n",
      "#Part 2\n",
      "P_cr=pi**2*E*10**9*I*Le**-2 #Critical load for buckling in kN\n",
      "FOS=P_cr*10**-3/(P1+P2) #Factor of safety against buckling in y-axis\n",
      "\n",
      "\n",
      "#Result\n",
      "print \"The critical load for buckling is\",round(P_cr*10**-3),\"kN\"\n",
      "print \"The factor of safety is\",round(FOS,1)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The critical load for buckling is 16718.0 kN\n",
        "The factor of safety is 12.9\n"
       ]
      }
     ],
     "prompt_number": 27
    }
   ],
   "metadata": {}
  }
 ]
}