| 查看: 3403 | 回复: 1 | ||
[求助]
UDF 编写 invalid type for integral binary expression: float ^ int. 已有1人参与
|
|
请问一下,UDF导入c文件后出现这个错误:line 12: invalid type for integral binary expression: float ^ int. 有什么办法么,第12行是V速度的那行,函数如下: #include "udf.h" DEFINE_PROFILE(inlet_velocity,thread,position) { real t,v; face_t f; begin_f_loop(f, thread) { t=RP_Get_Real("flow-time" ;{ if (t>=0 && t<=0.8) { v=14.22*exp(-((t-0.21)/0.11)^2) } } F_PROFILE(f,thread,position)=v; } end_f_loop(f,thread) } |
» 猜你喜欢
烦躁
已经有8人回复
入职后第一次管课题组的专利缴费,对账才发现官费比别人多掏了一倍
已经有3人回复
各位大佬,路线设计求助
已经有7人回复
我应该选哪条合成路线让实验成功率高一些?
已经有4人回复
2楼2020-02-14 15:42:10










;
回复此楼