|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
气固两相流模拟,用如下udf给颗粒加载上电场力,得出的颗粒速度图形和原来没有加电场时的速度图形一样,为什么出现这种情况?请大家帮我看看udf问题出在何处?
/**************************************************************/
/* Implementation of the P1 model using user-defined scalars */
/**************************************************************/
#include "udf.h"
#define a 0.5 /*公式中的a*/
DEFINE_ADJUST(adjust_fcn,d)
{
Thread *t;
cell_t c;
if (! Data_Valid_P())
return;
thread_loop_c(t,d)
{
if (FLUID_THREAD_P(t))
{
begin_c_loop_all(c,t)
{
}
end_c_loop_all(c,t)
}
}
}
[ 本帖最后由 yingkesong88 于 2011-7-12 09:01 编辑 ] |
|