|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
[watermark]程序如下:
/*******************************************************************/
/* vprofile.c */
/* UDF for specifying steady-state velocity boundary condition */
/*****************************************************************/
#include "udf.h"
#include "math.h"
DEFINE_PROFILE(inlet_y_velocity, thread, position)
{
real x[ND_ND][ND_ND]; /* this will hold the position vector */
real z;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
z = x[0][0];
F_PROFILE(f, thread, position) = 7.5*pow(z/0.2,0.25);
}
end_f_loop(f, thread)
}
可是调试出现:Error: C:\fluent软件\shuju\3-d high rise building 补充\velocity.c: line 1: parse error.
语法错误,我是看了一个二维的例子作了稍微的改动,有大侠知道是怎么回事吗?
不胜感激[/watermark] |
|