fluent UDF 修改物性

浏览:108819 回答:2
最近在用fluent模拟一个简单传热问题,但是由于温度变化范围大,需要用UDF定义物性参数的变化函数。PS:解释型UDF
问题是这样:
在fluent中加载UDF后,依次点击material-create/edit materia-uesr-defined database-输入名称-OK-选择参数thermal conductivity-选择user-defined-UDF-再点击edit,出现如下错误:No error handler available。
附上UDF:
DEFINE_PROPERTY(gapgas_heat_conductivity, cell, thread)
{
real heat_conductivity;
real temp = C_T(cell, thread);
heat_conductivity = 100 * 0.39 * pow(10, -4) * pow(temp, 0.645);
return heat_conductivity;
}
另外:由于有内热源,所以也编写了热源的UDF,能够定义成功,敬请各位指教!
邀请回答 我来回答

全部回答

(2)
默认 最新
樱木花道

udf表头没有变量声明吧。
2013年12月27日
评论 点赞
csuperfect

加上这个就OK
#include"udf.h"
DEFINE_PROPERTY(gapgas_heat_conductivity, cell, thread)
{
real heat_conductivity;
real temp = C_T(cell, thread);
heat_conductivity = 100 * 0.39 * pow(10, -4) * pow(temp, 0.645);
return heat_conductivity;
}
2013年12月21日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP