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

How do I compile a UDF from a .c file?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 15, 2009, 17:16
Default How do I compile a UDF from a .c file?
  #1
Travis
Guest
 
Posts: n/a
I'm very new to UDFs, and I have a .c file that I borrowed from someone. I don't know how to compile it.

Can someone point me in the right direction?
  Reply With Quote

Old   January 16, 2009, 01:10
Default Re: How do I compile a UDF from a .c file?
  #2
Davy
Guest
 
Posts: n/a
you need a c compiler and set the correct compiler environment as the compiler prespecified.
  Reply With Quote

Old   January 16, 2009, 01:33
Default Re: How do I compile a UDF from a .c file?
  #3
Travis
Guest
 
Posts: n/a
I understand the basic concept... a pointer to a compiler would be great.
  Reply With Quote

Old   January 28, 2009, 12:39
Default Re: How do I compile a UDF from a .c file?
  #4
KJ Larsen
Guest
 
Posts: n/a
Hello Travis

Fluent can compile UDFs, but it has to be launched from the command prompt if you're using a windows machine. Select the .c source file and press Build and Load (Define -> User Defined -> Function -> Compiled...)

There will definitely be more info in the UDF Manual or this forum. Kris
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compile warning: no newline at end of file mrt FLUENT 4 December 5, 2007 05:48
compile of udf ashraf Main CFD Forum 1 March 15, 2007 16:05
Compile the UDF Eric FLUENT 7 August 18, 2006 14:46
Error when compile UDF file Lee FLUENT 4 May 3, 2005 06:52
compile the UDF Li Jingping FLUENT 2 April 14, 2003 21:18


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