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

compiling my UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2006, 21:14
Default compiling my UDF
  #1
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi everyone: I wrote a program that it's needed compiling it as a UDF in Fluent. I add my source file and click on Load. When I compile the program (click on Load bottom) the Fluent sends me this error: "Error: open_udf_library: The system cannot find the file specified". I tried to add UDF.H file manually on the Header box and click on Build bottom to building the UDF library but it sends another error: "Error: open_udf_library: The system cannot find the path specified." At the end my Case and Data file together my Source file are in the same directory.

Best Regards, Farid,

  Reply With Quote

Old   February 10, 2006, 01:28
Default Re: compiling my UDF
  #2
mAx
Guest
 
Posts: n/a
Hi, You have to add your source file, and then to build it. After that, you click on load.

  Reply With Quote

Old   February 10, 2006, 01:47
Default Re: compiling my UDF
  #3
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi Max: Thanks for your favor. I do your guides but still Fluent sends me this error: "c:/seyedfaridhosseinizadeh/fluentrun"

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

Error Object: ()"

I'm looking forward to hearing from you. Regards, Farid,
  Reply With Quote

Old   February 10, 2006, 02:15
Default Re: compiling my UDF
  #4
mAx
Guest
 
Posts: n/a
ok, look in your workink directory if you have a libudf folder. If yes, then you have to unload your libudf, with define/user-defined/functions/manage and then re-add your source, build and load (define/user-defined/functions/compiled)
  Reply With Quote

Old   February 10, 2006, 02:38
Default Re: compiling my UDF
  #5
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi. I did them but still I have a problem. As you know I don't do anything with Header file. Maybe my problem is this. I don't know and really I'm confused. "c:/seyedfaridhosseinizadeh/fluentrun"

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

Error Object: ()

Regards, Farid,
  Reply With Quote

Old   February 10, 2006, 02:57
Default Re: compiling my UDF
  #6
mAx
Guest
 
Posts: n/a
be sure, c++ compiler is installed on your machine
  Reply With Quote

Old   February 10, 2006, 04:24
Default Re: compiling my UDF
  #7
HVN
Guest
 
Posts: n/a
There are some specific compilers to use following your os
  Reply With Quote

Old   February 10, 2006, 05:54
Default Re: compiling my UDF
  #8
sagga
Guest
 
Posts: n/a
Hi Seyed. I think you should change the name of source code for example " Code1 " . Do not allow the name has space or symbol.

byebye
  Reply With Quote

Old   February 10, 2006, 09:18
Default Re: compiling my UDF
  #9
Venkatesh.V
Guest
 
Posts: n/a
--> Go to UDF manage menu and if any library is already loaded unload them. Then save the case file.

--> If libudf folder is there in you directory delete it.

--> now try to compile and load the library.

--> Still getting error, check directory has write file access.

--> Still getting error, check for correctness of c Compiler installation.

  Reply With Quote

Old   February 10, 2006, 11:50
Default Re: compiling my UDF
  #10
Tania
Guest
 
Posts: n/a
Hi Seyed, are you working on windows???
  Reply With Quote

Old   February 10, 2006, 16:30
Default Re: compiling my UDF
  #11
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Yes I'm working on windows. Thanks Bye
  Reply With Quote

Old   February 10, 2006, 16:34
Default Re: compiling my UDF
  #12
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Ok. Thanks I do it but it doesn't work. Thanks, Bye
  Reply With Quote

Old   February 10, 2006, 16:36
Default Re: compiling my UDF
  #13
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi: Thanks for your favor. I did anything that you said me. But I still see this error. " 1 file(s) copied. (system "copy C:\FLUENT.INC\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2ddp")()

Done. "c:/seyedfaridhosseinizadeh/fluentrun"

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

Error Object: () "

Thanks , Bye,
  Reply With Quote

Old   February 10, 2006, 16:48
Default Re: compiling my UDF
  #14
Tania
Guest
 
Posts: n/a
I got the same problem as yours when I run fluent in Linux. But in windows, every thing worked fine. But of course, I had to install visual C++.

After your built your Udf, do you find a folder named "liduf" in your working directory???

And you should also check that your fluent case is in the same folder as your UDF.

when you built your UDF, do you get any error message???

  Reply With Quote

Old   February 10, 2006, 16:56
Default Re: compiling my UDF
  #15
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi, Yes exactly. I installe Microsoft Visual Studio .Net 2003 that knows C++. I did anysteps that you figured out. At the end, I still recieve this error: " 1 file(s) copied. (system "copy C:\FLUENT.INC\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2ddp")()

Done. "c:/seyedfaridhosseinizadeh/fluentrun"

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

Error Object: () " Best Regards, farid,
  Reply With Quote

Old   February 13, 2006, 11:37
Default Re: compiling my UDF
  #16
Josh
Guest
 
Posts: n/a
I have the same prolem. When I interprete my udf, it works will, but when I compile it, it showed the same problem: "Error: open_udf_library: The system cannot find the file specified".

Can any one with UDF experience explain this? Thanks a lot!
  Reply With Quote

Old   February 13, 2006, 13:08
Default Re: compiling my UDF
  #17
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hey Man, Me too, If I find my answer I will send to you.

Take Care, Best Regards, Farid,
  Reply With Quote

Old   February 13, 2006, 13:21
Default Re: compiling my UDF
  #18
Josh
Guest
 
Posts: n/a
Thank you. I am waiting for your good news!
  Reply With Quote

Old   February 13, 2006, 16:18
Default Re: compiling my UDF
  #19
Ravi Duggirala
Guest
 
Posts: n/a
Hi Guys,

If you are working on WINDOWS and installed Microsoft Visual studios.NET then,

STEP 1: Place the source file in the folder which contain case & data file (place it in C-Drive) [Create a new folder in C-Drive and place the case and data files and the Source file (.c file)]

STEP 2: Start --> All Programs --> Microsoft Visual Studio .NET 2003 --> Visual Studio .NET Tools --> Visual Studio .NET 2003 Command Prompt (it opens a command prompt)

STEP 3: In the command prompt browse the folder in which the case & data files and the source files are placed

STEP 4: Type "fluent 2ddp &" (it opens FLUENT console)

STEP 5: File --> Read --> Case & Data Files (browse for the case and data files)

STEP 6: Define --> User-Defined --> Functions --> Compiled

STEP 7: Add the source files and click BUILD and then click LOAD

Hope this will solve the problem for you people. If you have still some problems please feel free to contact me at duggirk@auburn.edu.

Ravi
  Reply With Quote

Old   February 13, 2006, 23:10
Default Re: compiling my UDF
  #20
Josh
Guest
 
Posts: n/a
Hi, Ravi,

Thank for your information. The situation to me is that I work in a network computer where everything is installed by the system administrater.

when I build my UDF, the following messege appears:

---------------------------------------------------- Deleted old libudf\ntx86\2ddp\libudf.dll

1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2ddp")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file.

Done. -----------------------------------------------------

When I load it, the following messege appears:

---------------------------------------------- "h:/szhao22/nozzle010-1"

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

Error Object: ()

Hope you can point out where the problem is. Thank you very much!
  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
compiling udf at window Nt(64BIT) noa FLUENT 3 July 30, 2014 00:01
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 02:39.