|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
要编一个UDF来描述壁面热流边界条件. 壁面热流情况如下:外界加给壁面的热流为1000W/M^2,同时壁面也要向外辐射热流,辐射热流量按那个辐射公式计算.我编了个UDF,在FLUENT里编译通过了,但在对计算区域温度进行初始化(Initialize)时却出现如下的出错提示:” 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.
Error Object: ()”
请问大侠这是怎么回事,该怎么解决?多谢!!后面附的是我编写的UDF程序.
#include "udf.h"
DEFINE_PROFILE(fluxflow, thread, position)
{
real tim,temp,temp1;
face_t f;
cell_t c;
Thread *t;
temp=C_T(c,t);
temp1=temp/100;
begin_f_loop(f, thread)
{
tim=RP_Get_Real("flow-time");
if(tim>=0)
F_PROFILE(f, thread, position)=1000-pow(temp1,4)*0.67*5.678;
}
end_f_loop(f, thread)
}
|
|