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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 7 - Keys & Couplings"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.1 Pg 195"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" shaft diameter = 48.29 mm. Use d = 50 mm.\n",
" \n",
" thickness of hub = 25 mm\n",
" \n",
" diameter of recess in flanges = 75 mm\n",
" \n",
" outside diameter of protecting flange = 200 mm\n",
" \n",
" width of key = 12.5 mm. Use b = 15 mm\n",
" \n",
" length of key = 75 mm.\n",
" \n",
" thickness for square key = 15 mm\n",
" \n",
" Hub length = 75 mm\n",
" \n",
" Number of bolts = 4\n",
" \n",
" Bolt diameter = 11.86 mm. Use db=12 mm\n",
" \n",
" Bolt diameter (based on Tensile load) = 21.9 mm. Use db=15 mm\n",
" \n",
" Flange thickness = 18.5 mm. Use t=20 mm\n",
" \n",
" permissible bearing stress in flange = 2.76 MPa < 30 MPa\n",
" \n",
" shearing of the flange at the junction with hub = 3.17 MPa < 15 MPa.\n",
" Values are acceptable.\n",
" \n",
" permissible crushing strength of bolts = 14.0 MPa < 60 MPa.\n",
" Hence design is safe.\n",
" \n",
" Thickness of protecting flange = 10 mm\n",
" \n",
" Hub overlap = 3 mm (min)\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi,floor\n",
"from numpy import roots\n",
"# Given Data\n",
"P=20## kW\n",
"N=240## rpm\n",
"tau_s=45## MPa\n",
"tau_b=30## MPa\n",
"sigma_b=60## MPa\n",
"sigma_cs=2*tau_s## MPa\n",
"tau_ci=15## MPa\n",
"#Tmax=1.25*Tm\n",
"mu=0.15## coefficient of friction\n",
"\n",
"#SHAFT DIAMETER\n",
"# P= 2*pi*N*Tm/60/1000 \n",
"Tm=P/(2*pi*N/60/1000)## N.m\n",
"Tmax=1.25*Tm## N.m\n",
"# pi*d**3*tau_s/16= Tmax\n",
"d=(Tmax/(pi*tau_s/16)*1000)**(1/3)## mm\n",
"print ' shaft diameter = %.2f mm. Use d = 50 mm.'%(d)\n",
"d=50## mm\n",
"\n",
"# HUB DIAMETER\n",
"# Tmax=pi/16*((d1**4-d**4)/d1)*tau_h\n",
"tau_h=tau_ci## MPa\n",
"#d1*(Tmax/(pi/16)/tau_h)-d1**4=d**4 -- eqn(1)\n",
"Tmax=Tmax*1000## N.mm\n",
"p=[1, 0 ,0 ,-Tmax/(pi*tau_h/16), -d**4] ## polynomial coefficients from eqn(1)\n",
"d1=roots(p)## roots of poly \n",
"d1=d1[0]## mm (taking +ve value)\n",
"d1=100## mm (empirically adopted) \n",
"t1=(d1-d)/2## mm (thickness of hub)\n",
"print ' \\n thickness of hub = %.f mm'%(t1)\n",
"d4=d+t1## mm (diameter of recess in flanges)\n",
"print ' \\n diameter of recess in flanges = %.f mm'%(d4)\n",
"d3=4*d## mm (outside diameter of protecting flange)\n",
"print ' \\n outside diameter of protecting flange = %.f mm'%(d3)\n",
"\n",
"# Hub length\n",
"b=d/4## mm (width of key)\n",
"l=1.5*d## mm (length of key)\n",
"print ' \\n width of key = %.1f mm. Use b = 15 mm'%(b)\n",
"b=15## mm\n",
"print ' \\n length of key = %.f mm.'%(l) \n",
"t=b## mm (thickness for square key)\n",
"print ' \\n thickness for square key = %.f mm'%(t)\n",
"print ' \\n Hub length = %.f mm'%(l)\n",
"\n",
"#Number of bolts\n",
"n=floor(4*d/150+3)## no. of bolts\n",
"print ' \\n Number of bolts = %.f'%(n)\n",
"\n",
"# Bolt diameter\n",
"r2=1.5*d## mm\n",
"F=Tmax/r2/n## N\n",
"#pi/4*db**2*tau_b=F\n",
"db=sqrt(F/(pi/4*tau_b))## mm\n",
"print ' \\n Bolt diameter = %.2f mm. Use db=12 mm'%(db)\n",
"bolt_dia=db##mm\n",
"\n",
"# Bolt diameter based on Tensile load\n",
"r3=d3/2## mm\n",
"r4=d4/2## mm\n",
"rf=2/3*((r3**3-r4**3)/(r3**2-r4**2))## mm\n",
"#Tmax=n*mu*Pi*rf## N\n",
"Pi=Tmax/(n*mu*rf)## N\n",
"# Pi=pi/4*db**2*sigma_t\n",
"sigma_t=sigma_b## MPa\n",
"db=sqrt(Pi/(pi/4*sigma_t))## mm \n",
"print ' \\n Bolt diameter (based on Tensile load) = %.1f mm. Use db=15 mm'%(db)\n",
"db=15## mm (adopted)\n",
"\n",
"# Flange thickness\n",
"t2=0.5*t1+6## mm (empirically)\n",
"print ' \\n Flange thickness = %.1f mm. Use t=20 mm'%(t2)\n",
"t2=20## mm (adopted)\n",
"#F=n*db*t2*sigma_c\n",
"sigma_ci=F/n/db/t2## MPa\n",
"#2*pi*d1**2*tau*t2/4=Tmax\n",
"tau=Tmax/(2*pi*d1**2*t2/4)## MPa\n",
"print ' \\n permissible bearing stress in flange = %.2f MPa < 30 MPa'%(sigma_ci)\n",
"print ' \\n shearing of the flange at the junction with hub = %.2f MPa < 15 MPa.'%(tau)\n",
"print ' Values are acceptable.'\n",
"\n",
"# Check for crushing of bolt\n",
"#n*db*t2*sigma_cb*d2/2=Tmax\n",
"d2=d1+d## mm\n",
"db=bolt_dia##mm\n",
"sigma_cb=Tmax/(n*db*t2*d2/2)## MPa\n",
"print ' \\n permissible crushing strength of bolts = %.1f MPa < 60 MPa.'%(sigma_cb)\n",
"print ' Hence design is safe.'\n",
"\n",
"# Thickness of protecting flange\n",
"t3=0.5*t2## mm\n",
"print ' \\n Thickness of protecting flange = %.f mm'%( t3)\n",
"# Hub overlap \n",
"ho=3## mm (min)\n",
"print ' \\n Hub overlap = %.f mm (min)'%(ho)\n",
"#Note - Answer for **Bolt diameter based on Tensile load** is calculated wrong in the textbook(error in Pi calculation)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.2 Pg 200"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" shaft diameter = 40.55 mm. Use d = 42 mm.\n",
" \n",
" thickness of hub = 21 mm\n",
" \n",
" outside diameter of protecting flange = 168 mm. Use 170 mm\n",
" \n",
" width of key = 10.5 mm. Use b = 12 mm\n",
" \n",
" length of key = 63 mm.\n",
" \n",
" thickness for square key = 12 mm\n",
" \n",
" Hub length = 63 mm\n",
" \n",
" Number of bolts = 4.68. Use n=6\n",
" \n",
" Bolt diameter = 8.57 mm. Use db=20 mm for design purpose\n",
" \n",
" pitch circle diameter of bolts = 136 mm \n",
" \n",
" Permissible shear stress in bolts = 3.58 MPa < 35 MPa. Hence design is safe.\n",
" \n",
" length of bush = 35 mm\n",
" \n",
" Bending stress in pin = 28.7 MPa\n",
" \n",
" Maximum shear stress in pin = 14.78 MPa < 35 MPa. Hence design is safe.\n",
" \n",
" Flange thickness = 16.5 mm. Use t=18 mm\n",
" \n",
" shearing of the flange at the junction with hub = 2.30 MPa < 15 MPa.\n",
" Values are acceptable.\n"
]
}
],
"source": [
"from __future__ import division\n",
"from numpy import roots,pi,sqrt\n",
"# Given Data\n",
"P=30## kW\n",
"N=750## rpm\n",
"#Tmax=1.2*Tm## MPa\n",
"tau_s=35## MPa\n",
"tau_b=35## MPa\n",
"tau_k=35## MPa\n",
"sigma_cs=70## MPa\n",
"sigma_ck=70## MPa\n",
"sigma_cb=70## MPa\n",
"tau_ci=15## MPa\n",
"pb=0.8## MPa\n",
"\n",
"#sigma_cs=2*tau_s## MPa\n",
"\n",
"#Tmax=1.5*Tm\n",
"mu=0.15## coefficient of friction\n",
"\n",
"#SHAFT DIAMETER\n",
"# P= 2*pi*N*Tm/60/1000 \n",
"Tm=P/(2*pi*N/60/1000)## N.m\n",
"Tmax=1.2*Tm## N.m\n",
"# pi*d**3*tau_s/16= Tmax\n",
"d=(Tmax/(pi*tau_s/16)*1000)**(1/3)## mm\n",
"print ' shaft diameter = %.2f mm. Use d = 42 mm.'%(d)\n",
"d=42## mm\n",
"\n",
"# HUB DIAMETER\n",
"# Tmax=pi/16*((d1**4-d**4)/d1)*tau_h\n",
"tau_h=tau_ci## MPa\n",
"#d1*(Tmax/(pi/16)/tau_h)-d1**4=d**4 -- eqn(1)\n",
"Tmax=Tmax*1000## N.mm\n",
"p=[1, 0 ,0 ,-Tmax/(pi*tau_h/16) ,-d**4] ## polynomial coefficients from eqn(1)\n",
"d1=roots(p)## roots of poly \n",
"d1=d1[0]## mm (taking +ve value)\n",
"d1=2*d## mm (empirically adopted) \n",
"t1=(d1-d)/2## mm (thickness of hub)\n",
"print ' \\n thickness of hub = %.f mm'%(t1)\n",
"#d4=d+t1## mm (diameter of recess in flanges)\n",
"#print ' \\n diameter of recess in flanges = %.f mm'%(d4)\n",
"d3=4*d## mm (outside diameter of protecting flange)\n",
"print ' \\n outside diameter of protecting flange = %.f mm. Use 170 mm'%(d3)\n",
"d3=170## mm (adopted)\n",
"\n",
"#Key size & Hub length\n",
"b=d/4## mm (width of key)\n",
"l=1.5*d## mm (length of key)\n",
"print ' \\n width of key = %.1f mm. Use b = 12 mm'%(b)\n",
"b=12## mm\n",
"print ' \\n length of key = %.f mm.'%(l) \n",
"t=b## mm (thickness for square key)\n",
"print ' \\n thickness for square key = %.f mm'%(t)\n",
"print ' \\n Hub length = %.f mm'%(l)\n",
"\n",
"#Number of bolts\n",
"n=(0.04*d+3)## no. of bolts\n",
"print ' \\n Number of bolts = %.2f. Use n=6'%(n)\n",
"n=6## adopted\n",
"\n",
"# Bolt diameter\n",
"db=0.5*d/sqrt(n)## mm\n",
"print ' \\n Bolt diameter = %.2f mm. Use db=20 mm for design purpose'%(db)\n",
"db=20##mm (adopted)\n",
"bolt_dia=db##mm\n",
"dsb=24## mm(shank diameter of bolt for design)\n",
"\n",
"# Outer diameter of rubber bush\n",
"trb=2## mm (thickness of rubber bush)\n",
"tbb=6## mm (thickness of brass bush)\n",
"d3=dsb+2*trb+2*tbb## mm \n",
"d2=d1+d3+2*tbb## mm (pitch circle diameter of bolts)\n",
"print ' \\n pitch circle diameter of bolts = %.f mm '%(d2)\n",
"\n",
"# Check of shear in bolt\n",
"F=2*Tmax/n/d2## N\n",
"#pi/4*db*2*tau=F\n",
"tau=F/(pi/4*db**2)##MPa\n",
"print ' \\n Permissible shear stress in bolts = %.2f MPa < 35 MPa. Hence design is safe.'%( tau)\n",
"\n",
"# Length of brush\n",
"pb=0.8## MPa(bearing pressure of brush)\n",
"#F=l2*d3*pb#\n",
"l2=F/d3/pb## mm\n",
"print ' \\n length of bush = %.f mm'%(l2)\n",
"\n",
"# Check for pin in bending\n",
"c=5## mm (clearance between two flanges)\n",
"l3=(l2-c)/2+c##mm\n",
"#M=pi/32*db**3*sigma_b & M=F*l3\n",
"sigma_b = F*l3/(pi/32*db**3)## MPa\n",
"print ' \\n Bending stress in pin = %.1f MPa'%(sigma_b)\n",
"\n",
"# Maximum shear stress in pin\n",
"tau_max=sqrt((sigma_b/2)**2+tau**2)##MPa\n",
"print ' \\n Maximum shear stress in pin = %.2f MPa < 35 MPa. Hence design is safe.'%(tau_max)\n",
"\n",
"# Flange thickness\n",
"t2=0.5*t1+6## mm (empirically)\n",
"print ' \\n Flange thickness = %.1f mm. Use t=18 mm'%(t2)\n",
"t2=18## mm (adopted)\n",
"tau=Tmax/(2*pi*d1**2*t2/4)## MPa\n",
"print ' \\n shearing of the flange at the junction with hub = %.2f MPa < 15 MPa.'%(tau)\n",
"print ' Values are acceptable.'\n",
"\n",
"#Note - Answer in llast part is calculated wrong in the textbook(error in calculation)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.3 Pg 204"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" length of hub = 111 mm\n",
" \n",
" Force required to shift the connection = 1278.9 N\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi\n",
"# Given Data\n",
"n=8## no. of spline\n",
"d=52## mm\n",
"D=60## mm\n",
"pm=6## MPa\n",
"mu=0.06## coefficient of friction\n",
"N=320## rpm\n",
"P=20## kW\n",
"\n",
"T=60*10**3*P/2/pi/N## N.m\n",
"l=8*T*10**3/pm/n/(D**2-d**2)## mm\n",
"print ' length of hub = %.f mm'%(l)\n",
"Rm=(D+d)/4## mm\n",
"F=T*10**3/Rm## N\n",
"Ff=mu*F##N (Force of friction)\n",
"print ' \\n Force required to shift the connection = %.1f N'%(Ff)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.4 Pg 204"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" for key to be equally strong in shear & crushing - \n",
"\n",
" b= 18.75 mm. Use b=20 mm.\n",
" \n",
" t=26.67 mm. Use t=27 mm\n",
" for key to be equally strong in shear as shaft - \n",
"\n",
" l=110.4 mm. Use l=115 mm\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import pi\n",
"# Given Data\n",
"d=75## mm\n",
"tau=50## MPa\n",
"sigma_c=75## MPa\n",
"print ' for key to be equally strong in shear & crushing - \\n'\n",
"b=d/4## mm\n",
"print ' b= %.2f mm. Use b=20 mm.'%(b)\n",
"b=20##mm\n",
"#2*b/t=sigma_c/tau for key to be equally strong in shear & crushing\n",
"t=2*b/(sigma_c/tau)## mm\n",
"print ' \\n t=%.2f mm. Use t=27 mm'%(t)\n",
"l= pi*d**2/8/b## mm (for key to be equally strong in shear as shaft)\n",
"print ' for key to be equally strong in shear as shaft - \\n'\n",
"print ' l=%.1f mm. Use l=115 mm'%(l)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.6 Pg 205"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" shaft diameter = 100.00 mm.\n",
" \n",
" thickness of hub = 50 mm\n",
" \n",
" diameter of recess in flanges = 150 mm\n",
" \n",
" outside diameter of protecting flange = 400 mm.\n",
" \n",
" width of key = 25.0 mm.\n",
" \n",
" length of key = 150 mm.\n",
" \n",
" thickness for square key = 25 mm\n",
" \n",
" Hub length = 150 mm\n",
" \n",
" Number of bolts = 6.00.\n",
" \n",
" Bolt diameter = 18.38 mm. Use db=20 mm for design purpose\n",
" \n",
" Flange thickness = 31.0 mm. Use t=20 mm\n",
" \n",
" permissible bearing stress in flange = 3.21 MPa < 75 MPa\n",
" \n",
" shearing of the flange at the junction with hub = 5.52 MPa < 175 MPa.\n",
" Values are acceptable.\n",
" \n",
" permissible crushing strength of bolts = 19.25 MPa < 60 MPa.\n",
" Hence design is safe.\n",
" \n",
" Thickness of protecting flange = 16 mm\n",
" \n",
" Hub overlap = 3 mm (min)\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import pi,ceil,sqrt\n",
"from numpy import roots\n",
"# Given Data\n",
"P=135## kW\n",
"N=120## rpm\n",
"tau_s=55## MPa\n",
"tau_b=45## MPa\n",
"tau_ci=175## MPa\n",
"sigma_ci=75## MPa\n",
"\n",
"#sigma_cs=2*tau_s## MPa\n",
"\n",
"#Tmax=1.5*Tm\n",
"mu=0.15## coefficient of friction\n",
"\n",
"#SHAFT DIAMETER\n",
"# P= 2*pi*N*Tm/60/1000 \n",
"Tm=P/(2*pi*N/60/1000)## N.m\n",
"# pi*d**3*tau_s/16= Tm\n",
"d=(Tm/(pi*tau_s/16)*1000)**(1/3)## mm\n",
"d=ceil(d)\n",
"print ' shaft diameter = %.2f mm.'%(d)\n",
"Tmax=Tm## N.m\n",
"\n",
"# HUB DIAMETER\n",
"# Tmax=pi/16*((d1**4-d**4)/d1)*tau_h\n",
"tau_h=tau_ci## MPa\n",
"#d1*(Tmax/(pi/16)/tau_h)-d1**4=d**4 -- eqn(1)\n",
"Tmax=Tmax*1000## N.mm\n",
"p=[1, 0, 0, -Tmax/(pi*tau_h/16), -d**4] ## polynomial coefficients from eqn(1)\n",
"d1=roots(p)## roots of poly \n",
"d1=d1[0]## mm (taking +ve value)\n",
"d1=2*d## mm (empirically adopted) \n",
"t1=(d1-d)/2## mm (thickness of hub)\n",
"print ' \\n thickness of hub = %.f mm'%(t1)\n",
"d4=d+t1## mm (diameter of recess in flanges)\n",
"print ' \\n diameter of recess in flanges = %.f mm'%(d4)\n",
"d3=4*d## mm (outside diameter of protecting flange)\n",
"print ' \\n outside diameter of protecting flange = %.f mm.'%(d3)\n",
"\n",
"#Key size & Hub length\n",
"b=d/4## mm (width of key)\n",
"l=1.5*d## mm (length of key)\n",
"print ' \\n width of key = %.1f mm.'%(b)\n",
"print ' \\n length of key = %.f mm.'%(l) \n",
"t=b## mm (thickness for square key)\n",
"print ' \\n thickness for square key = %.f mm'%(t)\n",
"print ' \\n Hub length = %.f mm'%(l)\n",
"\n",
"#Number of bolts\n",
"n=ceil(4*d/150+3)## no. of bolts\n",
"print ' \\n Number of bolts = %.2f.'%(n)\n",
"\n",
"# Bolt diameter\n",
"r2=1.5*d## mm\n",
"F=Tm*1000/r2/n##N\n",
"#(pi/4)*db**2*tau_b=F\n",
"db=sqrt(F/((pi/4)*tau_b))## mm\n",
"print ' \\n Bolt diameter = %.2f mm. Use db=20 mm for design purpose'%(db)\n",
"db=20## mm (adopted for design)\n",
"bolt_dia=db##mm\n",
"\n",
"# Flange thickness\n",
"t2=0.5*t1+6## mm (empirically)\n",
"print ' \\n Flange thickness = %.1f mm. Use t=20 mm'%(t2)\n",
"#F=n*db*t2*sigma_c\n",
"sigma_ci=F/n/db/t2## MPa\n",
"#2*pi*d1**2*tau*t2/4=Tmax\n",
"tau=Tmax/(2*pi*d1**2*t2/4)## MPa\n",
"print ' \\n permissible bearing stress in flange = %.2f MPa < 75 MPa'%(sigma_ci)\n",
"print ' \\n shearing of the flange at the junction with hub = %.2f MPa < 175 MPa.'%(tau)\n",
"print ' Values are acceptable.'\n",
"\n",
"# Check for crushing of bolt\n",
"#n*db*t2*sigma_cb*d2/2=Tmax\n",
"d2=d1+d## mm\n",
"db=bolt_dia##mm\n",
"sigma_cb=Tmax/(n*db*t2*d2/2)## MPa\n",
"print ' \\n permissible crushing strength of bolts = %.2f MPa < 60 MPa.'%(sigma_cb)\n",
"print ' Hence design is safe.'\n",
"# Thickness of protecting flange\n",
"t3=0.5*t2## mm\n",
"print ' \\n Thickness of protecting flange = %.f mm'%( t3)\n",
"# Hub overlap \n",
"ho=3## mm (min)\n",
"print ' \\n Hub overlap = %.f mm (min)'%(ho)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.7 Pg 208"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" for key to be equally strong in shear & crushing - \n",
"\n",
" b= 12.50 mm. Use b=15 mm.\n",
" \n",
" t=17.50 mm. Use t=20 mm\n",
" \n",
" for key to be equally strong in shear as shaft - \n",
"\n",
" l=65.45 mm. Use l=70 mm\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi\n",
"# Given Data\n",
"d=50## mm\n",
"tau=42## MPa\n",
"sigma_c=72## MPa\n",
"print ' for key to be equally strong in shear & crushing - \\n'\n",
"b=d/4## mm\n",
"print ' b= %.2f mm. Use b=15 mm.'%(b)\n",
"b=15##mm\n",
"#2*b/t=sigma_c/tau for key to be equally strong in shear & crushing\n",
"t=2*b/(sigma_c/tau)## mm\n",
"print ' \\n t=%.2f mm. Use t=20 mm'%(t)\n",
"l= pi*d**2/8/b## mm (for key to be equally strong in shear as shaft)\n",
"print ' \\n for key to be equally strong in shear as shaft - \\n'\n",
"print ' l=%.2f mm. Use l=70 mm'%(l)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.8 Pg 208"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" design shear stress = 80 N/mm.sq.\n",
" \n",
" design crushing strength = 160 N/mm.sq.\n",
" \n",
" width of key = 6 mm. Use 7mm\n",
" \n",
" thickness of key = 7 mm.\n",
" \n",
" length of key based on shear failure = 29.76 mm or 30 mm\n",
" \n",
" length of key based on crushing failure = 29.76 mm or 30 mm\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi,ceil\n",
"\n",
"# Given Data\n",
"d=25## mm\n",
"N=550## rpm\n",
"P=12## kW\n",
"sigma_yt=400## N/mm.sq.\n",
"sigma_yc=400## N/mm.sq.\n",
"n=2.5## factor of safety\n",
"\n",
"# P= 2*pi*N*T/(60*10**3)\n",
"T=P/(2*pi*N/(60*10**3))## N.m\n",
"tau=0.5*sigma_yt## MPa\n",
"tau_d=tau/n## N/mm.sq.\n",
"print ' design shear stress = %.f N/mm.sq.'%(tau_d)\n",
"sigma_d=sigma_yc/n## N/mm.sq.\n",
"print ' \\n design crushing strength = %.f N/mm.sq.'%(sigma_d)\n",
"b=d/4##mm\n",
"print ' \\n width of key = %.f mm. Use 7mm'%(b)\n",
"b=ceil(d/4)## mm\n",
"t=b## mm\n",
"print ' \\n thickness of key = %.f mm.'%(t)\n",
"l_s=2*T*10**3/(d*b*tau_d)## mm (length of key based on shear failure)\n",
"print ' \\n length of key based on shear failure = %.2f mm or %.f mm'%(l_s, l_s)\n",
"l_c=4*T*10**3/(d*t*sigma_d)## mm (length of key based on crushing failure)\n",
"print ' \\n length of key based on crushing failure = %.2f mm or %.f mm'%(l_c, l_c)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.9 Pg 209"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" \n",
" Maximum transmitted torque = 248680 N.mm\n",
" \n",
" Hub diameter = 72 mm\n",
" \n",
" Thickness of hub = 18 mm\n",
" \n",
" Diameter of recess in flanges = 54 mm\n",
" \n",
" Outside diameter of protecting flange = 144 mm\n",
" \n",
" width of key = 9.0 mm.\n",
" \n",
" length of key = 54 mm.\n",
" \n",
" thickness for square key = 9 mm\n",
" \n",
" Hub length = 54 mm\n",
" \n",
" Number of bolts = 4.00.\n",
" \n",
" Bolt diameter = 5.57 mm. Use db=6 mm for design purpose\n",
" \n",
" Flange thickness = 15.0 mm. Use t=20 mm\n",
" \n",
" permissible bearing stress in flange = 3.20 MPa < 40 MPa\n",
" \n",
" shearing of the flange at the junction with hub = 2.04 MPa < 20 MPa.\n",
" Values are acceptable.\n",
" \n",
" permissible crushing strength of bolts = 12.79 MPa < 82 MPa.\n",
" Hence design is safe.\n",
" \n",
" Thickness of protecting flange = 8 mm\n",
" \n",
" Hub overlap = 3 mm (min)\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi,ceil\n",
"# Given Data\n",
"d=36## mm\n",
"P=15## kW\n",
"N=720## rpm\n",
"#Tmax=1.25*Tm\n",
"sigma_yt=245## MPa (for C20 steel)\n",
"n=3## factor of safety\n",
"sigma=82## MPa (Design tensile stress)\n",
"\n",
"tau=0.577*sigma## MPa (shear stress)\n",
"sigma_u=200## MPa (for FG 200 cast Iron)\n",
"n2=5## factor of safety (for FG 200 cast Iron)\n",
"tau2=20## MPa shear stress (for FG 200 cast Iron)\n",
"\n",
"# Max. torque transmitted\n",
"#P=2*pi*N*Tm/(60*10**3)\n",
"Tm=P/(2*pi*N/(60*10**3))*1000## N.mm\n",
"Tmax=1.25*Tm## N.mm\n",
"print ' \\n Maximum transmitted torque = %.f N.mm'%(Tmax)\n",
"\n",
"# Hub diameter\n",
"tau_h=20## MPa (permissible shear stress in hub)\n",
"#Tmax=(pi/16)*(d1**4-d**4)/d1*tau_h ...eqn(1)\n",
"d1=2*d##mm (empirically)\n",
"tau_h=Tmax*1000/((pi/16)*(d1**4-d**4)/d1)## MPa\n",
"t1=(d1-d)/2## mm (thickness of hub)\n",
"print ' \\n Hub diameter = %.f mm'%(d1)\n",
"print ' \\n Thickness of hub = %.f mm'%(t1)\n",
"d4=d+t1## mm\n",
"print ' \\n Diameter of recess in flanges = %.f mm'%(d4)\n",
"d3=4*d##mm\n",
"print ' \\n Outside diameter of protecting flange = %.f mm'%(d3)\n",
"\n",
"#Hub length\n",
"b=d/4## mm (width of key)\n",
"l=1.5*d## mm (length of key)\n",
"print ' \\n width of key = %.1f mm.'%(b)\n",
"print ' \\n length of key = %.f mm.'%(l) \n",
"t=b## mm (thickness for square key)\n",
"print ' \\n thickness for square key = %.f mm'%(t)\n",
"print ' \\n Hub length = %.f mm'%(l)\n",
"\n",
"#Number of bolts\n",
"n=ceil(4*d/150+3)## no. of bolts\n",
"print ' \\n Number of bolts = %.2f.'%(n)\n",
"\n",
"# Bolt diameter\n",
"r2=1.5*d## mm\n",
"F=Tmax/r2/n##N\n",
"#(pi/4)*db**2*tau_b=F\n",
"db=sqrt(F/((pi/4)*tau))## mm\n",
"print ' \\n Bolt diameter = %.2f mm. Use db=6 mm for design purpose'%(db)\n",
"db=6## mm (adopted for design)\n",
"bolt_dia=db##mm\n",
"\n",
"# Flange thickness\n",
"t2=0.5*t1+6## mm (empirically)\n",
"print ' \\n Flange thickness = %.1f mm. Use t=20 mm'%(t2)\n",
"#F=n*db*t2*sigma_c\n",
"sigma_ci=F/n/db/t2## MPa\n",
"#2*pi*d1**2*tau*t2/4=Tmax\n",
"tau=Tmax/(2*pi*d1**2*t2/4)## MPa\n",
"print ' \\n permissible bearing stress in flange = %.2f MPa < 40 MPa'%(sigma_ci)\n",
"print ' \\n shearing of the flange at the junction with hub = %.2f MPa < 20 MPa.'%(tau)\n",
"print ' Values are acceptable.'\n",
"\n",
"# Check for crushing of bolt\n",
"#n*db*t2*sigma_cb*d2/2=Tmax\n",
"d2=d1+d## mm\n",
"db=bolt_dia##mm\n",
"sigma_cb=Tmax/(n*db*t2*d2/2)## MPa\n",
"print ' \\n permissible crushing strength of bolts = %.2f MPa < 82 MPa.'%(sigma_cb)\n",
"print ' Hence design is safe.'\n",
"# Thickness of protecting flange\n",
"t3=0.5*t2## mm\n",
"print ' \\n Thickness of protecting flange = %.f mm'%( t3)\n",
"# Hub overlap \n",
"ho=3## mm (min)\n",
"print ' \\n Hub overlap = %.f mm (min)'%(ho)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 7.10 Pg 212"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" \n",
" (i) Diameter of bolts = 6.96 mm. Use 8 mm.\n",
" \n",
" (ii) Flange thickness = 10.4 mm. Use t2 = 12 mm\n",
" \n",
" (iii) Length of key = 100 mm\n",
"\t\td=35 mm\n",
"\t\tb=10 mm\n",
" \n",
" (iv) Hub length = 100 mm\n",
" \n",
" shear stress in hub = 12.67 N/mm.sq.\n",
" It is nearly equal to 10 N/mm.sq.\n",
" \n",
" hence design parameters are fine.\n",
" \n",
" (v) Power transmitted = 29.32 kW\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import sqrt,pi,ceil\n",
"# Given Data\n",
"d=35## mm\n",
"d2=125## mm\n",
"n=6## factor of safety\n",
"T=800## N.m\n",
"N=350## rpm\n",
"tau_s=63## MPa\n",
"tau_b=56## MPa\n",
"tau_CI=10## MPa\n",
"tau_k=46## MPa\n",
"\n",
"# Diameter of bolts:\n",
"F=2*T*10**3/d2/n## N\n",
"#pi/4*db**2*tau_b=F\n",
"db=sqrt(F/(pi/4*tau_b))## mm\n",
"print ' \\n (i) Diameter of bolts = %.2f mm. Use 8 mm.'%(db)\n",
"\n",
"# Flange thickness\n",
"d1=2*d## mm\n",
"#T=pi/2*d1**2*t2*tau_CI\n",
"t2=T*1000/(pi/2*d1**2*tau_CI)## mm\n",
"print ' \\n (ii) Flange thickness = %.1f mm. Use t2 = 12 mm'%(t2)\n",
"t2=12## mm\n",
"\n",
"#Key dimensions\n",
"b=10## mm (width of key)\n",
"t=7## mm (from tables)\n",
"#T=l*b*tau_k*d/2\n",
"l=T*10**3/(b*tau_k*d/2)## mm\n",
"l=ceil(l)## mm\n",
"print ' \\n (iii) Length of key = %.f mm\\n\\t\\td=%.f mm\\n\\t\\tb=%.f mm'%(l,d,b)\n",
"\n",
"# Hub length\n",
"lh=l## mm (length of hub)\n",
"print ' \\n (iv) Hub length = %.f mm'%(l)\n",
"tau_c=T*10**3/(pi/16*(d1**4-d**4)/d1)## N/mm.sq.\n",
"print ' \\n shear stress in hub = %.2f N/mm.sq.'%(tau_c)\n",
"print ' It is nearly equal to %.f N/mm.sq.'%(tau_CI)\n",
"print ' \\n hence design parameters are fine.'\n",
"\n",
"# Power transmitted\n",
"P=2*pi*N*T/60/10**3## kW\n",
"print ' \\n (v) Power transmitted = %.2f kW'%(P)"
]
}
],
"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
}
|