CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Compiling UDFs under Windows XP

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2005, 05:26
Default Compiling UDFs under Windows XP
  #1
Hannah
Guest
 
Posts: n/a
We are trying to compile a UDF under Windows XP.

1) Does FLUENT have by default a compiler along with the installation package for Windows? (because I found it in Fluent6.22/ntbin/nt86/cpp.exe and cc.exe) If so what are the detailed steps to compile the udf? I've tried and got the error, nmake: command unknown If not, I've got compiler, MinGW but how do I make it compile the FLUENT UDFs

2) What are the environment variables to set for a compiler to be used with fluent?

Thank you for your help, Hannah
  Reply With Quote

Old   February 9, 2005, 07:05
Default Re: Compiling UDFs under Windows XP
  #2
Shuto
Guest
 
Posts: n/a
Hi Hannah,

UDF's are written in C++, so you need to have a separate compiler such as MS Visual C++ 6.0 installed.

There might be another way but that's what Fluent recommended to me. If you ask the support desk they will clarify exactly what you need.

Hope this helps, Shuto.
  Reply With Quote

Old   February 10, 2005, 12:12
Default Re: Compiling UDFs under Windows XP
  #3
Swarup
Guest
 
Posts: n/a
i have been using interpreted UDFs. i just put them in "src" folder where all UDFs are kept. next step is to access them from within GUI using UDFs---> Interpreted/Compiled path. Swarup.
  Reply With Quote

Old   February 13, 2005, 09:16
Default Re: Compiling UDFs under Windows XP
  #4
ap
Guest
 
Posts: n/a
1) FLUENT can manage two kinds of UDF: interpreted and compiled.

The cpp.exe you found is the internal compiler of FLUENT used with interpreted UDF.

If you need or want to use a compiled UDF under Windows, you need Microsoft Visual C++, because you need to compile the C source code of your UDF.

2) You just have to set the environment variables of the compiler (it will ask you during the setup) and the usual FLUENT environment variables (There is a tool in the FLUENT.INC group in the start menu).

Regards, ap
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Compiling UDFs in Ansys Fluent 13 (lnx64) Ali.beh Fluent UDF and Scheme Programming 3 August 27, 2018 05:22
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Compiling UDF's Under Linux OS Yasser Nabavi FLUENT 2 April 24, 2006 20:59
Need Makefile for GCC in windows to compile UDFs Filipe Madureira FLUENT 2 December 28, 2005 17:08
compiling UDFs in NT Fabio FLUENT 1 June 26, 2000 12:17


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