| 查看: 632 | 回复: 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)的方程难道不用求解了? |
» 猜你喜欢
氨基封端PDMS和HDI反应快速固化
已经有10人回复
博士读完未来一定会好吗
已经有37人回复
论文投稿求助
已经有4人回复
Applied Surface Science 这个期刊。有哪位虫友投过的能把word模板发给我参考一下嘛
已经有3人回复
投稿精细化工
已经有6人回复
之前让一硕士生水了7个发明专利,现在这7个获批发明专利的维护费可从哪儿支出哈?
已经有10人回复
博士申请都是内定的吗?
已经有9人回复
心脉受损
已经有8人回复

2楼2014-03-04 08:59:05
|
本帖内容被屏蔽 |
3楼2015-12-09 19:33:24













回复此楼