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,能够定义成功,敬请各位指教!
问题是这样:
在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,能够定义成功,敬请各位指教!
udf表头没有变量声明吧。