|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
编了一个UDF程序如下:
#include "udf.h"
DEFINE_PROFILE(inlet_velocity,thread,position)
{
face_t f;
begin_f_loop(f,thread)
{real t=RP_Get_Real("flow-time");
F_PROFILE(f,thread,position)=0.5*t;
}
end_f_loop(f,thread)
}
运行时出现下面错误
cpp -IC:\Fluent.Inc\fluent\fluent6.2.16/src -IC:\Fluent.Inc\fluent\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Documents and Settings\kjc\p
essure\vprofile.c
Error: C:\Documents and Settings\kjc\pressure\vprofile.c: line 1: parse error.
请问各位大侠,是怎么回事?
[ 本帖最后由 pz2636 于 2009-6-16 20:41 编辑 ] |
|