找回密码
 注册
查看: 2697|回复: 1

求助,关于读取某位置物理量UDF

[复制链接]
发表于 2011-11-24 10:09:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

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*/       
}
哪位能帮着看一下,万分感谢!
 楼主| 发表于 2011-12-4 09:07:23 | 显示全部楼层

回复 1# wsjupc 的帖子

咋没有人回呀,自己顶一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表