Private Sub Command1_Click()
'系数ZH的计算
StrenthResult.Show
pi = 3.141592654
afn1 = Val(Text1.Text) '分度圆法向压力角(角度)
bt1 = Val(Text2.Text) '分度圆螺旋角(角度)
z1 = Val(Text3.Text) '小齿轮齿数
z2 = Val(Text4.Text) '大齿轮齿数
mn = Val(Text5.Text) '端面模数
afn = afn1 * pi / 180 '分度圆法向压力角(弧度)
bt = bt1 * pi / 180 '分度圆螺旋角(弧度)
bbt = Cos(bt)
aft = Atn(Tan(afn) / bbt) '分度圆端面压力角
btb = Atn(Tan(bt) * Cos(aft)) '基圆螺旋角
a = mn * (z1 + z2) / (2 * bbt) '未变位时的中心距
yt = (z1 + z2) * (Cos(aft) / Cos(atp) - 1) / 2 '中心距变动系数yt
ap = mn * ((z1 + z2) / 2 + yt) / bbt '变位的中心距
atp = ArcCos((a * Cos(aft)) / ap) '端面啮合角αt`
'ZH = Sqr(2 * Cos(btb) * Cos(atp) / (Cos(aft)) ^ 2 * Sin(atp))
StrenthResult.Lable1.Caption = Format(aft, ".0000")
End Sub
'系数ZH的计算
StrenthResult.Show
pi = 3.141592654
afn1 = Val(Text1.Text) '分度圆法向压力角(角度)
bt1 = Val(Text2.Text) '分度圆螺旋角(角度)
z1 = Val(Text3.Text) '小齿轮齿数
z2 = Val(Text4.Text) '大齿轮齿数
mn = Val(Text5.Text) '端面模数
afn = afn1 * pi / 180 '分度圆法向压力角(弧度)
bt = bt1 * pi / 180 '分度圆螺旋角(弧度)
bbt = Cos(bt)
aft = Atn(Tan(afn) / bbt) '分度圆端面压力角
btb = Atn(Tan(bt) * Cos(aft)) '基圆螺旋角
a = mn * (z1 + z2) / (2 * bbt) '未变位时的中心距
yt = (z1 + z2) * (Cos(aft) / Cos(atp) - 1) / 2 '中心距变动系数yt
ap = mn * ((z1 + z2) / 2 + yt) / bbt '变位的中心距
atp = ArcCos((a * Cos(aft)) / ap) '端面啮合角αt`
'ZH = Sqr(2 * Cos(btb) * Cos(atp) / (Cos(aft)) ^ 2 * Sin(atp))
StrenthResult.Lable1.Caption = Format(aft, ".0000")
End Sub