找回密码
 注册
查看: 1522|回复: 0

about DPM UDF in fluent5.4.8

[复制链接]
发表于 2003-5-1 19:38:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
Hello,
     Thank you for your help.
     But I have another problem.I used Compiled UDFs.In my DEFINE_DPM_SOURCE,I just use S->mass and S->energy.I activate DEFINE_DPM_LAW in FLUENT in the Custom Laws panel, which is opened from the Set Injection Properties panel.I also activate DEFINE_DPM_SOURCE in FLUENT in the Discrete Phase Model panel.When I perform trajectory calculations,I can get a result if I  select Uncoupled Calculations.But if I select Coupled Calculations,it's divergence detected.  
     But the result isn't correct if I  select Uncoupled Calculations.In my UDF code,myreactionrate=8.3314*0.00001*2.7*pow(C_P(c,t)/101325.0,0.27)_DIAM(p)=pow( ( pow((P_DIAM0(p)*100),1.8)-myreactionrate*P_TIME(p) ),1.0/1.8 )*0.01;
     Particle Traces Colored by Particle Diameter(m) is in the accessory.The left of the picture is the particle inlet. The right of the picture is the particle outlet.From the picture,we can conclude that the partcile diamter is decreasing,then increasing.Why does this happen?
     I activate Inert Heating law,DEFINE_DPM_LAW and DEFINE_DPM_SWITCH in FLUENT in the Custom Laws panel, which is opened from the Set Injection Properties panel.I  select Uncoupled Calculations.I find the two laws isn't activated when I analyse the result.
DEFINE_DPM_SWITCH(dpm_switch,p,coupled)
{
    cell_t c = RP_CELL(&p->cCell);
    Thread *t = RP_THREAD(&p->cCell);
    if(C_T(c,t) > 1000.0)
        P_CURRENT_LAW(p) = DPM_LAW_USER_1;
    else   
        P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;
}
regards
Devy
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表