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

Please Help with UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2007, 10:39
Default Please Help with UDF
  #1
rosol
Guest
 
Posts: n/a
Hi

I have to write UDF to specify the fluid properties as a function of temperature therfore I have four codes (UDF) for viscosity ,density,thermal conductivity ,and Cp but when I interpret these UDF in fluent the fluent save only the last one and it only appear in the drop down list.My question is how can I interpret and save more than one UDF in fluent in the same time .

I will be happy for any help Thank you
  Reply With Quote

Old   September 4, 2007, 12:15
Default Re: Please Help with UDF
  #2
treit
Guest
 
Posts: n/a
You should compile your UDF's, but if you want to interpret you can keep all of your DEFINE macros (4 in your case) in the same source file with the include udf.h preprocessor directive.

p.s. I thought that the termal conductivity could not be altered by a UDF in Fluent.
  Reply With Quote

Old   September 4, 2007, 12:37
Default Re: Please Help with UDF
  #3
Giacomo
Guest
 
Posts: n/a
Hi. You can keeping interpreting your UDF. You have to do like this:

DEFINE_xxx(xxxxxxx, .., ..) { write your first udf } in the same file you attach all the other udf's just placing them one after the other:

DEFINE_yyy(yyyyyy, .., ..) { write your first udf } DEFINE_zzz(zzzzzz, .., ..) { write your first udf }

At the end, when you interpret, you will find xxxxxxx yyyyyy zzzzzz in you drop down menus. Enjoy!

Giacomo

  Reply With Quote

Old   September 4, 2007, 12:39
Default Re: Please Help with UDF
  #4
Giacomo
Guest
 
Posts: n/a
Hi. You can keeping interpreting your UDF. You have to do like this:

DEFINE_xxx(xxxxxxx, .., ..) { write your first udf } in the same file you attach all the other udf's just placing them one after the other:

DEFINE_yyy(yyyyyy, .., ..) { write your second udf }

DEFINE_zzz(zzzzzz, .., ..) { write your third udf }

At the end, when you interpret, you will find

xxxxxxx

yyyyyy

zzzzzz

in you drop down menus. Enjoy!

Giacomo

  Reply With Quote

Old   September 8, 2007, 08:41
Default Re: Please Help with UDF
  #5
ali
Guest
 
Posts: n/a
i remeber that you can not write a udf for thermal conductivity, it requires additional solver capabilities.please research this
  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 parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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