|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
一下这段udf能通过Interpreted,但是初始化时出错,错误提示为:
chip-exec: mean_age_source: wrong return type: void udf function expected
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.
不太清楚错误在哪,请高手们进来帮帮忙吧。拜托!
程序如下:
#include "udf.h"
DEFINE_DIFFUSIVITY(mean_age_diff,c,t,i)
{ return C_MU_EFF(c,t) / 1.0;
}
DEFINE_SOURCE(mean_age_source,c,t,ds,eqn)
{ real con,source;
con=C_R(c,t);
source=con;
ds[eqn]=0;
return source;
} |
|