哈尔滨工业大学上机电算设计说明书1HHaarrbbiinnIInnssttiittuutteeooffTTeecchhnnoollooggyy上上机机电电算算说说明明书书课程名称:机械设计电算题目:V带传动电算院系:机电学院班级:1208108设计者:贾俊伟学号:1120810814指导教师:吴伟国设计时间:2014.11.11哈尔滨工业大学哈尔滨工业大学上机电算设计说明书2目录一、普通V带传动的内容和任务....................................1二、变量标识符..................................................1三、程序框图....................................................2四、V带设计C程序..............................................3五、程序运行截图...............................................10六、设计总结...................................................13七、参考文献...................................................13哈尔滨工业大学上机电算设计说明书1一、普通V带传动的内容和任务给定原始数据:传递的功率P,小带轮转速n1传动比i及工作条件设计内容:带型号,基准长度Ld,根数Z,传动中心距a,带轮基准直径dd1、dd2,带轮轮缘宽度B,初拉力F0和压轴力Q1、编制V带传动设计程序框图;2、编制V带传动设计源程序;3、按习题或作业中数据运行程序,验证程序的使用性。二、变量标识符表1变量标识符表序号名称代号标识符单位1名义功率PPkW2设计功率PdPdkW3工作情况系数KAKA4小带轮转速n1n1r/min5工作机载荷特性GZJ6原动机类型YDJ7带型号Z、A—ETYPE8小带轮基准直径dd1dd1mm9大带轮基准直径dd2dd2mm10最小带轮直径ddminddMINmm11带速Vm/s12最大带速maxVMAXm/s13中心距aamm14基准长度LdLdmm15小带轮包角1ALF1度16V带根数ZZ17额定功率P0P0kW18功率增量0PDIFP0kW19弯曲影响系数KbKb20传动比系数KiKi21长度系数KLKL22包角系数KKALF23初拉力F0F0N24压轴力QQN25圆周率PAI哈尔滨工业大学上机电算设计说明书2三、程序框图N开始输入P,n1,i输入各原始数据查表求传动比系数Ki查KA,计算Pd,选型查表求KA,计算Pd输入带型号输出该型号带轮系列直径,选择输入小带轮基准直径dd1V=10006011ndd根据型号确定最大带速Vmax,额定功率P0中系数K1,K2,K3,弯曲影响系数KbVVmax?Ydd2=1ddi查标准带轮直径表确定dd2a1=0.7(dd1+dd2),a2=2(dd1+dd2)输入初估中心距a0,计算Ld0A减小直径BB查标准长度确定Ld,同时查取KL,计算实际中心距aA计算小带轮包角1查表确定包角系数K计算Po,PoKKPoPoPdZLZ10?计算Fo,Q,B(取整)输出结果计算下一型号带?结束计算下一种带轮直径?YYYNNN图1V带设计程序框图哈尔滨工业大学上机电算设计说明书3四、V带设计c程序#includestdio.h#includemath.h#definePAI3.1415926main(){inti1,j1,i2,i3,i4,i5,i6,l1,l2,l3,xz1,xz2,counter=0;intn1,YDJ,TYPE,GZJ,TIME,GZHJ,dd1,dd2,Ld,Z;intDDMIN[6]={50,75,125,200,355,500};intJZDC[30];intGS[30];intXDd[30];intDDd[30];intVMAX[6]={25,25,25,25,30,30};intDD[6][19]={{50,63,71,75,80,90,100,112,125,132,140,150,160,180,200,224,250,280,315},{75,80,85,90,100,106,112,118,125,132,140,150,160,180,200,224,250,280,315},{125,132,140,150,160,170,180,200,224,250,280,315,355,400,450,500,500,500,500},{200,212,224,236,250,265,280,315,355,400,450,500,500,500,500,500,500,500,500},{355,375,400,425,450,475,500,530,600,600,600,600,600,600,600,600,600,600,600},{500,530,560,600,630,710,710,710,710,710,710,710,710,710,710,710,710,710,710}};intLD[24]={400,450,500,560,630,710,800,900,1000,1120,1250,1400,1600,1800,2000,2240,2500,2800,3450,3550,4000,4500,5000};floatP,Pd,KA,KL,V,a0,a,Ld0,ALF1,P0,DIFP0,Ki,Kb,KALF,F0,Q,B,i,dd2x,amax,amin,z0;floate[6]={12,15,19,25.5,37,44.5};floatf[6]={8,10,12.5,17,23,29};floatKB[6]={0.0002925,0.0007725,0.0019875,0.005625,0.01995,0.03735};floatKL0[24][6]={{0.87,-10,-10,-10,-10,-10},{0.89,-10,-10,-10,-10,-10},{0.91,-10,-10,-10,-10,-10},{0.94,-10,-10,-10,-10,-10},{0.96,0.81,-10,-10,-10,-10},{0.99,0.83,-10,-10,-10,-10},{1.00,0.85,0.82,-10,-10,-10},{1.03,0.87,0.84,0.83,-10,-10},{1.06,0.89,0.86,0.86,0.83,-10},{1.08,0.91,0.88,0.88,0.86,-10},{1.10,0.93,0.90,0.91,0.89,-10},{1.14,0.96,0.92,0.93,0.91,-10},{1.16,0.99,0.95,0.95,0.93,-10},{1.18,1.01,0.98,0.97,0.96,-10},{20,1.03,1.00,0.99,0.98,-10},{20,1.06,1.03,1.02,1.00,-10},{20,1.09,1.05,1.04,1.03,-10},{20,1.11,1.07,1.07,1.06,-10},哈尔滨工业大学上机电算设计说明书4{20,1.13,1.09,1.09,1.08,-10},{20,1.17,1.13,1.12,1.11,-10},{20,1.19,1.15,1.15,1.14,-10},{20,20,1.18,1.18,1.17,-10},{20,20,20,1.21,1.20,-10}};floatK1[6]={0.246,0.449,0.794,1.48,3.15,4.57};floatK2[6]={7.44,19.02,50.6,143.2,507.3,951.5};floatK3[6]={0.441,0.765,1.31,2.34,4.77,7.06};floatM[6]={0.06,0.1,0.17,0.3,0.6,0.9};floatKA1[4][3]={{1.0,1.1,1.2},{1.1,1.2,1.3},{1.2,1.3,1.4},{1.3,1.4,1.5}};floatKA2[4][3]={{1.1,1.2,1.3},{1.2,1.3,1.4},{1.4,1.5,1.6},{1.5,1.6,1.8}};floatKALFS[14]={1.2,1.15,1.1,1.05,1,0.98,0.95,0.92,0.89,0.86,0.82,0.78,0.73,0.68};floatalf[14]={220,210,200,190,180,170,160,150,140,130,120,110,100,90};floati0[10]={1,1.02,1.05,1.09,1.13,1.19,1.25,1.35,1.52,2};floatKI[9]={1,1.0136,1.0276,1.0419,1.0567,1.0719,1.0875,1.1036,1.1202};floatZXJ[30];floatCLL[30];floatYZL[30];floatLYKD[30];chartype[]={'Z','A','B','C','D','E'};charDXH[30];printf(-------------------------------------------------------------------------\n);printf(WelcometousetheVbeltdesignprogram\n);printf(\n);printf(\n);printf(\n);printf(\n);printf(Thedesigner:(贾俊伟1120810814)\n);printf(-------------------------------------------------------------------------\n);printf(\n);printf(输入基本数据:\n);printf(\n);printf(1、传动的名义功率P(单位kw):\n);scanf(%f,&P);printf(\n);printf(2、小带轮转速n1(单位r/min):\n);scanf(%d,&n1);printf(\n);哈尔滨工业大学上机电算设计说明书5printf(3、第一级传动比i:\n);scanf(%f,&i);printf(\n);printf(4、原动机类型:\n);printf(0:I类-普通鼠笼式电机,同步电机,直流电动机(并激),600r/min内燃机。\n);printf(1:II类-交流电动机(双鼠笼式,滑环式,单项,大转差率),直流电动机(复激、串激),单缸发动机,n600r/min内燃机。\n);scanf(%d,&YDJ);printf(\n);printf(5、工作机载荷情况:\n);printf(0:载荷平稳。\n);printf(1:载荷变动小。\n);printf(2:载荷变动大。\n);printf(3:载荷变动很大。\n);scanf(%d,&GZJ);printf(\n);printf(6、输入工作时间:\n);printf(0:10h(一班制)\n);printf(1:10h~16h(两班制)\n);printf(2:16h(三班制)\n);scanf(%d,&TIME);printf(\n);printf(7、工作机工作环境:\n);printf(0:室外有尘、不需要反复起动\n);printf(1:室内清洁、反复起动、正反转频繁等\n);scanf(%d,&GZHJ);printf(\n);printf(\n);if(YDJ==0){if(GZHJ==1