|
[求助]
fluent 边界条件插入udf之后,无法初始化,求助各位大佬!!!已有1人参与
fluent 边界条件径向速度、切向速度插入udf之后,无法初始化,求助各位大佬!!!
#include"udf.h"
#include"math.h"
DEFINE_PROFILE(inlet_velocity, thread, i)
{
real x[3];
real z;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x, f, thread);
z = x[2];
F_PROFILE(f, thread, i) = 17.910*pow(z / 0.02, 0.1732);
}
end_f_loop(f,thread)
}
初始化出现错误
Divergence detected in AMG solver: x-momentum
Divergence detected in AMG solver: y-momentum
Divergence detected in AMG solver: z-momentum
Divergence detected in AMG solver: pressure correction
Divergence detected in AMG solver: k
Divergence detected in AMG solver: omega
Error at host: floating point exception
Error at Node 0: floating point exception
Error at Node 1: floating point exception
Error: floating point exception
Error Object: #f@wuming524 |
|