| 查看: 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客户端 |
» 猜你喜欢
有院领导为了换新车,用横向课题经费买了俩车
已经有9人回复
酰胺脱乙酰基
已经有13人回复
博士延得我,科研能力直往上蹿
已经有8人回复
同年申请2项不同项目,第1个项目里不写第2个项目的信息,可以吗
已经有4人回复
有时候真觉得大城市人没有县城人甚至个体户幸福
已经有10人回复
天津大学招2026.09的博士生,欢迎大家推荐交流(博导是本人)
已经有5人回复
CSC & MSCA 博洛尼亚大学能源材料课题组博士/博士后招生|MSCA经费充足、排名优
已经有6人回复
面上项目申报
已经有3人回复
遇见不省心的家人很难过
已经有22人回复













回复此楼