24小时热门版块排行榜    

查看: 707  |  回复: 0

xxfreedomxx

新虫 (初入文坛)

[求助] 求助各位大神,我的wen-yu曳力UDF不能收敛

求助各位大神,如下是我的UDF,我发现自己写的别的曳力公式和这个wen-yu的UDF是一个情况,我做的是固液搅拌体系,500个时间步之后第二项速度在10-3以上就收敛不了了,慢慢增大,调节收敛因子,时间步长,湍流模型,都不行,单纯用自带模型就没有问题,选择的时候加入了brucato的模型进行修正。在这里卡了两个星期了。

#include "udf.h"
#define pi 4.*atan(1.)

DEFINE_EXCHANGE_PROPERTY(s_l_drag_IL_sl, cell, mix_thread, s_col, f_col)
{
        Thread *thread_l, *thread_s;

        real abs_v, slip_x, slip_y, slip_z;
        real reyp, void_s, rho_l, rho_s, mu_l, fdrag, k_l_s, void_l, diam2, Res;

        /* find the threads for the liquid(primary) */
        /* and solids (secondary phases) */

        thread_l = THREAD_SUB_THREAD(mix_thread, f_col); /* liquid phase */
        thread_s = THREAD_SUB_THREAD(mix_thread, s_col); /* solid phase */

        /* find phase velocities and properties*/
        rho_l = C_R(cell, thread_l);
        mu_l = C_MU_L(cell, thread_l);
        rho_s = C_R(cell, thread_s);
        diam2 = C_PHASE_DIAMETER(cell, thread_s);

        slip_x = C_U(cell, thread_l) - C_U(cell, thread_s);
        slip_y = C_V(cell, thread_l) - C_V(cell, thread_s);
        slip_z = C_W(cell, thread_l) - C_W(cell, thread_s);

        /*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 particle relaxation time */
        void_s = C_VOF(cell, thread_s);/* solid vol frac*/
        void_l = C_VOF(cell, thread_l);/* liquid vol frac*/
        Res=void_l*reyp;

        if(Res<=1000){
                fdrag = 24.*(1. + 0.15*pow(Res, 0.687)/Res;
        }   
        else(Res>1000){
                fdrag = 0.44;
        }
       
        k_l_s = 0.75*void_s*void_l*mu_l*fdrag*abs_v*pow(void_l, -2.65)/diam2;
         
        return k_l_s;

}
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 xxfreedomxx 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 帮忙看看fileCode +6 wwncly 2026-08-10 11/550 2026-08-11 09:14 by xiaruohan
[基金申请] FileCode能看出啥? +7 要乐观耀哥 2026-08-10 16/800 2026-08-11 08:18 by wmfsnow
[基金申请] 为什么网上很多人说本周 12号出结果 +4 瞬息宇宙 2026-08-10 4/200 2026-08-11 02:02 by 旁观2020
[基金申请] filecode +8 documentary 2026-08-10 8/400 2026-08-10 19:20 by loufangrui
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 静等基金结果 +5 gjjjzhong 2026-08-10 16/800 2026-08-10 17:19 by Tide man
[基金申请] 我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人 +8 家与远方 2026-08-10 11/550 2026-08-10 17:09 by 六两废铜
[基金申请] 关于Filecode分析方法 +3 majunge000 2026-08-10 3/150 2026-08-10 15:46 by lch2012
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +11 archvillain 2026-08-04 13/650 2026-08-10 14:41 by seekfind
[基金申请] 好奇怪的filecode +4 布布和一二 2026-08-08 5/250 2026-08-10 14:20 by 冰心玉壶晴
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] 面上项目filecode邪修 +5 西山十月 2026-08-09 7/350 2026-08-10 07:32 by 仁砚薪传
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] 关于豆爷回答的JTJC与%2F数量 +5 yang182083 2026-08-06 7/350 2026-08-08 18:29 by zhanghaozhu
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] 大家散了吧,后缀研究没有意义,别浪费时间了,过好目前的每一天,不要焦虑 +5 Tide man 2026-08-06 7/350 2026-08-07 13:11 by 医学老男孩
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
信息提示
请填处理意见