|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我编写了一个UDF程序,在读入Fluent点击Interpret后就提示如下:
cpp -ID:\Fluent.Inc\fluent6.2.16/src -ID:\Fluent.Inc\fluent6.2.16/cortex/src -ID:\Fluent.Inc\fluent6.2.16/client/src -ID:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" D:\Fluent Results\pexit.c
Error: D:\Fluent Results\pexit.c: line 1: parse error.
我编写的程序为:
#include "udf.h"
DEFINE_PROFILE(unsteady_pressure,thread,position)
{
face_t f;
begin_f_loop(f,thread)
{
real t=RP_Get_Real("flow-time");
F_PROFILE(f,thread,position)=101325*(0.843+0.008*sin(1256.6*t));
}
end_f_loop(f,thread)
}
之前我照着Fluent参考书上的例子一摸一样的写下来,也出现过类似的情况。
跪请高手指教,谢谢! |
|