24小时热门版块排行榜    

查看: 3049  |  回复: 6

shuai_1314

捐助贵宾 (小有名气)

[求助] 利用UDF提取与壁面边界相邻的一层cell的方法

为了在与壁面相邻的那一层cell上添加源项,需要先将那一层cell提取出来,但由于今后想利用动网格技术让壁面移动,就不能利用cell的坐标来提取cell,而是利用壁面的数据信息提取相邻的那一层cell。LZ刚接触UDF,经验浅薄,望各路高手多多指点,感激不尽!!!
回复此楼

» 收录本帖的淘帖专辑推荐

fluent UDF帖子收集

» 猜你喜欢

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

率真随性的射手
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shuai_1314

捐助贵宾 (小有名气)

求高手,求指点,啊啊啊!!!
率真随性的射手
2楼2013-04-26 22:54:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shuai_1314

捐助贵宾 (小有名气)

帮帮忙吧!@小七-vip

[ 发自手机版 http://muchong.com/3g ]
率真随性的射手
3楼2013-04-27 09:59:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

znon

金虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
shuai_1314: 金币+10, ★★★★★最佳答案, 仔细看了一下,非常有帮助,感激不尽! 2013-04-27 18:52:38
xiegangmai: 金币+2, 谢谢参与! 2013-04-27 23:47:35
看看帮助中的内容吧。
Adjacent Cell Thread ( THREAD_T0, THREAD_T1)

The cells on either side of a face may or may not belong to the same cell thread. Referring to Figure  3.2.2, if a face is on the boundary of a domain, then only c0 exists. ( c1 is undefined for an external face). Alternatively, if the face is in the interior of the domain, then both c0 and c1 exist.

There are two macros, THREAD_T0(t) and THREAD_T1(t), that can be used to identify cell threads that are adjacent to a given face f in a face thread t. THREAD_T0 expands to a function that returns the cell thread of a given face's adjacent cell c0, and THREAD_T1 returns the cell thread for c1 (if it exists).


Table 3.2.25: Adjacent Cell Thread Macros Defined in mem.h
Macro        Argument Types        Returns
THREAD_T0(t)        Thread *t        cell thread pointer for cell c0
THREAD_T1(t)        Thread *t        cell thread pointer for cell c

» 本帖已获得的红花(最新10朵)

4楼2013-04-27 13:40:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shuai_1314

捐助贵宾 (小有名气)

送红花一朵
引用回帖:
4楼: Originally posted by znon at 2013-04-27 13:40:40
看看帮助中的内容吧。
Adjacent Cell Thread ( THREAD_T0, THREAD_T1)

The cells on either side of a face may or may not belong to the same cell thread. Referring to Figure  3.2.2, if a face is on the ...

非常感谢

[ 发自手机版 http://muchong.com/3g ]
率真随性的射手
5楼2013-04-27 18:55:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

znon

金虫 (小有名气)

引用回帖:
5楼: Originally posted by shuai_1314 at 2013-04-27 18:55:07
非常感谢
...

不用客气。互相学习。
6楼2013-04-27 19:58:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dabao11

新虫 (初入文坛)

能不能麻烦楼主把udf程序参考一下,本人也刚好需要用到自定义壁面源项,不胜感激!!!
7楼2014-03-17 22:35:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 shuai_1314 的主题更新
信息提示
请填处理意见