24小时热门版块排行榜    

查看: 3092  |  回复: 7
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

fyhngq128806

银虫 (小有名气)

[求助] udf编译求助已有1人参与

使用fluent15.0编译udf出现以下错误,请问是什么问题?
Reading "C:\Users\Administrator\Desktop\22\wo-8-10-0.55-10000-773.dat"...
Done.
Copied C:\Users\Administrator\Desktop\22/C:\Users\Administrator\Desktop\22\WSGGpdf.c to libudf\src
udf_names.c and user_nt.udf files in 3d are upto date.
(system "copy "D:\PROGRA~2\ANSYSI~1\v150\fluent"\fluent15.0.0\src\makefile_nt.udf "libudf\win64\3d\makefile" "
已复制         1 个文件。
(chdir "libudf"(chdir "win64\3d"# Generating ud_io1.h
WSGGpdf.c
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\cortex\src\cx.h(45) : error C2632: 'long' followed by 'long' is illegal
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2350) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2350) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2350) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2351) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2351) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2351) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2366) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2366) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2366) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2367) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2367) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~2\ANSYSI~1\v150\fluent\fluent15.0.0\src\mem.h(2367) : error C2010: '.' : unexpected in macro formal parameter list

Done.

Opening library "c:\users\administrator\desktop\22\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).

系统找不到指定的文件。

c:\users\administrator\desktop\22\libudf\win64\3d\libudf.dll

Error: The UDF library you are trying to load (libudf) is not compiled for 3d on the current platform (win64).

系统找不到指定的文件。
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fyhngq128806

银虫 (小有名气)

引用回帖:
3楼: Originally posted by sfbook at 2016-11-27 19:11:42
这么老的错误。。。。首先你需要看一下环境变量的设置,基本上头文件找不到都是环境变量的问题。
下面那个错误应该是直接进的fluent或者workbreach吧,如果安装了VS,就用“x64 兼容工具命令提示”来启动,这样读入 ...

好的,谢谢您的回答!
6楼2016-11-28 10:11:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 8 个回答

achilFes1990

木虫 (著名写手)

几个建议:1 网格msh文件与udf文件要在一个文件夹里,文件夹命名尽量为简单的英文,不要用特殊符号,也尽量别放桌面;2 检查一下你的udf文件是否正确,尤其是一些畅销书里面给的文件,版本比较老,有一些纰漏,检查修改后使用。

发自小木虫Android客户端
扫一扫关注我的微信公众号,共同学习船舶CFD
2楼2016-11-27 14:11:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sfbook

银虫 (小有名气)

这么老的错误。。。。首先你需要看一下环境变量的设置,基本上头文件找不到都是环境变量的问题。
下面那个错误应该是直接进的fluent或者workbreach吧,如果安装了VS,就用“x64 兼容工具命令提示”来启动,这样读入的时候应该就不会出现这种错误了。
而且你需要一个好习惯,每次重新编译udf文件时一定要把原路径下的libudf文件夹删除,不然可能会有各种迷之错误,如果是反复调用的udf可以无视这个。其次,如果你出现的错误实在是搞不清楚哪里出现的,可以考虑使用解释那个选项,对于几十行的小代码来说,效率相差的也不是很大。
3楼2016-11-27 19:11:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
4楼2016-11-27 19:33:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见