fluent 颗粒项UDF报错求助? 34
浏览:1103
先贴上我的UDF代码
#include "udf.h"
DEFINE_DPM_INJECTION_INIT(DPM, I)
{
Particle *p;
cell_t c;
loop(p, I->p)
{
if (CURRENT_TIME <= 10.0)
PP_FLOW_RATE(p) = 3.0e-8;
if (CURRENT_TIME > 10.0 & CURRENT_TIME <= 40.0)
PP_FLOW_RATE(p) = 0;
}
}
PP_FLOW_RATE(p) = 3.0e-8;和PP_FLOW_RATE(p) = 0;这两行报错,left operand must be l-value
是我的变量名选取有误吗?求解决