fluent动网格提示incorrect cg motion UDF piston on zone 错误
-
在fluent中使用动网格的时候,在TUI下面显示incorrect cg motion UDF piston on zone 26 (assuming no motion),并且预览网格毫无变化,请问这个如何解决呢?
#include "udf.h" #include "dynamesh_tools.h" DEFINE_CG_MOTION(piston, dt, vel, omega, time, dtime) { /* reset velocities */ NV_S (vel, =, 0.0); NV_S (omega, =, 0.0); if (time < 0.00001) { vel[1] = 15; } else if (time < 0.000015) { vel[1] = 0; } else if (time < 0.000025) { vel[1] = 15; } else { vel[1] = 0; } }