24小时热门版块排行榜    

查看: 357  |  回复: 0

zhaohu_727

铁杆木虫 (正式写手)

[求助] 有没有做三相流的?udf的编写遇到点问题请教

三相流中混合物指针怎么提取出来付给各相?
#include "udf.h"

DEFINE_EXCHANGE_PROPERTY(Interp_drag, cell, mix_thread, s_col, f_col)
{
       
       
        /*
        Thread *thread_g, *thread_s;
        */
        real x[ND_ND];
        real x_vel_g, x_vel_s, y_vel_g, y_vel_s, abs_v, slip_x, slip_y;
        real rho_g, rho_s, mu_g, hight,reyp, reyp1, hetero, void_g, void_s, k_g_s_w, k_g_s, k_g_s_e, cd, dp;

        /*int phase_domain_index=0;
        */
        /*
        Domain *subdomain;
        int phase_domain_index=PHASE_DOMAIN_INDEX(subdomain);
        s_col=0;
        f_col=1;
        */
       
       
        /*
        thread *subthread;
        */
        /*
        Domain *mixture_domain;
        mixture_domain=Get_Domain(1);        
        Domain *primedomain;
        primedomain1=Get_Domain(2);
        Domain *subdomain1;
        subdomain1=Get_Domain(3);
        Domain *subdomain2;
        subdomain2=Get_Domain(4);
       
                Domain *subdomain;
                int phase_domain_index=PHASE_DOMAIN_INDEX(subdomain);
        phase_domain_index=0;
        */
        Thread *mix_th;
        mix_th = THREAD_SUPER_THREAD(mix_thread);
        Thread **pt
        pt= THREAD_SUB_THREADS(mix_th);

        /*
        thread_g= THREAD_SUB_THREAD(mix_th, 0);         /* gas phase    */
        /*
        thread_s = THREAD_SUB_THREAD(mix_th, 1); /* solid phase 1  */
        /*
        thread_s2 = THREAD_SUB_THREAD(mix_th, 2); /* solid phase 2  */
               
       
/* afac, bfac,*/ /*vfac, fdrgs, taup,     */
/* find the threads for the gas (primary) */
/* and solids (secondary phases)          */

       


/* find phase velocities and properties  */

发自小木虫Android客户端
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zhaohu_727 的主题更新
信息提示
请填处理意见