|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
fluent 源项问题请教
高手帮我看看我这个源项应该怎样定义
源项中有时间t 用以非稳态模拟
直接把t加进去编译错误
#include "udf.h"
DEFINE_SOURCE(gas_mass_source, cell, thread, dS, eqn) /* defining the mass source */
{
real source;
real x[ND_ND];
real a, b, c,t;
C_CENTROID(x,cell,thread);
a=x[0];
b=x[1];
c=x[2];
if (a<=1.2t && a<=1.2t+3 && b>=-5 && b<=-4.5 && c>=0 && c<=3)
{
source=2E-04*(1-0.00000005t);
}
else
{
source=0;
}
return source;
} |
|