|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
小弟进来要做一些flunt动网格方面的问题,遇到了诸多困难,在此向各位大神求教。
6dof模型
UDF程序模仿流沙大哥给的例子,具体如下所示:
#include "udf.h"
DEFINE_SDOF_PROPERTIES(theship,prop,dt,time,dtime)
{
prop[SDOF_MASS]=429.78;
prop[SDOF_IXX]=469.78;
prop[SDOF_IZZ]=35.65;
prop[SDOF_ZERO_TRANS_X]=TRUE;
prop[SDOF_ZERO_TRANS_Z]=TRUE;
prop[SDOF_ZERO_ROT_Y]=TRUE;
prop[SDOF_ZERO_ROT_Z]=TRUE;
printf("\nstage: updated 6dof properties");
}
在加载UDF的过程中出现了如下问题:
已复制 1 个文件。
系统找不到指定的文件。
(system "copy C:\Fluent\fluent\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3d_host\makefile")
已复制 1 个文件。
(chdir "libudf")()
(chdir "ntx86\3d_host")()
theship.c
..\..\src\theship.c(8) : error C2065: 'SDOF_ZERO_TRANS_X' : undeclared identifier
..\..\src\theship.c(9) : error C2065: 'SDOF_ZERO_TRANS_Z' : undeclared identifier
..\..\src\theship.c(10) : error C2065: 'SDOF_ZERO_ROT_Y' : undeclared identifier
..\..\src\theship.c(11) : error C2065: 'SDOF_ZERO_ROT_Z' : undeclared identifier
(system "copy C:\Fluent\fluent\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\3d_node\makefile")
已复制 1 个文件。
(chdir "libudf")()
(chdir "ntx86\3d_node")()
theship.c
..\..\src\theship.c(8) : error C2065: 'SDOF_ZERO_TRANS_X' : undeclared identifier
..\..\src\theship.c(9) : error C2065: 'SDOF_ZERO_TRANS_Z' : undeclared identifier
..\..\src\theship.c(10) : error C2065: 'SDOF_ZERO_ROT_Y' : undeclared identifier
..\..\src\theship.c(11) : error C2065: 'SDOF_ZERO_ROT_Z' : undeclared identifier
Done.
|
|