sj51603 发表于 2006-9-5 11:17

关于DEFINE_ADJUST的求助

编了一个小程序!关于修改速度变量的!能导入,但是一开始计算,就报错,高手帮帮忙!
#include"udf.h"
DEFINE_ADJUST(velocity,d)
{real v;
Thread *t;
cell_t c;
realy;
real x;
thread_loop_f(t,d)
{
begin_c_loop_all(c,t)
v=C_U(c,t);
C_CENTROID(x,c,t);
y=x;
v=C_U(c,t);
if(y<=0)
C_U(c,t)=v-1;
end_c_loop_all(c,t)
}
}

Frank 发表于 2006-9-12 21:12

什么错误提示?

Frank 发表于 2006-9-12 21:20

什么错误提示?

sj51603 发表于 2006-9-13 07:36

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: ()
页: [1]
查看完整版本: 关于DEFINE_ADJUST的求助