CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   A little more about UDF. (https://www.cfd-online.com/Forums/fluent/48753-little-more-about-udf.html)

Haoyin Shan July 11, 2008 21:48

A little more about UDF.
 
A little more to the following post (http://www.cfd-online.com/Forum/flue...cgi?read=56909).

Please make sure you set environment for FLUENT and GAMBIT from "Start-All programs-Fluent inc products-Fluent-Set environment" and "Start-All programs-Fluent inc products-Gambit-Set environment". Then follow the original post, you will be able to compile UDF files.

Have fun.

****************************

http://www.cfd-online.com/Forum/flue...cgi?read=56909

***************************

Hi, all,

Lots of users find it is hard at the beginning of UDF use. Most of the time, there is an error: ************************ 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file. ************************

This is just the problem of binding between FLUENT and VC++. To know more about this problem, firstly please refer to following post. http://www.cfd-online.com/Wiki/Fluen...at_is_wrong.3F

http://www.cfd-online.com/Forum/flue...cgi?read=47472 gives a long solution about how to solve this problem, but my experience following this did not give me a solution. So I have to find my own way. Followings are my solution.

1. No matter Microsoft Visual Studio professional or express version, they both work fine with FLUENT. As long as it has C++, you could bind it with FLUENT and use it to compile UDF.

2. After installing Microsoft Visual Studio professional or express version, you could check the Environmental variables from 'my computer ---> properties ----> advanced tab', on the bottom part u have environment variables and system variables. Generally on installing, the environmental variables are added for MSVC, check to make sure that this is added. Generally, you need not do anything about this.

3. The most important thing is try to open FLUENT in Visual Studio Command Prompt, which is in 'Start-All programs-Microsoft Visual Studio-Microsoft Visual Studio Tools-Visual Studio Command Prompt'. Then type FLUENT in the command window, FLUENT is starting. Now you can close the Visual Studio Command Prompt, it does not impact the compiling of UDF.

That is it. Very simple, remember to open FLUENT in the Visual Studio Command Prompt, you will be always OK.



All times are GMT -4. The time now is 10:29.