|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
源代码
#include <stdio.h>
#include <stdlib.h>
#include "udf.h"
real pos[16000][2];
real x[ND_ND];
Domain *d;
Thread *t;
cell_t c;
FILE *fp;
int i=0,j=0;
DEFINE_ON_DEMAND(print)
{
d=Get_Domain(1);
thread_loop_c(t,d)
{
begin_c_loop(c,t)
{
C_CENTROID(x,c,t);
pos[0]=x[0];
pos[1]=x[1];
i++;
Message("x= %e\t y=%e\n",x[0],x[1]);
}
end_c_loop(c,t)
}
fp=fopen("E:\\bioreator\\coodinate.txt","w");
for(i=0;i<16000;i++)
{
fprintf(fp,"x=%e\t y=%e\n",pos[0],pos[1]);
}
fclose(fp);
}
fluent运行完message后报错:
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: ()
这是怎么回事呢? |
|