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

Please Help with UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Giacomo
  • 1 Post By Giacomo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2007, 09: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, 11: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, 11: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

aragon74 likes this.
  Reply With Quote

Old   September 4, 2007, 11: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

aragon74 likes this.
  Reply With Quote

Old   September 8, 2007, 07: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


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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