|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
下面是源项的udf
#include "udf.h"
#define CON 1.0e12
DEFINE_SOURCE ( cell_x_source, cell, thread, dS, eqn)
{
Real source;
/*source term*/
source=-CON*C_MU_L(cell, thread)*C_U(cell, thread);
/*derivative of source term w.r.t.x-velocity.*/
dS [eqn]=-CON*C_MU_L(cell, thread);
return source;
}
但是在interpreted时显示line 5: Real: undeclared variable
那么变量应该怎么定义呢?谢谢高手指教 |
-
源项
|