|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
内容:壁面热流,随时间t阶跃变化:0<=t<=600, q=500;601<=t<=1200,q=0;下面是我今天编的源代码:
#include"udf.h"
DEFINE_PROFILE(heat_flux_profile,thread,position)
{
real x[ND_ND];
real q;
real t;
real r;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
r=x[0];
if(t<=600)
q=500;
else
q=0;
}
end_f_loop(f,thread)
}
hook后,应用到壁面上,fluent却出问题了,提示:
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,没有见过热流随时间的UDF,不知道我这样编写有没有调用时间项,请高手指教!
|
|