|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
大家快帮忙看看,怎么会这样?速度入口边界条件自己udf编写的,为的是得到速度沿边界切向的进入,可是outflow出口条件算到收敛以后,发现出口边界成了壁面条件了。流体没有流出。怎么会这样啊?
udf如下:
#include "udf.h"
DEFINE_PROFILE(inlet_y_velocity,thread,position)
{
real x[ND_ND];
real z;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
z = x[0];
F_PROFILE(f, thread, position) = -15*z/0.67;
}
end_f_loop(f,thread)
}
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) = 15*y/0.67;
}
end_f_loop(f,thread)
}
|
|