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

open_udf_library: The system cannot find the file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2005, 14:31
Default open_udf_library: The system cannot find the file
  #1
John
Guest
 
Posts: n/a
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."

  Reply With Quote

Old   May 21, 2020, 00:50
Default
  #2
New Member
 
Chris Hunter
Join Date: May 2020
Posts: 17
Rep Power: 6
mcc007 is on a distinguished road
Quote:
Originally Posted by John
;117652
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."
Did you solve this issue? I have the same problem with my UDF files. Thanks.
mcc007 is offline   Reply With Quote

Old   May 21, 2020, 07:45
Default Error
  #3
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
This is very common issue and it caused if due to any reason the library is not compiled. Compilation generates a library with extension .so (.dll in case of Windows). If compilation fails then this file is not generated. The existence of other files are not useful in the end. Check for errors during compilation.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 21, 2020, 18:39
Default
  #4
New Member
 
Chris Hunter
Join Date: May 2020
Posts: 17
Rep Power: 6
mcc007 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
This is very common issue and it caused if due to any reason the library is not compiled. Compilation generates a library with extension .so (.dll in case of Windows). If compilation fails then this file is not generated. The existence of other files are not useful in the end. Check for errors during compilation.
Hey Vinerm,

Thanks for your reply. I used Fluent 6.3.26 32 bit version and visual studio 2012 ultimate. My operation system is 64 bit. I tried to use the visual studio command prompt to compile the UDF file. When I clicked the load buttom, it gives me errors Opening library "libudf"...
Error: open_udf_library: The system cannot find the file specified.


So I am not sure if visual studio 2012 ultimate is compatible with my fluent or not. Because when I opened the visual studio command prompt, the name of it is "VS2012 X64 Cross Tools Command Prompt". In such way, this version of visual studio is 64 bit. However, I searched online and found that Microsoft didn't release 64 bit VS2012 (https://stackoverflow.com/questions/...io-2012-64-bit).

Any suggestions of how to solve this problem?

Thanks a lot,
mcc007
mcc007 is offline   Reply With Quote

Old   May 22, 2020, 03:56
Default Compilation log
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
During compilation, it generates a log in the same directory where you have case files. Could you copy that log in the post?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 22, 2020, 23:39
Default
  #6
New Member
 
Chris Hunter
Join Date: May 2020
Posts: 17
Rep Power: 6
mcc007 is on a distinguished road
Quote:
Originally Posted by vinerm View Post
During compilation, it generates a log in the same directory where you have case files. Could you copy that log in the post?
Hey Vinerm,

Thank your reply. I solved this problem by reinstalling the VS.
mcc007 is offline   Reply With Quote

Old   November 11, 2021, 00:16
Default
  #7
New Member
 
Juan Antonio Blanco
Join Date: Nov 2021
Location: San Carlos de Bariloche, Argentina
Posts: 2
Rep Power: 0
EngJuanAntonioBlanco is on a distinguished road
Quote:
Originally Posted by mcc007 View Post
Hey Vinerm,

Thank your reply. I solved this problem by reinstalling the VS.
Hi mcc007:

What version of VS did you install?
EngJuanAntonioBlanco is offline   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
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
open_udf_library: the system cannot find the file specified azharuddin0613 FLUENT 0 December 4, 2010 07:46
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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