|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];/* this will hold the position vector */
real y;
face_t f;
real n,u_ave;
n=7; /*根据雷诺数修改*/
u_ave=3.2154; /*根据入口平均速度修改*/
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) =u_ave*(n+1)*(2*n+1)/(2*n*n)*pow((0.025-fabs(y))/0.025,1/n);
}
end_f_loop(f, thread)
}
这是我的程序,就是简单的二维入口的速度型问题,为什么老是编译出错呢?我是新手,还望前辈们不吝赐教
编译错误是
cpp -IF:\FLUENT.INC\fluent6.0/src -IF:\FLUENT.INC\fluent6.0/cortex/src -IF:\FLUENT.INC\fluent6.0/client/src -IF:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" velocity0.5_profile.cError: velocity0.5_profile.c: line 20: parse error. |
|