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

Flowfield temperature modification through UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2011, 05:27
Default Flowfield temperature modification through UDF
  #1
New Member
 
Robert
Join Date: Apr 2011
Posts: 7
Rep Power: 15
Hypersonicflow is on a distinguished road
Hello,

I would like to introduce myself to this forum as quite a newbie when it comes to FLUENT UDFs.

I would kindy ask some of you to give me a clue how to:

Modify the temperature during the run in any cell (not just at the inlet).
Example: loop over all cells and if the velocity in a cell is larger than five, increase the temperature by one.

From the UDF manual, it is not really clear to me which command has to be used for this purpose. Is it DEFINE_ADJUST or any other comand?

Please excuse the simple nature of this question, but I would be really thankful for a short hint.

Robert
Hypersonicflow is offline   Reply With Quote

Old   April 11, 2011, 06:01
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi there,
you can use DEFINE_ADJUST here. in selecting define macros, you have to notice when and where it executes during iterations. this macro executes every iterations and you can make a loop over all cells so it's suitable.

regards,
Amir is offline   Reply With Quote

Old   April 18, 2011, 14:27
Smile Thanks
  #3
New Member
 
Robert
Join Date: Apr 2011
Posts: 7
Rep Power: 15
Hypersonicflow is on a distinguished road
Thanks for your help, Armir - Problem solved.

Robert
Hypersonicflow is offline   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
UDF for a horizontal temperature profile CD Fluent UDF and Scheme Programming 9 May 6, 2018 13:13
UDF: temperature dependent BC ehooi FLUENT 6 January 22, 2011 13:26
Temperature calcul in UDF DEPRET FLUENT 1 May 7, 2008 05:34
ho to input a computed temperature value in a UDF mcb FLUENT 0 March 7, 2007 07:06
UDF modification merac FLUENT 4 March 1, 2001 07:42


All times are GMT -4. The time now is 17:44.