| 查看: 646 | 回复: 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)的方程难道不用求解了? |
» 猜你喜欢
EST投稿状态问题
已经有6人回复
职称评审没过,求安慰
已经有15人回复
垃圾破二本职称评审标准
已经有11人回复
投稿Elsevier的Neoplasia杂志,到最后选publishing options时页面空白,不能完成投稿
已经有16人回复
谈谈两天一夜的“延安行”
已经有14人回复
毕业后当辅导员了,天天各种学生超烦
已经有4人回复
聘U V热熔胶研究人员
已经有10人回复
求助文献
已经有3人回复
投稿返修后收到这样的回复,还有希望吗
已经有8人回复
三无产品还有机会吗
已经有6人回复













回复此楼