-
Notifications
You must be signed in to change notification settings - Fork 0
/
Spur_Gear_Calc.py
188 lines (96 loc) · 3.22 KB
/
Spur_Gear_Calc.py
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
#!/usr/bin/env python
# coding: utf-8
# ## Gear Design Equations and Formula
# ## Spur Gear
# A spur gear is one of the simplest and most common types of cylindrical gears. Spur gears have straight teeth that run parallel to the shaft.
# These gears are easy to manufacture and can be used in a variety of applications. These applications include speed increase or reduction, torque multiplication,
# and enhancing accuracy for positioning systems.
#
# In this blog, we are going to define spur gear terminology and provide formulas for determining the values of these terms.
# ## Spur Gears – Terms, Definitions, and Calculations
# ## # The following terms are related to spur gears:
# In[ ]:
# Pitch diameter: Diameter of the pitch circle.
# Diametral pitch: The number of teeth per inch of pitch diameter.
# Addendum: The height of the tooth above the pitch circle.
# dedendum: Depth of the tooth between the pitch circle and the minor diameter.
# Clearance (Backlash) : The clearance between two mating teeth of separate gears.
#Circular pitch: Measurement of the pitch circle arc length from one point on a tooth to the same point on the adjacent tooth.
#Circular thickness: The thickness of the tooth at the pitch circle.
#Clearance: The space between one gears minor diameter and the mating gears major diameter.
#Module: Teeth per millimeter of pitch diameter.
#Outside diameter: The major diameter of the gear.
#Pitch circle: The circle, the radius of which is equal to the distance from the center of the gear to the pitch point. This is where the gear’s speed is measured.
# #### A 22-tooth gear has AGMA standard full-depth involute teeth with diametral pitch of 4.
# Calculate the pitch diameter, circular pitch, addendum, dedendum, tooth thickness, and clearance.
#
# Given :
# tooth = 22
# Diametral pitch dp = 4
# In[203]:
import math
# Pitch diameter d = N//pd
# Circular pitch pc = pi//pd
# Addendum a = 1000//pd
# Dedendum b = 1.2500//pd
# Clearance c = 0.2500//pd
# In[204]:
def pitch_diameter(Tooth_number, Diametral_pitch):
"""
To calculate the pitch diameter
Enter the diametral pitch
"""
return Tooth_number//Diametral_pitch
# In[205]:
pitch_diameter(22, 4)
# In[206]:
# Circular pitch
def Circular_pitch(Diametral_pitch):
"""
To calculate the Circular pitch
Enter the diametral pitch
"""
return math.pi//Diametral_pitch
# In[207]:
Circular_pitch(4)
# In[208]:
# Addendum
def Addendum(pitch_diameter):
"""
To calculate the pitch diameter
Enter the diametral pitch
"""
return 1000//pitch_diameter
# In[209]:
Addendum(4)
# In[210]:
# dedendum
def dedendum(pitch_diameter):
"""
To calculate dedendum
Enter the pitch diameter
"""
return 250//pitch_diameter
# In[211]:
dedendum(4)
# In[212]:
# Tooth thickness
def Tooth_thickness(Circular_pitch):
"""
To calculate Tooth thickness
Enter the Circular pitch
"""
return 0.5*Circular_pitch
# In[213]:
Tooth_thickness(0.78539)
# In[214]:
# Clearance
def Clearance(pitch_diameter):
"""
To calculate Clearance
Enter the pitch diameter
"""
return 0.2500//pitch_diameter
# In[215]:
Clearance(4)
# In[ ]: