Compiling and Loading User Defined Functions using Microsoft Visual C++ 2008 Express Edition in Serial


NOTE: Microsoft Visual C++ 2008 Express Edition will NOT work if you are running FLUENT 6.3.26 64-bit. This is a 32-bit compiler only.


Microsoft announced that they were giving away a FREE compiler. The compiler is called Microsoft C++ 2008 Express Edition which can be located at this link:

Microsoft Visual Studio 2008 Express Edition
( <a target=_blank href="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=3092">http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=3092</a>http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=3092 )


*Steps for Building Compiled Windows UDFs using Microsoft Visual C++ 2008 Express Edition*

1. Install Microsoft Visual C++ 2008 Express Edition (Refer to the Microsoft Visual C++ 2008 Express Edition Installation Guide for installation instructions.)

2. You will be starting FLUENT from a Command Prompt so you will have to set the FLUENT.INC Environment Variables.

3. Select the Start Menu, Programs, Fluent Inc Products, Fluent 6.3.26), Set Environment. Choose YES to Modify.

4. The installation of Microsoft Visual C++ 2008 Express Edition does not set environment variables necessary to run from a command line, therefore, in order to compile UDF's within FLUENT you will need to set the Visual Studio environment variables. Select the Start Menu, Programs, Visual C++ 9.0 Express Edition, Visual Studio Tools, choose Visual Studio 2008 Command Prompt.

5. In this Command Prompt window change directory to the working directory where the source file (.c) and case and data file are located and launch FLUENT.

6. In FLUENT, Select Define, User Defined, Functions, Compiled.

7. Select the Add button to add your source file.

8. Select Build.

9. Once the UDF is Compiled select the Load button.

See attached Resolution Document.





Show Form
No comments yet. Be the first to add a comment!