24小时热门版块排行榜    

查看: 634  |  回复: 0

西方明

金虫 (小有名气)

金虫

[求助] fluent 出现假死的现象

在网上下载了一个DEFINE_ON_DEMAND 函数,在case中运行时出现问题,fluent编译很顺利,没有报错,不过在点了execute之后,fluent就不运行了,也不报错,好像是死机了一样。。。。
函数如下:
#include "udf.h"
DEFINE_ON_DEMAND(Test)
{
Domain *d; /* Get the domain using Fluent utility */
face_t f;
cell_t c, c0;

Thread *t, *t0, *ct;

int Zone_ID = 6; /* Zone Id can be seen in the Boundary Conditions Panel, for me 5 = Wall */
d = Get_Domain(1);

/* Initialise Cells */
/* this loops over all cells and lets the UDM = 0 */
thread_loop_c(ct, d)
{
begin_c_loop(c,ct)
{
C_UDMI(c,ct,0) = 0.0;
}
end_c_loop(c,ct)
}

/* Loop over all faces on wall */
t = Lookup_Thread(d, Zone_ID);
begin_f_loop(f,t)
{
/* c0 and t0 identify the adjacent cell */
c0 = F_C0(f, t);
t0 = THREAD_T0(t);
/* this loops over all cells adjacent to wall and lets the UDM = 2.0 */
C_UDMI(c0, t0, 0) = 2.0;
}
end_f_loop(f,t)
}

大神帮忙啊!!
回复此楼
努力
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 西方明 的主题更新
信息提示
请填处理意见