qsctf9 发表于 2014-10-25 16:22:48

求助:6dof UDF编译与加载问题

小弟进来要做一些flunt动网格方面的问题,遇到了诸多困难,在此向各位大神求教。
6dof模型
UDF程序模仿流沙大哥给的例子,具体如下所示:
#include "udf.h"
DEFINE_SDOF_PROPERTIES(theship,prop,dt,time,dtime)
{
   prop=429.78;
   prop=469.78;
   prop=35.65;
   prop=TRUE;
   prop=TRUE;
   prop=TRUE;
   prop=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.

milaoshu 发表于 2014-10-25 19:42:29

估计是环境变量没设置好

qsctf9 发表于 2014-10-25 20:41:05

vc6.0装了好多次了,而且不知道为什么不加入限制运动的那几条语句就能用

qsctf9 发表于 2014-10-27 09:51:09

问题貌似是解决了,虽然不知道原因,特来和大家分享一下。
换了一个版本的fluent,从6.3.26变为了12.0.16就能用了。
感谢大家的帮助。

alivealone 发表于 2014-10-27 11:19:36

顶楼主告诉了解决方案啊

aerocbc 发表于 2017-4-5 11:53:21

改环境变量?
页: [1]
查看完整版本: 求助:6dof UDF编译与加载问题