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

TEMPERATURE-AVERAGE

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 24, 2007, 05: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, 16: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

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
Average Temperature in Domain haka FLUENT 1 August 17, 2011 06:25
average interior temperature less than the operating temperature Naher FLUENT 4 March 31, 2011 23:14
Computing Average Temperature using DEFINE_ADJUST macro T81 Fluent UDF and Scheme Programming 9 March 24, 2009 06:41
Temperature Average Danny FLUENT 0 May 3, 2005 05:47
Volume Average Temperature Ashutosh FLUENT 0 February 15, 2001 01:55


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