| 查看: 3327 | 回复: 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) } |
» 猜你喜欢
博士延得我,科研能力直往上蹿
已经有7人回复
退学或坚持读
已经有27人回复
面上基金申报没有其他的参与者成吗
已经有5人回复
有70后还继续奋斗在职场上的吗?
已经有5人回复
遇见不省心的家人很难过
已经有22人回复
多组分精馏求助
已经有6人回复
2楼2020-02-14 15:42:10













;
回复此楼