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

Compiling udf !!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2004, 04: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, 07: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, 09: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, 10: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, 11: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, 13: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


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
About UDF compiling issues: 'nmake' Haoyin Shan Fluent UDF and Scheme Programming 15 November 4, 2019 18:05
Compiling UDF on a cluster Adya FLUENT 1 December 14, 2009 11:30
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 00: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 06:04.