您好,欢迎访问三七文档
当前位置:首页 > 机械/制造/汽车 > 机械/模具设计 > 牛头刨床机构的设计及运动分析
机械原理课程设计编写说明书设计题目:牛头刨床机构的设计及运动分析(01)目录1设计任务及要求……………………………………………2数学模型的建立……………………………………………3程序框图……………………………………………………4程序清单及运行结果………………………………………5设计总结……………………………………………………6参考文献……………………………………………………一、设计任务及要求已知:曲柄每分钟转数n2,各构件尺寸及重心位置,且刨头导路X-X位于导杆端点B所作圆弧的平分线上,数据见下表:设计内容导杆机构的运动分析单位r/minmm符号n2lo2o4lo2Alo4BlBClo4s4数据60380110540135270要求:(1)作机构的运动简图(2)用C语言编写主程序调用子程序,对机构进行运动分析,动态显示,并打印程序及运算结果。(3)画出导轨4的角位移Ψ,角速度Ψ’,角加速度Ψ”。二、数学模型ABCXabdZ2Z1Z3βαYβ如图四个向量组成封闭四边形,于是有0321ZZZ按复数式可以写成a(cosα+isinα)-b(cosβ+isinβ)+d(cosθ3+isinθ3)=0(1)由于θ3=90º,上式可化简为a(cosα+isinα)-b(cosβ+isinβ)+id=0(2)根据(2)式中实部、虚部分别相等得acosα-bcosβ=0(3)asinα-bsinβ+d=0(4)(3)(4)联立解得β=arctanacosaasinad(5)b=2adsinad2a2(6)将(2)对时间求一阶导数得ω2=β’=baω1cos(α-β)(7)υc=b’=-aω1sin(α-β)(8)将(2)对时间求二阶导数得(9)ε3=β”=b1[aε1cos(α-β)-aω21sin(α-β)-2υcω2]ac=b”=-aε1sin(α-β)-aω21cos(α-β)+bω22(10)ac即滑块沿杆方向的加速度,通常曲柄可近似看作均角速转动,则ε3=0。三、程序框图输入a,d,ω1,输入N作循环,For(i=0;i=N;i++)依次计算β,b,ω2,υc,ε2,ac将计算的β,b,ω2,υc,ε2,ac结果分别存入数组或文件中按格式输出所有计算结果初始化图形系统绘制直角坐标系直角坐标系下分别绘出角位移、角速度、角加速度图象四、程序清单及运算结果#includemath.h#includeconio.h#includestdio.h#definePI3.1415926#defineM0.017453/*M=PI/180*/main(){intP1,i=0,j=0,P_1[71];floatP_3[71],P_31[71],P_311[71];floatP3,P31,P311,w3;floats3,s31,s311;FILE*f1;if((f1=fopen(fdata.txt,w))==NULL){printf(fdata.txtfilecannotopen!\n);exit(0);}clrscr();printf(jiaoduweiyisudujiaojiasudu\n);for(P1=0;P1360;P1+=5){i++;if(i%12==0){getch();printf(jiaoduweiyisudujiaojiasudu\n);}if(P1=0&&P190||P1270&&P1=360){P3=atan((380+110*sin(P1*M))/(110*cos(P1*M)));P3/=M;}elseif(P1==90||P1==270){P3=90;}elseif(P190&&P1270){P3=PI+atan((380+110*sin(P1*M))/(110*cos(P1*M)));P3/=M;}if(P3!=90&&P3!=270)s3=110*cos(P1*M)/cos(P3*M);elseif(P3==90)s3=440;elses3=240;s31=-110*6.3*sin((P1-P3)*M);P31=110*6.3*cos((P1-P3)*M)/s3;w3=P31;P311=(6.3*6.3*110*sin((P3-P1)*M))-2*w3*s31;P_1[j]=P1;P_3[j]=P3;P_31[j]=P31;P_311[j]=P311;printf(%d%6.4f%6.4f%6.4f\n,P_1[j],P_3[j],P_31[j],P_311[j]);fprintf(f1,%d%6.4f%6.4f%6.4f\n,P_1[j],P_3[j],P_31[j],P_311[j]);}j=j+1;fclose(f1);}(1)程序运行结果Jiaoduweiyisudujiaojiasudu073.85690.48713545.2410574.29120.60563298.72361074.81520.71313056.40531575.42050.81052819.88062076.09930.89842590.12602576.84430.97752367.65503077.64871.04842152.62303578.50641.11161944.92714079.41141.16771744.27174580.35821.21721550.22415081.34171.26031362.25946083.40001.32931002.15456584.46581.3557828.71047085.55061.3771658.76707586.65031.3934491.62808087.76121.4051326.59788588.87931.4120162.97249090.00001.57500.00009591.12301.4120-162.873710092.24121.4051-326.499110593.35201.3934-491.529011094.45181.3771-658.6653Jiaoduweiyisudujiaojiasudu11595.53651.3558-828.607412096.60241.3294-1002.049812597.64521.2977-1179.674213098.66071.2604-1362.147013599.64431.2172-1550.1101140100.59111.1678-1744.1528145101.49611.1117-1944.8036150102.35381.0484-2152.4961155103.15830.9776-2367.5242160103.90330.8985-2589.9907165104.58210.8106-2819.7402170105.18750.7132-3056.2615180106.14590.4872-3545.0913185106.48170.3571-3793.4160190106.70950.2149-4040.1492195106.81950.0600-4280.6279200106.8013-0.1081-4508.6533205106.6445-0.2892-4716.2061210106.3388-0.4832-4893.1987215105.8743-0.6891-5027.3159220105.2423-0.9052-5104.0347225104.4354-1.1291-5106.9404230103.4489-1.3572-5018.4829Jiaoduweiyisudujiaojiasudu235102.2813-1.5845-4821.2866240100.9355-1.8052-4500.087924599.4196-2.0119-4044.247125097.7478-2.1967-3450.513925595.9407-2.35162725.578426094.0251-2.4687-1887.650426592.0338-2.5418-966.416327090.0000-1.5750-0.344827587.9729-2.5419964.695928085.9814-2.46891886.048128584.0657-2.35182724.154529082.2584-2.19703449.318826592.0338-2.5418-966.416327090.0000-1.5750-0.344827587.9729-2.5419964.695928085.9814-2.46891886.048128584.0657-2.35182724.154529082.2584-2.19703449.3188Jiaoduweiyisudujiaojiasudu29580.5863-2.01224043.296930079.0701-1.80564499.388730577.7240-1.58504820.820831076.5561-1.35765018.230531575.5693-1.12965106.868232074.7621-0.90565104.111832574.1297-0.68955027.511733073.6649-0.48364893.484433573.3590-0.28964716.557134073.2019-0.10844509.050334573.18340.05974281.054235073.29320.21474040.5911Jiaoduweiyisudujiaojiasudu35573.52080.35693793.865②导杆3的角位移的,角速度,角加速度曲线图的设计程序#includemath.h#includegraphics.h#includestdio.h#definepi3.1415926main(){floatw1=2*pi*60/60,M1=110,M6=380;floatP3,P1,s3,w3,s31,s311;intgd=DETECT,gmode,i;initgraph(&gd,&gmode,);clrscr();for(P1=0;P1=2*pi;P1+=1.0/1000*pi){if(P1=0&&P1pi/2||P1pi*1.5&&P1=2*pi)P3=atan((M6+M1*sin(P1))/(M1*cos(P1)));elseif(P1==pi/2||P1==1.5*pi)P3=pi/2;elseP3=pi+atan((M6+M1*sin(P1))/(M1*cos(P1)));if(P1!=pi/2&&P1!=1.5*pi)s3=M1+M6;elses3=M6-M1;s31=-M1*w1*sin(P1-P3);w3=M1*w1*cos(P1-P3)/s3;s3=sqrt(M1*M1+M6*M6+2*M1*M6*sin(P1));putpixel(100+P1*180/pi,60+s3*sin(P3)/2.5,5);/*位移*/line(100,200,500,200);/*坐标系*/line(495,205,500,200);line(495,195,500,200);line(100,10,100,350);line(95,15,100,10);line(105,15,100,10);putpixel(100+P1*180/pi,188+M1*w1*cos(P1-P3)/s3*30,6);/*速度*/putpixel(100+P1*180/pi,200+(w1*w1*1*sin(P3-1)-2*w3*s31)/s3*6,4);/*加速度*/}outtextxy(400,120,v:sudu);outtextxy(220,230,s:weiyi);outtextxy(400,300,a:jiasudu);getch();}(2)程
本文标题:牛头刨床机构的设计及运动分析
链接地址:https://www.777doc.com/doc-2304911 .html