c语言凸轮轮廓曲线设计程序,凸轮理论轮廓曲线设计c语言程序.doc

凸轮理论轮廓曲线设计c语言程序.doc

/习题 4-1 凸轮轮廓曲线绘制程序/includeincludedefine PI 3.1415926void maindouble e10.0,ro40.0,rt10.0,h20.0,phi1150.0,phis30.0,phi_1120.0,phi_s60;/*各字母含义e 偏距,基圆半径 ro,滚子半径 rt,行程 h,推程运动角 phi1,远休止角 phis,回程运动角 phi_1,近休止角 phi_s*/double s,alp73,x73,y73,x1,y1,xr73,yr73; /*分别代表从动件位移,压力角,理论轮廓曲线点的位置 x,y,x,y 对运动角的微分,实际轮廓曲线的位置 x,y*/double ic,ic1,ic2,ic3,ic4,so,s1,cop,sip,phi,gam,bel,del5.0,q,t; /*定义变量*/int i;gamphi1phis;belphi1phisphi_1;icint360.0/del;ic1intphi1/del;ic2intgam/del;ic3intphi1phisphi_1/2.0/del;ic4intbel/del;sosqrtro*ro-e*e; printf“n No THETA Theoretical contour curve. Actual contour curve of cam. pressure angle n“; /*在屏幕上输出文件头*/printf“ deg x/mm y/mm X/mm Y/mm radn“;fori0;iic;i /*每隔五度建立循环*/phii*del*PI/180.0; /*将角度化为幅度*/copcosphi;sipsinphi;ifiic1 /*推程运动判断*/sh/2.0*1.0-cos180.0*phi/phi1;s1h*PI*sin180.0*phi/phi1/2.0/phi1; x1-sso*sips1*cop-e*cop; y1sso*cops1*sip-e*sip;else ifiic2 /*远休止角*/sh;s10;x1-sso*sip-e*cop;y1sos*cop-e*sip;else ifiic3 /*回程等加速运动判断*/sh-2.0*h*phi-gam*phi-gam/phi_1/phi_1;s1-4.0*h*phi-gam/phi_1/phi_1;x1s1*cop-sso*sip-e*cop;y1s1*sipsos*cop-e*sip;else ifiic4 /*回程等减速运动判断*/s2.0*h*bel-phi*bel-phi/phi_1/phi_1;s1-4.0*h*bel-phi/phi_1/phi_1;x1s1*cop-sos*sip-e*cop;y1s1*sipsos*cop-e*sip;else /*近休止角*/s0; s10;x1-sso*sip-e*cop;y1so*cop-e*sip;tfabss1-e;alpiatan2t,sso; /*计算压力角*/qrt/sqrtx1*x1y1*y1;xisso*cop-e*sip; /*理论轮廓曲线位置*/yisso*sipe*cop;xrixi-q*y1; /*实际轮廓曲线位置*/yriyiq*x1;phii*del;printf“n2d12.3f12.3f12.3f12.3f12.3f12.3f“,i1,phi,xi,yi,xri,yri,alpi;凸轮理论轮廓曲线和实际轮廓曲线计算数据(以教材东南大学机械学科组郑文伟,吴克坚主编机械原理 (第七版)p521 页题 4-1 为例) No THETA Theoretical contour curve. Actual contour curve of cam. pressure angle deg x/mm y/mm X/mm Y/mm rad 1 0.000 38.730 10.000 29.047 7.500 0.2532 5.000 37.765 13.342 28.335 10.016 0.2523 10.000 36.620 16.611 27.509 12.490 0.2504 15.000 35.295 19.810 26.567 14.929 0.2485 20.000 33.786 22.939 25.502 17.339 0.2456 25.000 32.089 25.997 24.304 19.721 0.2427 30.000 30.195 28.980 22.960 22.076 0.2388 35.000 28.094 31.879 21.458 24.398 0.2349 40.000 25.776 34.682 19.782 26.677 0.23010 45.000 23.230 37.372 17.919 28.899 0.22611 50.000 20.449 39.927 15.855 31.044 0.22112 55.000 17.426 42.321 13.581 33.090 0.21613 60.000 14.160 44.525 11.089 35.008 0.21214 65.000 10.652 46.506 8.379 36.768 0.20715 70.000 6.912 48.229 5.452 38.336 0.20316 75.000 2.953 49.658 2.318 39.678 0.19817 80.000 -1.205 50.755 -1.008 40.757 0.19418 85.000 -5.534 51.487 -4.504 41.540 0.19019 90.000 -10.000 51.820 -8.142 41.994 0.18720 95.000 -14.564 51.725 -11.887 42.090 0.18421 100.000 -19.178 51.177 -15.700 41.802 0.18122 105.000 -23.793 50.159 -19.534 41.111 0.17823 110.000 -28.352 48.659 -23.341 40.005 0.17624 115.000 -32.798 46.673 -27.068 38.477 0.17425 120.000 -37.070 44.208 -30.661 36.532 0.17226 125.000 -41.109 41.275 -34.065 34.178 0.17127 130.000 -44.856 37.900 -37.226 31.435 0.17028 135.000 -48.253 34.111 -40.094 28.330 0.16929 140.000 -51.250 29.950 -42.620 24.898 0.16930 145.000 -53.800 25.463 -44.762 21.182 0.16831 150.000 -55.862 20.705 -46.485 17.229 0.16932 155.000 -57.453 15.757 -47.810 13.112 0.16933 160.000 -58.608 10.690 -48.770 8.896 0.16934 165.000 -59.317 5.541 -49.360 4.611 0.16935 170.000 -59.574 0.350 -49.574 0.291 0.16936 175.000 -59.378 -4.843 -49.411 -4.030 0.16937 180.000 -58.730 -10.000 -48.872 -8.321 0.16938 185.000 -57.635 -15.081 -47.960 -12.549 0.16939 190.000 -56.072 -20.041 -46.656 -16.673 0.16940 195.000 -54.109 -24.851 -45.023 -20.675 0.16941 200.000 -51.736 -29.472 -43.049 -24.520 0.16942 205.000 -48.969 -33.868 -40.746 -28.177 0.16943 210.000 -45.829 -38.007 -38.134 -31.620 0.16944 215.000 -42.341 -41.855 -35.232 -34.823 0.16945 220.000 -38.530 -45.385 -32.061 -37.759 0.16946 225.000 -34.427 -48.569 -28.647 -40.409 0.16947 230.000 -30.062 -51.383 -25.015 -42.750 0.16948 235.000 -25.468 -53.806 -21.193 -44.766 0.16949 240.000 -20.680 -55.819 -17.210 -46.441 0.16950 245.000 -7.306 -39.330 -5.481 -29.498 0.25351 250.000 -3.867 -39.862 -2.896 -29.909 0.25252 255.000 -0.379 -40.051 -0.278 -30.052 0.25253 260.000 3.113 -39.934 2.342 -29.964 0.25254 265.000 6.581 -39.513 4.944 -29.648 0.25255 270.000 10.000 -38.792 7.510 -29.107 0.25256 275.000 13.343 -37.775 10.019 -28.343 0.25257 280.000 16.585 -36.470 12.451 -27.365 0.25258 285.000 19.701 -34.888 14.790 -26.177 0.25259 290.000 22.668 -33.041 17.016 -24.791 0.25260 295.000 25.462 -30.942 19.113 -23.216 0.25261 300.000 28.063 -28.607 21.065 -21.463 0.25262 305.000 30.406 -25.990 22.805 -19.492 0.25363 310.000 32.555 -23.241 24.417 -17.431 0.25364 315.000 34.457 -20.315 25.843 -15.236 0.25365 320.000 36.097 -17.235 27.072 -12.926 0.25366 325.000 37.461 -14.023 28.096 -10.517 0.25367 330.000 38.541 -10.705 28.906 -8.028 0.25368 335.000 39.327 -7.305 29.495 -5.479 0.25369 340.000 39.814 -3.849 29.861 -2.887 0.25370 345.000 39.998 -0.365 29.999 -0.274 0.25371 350.000 39.878 3.123 29.908 2.342 0.25372 355.000 39.454 6.586 29.591 4.940 0.25373 360.000 38.730 10.000 29.047 7.500 0.253

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值