|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
各位大侠,参考gearboy78提供的UDF运行了一下,出现以下提示:
..\..\src\coordinate.c(11) : error C2100: 非法的间接寻址
..\..\src\coordinate.c(11) : error C2440: “=”: 无法从“int”转换为“CX_Cell_Id”
运行环境为 win7 64+fluent 13.0,采用compile方式进行编译
程序为
#include "udf.h"
Domain *domain;
DEFINE_INIT(by_coor_par,domain)
{
cell_t c;
Thread *t;
CX_Cell_Id cx_cell;
real NV_VEC(pt);
NV_D(pt,=,1,1,1); /*coordinate of your specified location,it must be in the domain coordinate range*/
CX_Start_ND_Point_Search();
cx_cell=*CX_Find_Cell_With_Point(pt);
CX_End_ND_Point_Search();
c=RP_CELL(&cx_cell); /*the right cell number*/
t=RP_THREAD(&cx_cell); /*the thread*/
}
哪位能帮着看一下,万分感谢! |
|