| 查看: 1424 | 回复: 0 | ||
weipei0529木虫 (正式写手)
|
[求助]
udf编译提示语法错误
|
|
最近把UDF导入FLUENT时,老提示语法错误,各位姐姐哥哥们帮小弟看看程序吧: #include "stdio.h" #include "udf.h" #define Ac 2.e-7 #define m 0.5 #define fc 2500. #define fm 833. #fefine t0 0.08 DEFINE_CG_MOTION(droplet,dt,cg_vel,cg_omega,time,dtime) { Thread *t; face_t f; real velo,loc; /*reset velocities*/ NV_S(cg_vel,=,0.0); NV_S(cg_omega,=,0.0); if(!Data_Valid_P()) return; /*get the thread Pointer for which this motion is defined*/ t = DT_THREAD(dt); /*compute velocity and location of vibration*/ velo=Ac*2*M_PI*(m*fm*sin(2*M_PI*fc*(time-t0))*cos(2*M_PI*fm*(time-t0))+m*fc*cos(2*M_PI*fc*(time-t0))*sin(2*M_PI*fm*(time-t0))+fc*cos(2*M_PI*fc*(time-t0))); loc=Ac*(1+m*sin(2*M_PI*fm*(time-t0)))*sin(2*M_PI*fc*(time-t0)); Message("\nUDF droplet:time=%f,x_vel=%10.8f,loc(m)=%10.8f\n",time,velo,loc); /*set y_component of velocity*/ cg_vel[0]=velo; } 编译时,提示错误如下: c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2143: 语法错误 : 缺少“{”(在“:”的前面) c:\fluent.inc\fluent6.3.26\src\config.h(119) : error C2059: 语法错误:“:” C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2061: 语法错误: 标识符“CX_DLL_GetProc” C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: 语法错误:“;” C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: 语法错误:“类型” ..\..\src\RKEOS.c(31) : warning C4005: “T_REF”: 宏重定义 c:\fluent.inc\fluent6.3.26\src\prop.h(116) : 参见“T_REF”的前一个定义 ..\..\src\RKEOS.c(80) : warning C4133: “=”: 从“void (*)(char *,...)”到“int (*)(char *,...)”的类型不兼容 ..\..\src\RKEOS.c(372) : warning C4028: 形参 3 与声明不同 |
» 猜你喜欢
今年E04面上
已经有20人回复
网络举报学术不端成为了男女之间情杀的手段了,真荒唐。。。
已经有3人回复
大龄残疾硕士的一点执念
已经有20人回复
2026年面上项目中了,2A+B, 会评顺利通过
已经有12人回复
Suzuki偶联中硼酸酯原料掉下的硼酸酯是否可以自身偶联,生成B2Pin2杂质
已经有3人回复
刑法学论文投稿求助
已经有5人回复
Journal of Environmental Chemical Engineering
已经有3人回复
最后一年,祈求好运
已经有3人回复
风电环氧领域
已经有3人回复
找到一些相关的精华帖子,希望有用哦~
fluent编译错误
已经有5人回复
UDF并行编译求助-附程序段
已经有3人回复
fluent udf 编译问题 DEFINE_TRANSIENT_PROFILE(rotation_rate_ramp,time)
已经有8人回复
UDF编译问题!
已经有8人回复
fluent中UDF编译的问题!
已经有6人回复
udf的编译出现的问题 该怎么修改
已经有12人回复
fluent 加载udf出现这样错误 怎么办
已经有14人回复
FLUENT UDF 设置问题
已经有3人回复
UDF编译时出现语法错误
已经有13人回复
ANSYS FLUENT 14 UDF 编译错误 求助
已经有15人回复
udf编译出错!急
已经有10人回复
fluent 在udf编译时出'constant'错!
已经有6人回复
求助:UDF模型的编译问题
已经有15人回复
UDF编译过程出现问题
已经有3人回复
【求助】这句话有语法错误码
已经有17人回复
科研从小木虫开始,人人为我,我为人人











回复此楼
点击这里搜索更多相关资源