| 查看: 1032 | 回复: 0 | |||
[交流]
如何区分fluent中循环宏的意义:一个domain是否可以有很多cell线程
|
|
我们知道,fluent中的UDF有以下几种宏(以cell的为例子): 1.thread_loop_c(在一个domain中循环所有的cell线程) Example: Domain *domain; Thread *c_thread; thread_loop_c(c_thread, domain)/*loops over all cell threads in domain*/ { } 2.begin...end_c_loop(在一个cell线程中循环所有的cell) cell_t c; Thread *c_thread; begin_c_loop(c, c_thread) /* loops over cells in a cell thread */ { } end_c_loop(c, c_thread) 3.c_face_loop (在一个cell中循环所有的face) cell_t c; Thread *t; int n; Node *node; c_node_loop(c,t,n) { node = C_NODE(c,t,n); } 谈谈我的理解,thread也就是线程,是cell的一个集合。对于只有一个domain的三维体,它的domain应该只有一个cell线程。而一个cell线程有很多cells,一个cell有几个faces。 我的问题是:我对线程的理解是否正确?我对domain里的cell线程数理解是否正确,或者说一个domain是否可以有很多cell线程,若有请举例说明。 求交流 |
» 猜你喜欢
申博发邮件
已经有8人回复
各位大神,目前国内有哪些比较好用的逆合成软件?
已经有9人回复
国社科系统bug了,是不是要放榜了?
已经有7人回复
上海工程技术大学激光智能制造课题组|2027级博士研究生招生公告
已经有8人回复
上海工程技术大学激光智能制造课题组招收博士研究生
已经有8人回复










回复此楼