| 查看: 779 | 回复: 2 | |||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | |||
[求助]
FLUENT 6.3帮助文档 ADJUST宏例2的疑惑 已有1人参与
|
|||
|
大家一定对这个例子不陌生 The following UDF, namedadjustfcn, species a user-dened scalar as a function of the gradient of another user-dened scalar, using DEFINE_ADJUST. The function is called once every iteration. It is executed as a compiled UDF inFLUENT. /******************************************************************** UDF for defining user-defined scalars and their gradients *********************************************************************/ #include "udf.h" DEFINE_ADJUST(adjust_fcn,d) { Thread *t; cell_t c; real K_EL = 1.0; /* Do nothing if gradient isn't allocated yet. */ if (! Data_Valid_P()) return; thread_loop_c(t,d) { if (FLUID_THREAD_P(t)) { begin_c_loop_all(c,t) { C_UDSI(c,t,1) += K_EL*NV_MAG2(C_UDSI_G(c,t,0))*C_VOLUME(c,t); } end_c_loop_all(c,t) } } } 我的疑问是,这样定义出来的UDS(i=1)有什么实际的作用吗,还有C_UDSI(c,t,1)值已经确定的话,那UDS(i=1)的方程难道不用求解了? |
» 猜你喜欢
咱们一起用铁证分析2026国家社科基金中标与否
已经有20人回复
哪位老哥知道今年的国自然具体哪一天放榜?
已经有5人回复
国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率
已经有8人回复
各位道友,我要去昆明玩几天,回来见。
已经有7人回复
欢迎发来filecode的Mz6后的代码验证其规律
已经有48人回复
filecode
已经有10人回复
奇怪,两个人的filecode固定段从头到尾一模一样
已经有11人回复
有时候,自然基金真的不能太认真 (我的申报经验)
已经有8人回复
应该是93bebmhtak前后十一个字符比较关键
已经有37人回复
好奇怪的filecode
已经有7人回复
|
本帖内容被屏蔽 |
3楼2015-12-09 19:33:24

2楼2014-03-04 08:59:05










回复此楼