|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
[local]1[/local]向各位大侠求助一下:
我在做论文时遇到一个问题,困挠我好久,请您多多帮忙。就是用Fluent中的UDF将机翼上下壁面处的压力和网格节点(NODES)的坐标以文件输出,初学UDF,先编写了一个输出显示壁面压力的小程序,
#include"udf.h"
#include <stdio.h>
DEFINE_ON_DEMAND(Pressure)
{
Domain *upwall;
Thread *f_thread;
face_t f;
Thread *t;
int ID=5,i=0;
real p[300]={0};
upwall=Get_Domain(1);
f_thread = Lookup_Thread(upwall,ID);
begin_f_loop(f,f_thread)
{
p=F_P(f,f_thread);
Message("\n p = %f ",p);
i++;
}
end_f_loop(f,f_thread);
}
编译通过,但是一运行总是这个提示:
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
折腾我好久了,就是不出结果,请您多多帮忙,多谢多谢了!
我把.cas和.dat文件一起发送上,你看看到底是什么问题?[local]1[/local]
[ 本帖最后由 qm_y 于 2009-5-9 00:18 编辑 ] |
|