找回密码
 注册
查看: 1871|回复: 2

UDF求助

[复制链接]
发表于 2009-6-16 20:38:41 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

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 编辑 ]
发表于 2009-6-17 18:08:56 | 显示全部楼层

回复 1# pz2636 的帖子

VC装了吗?
发表于 2009-6-17 21:10:29 | 显示全部楼层

UDF求助

flow_time吧非flow-time
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表