Revert "Add helical angle to distance calculator"

This reverts commit e4d6955b0b.
This commit is contained in:
looooo
2019-09-07 21:20:46 +02:00
parent 77a61f7abf
commit fe88e0aba3

View File

@@ -1,13 +1,12 @@
import numpy as np
from scipy import optimize as opt
def computeShiftedGears(m, alpha, beta, t1, t2, x1=0, x2=0):
def computeShiftedGears(m, alpha, t1, t2, x1, x2):
"""Summary
Args:
m (float): common module of both gears [length]
alpha (float): pressure-angle [rad]
beta (float): helical angle [rad]
t1 (int): number of teeth of gear1
t2 (int): number of teeth of gear2
x1 (float): relative profile-shift of gear1
@@ -16,10 +15,9 @@ def computeShiftedGears(m, alpha, beta, t1, t2, x1=0, x2=0):
Returns:
(float, float): distance between gears [length], pressure angle of the assembly [rad]
"""
m_t = m / no.cos(beta)
inv = lambda x: np.tan(x) - x
inv_alpha_w = inv(alpha) + 2 * np.tan(alpha) * (x1 + x2) / (t1 + t2)
root_inv = lambda x: inv(x) - inv_alpha_w
alpha_w = opt.fsolve(root_inv, 0.)
dist = m * (t1+ t2) / 2 * np.cos(alpha) / np.cos(alpha_w)
return dist, alpha_w
return dist, alpha_w