|
|
发表于 2010-9-10 15:36:05
|
显示全部楼层
[求助]Modeling Unsteady Compressible Flow中udf得问题!
我也遇到同样的问题
Error: E:\fluent\fluent working directory\pexit.c: line 1: parse error
不知道是什么原因,请高手指点
程序源代码如下:
/************************************************************/
/*pexit.c*/
/************************************************************/
#include "udf.h"
DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;
begin_f_loop(f, thread)
{
real t=RP_Get_Real("flow-time");
F_PROFILE(f, thread, position)=101325*(0.843+0.008*sin(1256.6*t));
}
end_f_loop(f, thread);
} |
|