fluent中interpreted UDF时,出现line1:parse error? 20
浏览:2194 回答:2
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
face_t f;
begin_f_loop(f,thread)
{
real t = RP_Get_Real("flow-time");
F_PROFILE(f, thread, position) = 2.0*cos(1.57*t);
}
end_f_loop(f,thread)
}
如上的UDF进入fluent后,进行interpereted,提示line1: parse error,这个的意思是不是第一行编译错误?我以前编过类似的UDF,第一行也是这样写的,就可以正常使用,这个不知道错在了哪里?请各位大侠指教,不胜感激





![[免费案例]Ensight案例教程分享](https://img.jishulink.com/cimage/245b3ca9e2c939e40491a25edae94515.jpeg?image_process=resize,fw_576,fh_320,)














