CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   problem loading UDF in parallel fluent (http://www.cfd-online.com/Forums/fluent/48609-problem-loading-udf-parallel-fluent.html)

Tim June 26, 2008 01:31

problem loading UDF in parallel fluent
 
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.

Leverkin June 26, 2008 10:42

Re: problem loading UDF in parallel fluent
 
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.

Tim June 26, 2008 21:21

Re: problem loading UDF in parallel fluent
 
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.

Leverkin June 27, 2008 02:32

Re: problem loading UDF in parallel fluent
 
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.

Tim June 27, 2008 11:13

Re: problem loading UDF in parallel fluent
 
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.

Anna July 1, 2008 05:31

Re: problem loading UDF in parallel fluent
 
Hi Tim

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

Anna

Leverkin July 1, 2008 05:46

Re: problem loading UDF in parallel fluent
 
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.


Tim July 6, 2008 15:27

Re: problem loading UDF in parallel fluent
 
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

Tim July 6, 2008 15:33

Re: problem loading UDF in parallel fluent
 
Leverkin,

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

Thanks.

Tim

Leverkin July 8, 2008 05:32

Re: problem loading UDF in parallel fluent
 
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

dunga July 9, 2008 22:51

Re: problem loading UDF in parallel fluent
 
Hi Leverkin, What is the mean of the "correct"? l think it is so good if you can give some examples. Thanks.


Leverkin July 11, 2008 09:15

Re: problem loading UDF in parallel fluent
 
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.

Davy Wang July 12, 2008 12:59

Re: problem loading UDF in parallel fluent
 
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.


All times are GMT -4. The time now is 18:12.