|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
udf文件(来自于王福军书上):
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f,thread,position)=20.-y*y/(.0745*.0745)*20.;
}
end_f_loop(f, thread)
}
不知为什么,在interpreted udfs下compile总是出现:
cpp -IE:\FLUENT.INC\fluent6.0/src -IE:\FLUENT.INC\fluent6.0/cortex/src -IE:\FLUENT.INC\fluent6.0/client/src -IE:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" vprofile.cError: vprofile.c: line 1: parse error.
请大哥,小妹或那位高手指点迷津,非常感谢! |
|