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

compiled UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 25, 2003, 16:46
Default compiled UDF
  #1
hedonist
Guest
 
Posts: n/a
I followed UDF Manual section 7.3 to compile my complied UDF, but after I input command line:

make "FLUENT ARCH=aix43"

I got a message as follows:

make: 1254-002 Cannot find a rule to create target FLUENT ARCH=aix43 from dependencies. Stop.

Do you have any idea what is wrong? Thanks a lot.
  Reply With Quote

Old   March 25, 2003, 20:23
Default Re: compiled UDF
  #2
Alex Munoz
Guest
 
Posts: n/a
Hi

Check if the C compilor has been installed (gcc, or cc)

Copy a short UDF from fluent and Interpreted the UDF if this does not work, You know that something has not been installed correctly

In addtion, are you typing "FLUENT_ARCH=aix53"

because all the characteres are important

Regards

Alex
  Reply With Quote

Old   March 25, 2003, 20:34
Default Re: compiled UDF
  #3
Alex Munoz
Guest
 
Posts: n/a
Hi

Also readed some lines below Compiling UDF Alex Munoz I gave to this person some solution for almost the same problem

Regards

Alex
  Reply With Quote

Old   March 25, 2003, 20:57
Default Re: compiled UDF
  #4
hedonist
Guest
 
Posts: n/a
Thank you very much, Alex. You helped me to figure out one problem: when I printed out the UDF manual, or _ disappear. So I was typing make "FLUENT ARCH=aix43", and that was the reason for that error message. But now I still have problem. I used a very simple code which was fine as interpreted UDF. When I typed in

make "FLUENT_ARCH=aix43"

The message becomes

for d in aix43/[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/udfdrag.c in aix43/2d

# linking to ../../src/makefile in aix43/2d

# building library in aix43/2d

make: 1254-004 The error code from the last command is 2.

I have no idea what does this error code mean. Do you?
  Reply With Quote

Old   March 25, 2003, 23:52
Default Re: compiled UDF
  #5
hedonist
Guest
 
Posts: n/a
When I copy the example file of DEFINE_ADJUST in UDF manual p 4-5 into my udf_file.c, it compiles successfully. However, when I copy the DEFINE_DPM_DRAG example in p 4-75 into the same file, the error message always says:

# building library in aix43/2d

make: 1254-004 The error code from the last command is 2.

Anyone knows why? And anyone tried to use DEFINE_DPM_DRAG ?
  Reply With Quote

Old   March 26, 2003, 15:55
Default Re: compiled UDF
  #6
Alex Munoz
Guest
 
Posts: n/a
Hello

I know what it is happening

I think you are using Fluent 6 but the code that you copy is made for Fluent 5

Make sure that you copy a source code made for the Fluent that you are using

For instance in Fluent 6 you write Get Domain include udf.h

whereas in FLUENT 5 you write Domain include udf.h include dpm.h include sg.h

Therefore, make sure that you know the difference between each version when you write your code

Best Regards

Alex
  Reply With Quote

Old   March 26, 2003, 19:38
Default Re: compiled UDF
  #7
hedonist
Guest
 
Posts: n/a
You are right, Alex! I found that I need to add

#include "dpm.h"

in order to use the example file from the UDF manual I have. Thanks a lot.
  Reply With Quote

Old   March 26, 2003, 20:33
Default Re: compiled UDF
  #8
Alex Munoz
Guest
 
Posts: n/a
Hi hedonist!

I know it!

Now you can send me a present, this compiling problem could take you week to found it!

Anyway, now you can practice your nick name "hedonist"

Regards

Alex
  Reply With Quote

Old   March 26, 2003, 23:45
Default Re: compiled UDF
  #9
hedonist
Guest
 
Posts: n/a
Present to Alex:

\(((())))/

O
  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
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
I want to use pressure of 1 face in udf that compiled on other face iman_1844 Fluent UDF and Scheme Programming 3 June 10, 2010 12:55
Why udf can not be compiled in my pc? Xinqiang FLUENT 0 June 10, 2009 14:32
difference between udf compiled and udf interprete chandra sekhar FLUENT 2 April 11, 2006 00:04
how to quit compiled or interprited UDF tian FLUENT 0 April 8, 2003 23:53


All times are GMT -4. The time now is 09:45.