|
发表于 2007-12-10 10:47:51
|
显示全部楼层
求助:关于udf中的一些函数定义
real NV_VEC(psi), NV_VEC(A); /* declaring vectors psi and A */
/* defining psi in terms of velocity field */
NV_D(psi, =, F_U(f,t), F_V(f,t), F_W(f,t));
NV_S(psi, *=, F_R(f,t)) /* multiplying density to get psi vector */
F_AREA(A,f,t) /* face normal vector returned from F_AREA */
return NV_DOT(psi,A); /* dot product of the two returned */ |
|