当前位置:服务支持 >  软件文章 >  FluentUDF编译问题终极解决方案

FluentUDF编译问题终极解决方案

阅读数 17
点赞 0
article_banner


        错误原因与解决方法:fluent udf在compiled时出现错误:'nmake' 不是内部或外部命令

        对比了两台主机上的环境变量 Path、 lib 以及 include 之后发现可以正常运行udf的旧的主机(A)与新的主机(B)之间的差别,发现Path等并没有太多异常,甚至A上几乎没有添加环境变量。于是采用下方案

        

        解决方案: 

        从Microsoft 官网下载 软件开发补丁: NET Framework 2.0 Software Development Kit (SDK) (x64)

        安装补丁

        从开始快捷键中 以管理员身份运行 SDK 命令行,SDK Command Prompt

        命令行中 切换至fluent 启动项位置,运行fluent

        切换fluent工作目录至case 目录,运行。

        udf 可以成功运行

        在SDK 运行代码为:

——————————————————

        随后,删除了libudf之后 以正常方式打开case之后仍然失败。

        不删除libudf,正常方式打开case之后成功。

        因此推断 在编译过程中有点问题,可能还是VS与 fluent 之间配合不好。 在编译完成之后udf即可正常运行

21.png

附上一张图片和参考方案来源

How can I manage to compile my UDF with Windows 7 64bit?

This problem sometimes looks similar to the one concerning the missing 'nmake'.

  • Install Visual Studio. Most of the time the Visual C++ 2008 Express Edition [3] is recommended. On my system it even works with the new Visual Studio 2010 Professional Release Candidate [4].

  • Set the correct environment variables. Browse your way through the Windows system control to 'System'. There you will find a section 'Advanced system settings'. In the following dialog go to the 'Advanced' tabulator and click on 'Environment variables' (lower right corner). Go through the 'System variables' list and search for the 'Path' entry. Add the following to the variable: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files\ANSYS Inc\v120\fluent\ntbin\win64. Adjust this entry to your system concerning the installation directories! The Visual Studio entry should point to the location where 'nmake' is located.

  • Install a Software Development Kit (SKD) for 64bit systems. This may be the difference between 32bit and 64bit systems. I have used the .NET Framework 2.0 Software Development Kit (SDK) (x64) from 2006[5] because it is explicitly for 64bit systems and I was not sure if more recent versions are for 64bit systems as well.

  • Start FLUENT from the SDK command prompt. Do not use the Visual Studio command prompt, use the SDK command prompt! Go to the directo是、ry your case is in and type 'fluent'.



免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删
相关文章
QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空