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

load libudf problem

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2007, 14:18
Default load libudf problem
  #1
alfred
Guest
 
Posts: n/a
Hello there,

I am a beginner to fluent. I am trying to define udf through compiled function and then load libudf. It seems fine after I click "build", but I always get error message as below when I click "load"... (I am using windows version, VC is installed).

1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2d")()

Done. "c:/phdwork/fluentcases"

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

Error Object: ()

thank you in advance for any help or comments...
tianjunjie likes this.
  Reply With Quote

Old   February 26, 2007, 18:05
Default Re: load libudf problem
  #2
Shanti
Guest
 
Posts: n/a
Hi

Do you have nmake.exe installed on your computer? Also try putting the libudf folder in your working directory of FLUENT. I am not sure if its causing that. But it helped me.

Thanks,

Shanti
  Reply With Quote

Old   March 7, 2007, 07:54
Default Re: load libudf problem
  #3
Sangeeta
Guest
 
Posts: n/a
I too am facing the same problem. and i d'nt have nmake.exe installed in my PC. How could i get it? I have libudf folder in my working directory.

Thanks in advance.
  Reply With Quote

Old   March 11, 2007, 09:09
Default Re: load libudf problem
  #4
Ravi Bharihoke
Guest
 
Posts: n/a
Hi Alfred,

I am facing exactly the same problem as you mentioned.

Can you please tell in details about what you did for compiling udf. If you wish you can mail to ravii.iitkgp@gmail.com ...

sorry i am sounding little impatient but am in urgent need as i have very less time left to complete my project.

Ravi IIT Kharagpur
  Reply With Quote

Old   March 11, 2007, 11:06
Default Re: load libudf problem
  #5
Sangeeta
Guest
 
Posts: n/a
For compiling i add the source file and then click on it and say build.then when i say load i get the above error.

But i was told by fluent support to go to Dos prompt. GO the the directory where ur source and c files are there and say fluent 2d/3d and the enter.

So try this and chck. Each time u compile erase the libuf folder created when u earlier compiler
  Reply With Quote

Old   March 11, 2007, 18:55
Default Re: load libudf problem
  #6
ravi
Guest
 
Posts: n/a
Hi Sangeeta,

Thank you for your reply.

I tried it the way you said, but am still getting the same error " The system cannot find the file specified".

Just read this once 1. I go to cmd and go to the folder where my udf and case files are there 2. I type Fluent 2d there. 3. Then Fluent opens, i select my case file. 4. I go to define udf option add my source file "udf_name.c" Then i build the udf n then i load my udf.

Isn't it the same procedure as earlier?... Did it work for you?....

In anticipation of your reply,

Regards, Ravi
  Reply With Quote

Old   March 13, 2007, 12:02
Default Re: load libudf problem
  #7
Sangeeta
Guest
 
Posts: n/a
Sorry, it didnot even work for me. i am trying to get it solved and if i did it i wll surely let u know. if u solve it before me then plz let me know.

Thanks
  Reply With Quote

Old   March 14, 2007, 06:00
Default Re: load libudf problem
  #8
Tania
Guest
 
Posts: n/a
Hi,

I had the same problem when I run Fluent in windows. But then I installed VisualC++, everything worked. It seems that you need to have a compiler installed in the computer. This is how I solved my problem.

Here are the steps, I do to run an Udf file.

1- put the udf file in my case directory.

2- Go to Define>user-defined Functions>Compiled> There you should first add the udf file.

3- Click on BUILD

4- Click on LOAD

..it should work.

Tania

  Reply With Quote

Old   March 14, 2007, 09:58
Default Re: load libudf problem
  #9
Sangeeta
Guest
 
Posts: n/a
I have visual C++ loaded on my pc but still it doent work

Thanks
  Reply With Quote

Old   March 14, 2007, 10:10
Default Re: load libudf problem
  #10
Sangeeta
Guest
 
Posts: n/a
i have DevCPP compiler but it does not compile yet
  Reply With Quote

Old   March 15, 2007, 01:43
Default Re: load libudf problem
  #11
Tania
Guest
 
Posts: n/a
Sangeeta, It seems that you had visual c++ installed before Fluent. If I were you I'll uninstall Visual C++ and Install it again... and check what happens.

In my case, the installation of visual C++ solved the problem of Udf Loading error message.

Just try it and tell us if it works.

  Reply With Quote

Old   March 18, 2007, 10:27
Default Re: load libudf problem
  #12
Sangeeta
Guest
 
Posts: n/a
Tania, i installed visual C++ also. but still it does not work.

  Reply With Quote

Old   March 18, 2007, 10:37
Default Re: load libudf problem
  #13
Sangeeta
Guest
 
Posts: n/a
Is it necessary to load the C++ in the same drive as fluent
  Reply With Quote

Old   March 18, 2007, 14:17
Default Re: load libudf problem
  #14
Rizwan
Guest
 
Posts: n/a
Sangeeta, can u please chek what enviroment variables u r using? their path? and the order they are defined used? please chek and let us know if there is some mention of path in system variables too.

Regards
  Reply With Quote

Old   March 19, 2007, 08:12
Default Re: load libudf problem
  #15
soe
Guest
 
Posts: n/a
Hi guys, i've had this problem before.1) Depending on the machine you're running on fluent's internal compiler builds the udf code with a "Makefile" script. This could be missing. 2) For starters, your udf .c file should be in the same directory as your .cas file, ie. in your working directory. 3) Also check your Fluent software folder for the SRC directory, it should have all the header .h files inside to build the preprocessor directives in your code. 4) i'd like to know if your code even builds correctly at all before you load it. What does Fluent say about the building process? If you code was not built, you can't load, it will give you the load libudf problem. Anyway if any of those stuff i mentioned above is happening then the building will definitely fail. If nothing helps, try to find the "log" file in your working directory, send it to the fluent guys, they'll figure it out for you. They'll know what's wrong.
  Reply With Quote

Old   March 19, 2007, 10:47
Default Re: load libudf problem
  #16
Rizwan
Guest
 
Posts: n/a
well in my case which i have been working on for a couple of days, its like im in the first stage itself. try to build but the nmake file not found, to my knowledge this is coz of not detection of nmake file (the compiler fluents hopes to find once u click build on compile panel) of vc++ by fluent. as for now, i can only suggest that it is related to properly definining the path in environment variables.

regards
  Reply With Quote

Old   March 19, 2007, 11:35
Default Re: load libudf problem
  #17
Tania
Guest
 
Posts: n/a
I don't know if this will help. May be you should try to set the environment by doing :

Start-> Program-> Fluent Inc Products -> Fluent ->SET Environement

But this should have been done right after the installation of Fluent.
  Reply With Quote

Old   March 19, 2007, 23:04
Default Re: load libudf problem
  #18
Rizwan
Guest
 
Posts: n/a
No that is not my problem. I have good experience using fluent and writing udfs (interpreted ones not compiled ones). anyways thanks for your response.
  Reply With Quote

Old   March 20, 2007, 11:22
Default Re: load libudf problem
  #19
Sangeeta
Guest
 
Posts: n/a
Soe, I am having UDf and case file in same drive(in windows). i am not able to build the udf. its says nmake is not recognized as an internal or external, operable program or batch file.

I am Having the SRC and log file also.

So can u plz tell me the reason for not building

Thanks
  Reply With Quote

Old   March 21, 2007, 07:03
Default Re: load libudf problem
  #20
soe
Guest
 
Posts: n/a
Hi Sangeeta,

Did you send the fluent guys the log file? Let me see it as well, i'll see if it's a similar problem to mine. Computers are funny, for all you know if you try it on another machine, you might actually be able to compile.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 21:50
high CPU load with no computation going on & Pressure coefficient output problem spetsnaz26 FLUENT 0 September 30, 2011 05:25
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


All times are GMT -4. The time now is 03:24.