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

UDF and C

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2006, 11:56
Default UDF and C
  #1
Lourival
Guest
 
Posts: n/a
Just a little question. Is it possible to compile my UDFs using a free C compiler instead of using the Microsoft Visual C++ ???

Something like Dev-Cpp ??

Hugs

Lourival
  Reply With Quote

Old   February 23, 2006, 03:48
Default Re: UDF and C
  #2
Lucy
Guest
 
Posts: n/a
The manual says that you can use any text editor to creat a text file containing C code.You only have to save the source code file with a.c extension in your working directory.

Lucy
  Reply With Quote

Old   February 23, 2006, 03:59
Default Re: UDF and C
  #3
edi
Guest
 
Posts: n/a
On windows machines you are forced to use the microsoft compiler, I think that the Redistributable Package should be sufficient, anyway. You can download it from MS website. I'm not entirely sure, by the way, I always run fluent on linux/unix machines, and there you can use the compiler you like...

Good luck

Edi.
  Reply With Quote

Old   February 23, 2006, 04:43
Default Re: UDF and C
  #4
RoM
Guest
 
Posts: n/a
You can compile with gcc under XP but its really not worth the trouble. The greatest problem is the fluent.lib for the ld linker. The ones supplied by fluent are not compatible with ld so you have manually build the import archives. (see here http://www.mingw.org/mingwfaq.shtml#faq-msvcdll) The only tool which catches all the export entrys from fluent.lib seems to be the ms linker with "/dump /exports" option (neither reimp.exe or pexports.ex will work correctly) and if you are going to use the ms linker you can use the comiler as well.

Here are the links to the packeges you need

Net Framework Sdk (includes nmake tool)

http://www.microsoft.com/downloads/d...displaylang=en

NET Framework Redistributable Package (required bevor installing the sdk)

http://www.microsoft.com/downloads/d...displaylang=en

Visaul C++ Toolkit

http://msdn.microsoft.com/visualc/vctoolkit2003/

RoM
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 08:22.