資源描述:
《機(jī)械原理大作業(yè)(二)-凸輪機(jī)構(gòu)設(shè)計(jì)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、機(jī)械原理大作業(yè)(二)凸輪機(jī)構(gòu)設(shè)計(jì)(題號(hào):1—B)班級(jí):05020402姓名:學(xué)號(hào):時(shí)間:2006/12/4一、題目及原始數(shù)據(jù):凸輪機(jī)構(gòu)的推桿在近休,推程,遠(yuǎn)休及回程段的凸輪轉(zhuǎn)角近休:0——45°推程:45°--210°遠(yuǎn)休:210°--260°回程:260°--360°偏置直動(dòng)滾子推桿盤行凸輪機(jī)構(gòu)已知參數(shù)基圓半徑r0=20mm偏距e=+10mm滾子半徑r1=14mm推桿行程h=30mm許用壓力角α1=30°α2=75°許用最小曲率半徑ρ=0.3*14mm二、推桿運(yùn)動(dòng)規(guī)律及凸輪輪廓曲線方程:推程:(等加速等減速運(yùn)動(dòng))加速期:s=2hδ2/δ02減速期:S=h-2h(δ-δ
2、0)2/δ02回程:(余弦加速度運(yùn)動(dòng))s=h[1+cos(πδ/δ0')]/2輪廓線方程:x=(s0+s)*sinδ+e*cosδ;y=(s0+s)*cosδ-e*sinδ;s0=sqrt(r*r-e*e);三、計(jì)算源程序:#include"stdio.h"#include"math.h"#definen120#definepi3.1415926#defineapi/180.0main(){intr0,r1,h,e,i;doubleangle0,angle1,angle2,angle3,angle4,angle,angle01,angle02,angle03,angle
3、1m,angle2m,angle3m,angle0m1,angle0m2,rm,r3,r4,r,s,s0,m,m1;floatr2,x11,y11,b;doublex,x1,x2,y,y1,y2,t,t0,t1,t2;r0=20;r1=14;h=30;e=10;r4=10000;angle1=45*a;angle2=165*a;angle3=50*a;angle4=100*a;angle01=30*a;angle02=75*a;r=1;rm=4.2;angle0m1=-1000;angle0m2=-1000;b=3.1415926*2/n;fp=fopen("zf.tx
4、t","w");for(i=0;iangle1)&&(angle<(angle1+angle2/2))){s=2*h*(angle-angle1)*(angle-angle1)/(angle2*angle2);m=4*h*(angle-angle1)/(angle2*angle2);m1=4*h/(angle2*angle2);}elseif((angle<=angle1+angle2)&&(angle>=(ang
5、le1+angle2/2))){s=h-2*h*(angle-angle1-angle2)*(angle-angle1-angle2)/(angle2*angle2);m=4*h*(angle-angle1-angle2)/(angle2*angle2);m1=-4*h/(angle2*angle2);}if(angle>(angle1+angle2)&&angle<=(angle1+angle2+angle3)){s=h;m=0;m1=0;}if(angle>(angle1+angle2+angle3)&&angle<=(angle1+angle2+angle3+an
6、gle4)){s=h*(1+cos(3.1415926*(angle-angle1-angle2-angle3)/angle4))/2;m=h*(1-3.1415926/angle4*sin(3.1415926*(angle-angle1-angle2-angle3)/angle4))/2;m1=h*(1-3.1415926/angle4*3.1415926/angle4*cos(3.1415926*(angle-angle1-angle2-angle3)/angle4))/2;}x=(s0+s)*sin(angle)+e*cos(angle);y=(s0+s)*cos
7、(angle)-e*sin(angle);x1=(m-e)*sin(angle)+(s0+s)*cos(angle);y1=(m-e)*cos(angle)-(s0+s)*sin(angle);x11=(m1-s0-s)*sin(angle)+(2*m-e)*cos(angle);y11=(m1-s0-s)*cos(angle)-(m1+m-e)*sin(angle);t0=sqrt(x1*x1+y1*y1);t1=x1/t0;t2=-y1/t0;x2=x-r1*t2;y2=y-r1*t1;fprintf(fp,"X=%8f,Y=%8f,