TOOTH_NUMBER NUMBER
"Enter the number of teeth: "
MODULE NUMBER
"Enter the module: "
PRESSURE_ANGLE NUMBER
"Enter the pressure angle: "
HELIX_ANGLE NUMBER
"Enter the helix angle: "
HELIX_DIRECTION YES_NO
"Select the Left or Right direction (YES=Left-side / NO=Right-side): "
FACE_WIDTH NUMBER
"Enter the face width: "
TOOTH_NUMBER=ABS(TOOTH_NUMBER)
MODULE=ABS(MODULE)
PRESSURE_ANGLE=ABS(PRESSURE_ANGLE)
HELIX_ANGLE=ABS(HELIX_ANGLE)
FACE_WIDTH=ABS(FACE_WIDTH)
PITCH_RAD = TOOTH_NUMBER*MODULE/2
ADDENDUM_RAD = PITCH_RAD+1*MODULE
DEDENDUM_RAD = PITCH_RAD-1.25*MODULE
BASE_RAD = PITCH_RAD*COS(PRESSURE_ANGLE)
IF HELIX_DIRECTION==YES
TOOTH_HELIX = FACE_WIDTH*TAN(HELIX_ANGLE)/PITCH_RAD*(180/PI)
ELSE
TOOTH_HELIX = -FACE_WIDTH*TAN(HELIX_ANGLE)/PITCH_RAD*(180/PI)
ENDIF
ROLL_ANGLE=SQRT((ADDENDUM_RAD+0.5)^2-BASE_RAD^2)/BASE_RAD
THETA_AT_RP=SQRT(PITCH_RAD^2-BASE_RAD^2)/BASE_RAD*(180/PI)-PRESSURE_ANGLE
Inster=>Datum=>Curve=>From Equation选择默认的PRT_CSYS_DEF坐标系,点先圆柱坐标Cylindrical,在记事本中加入以下方程:
r=PITCH_RAD
theta=t*TOOTH_HELIX-TOOTH_HELIX/2+90
z=FACE_WIDTH/2-t*FACE_WIDTH
A=ROLL_ANGLE*t
r=BASE_RAD*sqrt(1+A^2)
theta=A*180/PI-atan(A)-THETA_AT_RP+90+90/tooth_number-TOOTH_HELIX/2
z=FACE_WIDTH/2
A=ROLL_ANGLE*t
r=BASE_RAD*sqrt(1+A^2)
theta=A*180/PI-atan(A)-THETA_AT_RP+90+90/tooth_number+TOOTH_HELIX/2
z=-FACE_WIDTH/2
欢迎光临 iCAx开思网 (https://www.icax.org/) | Powered by Discuz! X3.3 |