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

TEMPERATURE-AVERAGE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2007, 06:58
Default TEMPERATURE-AVERAGE
  #1
mech
Guest
 
Posts: n/a
Hi everyone, The following UDF can be used to get the volume averaged temperature. How can I get area wighted average temperature at a cross sectioin of a 3D-channel by UDF? Can you help me? Thanks.

#include "udf.h" DEFINE_ADJUST(my_adjust, d) { Thread *t; /* Integrate temperature. */ real sum_tem=0.; cell_t c;

thread_loop_c (t,d) {

begin_c_loop (c,t)

sum_tem += C_T(c,t)* C_VOLUME(c,t);

end_c_loop (c,t) }

  Reply With Quote

Old   April 25, 2007, 17:06
Default Re: TEMPERATURE-AVERAGE
  #2
Nak
Guest
 
Posts: n/a
You can simply create a plane at the required cross section location and use Report-->surface integrals-->area-weighted average in the Fluent panel. No need for UDF to do that. Hope it helps...

--Nak.
  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
Computing Average Temperature using DEFINE_ADJUST macro T81 Fluent UDF and Scheme Programming 13 October 16, 2017 07:58
Volume Average Temperature Ashutosh FLUENT 1 February 19, 2017 19:46
Average Temperature in Domain haka FLUENT 1 August 17, 2011 07:25
average interior temperature less than the operating temperature Naher FLUENT 4 April 1, 2011 00:14
Temperature Average Danny FLUENT 0 May 3, 2005 06:47


All times are GMT -4. The time now is 18:30.