#include "udf.h"
DEFINE_SOURCE(ch4_source,c,t,dS,eqn)
{
real x[ND_ND];
real source;
C_CENTROID(x,c,t);
if(x[0]<0)
{
source=0;
dS[eqn]=0;
}
else
{
source=0.0053*pow(1+x[0]/10,-0.5);
dS[eqn]=-0.000265*pow(1+x[0]/10,-1.5);
}
return source;
}
这个udf一直提示宏定义错了 DEFINE_SOURCE(ch4_source,c,t,dS,eqn)
real source;
这两句错了 怎么改啊 卡在这里好几天了 |