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

HELP on UDF in version 6.1.22

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2004, 21:21
Default HELP on UDF in version 6.1.22
  #1
hedonists
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   February 27, 2004, 04:42
Default Re: HELP on UDF in version 6.1.22
  #2
FJ
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 27, 2004, 08:17
Default Re: HELP on UDF in version 6.1.22
  #3
ap
Guest
 
Posts: n/a
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
  Reply With Quote

Old   February 27, 2004, 19:40
Default Re: HELP on UDF in version 6.1.22
  #4
hedonists
Guest
 
Posts: n/a
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?
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 11:55
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01
UDF using c_face_loop(c,t,i) frederic FLUENT 2 April 1, 2000 22:42


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