找回密码
 注册
查看: 1929|回复: 5

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

[复制链接]
发表于 2014-10-25 16:22:48 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

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.
发表于 2014-10-25 19:42:29 | 显示全部楼层
估计是环境变量没设置好
 楼主| 发表于 2014-10-25 20:41:05 | 显示全部楼层
vc6.0装了好多次了,而且不知道为什么不加入限制运动的那几条语句就能用
 楼主| 发表于 2014-10-27 09:51:09 | 显示全部楼层
问题貌似是解决了,虽然不知道原因,特来和大家分享一下。
换了一个版本的fluent,从6.3.26变为了12.0.16就能用了。
感谢大家的帮助。
发表于 2014-10-27 11:19:36 | 显示全部楼层
顶楼主  告诉了解决方案啊
发表于 2017-4-5 11:53:21 | 显示全部楼层
改环境变量?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表