24小时热门版块排行榜    

查看: 477  |  回复: 0

kuaile2012

新虫 (初入文坛)

[求助] fluent udf仿真出现错误

Sample Textfluent udf仿真出现错误:999999 (..\..\src\mpsystem.c@1123): mpt_read: failed: errno = 10054

999999: mpt_read: error: read failed trying to read 4 bytes: Invalid argument
unable to read the cmd header on the pmi context, Undefined dynamic error code.
unable to read the cmd header on the pmi context, Undefined dynamic error code.
unable to read the cmd header on the pmi context, Undefined dynamic error code.
unable to read the cmd header on the pmi context, Undefined dynamic error code.
The Parallel FLUENT process could not be started.
unable to read the cmd header on the pmi context, Undefined dynamic error code.

job aborted:
rank: node: exit code[: error message]
0: cba: -1073741819: process 0 exited without calling finalize
1: cba: 123
2: cba: 123
3: cba: 123
4: cba: 123
5: cba: 123
我的udf 程序是:#include "udf.h"
#include "math.h"
#define w 6.2831853717//角速度
#define PI 3.1415926535897932384626433832795//圆周率
#define e 0.04//偏心距

DEFINE_CG_MOTION(pianxink, dt, cg_vel, cg_omega, time, dtime)
{ real  s;
  double A;
  double omiga;
s=RP_Get_Real("flow-time";
if (CURRENT_TIME>3)
        A=0.65*w;
else if (CURRENT_TIME>1)
        A=0.4*w;
else
        A=0.2*w;
cg_vel[0] = e*A*sin(-A*CURRENT_TIME);//x方向速度
cg_vel[1] =-e*A*cos(A*CURRENT_TIME);//y方向速度
omiga=A/w*60;
Message ("time = %f, current time = %f,s = %f,omiga=%f\n", time, CURRENT_TIME,s,omiga);
}
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 kuaile2012 的主题更新
信息提示
请填处理意见