/****************************************************************/
/*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)
}
我这个是在 .txt 文本文件中编写的程序。编写完成后,我把 pexit.txt 改成了pexit.c。然后直接导入到Fluent中运行的,才出现上述的问题。你是说在导入fluent之前,还需要在linux机器上运行,转换行尾格式后,再导入到Fluent中吗?
追答那 lz 现在是在 linux 上使用呢,还是 windows 使用的