| 查看: 356 | 回复: 0 | |||
[交流]
UDF
|
|
想用UDF做一个在x加速度随时间变化的函数,然后连接到source term下面的x轴上,按照下面编译没有错误,但效果没有出来,请问就是下面的程序哪里有问题吗,请大神指导一下 /****************************************************************** The acceleration in the x-axis direction changes with time *******************************************************************/ #include "udf.h" #define g 9.8 DEFINE_SOURCE(accelaration_source, c, t, dS, eqn) { real x[ND_ND]; real source; real current_time; current_time = RP_Get_Real("flow-time" ;source = -0.125*current_time*g+0.5*g; dS[eqn] = 0.0; return source; } |
» 猜你喜欢
278求调剂
已经有3人回复
化工调剂303分,过四级
已经有27人回复
265求调剂
已经有20人回复
348分环境工程·调剂
已经有6人回复
322求调剂
已经有3人回复
335求调剂
已经有7人回复
311(085601)求调剂
已经有15人回复
081700化学工程与技术 一志愿中海洋 323 求调剂学校
已经有6人回复
327求调剂
已经有8人回复
292求调剂
已经有21人回复














;
回复此楼