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

problem loading UDF in parallel fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2008, 02:31
Default problem loading UDF in parallel fluent
  #1
Tim
Guest
 
Posts: n/a
Hi,

I digged previous posts but could not find a solution for the following problem. Many thanks for any suggestions.

UDF running fine for serial fluent. On parallel fluent graphic mode running in linux, multicore computer, no error for compilation. Loading leads to the following errors:

Library "libudf/lnamd64/3ddp_host/libudf.so" opened Primitive Error at Node 0: open_udf_library: No such file or directory

Primitive Error at Node 1: open_udf_library: No such file or directory

Primitive Error at Node 2: open_udf_library: No such file or directory

Primitive Error at Node 5: open_udf_library: No such file or directory

Primitive Error at Node 4: open_udf_library: No such file or directory

Primitive Error at Node 6: open_udf_library: No such file or directory

Primitive Error at Node 7: open_udf_library: No such file or directory

Primitive Error at Node 3: open_udf_library: No such file or directory

Looks like the node can not find the udf library. Any workaround solutions? Thanks.
  Reply With Quote

Old   June 26, 2008, 11:42
Default Re: problem loading UDF in parallel fluent
  #2
Leverkin
Guest
 
Posts: n/a
Your system cannot find the library.

Be sure that it's in the same directory with the .cas file.

It's a common mistake. You can see parallel consideration in Fluent's manual.

Also check, in the makefile, the location that you have specify for the .lib.

Make sure that it's a share directory.
  Reply With Quote

Old   June 26, 2008, 22:21
Default Re: problem loading UDF in parallel fluent
  #3
Tim
Guest
 
Posts: n/a
Our current work around solution is to lauch parallel fluent in the same directory as the case and data files. This way, it seems that the nodes can find the udf library correctly. However, I did not find fluent manual indicating anything about it. The only thing I notice is that the case/data file should be in the same directory as udf library. Feel free to let us know if you have something to share about it. Thanks.
  Reply With Quote

Old   June 27, 2008, 03:32
Default Re: problem loading UDF in parallel fluent
  #4
Leverkin
Guest
 
Posts: n/a
I had the same problem myself. Try making the UDF again (I am sure that you have done it a lot of times as i did!!).

One possible mistake also, is that you have error in your UDF (.h) file. If you have written it in Win then you have written it in DOS mode. So you must "tranform" it in Unix mode. Before you compile it in Unix do:

>dos2unix "Your UDF name.h"

When you are tranfering text files from Win to Unix sometimes special characters are "injecting" into the text, characters that you cannot see.

Tell me if this fix the problem.

Best regards.
  Reply With Quote

Old   June 27, 2008, 12:13
Default Re: problem loading UDF in parallel fluent
  #5
Tim
Guest
 
Posts: n/a
Thanks for the information. The UDF is written using emacs in linux. So that should not be a concern. Building the UDF has no error.

We have had a workaround solution for the problem as seen in my previous post. It looks like the nodes can not find the correct directory when running in Parallel mode. The question now is what is causing the problem in the first place.
  Reply With Quote

Old   July 1, 2008, 06:31
Default Re: problem loading UDF in parallel fluent
  #6
Anna
Guest
 
Posts: n/a
Hi Tim

I am having exaclty the same problem. Did you manage to find a solution to this??

Anna
  Reply With Quote

Old   July 1, 2008, 06:46
Default Re: problem loading UDF in parallel fluent
  #7
Leverkin
Guest
 
Posts: n/a
Hello again,

may I ask you something? In the makefile do you give the appropriate path?

I mean something like that:

#----------------------------------------------------------------------# # User modifiable section. #----------------------------------------------------------------------# SOURCES= new.c UDM.c FLUENT_INC= /share/apps/fluent

# Precompiled User Object files (for example .o files from .f sources) USER_OBJECTS=

#----------------------------------------------------------------------# # Build targets (do not modify below this line). #----------------------------------------------------------------------# CC= cc SHELL= /bin/sh RELEASE= 6.3.26 VERSION= `basename \`pwd\`` ARCH= `expr \`pwd\` : '.*/\(.*\)/[23].*'` ARCHC=$(ARCH)

In the FLUENT_INC you must put the address where Fluent is located, not the .cas and UDF files. Have you tried that?

Best Regards.

  Reply With Quote

Old   July 6, 2008, 16:27
Default Re: problem loading UDF in parallel fluent
  #8
Tim
Guest
 
Posts: n/a
Anna,

What we did is to launch Fluent in the same directory where the case/data/udf file is located. Then there seems to be no problem. Other than that, I really do not know what's going on. Wish this helps.

Tim
  Reply With Quote

Old   July 6, 2008, 16:33
Default Re: problem loading UDF in parallel fluent
  #9
Tim
Guest
 
Posts: n/a
Leverkin,

The path for FLUENT_INC looks correct. It is not located in the case/data directory.

Thanks.

Tim
  Reply With Quote

Old   July 8, 2008, 06:32
Default Re: problem loading UDF in parallel fluent
  #10
Leverkin
Guest
 
Posts: n/a
There must be a problem in your UDF then. Read very carefully the error messages from Fluent.

If everything is "correct" for making the file then you have an error in your UDF.

Best regards
  Reply With Quote

Old   July 9, 2008, 23:51
Default Re: problem loading UDF in parallel fluent
  #11
dunga
Guest
 
Posts: n/a
Hi Leverkin, What is the mean of the "correct"? l think it is so good if you can give some examples. Thanks.

  Reply With Quote

Old   July 11, 2008, 10:15
Default Re: problem loading UDF in parallel fluent
  #12
Leverkin
Guest
 
Posts: n/a
By correct i mean that you don't have an error first at the UDF and then that you have follow the steps for "making" the file propertly. By making i mean butlding the library.

Let me be more precise. You must be sure that you don't have errors in UDF. If you have an error then the libray would not be build and so you cannot load it. Even if sometimes Fluent says that you have build the library!!! Be carefull about that.

Since you have no mistake in the UDF then you must follow the steps for making the file (in a UNIX system) very carefully. Fluent provides details in the manual for building your library in UNIX but it's a little comfusing.

Best regards.
  Reply With Quote

Old   July 12, 2008, 13:59
Default Re: problem loading UDF in parallel fluent
  #13
Davy Wang
Guest
 
Posts: n/a
The parallel UDFs can be quite different from the serial UDFs.

I also had the same problem but now I have solved it after I noticed the incompatibilities such as message displaying.
  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
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 08:24
problem with loading udf in fluent 6.3 James Fluent UDF and Scheme Programming 6 January 22, 2015 06:51
Loading parallel udf Pablo FLUENT 7 March 6, 2011 11:25
loading udf in parallel sytem tahere FLUENT 5 December 13, 2008 02:17
Problem using parallel Fluent Gustavo FLUENT 0 June 28, 2004 00:12


All times are GMT -4. The time now is 10:59.