summaryrefslogtreecommitdiff
path: root/Machine_Design_by_U.C._Jindal/Ch28_1.ipynb
blob: 9f1fda0bd234f39650cbd32a1dd35b486059af84 (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Ch:28 Worm and worm wheel set"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-1 - Page 726"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "G is 30   \n",
      "\n",
      "CD is 100 mm  \n",
      "\n",
      "d  is 50 mm  \n",
      "\n",
      "D  is 150 mm  \n"
     ]
    }
   ],
   "source": [
    "from __future__ import division\n",
    "from math import sqrt, pi\n",
    "Z1=1#\n",
    "Z2=30#\n",
    "q=10#\n",
    "m=5#\n",
    "d=q*m#\n",
    "D=m*Z2#\n",
    "#let the speed reduction ratio be G\n",
    "G=Z2/Z1#\n",
    "CD=(d+D)/2#\n",
    "print \"G is %0.0f   \"%(G)#\n",
    "print \"\\nCD is %0.0f mm  \"%(CD)#\n",
    "print \"\\nd  is %0.0f mm  \"%(d)#\n",
    "print \"\\nD  is %0.0f mm  \"%(D)#"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-2 - Page 726"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "i is 52   \n",
      "\n",
      "CD is 248 mm  \n",
      "\n",
      "pa is 25.13 mm  \n",
      "\n",
      "da is 96 mm  \n",
      "\n",
      "df is 60.975 mm  \n",
      "\n",
      "Da is 431.841 mm  \n",
      "\n",
      "Df is 396.816 mm  \n"
     ]
    }
   ],
   "source": [
    "from math import tan, atan, cos,pi\n",
    "Z1=1#\n",
    "Z2=52#\n",
    "q=10#\n",
    "m=8#\n",
    "i=Z2/Z1#\n",
    "CD=((m*q)+(m*Z2))/2#\n",
    "lamda=atan(Z1/q)#\n",
    "d=q*m#\n",
    "da=m*(q+2)#\n",
    "df=m*(q+2-(4.4*cos(lamda)))#\n",
    "pa=m*pi#\n",
    "D=m*Z2#\n",
    "Da=m*(Z2+(4*cos(lamda))-2)#\n",
    "Df=m*(Z2-2-(0.4*cos(lamda)))#\n",
    "print \"i is %0.0f   \"%(i)#\n",
    "print \"\\nCD is %0.0f mm  \"%(CD)#\n",
    "print \"\\npa is %0.2f mm  \"%(pa)#\n",
    "print \"\\nda is %0.0f mm  \"%(da)#\n",
    "print \"\\ndf is %0.3f mm  \"%(df)#\n",
    "print \"\\nDa is %0.3f mm  \"%(Da)#\n",
    "print \"\\nDf is %0.3f mm  \"%(Df)#"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-3 - Page 727"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Ptw=Pag is 1591.5 N  \n",
      "\n",
      "Paw=Ptg is 5487 N  \n",
      "\n",
      "Prw=Prg  is 1188 N  \n"
     ]
    }
   ],
   "source": [
    "from math import sqrt, pi,sin,cos,atan\n",
    "Z1=2#\n",
    "Z2=60#\n",
    "q=10#\n",
    "m=5#\n",
    "P=6000#\n",
    "N=1440#\n",
    "u=0.08#\n",
    "alpha=20*pi/180#\n",
    "lamda=atan(Z1/q)#\n",
    "d=m*q#\n",
    "w=2*pi*N/60#\n",
    "T=P/w#\n",
    "Ptw=T*10**3/(d/2)#\n",
    "a=cos(alpha)#\n",
    "b=cos(lamda)#\n",
    "x=sin(alpha)#\n",
    "y=sin(lamda)#\n",
    "Paw=Ptw*(((a*b)-(u*y))/((a*y)+(u*b)))#\n",
    "Prw=Ptw*y/((a*y)+(u*b))#\n",
    "#Paw=Ptw*((cos(alpha)*cos(lambda))-(u*sin(lambda)))/((cos(alpha)*sin(lambda))+(u*cos(lambda)))#\n",
    "#Prw=Ptw*((sin(alpha))/((cos(alpha)*sin(lambda))+(u*cos(lambda))))#\n",
    "print \"Ptw=Pag is %0.1f N  \"%(Ptw)#\n",
    "print \"\\nPaw=Ptg is %0.0f N  \"%(Paw)#\n",
    "print \"\\nPrw=Prg  is %0.0f N  \"%(Prw)#\n",
    "  \n",
    "#The difference in the value is due to rounding-off the values."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-4 - Page 728"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "P is 1.2 kW  \n",
      "\n",
      "Po is 1.047 kW  \n",
      "\n",
      "Pf is 0.153 kW  \n"
     ]
    }
   ],
   "source": [
    "from __future__ import division\n",
    "from math import sqrt, pi, cos,atan,tan,sin\n",
    "Z1=2#\n",
    "Z2=40#\n",
    "q=8#\n",
    "m=5#\n",
    "d=q*m#\n",
    "P=1.2#\n",
    "lamda=atan(Z1/q)#\n",
    "N=1000#\n",
    "Vt=2*pi*N*20/(60*1000)#\n",
    "Vs=Vt/cos(lamda)#\n",
    "u=0.032#\n",
    "alpha=20*pi/180#\n",
    "x=cos(alpha)#\n",
    "y=tan(lamda)#\n",
    "z=(cos(lamda))/sin(lamda)#\n",
    "n=(x-(u*y))/(x+(u*z))#\n",
    "#Let power output be Po\n",
    "Po=P*n#\n",
    "#Let power lost in friction be Pf\n",
    "Pf=P-Po#\n",
    "print \"P is %0.1f kW  \"%(P)#\n",
    "print \"\\nPo is %0.3f kW  \"%(Po)#\n",
    "print \"\\nPf is %0.3f kW  \"%(Pf)#\n",
    "  "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-5 - Page 729"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "n is 0.865   \n",
      "\n",
      "delT is 18.73 deg  \n"
     ]
    }
   ],
   "source": [
    "from math import sqrt, pi, cos,atan,tan,sin\n",
    "Z1=2#\n",
    "Z2=54#\n",
    "q=10#\n",
    "m=8#\n",
    "P=4000#\n",
    "A=1.8#\n",
    "K=16#\n",
    "N=1000#\n",
    "u=0.028#\n",
    "lamda=atan(Z1/q)#\n",
    "alpha=20*pi/180#\n",
    "d=m*q#\n",
    "Vt=2*pi*N*d/(2*60*1000)#\n",
    "Vs=Vt/cos(lamda)#\n",
    "x=cos(alpha)#\n",
    "y=tan(lamda)#\n",
    "z=(cos(lamda))/sin(lamda)#\n",
    "n=(x-(u*y))/(x+(u*z))#\n",
    "delT=P*(1-n)/(K*A)#\n",
    "print \"n is %0.3f   \"%(n)#\n",
    "print \"\\ndelT is %0.2f deg  \"%(delT)#"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## exa 28-6 - Page 729"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Sb is 8286 N  \n",
      "\n",
      "Sw is 3362 N  \n"
     ]
    }
   ],
   "source": [
    "from math import sqrt, pi, cos,atan,tan,sin\n",
    "Z1=1#\n",
    "Z2=30#\n",
    "q=10#\n",
    "m=6#\n",
    "#Let the ultimate strength of gear is sigut\n",
    "#Let the allowable strenth of wheel is sigb\n",
    "sigut=450#\n",
    "sigb=84#\n",
    "N=1200#\n",
    "n=N/Z2#\n",
    "alpha=20*pi/180#\n",
    "d=m*q#\n",
    "D=Z2*m#\n",
    "b=3*d/4#\n",
    "V=2*pi*n*D/(2*60*1000)#\n",
    "Cv=6/(6+V)#\n",
    "y=0.154-(0.912/Z2)#\n",
    "Y=pi*y#\n",
    "Sb=sigb*b*Cv*m*Y#\n",
    "K=0.415#\n",
    "Sw=b*D*K#\n",
    "print \"Sb is %0.0f N  \"%(Sb)#\n",
    "print \"\\nSw is %0.0f N  \"%(Sw)#\n",
    "\n",
    "#The difference in the value of Sb is due to rounding-off the values."
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}