fluent中interpreted UDF時,出現line1:parse error? 20
瀏覽:2559 回答: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,第一行也是這樣寫的,就可以正常使用,這個不知道錯在了哪里?請各位大俠指教,不勝感激




















