|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
比如不同的y值上的速度分别是:0,0.0295,0.0594,0.0897,0.1204,0.1514
不知怎么才能将速度加到结点上
应该是用这个宏吧,不知道怎么改下下面的程序
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];/* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) = 225*y;
}
end_f_loop(f,thread)
} |
|