- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
武科大汽车设计上机钢板弹簧
程序:
#include stdio.h
#include math.h
float aw=500,a=0.92,s=70,E=2.1e5;
float c,k,R0,Fw,fc,fa,H0,L;
float L1[20],h1[20],R[20];
int n,b;
FILE *save;//
int radius()
{ float H[20],a0[20],W[20],sum=0;
int i,xx;
printf(Please input a0[i]=(input n numbers):\n);
fprintf(save,please input a0[i]=(input n numbers):\n);//
for(i=1;in+1;i++)
{ scanf(%f,a0[i]);
W[i]=(b*h1[i]*h1[i])/6;
fprintf(save,a0[%d]=%f\n,i,a0[i]); }
for(i=1;in+1;i++)
{ R[i]=R0/(1+(2*a0[i]*R0)/(E*h1[i]));
H[i]=(L1[i]*L1[i])/(8*R[i]);
sum+=(a0[i]*W[i]); }
for(i=1;in+1;i++)
{printf(The radius of the spring R[%d] is %f and the hight of the arc H[%d] is %f\n,i,R[i],i,H[i]);
fprintf(save,The radius of the spring R[%d] is %f and the hight of the arc H[%d] is %f\n,i,R[i],i,H[i]);}
if((sum-50)(sum50))
{printf(a0[i] is suitable!\n);
fprintf(save,a0[i] is suitable!\n); //
xx=1; }
else
{printf(a0[i] is not appropriate,select a0[i] again\n);
fprintf(save,a0[i] is not appropriate,select a0[i] again\n); //
xx=0;}
return(xx);}
int check2()
{ float sum1=0,sum2=0,H1,R01;
int i,yy;
for(i=1;in+1;i++)
{sum1+=(L1[i]/R[i]);
sum2+=L1[i];}
R01=sum2/sum1;
H1=(L*L)/(8*R01);
printf(R01=%f,The hight of the spring in total H1 is %f\n,R01,H1);
fprintf(save,R01=%f,The hight of the spring in total H1 is %f\n,R01,H1);//
if(fabs(H0-H1)50)
{printf(a0[i] is suitable!\n);
fprintf(save,a0[i] is suitable!\n); //
yy=1;
getchar();}
else
{printf(a0[i] is not appropriate, select a0[i] again\n);
fprintf(save,a0[i] is not appropriate, select a0[i] again\n); //
yy=0;
getchar();}
return(yy);}
void length1()
{ float lb;
printf(Please input the axle distance, L\n);
printf(lb can be 2000~2200 ,input lb=);
scanf(%f,lb);
L=lb/2;
printf(L=%f\n,L);
fprintf(save,L=%f\n,L); }
void section3()
{ float dr,xt,J0,J01,W0,hp,b1[5];
int flap,h,i,n1,n0;
printf(Please input flap for confirm the
您可能关注的文档
最近下载
- 浅表淋巴结结核的诊断与治疗专家共识.pptx VIP
- 2025届山东省名校考试联盟高三下学期4月模拟考试生物试题(原卷版+解析版).docx VIP
- 汉语言期末考试题及答案.doc VIP
- 《老年人能力评估室建设规范》.docx VIP
- 江苏省苏州市吴中吴江相城区2021-2022学年七年级上学期期末学业质量调研英语试卷(Word版含答案).doc VIP
- 新淘-消费者岗前新人课程通关大考考试题库.pdf VIP
- 抖音电商茶叶品类店铺商家多场景直播培训教程直播营销策划方案.pptx
- 有限空间作业安全培训考试题有答案.docx
- 巨野青年路南拆迁规划方案.pptx VIP
- 盘扣式落地式卸料平台专项施工方案新版.docx VIP
原创力文档


文档评论(0)