24小时热门版块排行榜    

CyRhmU.jpeg
查看: 927  |  回复: 3

xujinchao

铜虫 (小有名气)

[求助] 请问fluent两相流拽力模型,加载到三相流中,就出错,请问需要怎么设置或修改已有1人参与

谢谢大家

请问fluent两相流拽力模型,加载到三相流中,就出错,请问需要怎么设置或修改
11.png
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xujinchao

铜虫 (小有名气)

/***************************************************************
   UDF for customizing the Gidaspow drag law in Fluent
****************************************************************/

#include "udf.h"
#include "sg_mphase.h"

#define diam2 1.7e-5

DEFINE_EXCHANGE_PROPERTY(custom_drag_syam, cell, mix_thread, s_col, f_col)
{
Thread *thread_g, *thread_s;
real x_vel_g, x_vel_s, y_vel_g, y_vel_s, abs_v, slip_x, slip_y,
      rho_g, rho_s, mu_g, reyp, afac,
      bfac, void_g, vfac, fdrgs, taup, k_g_s;

thread_g = THREAD_SUB_THREAD(mix_thread, s_col);
thread_s = THREAD_SUB_THREAD(mix_thread, f_col);

x_vel_g = C_U(cell, thread_g);
y_vel_g = C_V(cell, thread_g);
x_vel_s = C_U(cell, thread_s);
y_vel_s = C_V(cell, thread_s);
slip_x = x_vel_g - x_vel_s;
slip_y = y_vel_g - y_vel_s;
rho_g = C_R(cell, thread_g);
rho_s = C_R(cell, thread_s);

mu_g = C_MU_L(cell, thread_g);
/*compute slip*/
abs_v = sqrt(slip_x*slip_x + slip_y*slip_y);

/*compute reynolds number*/
reyp = rho_g*abs_v*diam2/mu_g;

/* compute particle relaxation time */
taup = rho_s*diam2*diam2/18./mu_g;
void_g = C_VOF(cell, thread_g);/* gas vol frac*/

/*compute drag and return drag coeff, k_g_s*/
afac = pow(void_g,4.14);

if(void_g<=0.85)
  bfac = 0.8*pow(void_g, 1.28);
else
  bfac = pow(void_g, 2.65);

vfac = 0.5*(afac-0.06*reyp+sqrt(0.0036*reyp*reyp+0.12*reyp*(2.*bfac-
              afac)+afac*afac));
fdrgs = void_g*(pow((0.63*sqrt(reyp)/vfac+4.8*sqrt(vfac)/vfac),2.))/24.0;

k_g_s = (1.-void_g)*rho_s*fdrgs/taup;

return k_g_s;
}
2楼2015-08-12 23:22:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xujinchao

铜虫 (小有名气)

没有人啊,只能自己顶一下了
3楼2015-08-13 14:48:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

aaaalu

铜虫 (初入文坛)

【答案】应助回帖

你的意思是说用你编的这个UDF来计算三相流中气固之间的作用力吧?
你先检查一下物性。
然后调一下初始条件,比如设气含率0.00001
至少先让这个Case跑起来。
4楼2015-12-07 22:09:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 xujinchao 的主题更新
信息提示
请填处理意见