Fluent加载UDF后初始化出现错误 30
我用UDF把上述方程中的F作为一个源项编写出来,程序如下:DEFINE_SOURCE(cell,c,t,dS,eqn){realsource;source=(-1220*...
我用UDF把上述方程中的F作为一个源项编写出来,程序如下:
DEFINE_SOURCE(cell,c,t,dS,eqn)
{
real source;
source=(-1220*9.8*2.2e-3*(C_UDSI(c,t,0)-45.5));
return source;
}
但是初始化的时候始终提示UDF错误:
chip-exec: cell: 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.
Error Object: ()
为什么source的返回类型是错的? 展开
DEFINE_SOURCE(cell,c,t,dS,eqn)
{
real source;
source=(-1220*9.8*2.2e-3*(C_UDSI(c,t,0)-45.5));
return source;
}
但是初始化的时候始终提示UDF错误:
chip-exec: cell: 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.
Error Object: ()
为什么source的返回类型是错的? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询