找回密码
 注册
查看: 2019|回复: 3

请教udf error

[复制链接]
发表于 2005-8-17 19:38:25 | 显示全部楼层 |阅读模式

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

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

x
现在学udf,就按照教程中例子写了一个,在fluent中出错。请帮忙看看什么原因?
/*************************************************************************
  UDF for specifying the urban wind profile boundary
**************************************************************************/
#include "udf.h"
#define VM 9.65                        /*mean velocity in the free stream*/
#define B 800.                         /*boundary layer thickness*/
#define P 0.28                         /*urban power law profile exponent*/
/* profile for inlet_x_velocity */
DEFINE_PROFILE(inlet_x_velocity,t,i)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,t)
{
  F_CENTROID(x,f,t);
  y=x[1];
  F_PROFILE(f,t,i)=VM*pow(y/B,P);
}
end_f_loop(f,t)
提示:line 3 syntax error




 楼主| 发表于 2005-8-18 00:47:37 | 显示全部楼层

请教udf error

我在windows下试运行正常,可在unix下出现了以上问题。大家给个建议吧?!
 楼主| 发表于 2005-8-24 00:42:46 | 显示全部楼层

请教udf error

问题解决,不劳高手。
发表于 2005-9-2 20:45:18 | 显示全部楼层

请教udf error

怎么解决的呀???不解???
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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