| 查看: 1191 | 回复: 0 | |||
[交流]
fluent出现错误Error:received a fatal signal(segmentation fault)
|
|
以下是我的程序,求助各位。谢谢 #include"udf.h" #include"stdio.h" #include"mem.h" #include"math.h" #include"dynamesh_tools.h" FILE *fp; real x_cg[ND_ND]; int i; face_t f; Thread *t; DEFINE_CG_MOTION(value,dt,vel,omega,time,dtime) { Thread *thread; Domain *domain; real force[3]={0,0,0}; real moment[3]={0,0,0}; vel[0]=0; for(i=0;i<ND_ND;i++) { x_cg=DT_CG(dt); } domain=Get_Domain(1); thread=Lookup_Thread(domain,5); fp=fopen("date.txt","a" ;Compute_Force_And_Moment(domain,thread,x_cg,force,moment,TRUE); fprintf(fp,"time=%f, force[0]=%f, force[1]=%f\n", time,force[0],force[1]); Message ("time=%f, force[0]=%f, force[1]=%f\n", time,force[0],force[1]); fclose(fp); } DEFINE_PROFILE(inlet_x_velocity,t,position) { face_t f1; begin_f_loop(f1,t) { F_PROFILE(f1,t,i)=0.5; } end_f_loop(f,t) } /*向右为正*/ |
» 猜你喜欢
【模拟经典书】《Handbook of Materials Modeling》2020年 第2版
已经有3人回复
大连理工大学机械工程学院阚子云副教授 2026年秋季博士研究生招生
已经有1人回复
金属材料论文润色/翻译怎么收费?
已经有257人回复
国自然申报交流祈福
已经有99人回复
哈尔滨理工大学材料加工工程专业26秋入学博士尚有少量招生名额
已经有0人回复
《Fluent & COMSOL 仿真收敛性排查手册(附论文写作逻辑)》
已经有1人回复
齿轮齿条啮合应力分析与模态分析
已经有1人回复












;
回复此楼
10