1. 首页
  2. 文档大全

哈工大机械原理大作业——凸轮——9号

上传者:2****5 2022-07-21 22:18:14上传 DOC文件 765KB
哈工大机械原理大作业——凸轮——9号_第1页 哈工大机械原理大作业——凸轮——9号_第2页 哈工大机械原理大作业——凸轮——9号_第3页

《哈工大机械原理大作业——凸轮——9号》由会员分享,可在线阅读,更多相关《哈工大机械原理大作业——凸轮——9号(12页珍藏版)》请在文档大全上搜索。

1、凸轮机构运动分析 班 级: 设 计 者: 学 号: 指导教师: 设计时间: 3、 源代码Public r0, e, h, f, ff, w As DoublePublic f0, fs, f01, fs1 As DoublePublic s, v, a, x, y, x1, y1, q1, q2, rr As DoublePublic pi, pa, T, s0, i As DoublePublic dsdf, dxdf, dydf As DoublePrivate Sub pushcos()s = h / 2 * (1 - Cos(pi / f0 * f)v = pi * h * w / 2

2、 / f0 * Sin(pi / f0 * f)a = pi 2 * h * w 2 / 2 / f0 2 * Cos(pi / f0 * f)dsdf = h / 2 * Sin(pi / f0 * f) * pi / f0End SubPrivate Sub backsin()T = f - (f0 + fs)s = h * (1 - T / f01 + Sin(2 * pi / f01 * T) / 2 / pi)v = -h * w / f01 * (1 - Cos(2 * pi / f01 * T)a = -2 * pi * h * w 2 / f01 2 * Sin(2 * pi

3、/ f01 * T)dsdf = h * (-1 / f01 + Cos(2 * pi / f01 * T) / f01)End SubPrivate Sub pushstay()s = hv = 0a = 0dsdf = 0End SubPrivate Sub backstay()s = 0v = 0a = 0dsdf = 0End SubPrivate Sub pushaa()End SubPrivate Sub backcos()End SubPrivate Sub Command1_Click()Picture1.ClsPicture1.Scale (-30, 100)-(390, -

4、20)Picture1.Line (-30, 0)-(390, 0)Picture1.Line (0, 390)-(0, -20) For i = 0 To 360 Step 30Picture1.Line (i, 2)-(i, 0)Picture1.CurrentX = i - 10: Picture1.CurrentY = 0Picture1.Print iNext iFor i = 10 To 100 Step 10Picture1.Line (0, i)-(5, i)Picture1.CurrentX = -30: Picture1.CurrentY = i + 2Picture1.P

5、rint iNext i For ff = 0 To 360 Step 0.1f = ff * pas0 = Sqr(r0 2 - e 2)If f < f0 ThenCall pushcosElseIf f >= f0 And f < fs + f0 ThenCall pushstayElseIf f >= fs + f0 And f < fs + f0 + f01 ThenCall backsinElseIf f >= fs + f0 + f01 And f <= 2 * pi ThenCall backstayEnd IfPicture1.PSe

6、t (ff, s)Next ffEnd SubPrivate Sub Command2_Click()Picture1.ClsPicture1.Scale (-30, 150)-(390, -150)Picture1.Line (-30, 0)-(390, 0)Picture1.Line (0, 390)-(0, -150)For i = 0 To 360 Step 30Picture1.Line (i, 0.5)-(i, 0)Picture1.CurrentX = i - 10: Picture1.CurrentY = 0Picture1.Print iNext iFor i = -150

7、To 150 Step 10Picture1.Line (0, i)-(5, i)Picture1.CurrentX = -20: Picture1.CurrentY = i + 3Picture1.Print iNext i For ff = 0 To 360 Step 0.1f = ff * paIf f < f0 ThenCall pushcosElseIf f >= f0 And f < fs + f0 ThenCall pushstayElseIf f >= fs + f0 And f < fs + f0 + f01 ThenCall backsinEl

8、seIf f >= fs + f0 + f01 And f <= 360 ThenCall backstayEnd IfPicture1.PSet (ff, v)Next ffEnd SubPrivate Sub Command3_Click()Picture1.ClsPicture1.Scale (-30, 300)-(390, -300)Picture1.Line (-30, 0)-(390, 0)Picture1.Line (0, 390)-(0, -300) For i = 0 To 360 Step 30Picture1.Line (i, 0.25)-(i, 0)Pict

9、ure1.CurrentX = i - 10: Picture1.CurrentY = 0Picture1.Print iNext iFor i = -300 To 300 Step 20Picture1.Line (0, i)-(5, i)Picture1.CurrentX = -20: Picture1.CurrentY = i + 6Picture1.Print iNext i For ff = 0 To 360 Step 0.1f = ff * paIf f < f0 ThenCall pushcosElseIf f >= f0 And f < fs + f0 The


文档来源:https://www.renrendoc.com/paper/212724244.html

文档标签:

下载地址