24小时热门版块排行榜    

查看: 3401  |  回复: 0

chentaomagic

银虫 (小有名气)

[求助] udf 解释时出现structure reference not implemented是为什么呢

ansys18,我定义体积反应,结果总是出现反应这个数据结构有问题(structure reference not implemented)。然后我照搬帮助里面体积反应udf 的例子,结果也显示r这个数据结构有问题,这是为什么,这不是内部定义好了的吗?
请教知情人指点。

(不知道为什么代码出现好多表情

#include "udf.h"

DEFINE_VR_RATE(myrate,c,t,r,mw,yi,rr,rr_t)
{
   /*If more than one reaction is defined, it is necessary to distinguish
   between these using the names of the reactions.     */
     if (!strcmp(r->name, "reaction-1")
       {
          /* Reaction 1 */
       }
     else if (!strcmp(r->name, "reaction-2")
       {
          /* Reaction 2 */
       }
     else
       {
         /*  Message("Unknown Reaction
"; */
       }
   /* Message("Actual Reaction: %s
",r->name); */

}@wuming524
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 chentaomagic 的主题更新
信息提示
请填处理意见