|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
在读入自定义函数时出现
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);
} |
|