|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
小弟新学FLUENT,在进行一个UDF进行编译是出现以下错误提示:
Error: C:\Fluent.In
ctbin
tx86 floder\velocity_inlet.c: line 1: parse error.
请各位前辈多多指教,谢谢!
附上UDF:
//*********************************//
//***********tryinfirstvel.c*******//
//*********************************//
#include"udf.h"
DEFINE_PROFILE(velocity_inlet,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)=0.5-y*y/(0.02*0.02)*0.5;
}
end_f_loop(f,thread)
} |
|