24小时热门版块排行榜    

查看: 1933  |  回复: 3

zhanshuiqing

银虫 (小有名气)

[求助] SN曳力模型(Schiller &Naumann)udf修正的求助??? 已有1人参与

在计算气液两相流欧拉模型,发现气泡运动过程中发生变形,考虑气泡颗粒尺寸的变化,觉得fluent常用的SN曳力模型不太好,就自编了一个修正的曳力模型udf,可是计算的时候,收敛过程非常不稳定,效果很差,找不到原因,大家给指点下啊

#include "udf.h"
#include "sg.h"
#include "sg_mphase.h"
#include "flow.h"
#include "mem.h"
#include "metric.h"
#define g 9.81  
#define surface_t 0.132   /* surface tension coefficient*/
#define diam2 1.e-2
DEFINE_EXCHANGE_PROPERTY(custom_drag,cell,mix_thread,s_col,f_col)
{
Thread *thread_l, *thread_g;
real x_vel_l, x_vel_g, y_vel_l, y_vel_g, z_vel_l, z_vel_g,abs_v, slip_x, slip_y,slip_z,
      rho_l, rho_g,delta_rho, mu_l, reyp, Eo, C_D1,C_D2,C_D,void_g,void_l, fdrgs, taup, k_g_s;

/* find the threads for the liquid (primary phases) and solids (secondary phases)*/
thread_l = THREAD_SUB_THREAD(mix_thread, s_col);/* liquid phase  */
thread_g = THREAD_SUB_THREAD(mix_thread, f_col);/* gas phase*/

  /* find phase velocities and properties*/
x_vel_l = C_U(cell, thread_l);
y_vel_l = C_V(cell, thread_l);
z_vel_l = C_W(cell, thread_l);
x_vel_g = C_U(cell, thread_g);
y_vel_g = C_V(cell, thread_g);
z_vel_g = C_W(cell, thread_g);

     /* slip velocity*/
slip_x = x_vel_l - x_vel_g;
slip_y = y_vel_l - y_vel_g;
slip_z = z_vel_l - z_vel_g;

      /*Parameters*/
rho_l = C_R(cell, thread_l);
rho_g = C_R(cell, thread_g);
delta_rho = rho_l - rho_g;
mu_l = C_MU_L(cell, thread_l);

/*compute slip*/
abs_v = sqrt(slip_x*slip_x + slip_y*slip_y + slip_z*slip_z);

/*compute Reynold's number*/
reyp = rho_l*abs_v*diam2/mu_l;

/*compute Eotvos number*/
  Eo = g*delta_rho*diam2*diam2/surface_t;
  /*compute particle relaxtion time*/
  taup = rho_g*diam2*diam2/18./mu_l;
  void_g = C_VOF(cell,thread_g);
  void_l = 1.-void_g;
  /*compute C_D */
  C_D1 =24.*(1.+0.15*pow(reyp, 0.687))/reyp;
  C_D2 = 8./3.*Eo/(Eo+4.);
  if(C_D1 > C_D2)
    C_D = C_D1;  
  else
   C_D = C_D2;  
  
/*compute drag and return drag coeff, k_g_s*/
fdrgs = C_D*reyp/24.0;
k_g_s = void_g*void_l*rho_g*fdrgs/taup;
return k_g_s;
}
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jiangfan2008

木虫 (著名写手)

楼主现在弄清楚了吗?可以说来听听,谢谢!
2楼2013-05-04 01:15:16
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bingyee007

金虫 (小有名气)

楼主 你好 ,我想问下 既然气泡是变形的 那你为何还把气泡直径定为一个常数呢??
3楼2013-06-04 20:39:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhengquan23

新虫 (初入文坛)

【答案】应助回帖

气泡尺寸给你修改了,你的气泡尺寸太大,3-5mm比较好吧?
#include "udf.h"
#include "sg.h"
#include "sg_mphase.h"
#include "flow.h"
#include "mem.h"
#include "metric.h"
#define g 9.81  
#define surface_t 0.073   /* surface tension coefficient*/
#define diam2 4.e-3
DEFINE_EXCHANGE_PROPERTY(custom_drag,cell,mix_thread,s_col,f_col)
{
Thread *thread_l, *thread_g;
real x_vel_l, x_vel_g, y_vel_l, y_vel_g, z_vel_l, z_vel_g,abs_v, slip_x, slip_y,slip_z,
      rho_l, rho_g,delta_rho, mu_l, reyp, Eo, C_D1,C_D2,C_D,void_g,void_l, fdrgs, taup, k_g_s;

/* find the threads for the liquid (primary phases) and gas (secondary phases)*/
thread_l = THREAD_SUB_THREAD(mix_thread, s_col);/* liquid phase  */
thread_g = THREAD_SUB_THREAD(mix_thread, f_col);/* gas phase*/

  /* find phase velocities and properties*/
x_vel_l = C_U(cell, thread_l);
y_vel_l = C_V(cell, thread_l);
z_vel_l = C_W(cell, thread_l);
x_vel_g = C_U(cell, thread_g);
y_vel_g = C_V(cell, thread_g);
z_vel_g = C_W(cell, thread_g);

     /* slip velocity*/
slip_x = x_vel_l - x_vel_g;
slip_y = y_vel_l - y_vel_g;
slip_z = z_vel_l - z_vel_g;

      /*Parameters*/
rho_l = C_R(cell, thread_l);
rho_g = C_R(cell, thread_g);
delta_rho = rho_l - rho_g;
mu_l = C_MU_L(cell, thread_l);

/*compute slip*/
abs_v = sqrt(slip_x*slip_x + slip_y*slip_y + slip_z*slip_z);

/*compute Reynold's number*/
reyp = rho_l*abs_v*diam2/mu_l;

/*compute Eotvos number*/
  Eo = g*delta_rho*diam2*diam2/surface_t;
  /*compute particle relaxtion time*/
  taup = rho_g*diam2*diam2/18./mu_l;
  void_g = C_VOF(cell,thread_g);
  void_l = 1.-void_g;
  /*compute C_D */
  C_D1 =24.*(1.+0.15*pow(reyp, 0.687))/reyp;
  C_D2 = 8./3.*Eo/(Eo+4.);
  if(C_D1 > C_D2)
   C_D = C_D1;  
  else
   C_D = C_D2;  
  
/*compute drag and return drag coeff, k_g_s*/
fdrgs = C_D*reyp/24.0;
k_g_s = void_g*void_l*rho_g*fdrgs/taup;
return k_g_s;
}
4楼2015-05-14 09:30:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zhanshuiqing 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂 +4 yunziaaaaa 2026-03-01 4/200 2026-03-01 23:45 by L135790
[考研] 材料学硕318求调剂 +10 February_Feb 2026-03-01 12/600 2026-03-01 23:34 by L135790
[考研] 0856材料与化工,270求调剂 +6 YXCT 2026-03-01 6/300 2026-03-01 23:21 by 向上的胖东
[考研] 265分求调剂不调专业和学校有行学上就 +6 礼堂丁真258 2026-02-28 8/400 2026-03-01 22:50 by jian_
[考研] 材料类求调剂 +10 wana_kiko 2026-02-28 12/600 2026-03-01 22:10 by 海嵙Y
[考研] 0856材料求调剂 +11 hyf hyf hyf 2026-02-28 12/600 2026-03-01 18:57 by 18137688336
[考研] 291分工科求调剂 +9 science饿饿 2026-03-01 10/500 2026-03-01 18:55 by 18137688336
[考研] 0857调剂 +3 一ll半 2026-02-28 3/150 2026-03-01 18:32 by 热情沙漠
[考研] 321求调剂一志愿东北林业大学材料与化工英二数二 +4 虫虫虫虫虫7 2026-03-01 7/350 2026-03-01 16:52 by caszguilin
[考研] 0856材料求调剂 +4 麻辣鱿鱼 2026-02-28 4/200 2026-03-01 16:51 by caszguilin
[考研] 285求调剂 +8 满头大汗的学生 2026-02-28 8/400 2026-03-01 16:47 by caszguilin
[考研] 304求调剂 +6 曼殊2266 2026-02-28 7/350 2026-03-01 15:14 by wjLi2017
[考研] 303求调剂 +4 今夏不夏 2026-03-01 4/200 2026-03-01 14:46 by 嘟嘟小浣熊
[考研] 课题组接收材料类调剂研究生 +3 gaoxiaoniuma 2026-02-28 4/200 2026-03-01 14:30 by jjj三跨
[考研] 284求调剂 +6 天下熯 2026-02-28 6/300 2026-03-01 14:19 by Ducount.Y
[考研] 材料284求调剂,一志愿郑州大学英一数二专硕 +10 想上岸的土拨鼠 2026-02-28 10/500 2026-03-01 14:12 by yc258
[考研] 317一志愿华南理工电气工程求调剂 +6 Soliloquy_Q 2026-02-28 11/550 2026-03-01 11:14 by 歌liekkas
[基金申请] 面上模板改不了页边距吧? +5 ieewxg 2026-02-25 6/300 2026-03-01 00:10 by addressing
[高分子] 求环氧树脂研发1名 +3 孙xc 2026-02-25 11/550 2026-02-28 16:57 by ichall
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见