24小时热门版块排行榜    

查看: 500  |  回复: 0

jesseliuxl

金虫 (小有名气)

[求助] 关于UDM标记网格

想把face,face-shadow两侧的网格进行标记,为啥标记不上呢

#include "udf.h"
DEFINE_INIT(init_udm, domain_mix)       
{
Thread *thread_face_mix = Lookup_Thread(domain_mix, 4);        /* 获取face边界指针 */
Thread *thread_faceshadow_mix = Lookup_Thread(domain_mix, 11);        /* 获取face-shadow边界指针 */
Thread *thread_fluid_ace_mix = Lookup_Thread(domain_mix, 3);        /* 获取ace区域指针 */
Thread *thread_fluid_water_mix = Lookup_Thread(domain_mix, 2);        /* 获取water区域指针 */
face_t face;
cell_t cell;

begin_c_loop(cell, thread_fluid_ace_mix)        /* 对fluid-ace区域循环,将0号UDM赋初值-1 */
        {
        C_UDMI(cell, thread_fluid_ace_mix, 0) = -1;
        }
end_c_loop(cell, thread_fluid_ace_mix);

begin_c_loop(cell, thread_fluid_water_mix)        /* 对fluid-water区域循环,将0号UDM赋初值-1 */
        {
        C_UDMI(cell, thread_fluid_water_mix, 0) = -1;
        }
end_c_loop(cell, thread_fluid_water_mix);

begin_f_loop(face, thread_face_mix)        /* 对face边界循环,并标记两侧cell */
        {
        C_UDMI(F_C0(face, thread_face_mix), THREAD_T0(thread_face_mix), 0) = F_C0(face, thread_faceshadow_mix);
        C_UDMI(F_C0(face, thread_faceshadow_mix), THREAD_T0(thread_faceshadow_mix), 0) = F_C0(face, thread_face_mix);
        }
end_f_loop(face, thread_face_mix);
回复此楼
生命不息折腾不止
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 jesseliuxl 的主题更新
信息提示
请填处理意见