2014年7月9日星期三

how to compile udf successfully in fluent 14.5

ok, so after one month back and for triggering, I finally manage to compile udf in my windows 8.1, I think I summarize the conlusion and hope it can benefit all of you who see my blog.if you can say a thanks you , i will feel happy.

http://www.cfd-online.com/Forums/blogs/trollreign/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html

The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64).
The system cannot find the file specified.

X:\libudf\win64\2d\libudf.dll
#----------------------------------------------------------

Step-1 : Enable visualization technology in the BIOS setting in Windows 8 or 7

Step-2 : install Microsoft visual studio 2012 express

Step-3 : open VS2012 X64 Cross tools Command Prompt, change directory to working folder , where you have the *.c file

Step-4 : open Fluent V14.5 through step-3 command prompt window, make sure you open with appropriate 2D or 3D double precision options

Step-5 : compile the UDF

This one is the best solution.

of course, story never ended, if you still cannot compile your udf, the cmd exe still pop up message that ERROR: Cannot determine the location of the VS Common Tools folder.below is the suprise
http://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common-tools-folder/

setting path variable to c:\system\windows\system32 solves the issue

done.job completed.

1 条评论:

hahakyo 说...

thank you for your suggestion