#include "udf.h"
DEFINE_PROFILE(inlet_pressure, thread, position)
{
face_t f;
begin_f_loop(f, thread)
{
real t=RP_Get_Real("flow-time");
if (0<t<0.00025)
F_PROFILE(f, thread, position) = 20*sin(12566.0*t);
else
F_PROFILE(f, thread, index) =0;
}
end_f_loop(f, thread)
}
程序改成这个以后,解释时出错cpp -I"D:\ANSYS\ANSYSI~1\v150\fluent\fluent15.0.0/src" -I"D:\ANSYS\ANSYSI~1\v150\fluent\fluent15.0.0/cortex/src" -I"D:\ANSYS\ANSYSI~1\v150\fluent\fluent15.0.0/client/src" -I"D:\ANSYS\ANSYSI~1\v150\fluent\fluent15.0.0/multiport/src" -I. -DUDFCONFIG_H="<u
fconfig.h>" "E:\muffler\kaitihou\hypermesh\myudfliumeoling.c"
Error: E:\\muffler\\kaitihou\\hypermesh\\myudfliumeoling.c: line 20: index: undeclared variable
求大神指点迷津 |