duf求检查
浏览:181105 回答:2
本人写了个udf 关于流场内密度随压力变化的,编译没有问题,但是初始化时提示:
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: ()
强行初始化后,运行一会就出现:
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: ()
强行初始化后,运行一会就出现:
Error: divergence detected in AMG solver: pressure correction。
密度不用udf时,可以正常运行,很可能是udf有问题,求检查:
#include "udf.h"
DEFINE_PROPERTY(cell_desity, c, t)
{
real rou;
real rou0;
real e;
real temp=C_P(c,t);
rou0=1000;
e=2.18e9;
rou=(1-temp/e)*rou0;
return rou;
}