CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   HELP on UDF in version 6.1.22 (https://www.cfd-online.com/Forums/fluent/33127-help-udf-version-6-1-22-a.html)

hedonists February 26, 2004 20:21

HELP on UDF in version 6.1.22
 
Our system just upgraded to version 6.1.22. I found the compiled UDF interface is kind of different with previous version. My questions are:

1. In the makefile.udf, there is one more line. Can I leave it blank?

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

2. When I define a compiled UDF, I have define a source file and Head files. Under which directory should I put these files?

3. There is a "build" button. But I have already built using the makefile "FLUENT_ARCH=***"command, why do I need to build again?

4. There is also a "load" button. I tried to put my lib name in it and load it, but it said

Opening library "lib6122"... Error: open_udf_library: No such file or directory Error Object: #f

Can someone help me this out? If you have a manual of FLUENT 6.1.22 UDF, please let me know.

Thanks a lot.

FJ February 27, 2004 03:42

Re: HELP on UDF in version 6.1.22
 
Hi,

To use a UDF in Flent6.1.22, it is very easy stuff. There is no thing to bother compared with the previous version. So you don't need to do your mentioned 1,2,3,4.

Just add your source code and build it, then load it. It automatically makes subfolders(ntx86, src).

FJ

ap February 27, 2004 07:17

Re: HELP on UDF in version 6.1.22
 
1) You don't need to change makefile.udf.

2) Put your source files in the same directory where your case file is.

3) The build button just run the compiler and creates the directory libudf and its internal structure (2d, 2ddp...).

4) You have to push the load button after the build button.

The error message you read usually happens when your source file isn't in the same directory of your case file. If so, FLUENT creates the libudf directory in the source file directory, but it's unable to properly load it.

Hi :)

ap

hedonists February 27, 2004 18:40

Re: HELP on UDF in version 6.1.22
 
Thanks all. So I did the following,

1. I put my source file and head files in the same directory with my cas file.

2. I clicked "build", the scheme windows says

----------------------------------------------

Working... for d in aix51/[23]*; do ( cd $d; for f in ../../src/*.[ch] ../../src/makefile; do if [ ! -f `basename $f` ]; then echo "# linking to" $f "in" $d; ln -s $f .; fi; done; echo ""; echo "# building library in" $d; make -k>makelog 2>&1; cat makelog; ) done

# linking to ../../src/dpm.h in aix51/2ddp

# linking to ../../src/drag_he.c in aix51/2ddp

# linking to ../../src/surf.h in aix51/2ddp

# linking to ../../src/udf.h in aix51/2ddp

# linking to ../../src/makefile in aix51/2ddp

# building library in aix51/2ddp

You can also see the 'log'-file in the working directory for this compilation history

Done.

------------------------------------------------

But in the unix shell, it says "make: 1254-004 The error code from the last command is 2."

3. When I click "load", the scheme window says

Opening library "libudf1"... Error: open_udf_library: No such file or directory Error Object: #f

Do you know what is wrong?


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