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

compiling UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 26, 2005, 12:10
Default compiling UDF
  #1
joyce
Guest
 
Posts: n/a
Hi,

I am trying to compile a UDF. I put the .c file and udf.h file in the same directory as the .cas file. there is no other .h file created by myself. When I clikc "build", it did create the directory and copy a few files in that directory, but when click "load" it gave me an error message say "Error: open_udf_library: The system cannot find the file specified."

Is there anyone can tell me why it happened and how to solve the problem?

Thanks a lot.

joyce

  Reply With Quote

Old   January 26, 2005, 12:28
Default Re: compiling UDF
  #2
Diet
Guest
 
Posts: n/a
are you sure there aren't any syntax errors in your code? you should check the log file first in order to localize and correct the syntax errors.

greetz
  Reply With Quote

Old   January 26, 2005, 17:44
Default no syntax errors
  #3
joyce
Guest
 
Posts: n/a
Hi,

Thank you for your reply. There is no syntax errors, then how could this happen?

Thank you.

Bing Ma
  Reply With Quote

Old   January 26, 2005, 18:01
Default no syntax errors
  #4
joyce
Guest
 
Posts: n/a
Hi,

Thank you for your reply. There is no syntax errors, then how could this happen?

Thank you.

Bing Ma
  Reply With Quote

Old   January 27, 2005, 05:43
Default Re: no syntax errors
  #5
Diet
Guest
 
Posts: n/a
You don't have to put the udf.h file explicitly in your directory. just the .c file is enough. The rest(udf.h) fluent will find or create on its own... I think this could be the error, but i'm not sure... you can try this by deleting the udf.h file....

Diet
  Reply With Quote

Old   January 30, 2005, 11:02
Default Re: compiling UDF
  #6
Swarup
Guest
 
Posts: n/a
Hi Joyce,

you should put your .c file in src folder that contains all sorts of UDFs in Fluent. you should not forget .c extension to your filename. the moment you compile your UDF, a file "udfconfig.h" is automatically created and you can leave it untouched.

This may help you. Regards, Swarup.
  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
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 7 January 2, 2013 11:49
Compiling UDF on a cluster Adya FLUENT 1 December 14, 2009 12:30
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 09:13


All times are GMT -4. The time now is 21:52.