|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
[这个贴子最后由lemonwxd在 2005/04/07 01:03pm 第 2 次编辑]
/*********************************************************************
UDF that specifies a custom mass-fraction weighted conductivity
**********************************************************************/
#include "udf.h"
DEFINE_PROPERTY(mass_wtd_k,c,t)
{
real sum = 0.; int i;
Material *sp;
real ktc;
Property *prop;
mixture_species_loop(THREAD_MATERIAL(t),sp,i)
{
prop = (MATERIAL_PROPERTY(sp));
ktc = generic_property(c,t,prop,PROP_ktc,C_T(c,t));
sum += C_YI(c,t,i)*ktc;
}
return sum;
}
这其实就是udf帮助文挡里的一段代码,可是interpreted的时候却提示错误:
Error: E:\react\mass_wtd_k.c: line 12: structure reference not implemented
这是怎么回事!
程序调不对,都熬通宵了,望朋友费心提供帮助,谢谢!
|
|