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   September 3, 2004, 05:42
Default Compiling udf !!!
  #1
svh
Guest
 
Posts: n/a
Hi Fluent users

I'm trying to compile a udf, I have made "libudf" in ntx86,changed makefile_nt to makefile, done set environment in fluent, execute "vcvars32.bat" in command prompt. But when I load the made file this message appears:

Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. Error Object: ()

If some one can solve this problem that would be greate.

thanks and regards.
  Reply With Quote

Old   September 3, 2004, 08:57
Default Re: Compiling udf !!!
  #2
Fernando
Guest
 
Posts: n/a
Hi there. I am also working with compiled UDFs, but it seems to work in a different way for me. I have written the codes in C (if using C++ remember to change the extension cpp to c). I saved them in my working directory and then recalled them form the compiled UDF panel: click "add" and that opens an explorer window where you can select your files. Then I enter a name for the libudf (in case you want a different one) and then click on "build". In my case Fluent creates the directories required to compile the source files. Finally I click on "load" and the UDF files are ready to be used. This seems to work in my case (Fluent 6.2 for Windows), hope that it helps. Regards. Fernando.
  Reply With Quote

Old   September 3, 2004, 10:37
Default Re: Compiling udf !!!
  #3
Tang
Guest
 
Posts: n/a
Did you compile the UDF in a C/C++ compiler? I had this trouble once, but I don't know if it realates to your problem. I had a friend compile my UDF and then he sent me the .lib and .dll files. At first I only included the .lib file in my libudf folder and got the error you have, but once I included the .dll file it worked. I don't know if this will help or not.
  Reply With Quote

Old   September 3, 2004, 11:13
Default Re: Compiling udf !!!
  #4
svh
Guest
 
Posts: n/a
I use fluent 6.1.18 and vc++ 6. I don't know what are .dll and .lib, could you please explane more? thank you.
  Reply With Quote

Old   September 7, 2004, 12:46
Default Re: Compiling udf !!!
  #5
Tang
Guest
 
Posts: n/a
The "filename".dll is the dynamic library and "filename".lib is the library file. They are created when you compile your C program.
  Reply With Quote

Old   September 7, 2004, 14:42
Default Re: Compiling udf !!!
  #6
svh
Guest
 
Posts: n/a
Thank you Tang,

I reinstalled VC++, and now there is no problem in compiling.

Thanks and regards.
  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 08:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13


All times are GMT -4. The time now is 11:54.