24小时热门版块排行榜    

查看: 3361  |  回复: 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的回帖

toastonline

新虫 (初入文坛)

还有人关注这个问题吗?把这些方法试遍了也没解决啊,看网上有另外答案是把mem.h文件中对应行数的程序修改一下,但是我不知道具体是怎么修改啊
8楼2018-06-02 19:36:11
已阅   回复此楼   关注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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 是这周出结果还是下周出结果? +3 yuleib84 2026-08-11 3/150 2026-08-11 21:53 by jnhyjjm
[基金申请] 小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊 +8 Tide man 2026-08-10 9/450 2026-08-11 20:39 by beefly
[基金申请] 有时候,自然基金真的不能太认真 (我的申报经验) +3 majunge000 2026-08-11 4/200 2026-08-11 20:13 by lch2012
[基金申请] 为什么网上很多人说本周 12号出结果 +6 瞬息宇宙 2026-08-10 7/350 2026-08-11 19:25 by Tide man
[硕博家园] 读博的好处 +3 lnee 2026-08-11 3/150 2026-08-11 18:10 by 希望我好好的
[论文投稿] 职称评审,求友友推荐见刊最快的期刊 +3 工厂打螺丝 2026-08-08 3/150 2026-08-11 13:42 by 会议编辑
[基金申请] 听说今天filecode变了 +26 布布和一二 2026-08-06 49/2450 2026-08-11 13:18 by WH3796
[基金申请] 我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人 +8 家与远方 2026-08-10 13/650 2026-08-11 09:49 by 家与远方
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 关于Filecode分析方法 +3 majunge000 2026-08-10 3/150 2026-08-10 15:46 by lch2012
[基金申请] 好奇怪的filecode +4 布布和一二 2026-08-08 5/250 2026-08-10 14:20 by 冰心玉壶晴
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] 这样的filecode谁见过 +11 布布和一二 2026-08-08 22/1100 2026-08-10 11:10 by wmfsnow
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] 好消息?这个有何含义??? +8 Tide man 2026-08-05 10/500 2026-08-05 16:14 by xmuxiaoyu
信息提示
请填处理意见