UDF environment

I don’t understand why Fluent set the programming of function design so stupid and complex and troublesome. You can get very frustrated by setting the coding environment and don’t want to proceed again.

For example the error showed”Error code 193″,

http://www.cfd-online.com/Forums/fluent-udf/85606-udf-compiling-error-193-a.html

 

First thing is the environment variable (very clear if you have no idea what is it, remember to restart after setting)

For a Win 7 & Fluent 14.5, you need to set the UDF environment for code compiling,

Step 1: Find the console of Environment variables—My Computer->Properties->Advanced-> Environment variables

iF YOU INSTALL VISUAL STUDIO, SDK, AND ANSYS ALL AS DEFAULT PLACE,

INCLUDE=

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include; C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include

 

LIB =

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64

 

Path=

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio\Common7\IDE

 

%%%%%%%%%%%%%%%%%

Fluent path

c:\Program Files\ANSYS Inc\v145\fluent

C:\Program Files\ANSYS Inc\v145\fluent\ntbin\win64\fluent.exe

when type this address into the environment (VC++ or SDK remember to leave ” “, otherwise, it is not recognized)

 

“C:\Program Files\ANSYS Inc\v145\fluent\ntbin\win64\fluent.exe” -r14.5.0