|
|
发表于 2005-9-8 14:49:58
|
显示全部楼层
如何求自定义标量在某个面上的流通量
你看能不能这个样子啊:
In the DEFINE_ADJUST():
(1)get domain
(2)look up thread --find the thread of desired plane(if you can get palne as a thread in the grid domain)
(3)f_loop the faces in the thread
(4)output the data or store the data with a global variable
Done!
好象就这样吧。
你所说的“循环是整体的循环”是不是指进口面不是一个thread?如果不是的话,可以想办法在坐标上描述这个面,最后不行干脆就在gambit中把它做成一个thread,苯了点,但是管用。如果网格编号是连续的话,你可以试以下给上下界的循环,网格很多而且不连续,哇,那还得把它作成一个thread。
你可以把具体的问题发到Fluent_udf@126.com,我有时间的话可以帮你写好。 |
|