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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Ch:4 Manufacturing considerations"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 4-1 - Page 112"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" LLH is 70.0 mm \n",
"\n",
" ULH is 70.013 mm \n",
"\n",
" ULS is 69.99 mm \n",
"\n",
" LLS is 69.98 mm \n",
"\n",
" Cmax is 0.031 mm \n",
"\n",
" Cmin is 0.010 mm \n"
]
}
],
"source": [
"from math import sqrt\n",
"d=70#\n",
"dmin=50#\n",
"dmax=80#\n",
"D=sqrt(dmin*dmax)#\n",
"D=63#\n",
"i=0.458*(D**(1/3))+(0.001*D)#\n",
"\n",
"#standard tolerance for H8 is ST1\n",
"ST1=25*i#\n",
"ST1=ST1*10**-3#\n",
"#standard tolerance of shaft for grade g7 is ST2\n",
"ST2=16*i#\n",
"ST2=ST2*10**-3#\n",
"es=-(2.5*(D**0.333))#\n",
"es=es*10**-3#\n",
"ei=es-ST2#\n",
"#Lower limit for hole is LLH\n",
"#Upper limit for hole is ULH\n",
"#Upper limit for shaft is ULS\n",
"#Lower limit for shaft is LLS\n",
"LLH=d#\n",
"ULH=LLH+ST1#\n",
"ULS=LLH+es#\n",
"LLS=ULS-ST2#\n",
"#Maximum clearance is Cmax\n",
"#minimum clearance is Cmin\n",
"Cmax=ULH-LLS#\n",
"Cmin=LLH-ULS#\n",
"# printing data in scilab o/p window\n",
"print \" LLH is %0.1f mm \"%(LLH)#\n",
"print \"\\n ULH is %0.3f mm \"%(ULH)#\n",
"print \"\\n ULS is %0.2f mm \"%(ULS)#\n",
"print \"\\n LLS is %0.2f mm \"%(LLS)#\n",
"print \"\\n Cmax is %0.3f mm \"%(Cmax)#\n",
"print \"\\n Cmin is %0.3f mm \"%(Cmin)#"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 4-2 - Page 112"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cmax is 0.041 mm \n",
"\n",
"Cmin is 0.007 mm \n"
]
}
],
"source": [
"d=25#\n",
"#Lower limit for hole is LLH\n",
"#Upper limit for hole is ULH\n",
"#Upper limit for shaft is ULS\n",
"#Lower limit for shaft is LLS\n",
"ULH=d+0.021#\n",
"LLH=d+0#\n",
"ULS=d+0.041#\n",
"LLS=d+0.028#\n",
"#Maximum interference is Cmax\n",
"#minimum interference is Cmin\n",
"Cmax=ULS-LLH#\n",
"Cmin=LLS-ULH#\n",
"# printing data in scilab o/p window\n",
"print \"Cmax is %0.3f mm \"%(Cmax)#\n",
"print \"\\nCmin is %0.3f mm \"%(Cmin)#"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 4-3 - Page 113"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" ULH is 50.039 mm \n",
"\n",
" LLH is 50.000 mm \n",
"\n",
" ULS is 49.991 mm \n",
"\n",
" LLS is 49.966 mm \n",
"\n",
" Cmax is 0.073 mm \n",
"\n",
" Cmin is 0.009 mm \n",
" Therefore, H8g7 is easy running fit\n"
]
}
],
"source": [
"d=50#\n",
"Es=0.039#\n",
"Ei=0#\n",
"es=-9*10**-3#\n",
"ei=-34*10**-3#\n",
"#Shaft dia is D\n",
"D=d+es#\n",
"#Lower limit for hole is LLH\n",
"#Upper limit for hole is ULH\n",
"#Upper limit for shaft is ULS\n",
"#Lower limit for shaft is LLS\n",
"ULH=d+Es#\n",
"LLH=d+Ei#\n",
"ULS=d+es#\n",
"LLS=d+ei#\n",
"#Maximum interference is Cmax\n",
"#minimum interference is Cmin\n",
"Cmax=ULH-LLS#\n",
"Cmin=LLH-ULS#\n",
" # printing data in scilab o/p window\n",
"print \" ULH is %0.3f mm \"%(ULH)#\n",
"print \"\\n LLH is %0.3f mm \"%(LLH)#\n",
"print \"\\n ULS is %0.3f mm \"%(ULS)#\n",
"print \"\\n LLS is %0.3f mm \"%(LLS)#\n",
"print \"\\n Cmax is %0.3f mm \"%(Cmax)#\n",
"print \"\\n Cmin is %0.3f mm \"%(Cmin)#\n",
"print ' Therefore, H8g7 is easy running fit'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## exa 4-4 - Page 114"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" ULH is 30.025 mm \n",
"\n",
" LLH is 30.000 mm \n",
"\n",
" ULS is 30.011 mm \n",
"\n",
" LLS is 29.995 mm \n",
"\n",
" Cmax is 0.030 mm \n",
"\n",
" Cmin is 0.011 mm \n"
]
}
],
"source": [
"d=30#\n",
"Es=0.025#\n",
"Ei=0#\n",
"es=11*10**-3#\n",
"ei=-5*10**-3#\n",
"#Shaft dia is D\n",
"D=d+es#\n",
"#Lower limit for hole is LLH\n",
"#Upper limit for hole is ULH\n",
"#Upper limit for shaft is ULS\n",
"#Lower limit for shaft is LLS\n",
"ULH=d+Es#\n",
"LLH=d+Ei#\n",
"ULS=d+es#\n",
"LLS=d+ei#\n",
"#Maximum interference is Cmax\n",
"#minimum interference is Cmin\n",
"Cmax=ULH-LLS#\n",
"Cmin=ULS-LLH##\n",
"\n",
" # printing data in scilab o/p window\n",
"print \" ULH is %0.3f mm \"%(ULH)#\n",
"print \"\\n LLH is %0.3f mm \"%(LLH)#\n",
"print \"\\n ULS is %0.3f mm \"%(ULS)#\n",
"print \"\\n LLS is %0.3f mm \"%(LLS)#\n",
"print \"\\n Cmax is %0.3f mm \"%(Cmax)#\n",
"print \"\\n Cmin is %0.3f mm \"%(Cmin)#"
]
}
],
"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
}
|