CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error: open_udf_library: (https://www.cfd-online.com/Forums/fluent-udf/34162-error-open_udf_library.html)

dhananjay July 9, 2004 17:24

Error: open_udf_library:
 
Hello,

i am facing a problem in using compiled UDF. interpreted UDF is working fine, but when i use same code with compiled UDf it gives me following error message.

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

the log file in 'libudf/ntx86/2ddp' shows following:

'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : U1077: 'cl' : return code '0x1' Stop.

any help in this regard will be appreciated.

with kind regards, dhananjay.


Karthick July 12, 2004 07:11

Re: Error: open_udf_library:
 
Hello Dhananjay

please check whether Visual Studio is installed correctly in your system. Because this error will come when u have not specified the path for visual studio. Try to interpret the udf. If it works good, then it is the problem with visual studio only.

Regards Karthick


Javier July 12, 2004 07:53

Re: Error: open_udf_library:
 
Hello:

I have the same problem. how can i fix the route in fluent to the visual studio? What should i put in the header file section?

Thanks

Karthick July 12, 2004 08:19

Re: Error: open_udf_library:
 
Dear Javier,

You please reinstall visual studio again. while installing it'll ask to whether path to be set or not?

Otherwise you specify the your email address. I'll send u the html file showing how to specify the path to fluent. Otherwise check the old posts.

Regards Karthick

dhananjay July 12, 2004 10:10

Re: Error: open_udf_library:
 
Hello Karthick,

thanks a lot for your kind reply. the problem was in Visual Studio. interpreted UDF worked perfectly. i think that now i can fix the problem.

thanks again for your advice,

with kind regards, dhananjay.


IvanCFD February 13, 2010 17:52

Hello Karthick,

I'm having a nightmare with trying to compile a UDF.

I'm a beginner about dealing with UDFs on Windows-based Fluent 2D.

When I load the UDF, I get the following message:

- "nmake" not recognized as an internal or external command, operable program or batch file.

I've seen out there that it is an issue related to the interaction between Fluent and Visual Studio To solve it, during the installation process, one needs to select the "register environment variables" option. However, I haven't seen such option during Fluent installation. This is what I've done step by step:

1) Install full Microsoft Visual Studio 2008.

2) Install Windows-based Fluent.

3) Go to "Start" --> "All Programs" --> "Fluent Inc Products" --> "Fluent 6.3.26" --> "Set Environment"

After doing all that, I still couldn't load my UDF. Same error message.

Then I downloaded nmake.exe and installed at \Fluent.Inc\fluent6.3.26\ntx86 and also at WINDOWS\system32, I opened a command prompt and executed nmake. After doing all this, back on Fluent I was able to get rid of the nmake error message.

However I now get another error message:

Opening library "libudf"...
Error: open_udf_library: (...)


I installed Visual Studio 2008 and I didn't say at any step to whether path to be set or not. But after doing the "Set Enviroment" thing I checked that PATH is at ntx86.

Would you please let me know what I'm missing?

Many thanks beforehand,

Ivan.

matthewsun February 27, 2010 08:22

error:open~~~
 
hi,mate!
i am facing the same problem and still can't figure it out.
i set the envionmental variables of Administrator as follows:

include:E:\programe files\microsoft visual studio 9.0 \vc\include
lib:E:\programe files\microsoft visual studio 9.0 \vc\lib
path:E:\programe files\microsoft visual studio 9.0 \common7\IDE

i followed the remedy online,but i guess they must've missed something.
matthew
looking fwd to ur reply

matthewsun February 27, 2010 23:00

hi,Ivan
oops,this problem has been bothering for the past couple of days,but after working on it a whole day yesterday,i managed to figure it out, it's the settings of environmental variables that matter.

IvanCFD February 28, 2010 05:38

Hi matthewsun,

sorry for the late reply.

Yes, that's rhe whole thing.

What worked to me was the following (and just with Visual Studio Express):

1) Start -> Fluent Inc. -> Set Environment variables

2) Start -> Visual Studio -> Prompt symbol .... MS-DOS windows appears

The fact of opening that MS-DOS windows through Visual Studio makes, somehow, prepare the communication between C++ and Fluent.

3) Navigate on that MS-DOS windows up to your working directory and type fluent <model>.

That's all.

Cheers,

Ivan.

Quote:

Originally Posted by matthewsun (Post 247754)
hi,Ivan
oops,this problem has been bothering for the past couple of days,but after working on it a whole day yesterday,i managed to figure it out, it's the settings of environmental variables that matter.


matthewsun March 3, 2010 03:13

hi,Ivan
sorry for the late reply.
i have to say this udf compiling thing is really pretty boring,the message 'error ~~~' ocurrs again,i unintalled the visual studio and reinstalled,and did the settings as those on the network ,but it failed to work,so i am really sorry,i'll send you the remedy once i work it out.
matthew

IvanCFD May 8, 2010 04:53

Hi Matthew,

sorry for the late reply.

If you follow my post "February 28, 2010, 09:38" it should work. I did just that, and it just worked.

I recommend you to do exactly what I bulleted, unistall any Visual Studio you've got and install Visual Studio Express from scratch. That's what I did and, as said, no more errors appeared.

Cheers,

Ivan.

matthewsun May 9, 2010 22:21

Hi Ivan,
I uninstalled the visual studio 2008 and installed the VC6,i didn't do any changes to the environmental variables ,it worked!
Thanks anyway
matt

IvanCFD May 13, 2010 14:25

Hi Matt,

I had refreshed my computer and now I want to run a UDF I just can't.

I followed all the steps I bulleted above and it just doesn't want to work.

You say you unistalled Visual Studio 2008 and installed VC6. What's VC6?

Yo say you don't have to set the environment variables. So, how do you launch Fluent? Do you have to go through by the Command Prompt?

Cheers,

Ivan.

IvanCFD May 13, 2010 14:48

Hey again Matt,

no worries, "my" approach still works!

The problem was in the way my .c file was coded, with some coding mistakes.

Now everything works as I expected.

Thanks anyway,

Ivan.

banerji July 3, 2010 16:32

problem compiling UDF
 
Hi Matthiew and Ivan,

I looked at your posts and it seems I am having a problem you had long time ago but I followed your methods of setting environments without success. we recently switched to Fluent 12.1.4 and I have hard time compiling my UDF. Does any body of you use this Fluent version?

matthewsun July 4, 2010 02:43

well,this is not longer a problem for us, like i said ,i uninstall the visual studio 2008 and installed vc++,i remember a dialog box would come up at the end of installation about setting environment variables and i clicked yes ,then i could compile the codes,if this still bothers you,i'll see if i can make a video or something
matthew

IvanCFD July 4, 2010 16:04

Hi Banerji,

I installed Visual Studio Express (the free version) and did the following:

1) Start -> Fluent Inc. -> Set Environment variables

2) Start -> Visual Studio -> Prompt symbol .... MS-DOS windows appears

The fact of opening that MS-DOS windows through Visual Studio makes, somehow, prepare the communication between C++ and Fluent.

3) Navigate on that MS-DOS windows up to your working directory and type fluent <model>.

This works for me.

With respect to Fluent 12, sorry but I haven't work with it in depth yet.

Cheers,

Ivan.

banerji July 4, 2010 20:01

Thanks guys for replying. hey Matthiew which Fluent Version are you using?

als_226 August 14, 2010 15:37

Hi guys, i followed the steps above but instead i got this problem,

"Error: open_udf_library: %1 is not a valid Win32 application.

Error Object: ()"

I can't find any solutions to this matter. I hope you guys can help me regarding this problem.

ehooi January 14, 2011 10:27

Quote:

Originally Posted by IvanCFD (Post 247769)
Hi matthewsun,

sorry for the late reply.

Yes, that's rhe whole thing.

What worked to me was the following (and just with Visual Studio Express):

1) Start -> Fluent Inc. -> Set Environment variables

2) Start -> Visual Studio -> Prompt symbol .... MS-DOS windows appears

The fact of opening that MS-DOS windows through Visual Studio makes, somehow, prepare the communication between C++ and Fluent.

3) Navigate on that MS-DOS windows up to your working directory and type fluent <model>.

That's all.

Cheers,

Ivan.

Hi,
Do you think this will work using Microsoft Visual Studio 9.0? Also I am using Ansys Fluent 12.1, which means there isnt the Set Environment option from the Start Menu.

Thanks.

EH


All times are GMT -4. The time now is 16:44.