CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   April 24, 2007, 05:58
Posts: n/a
Sponsored Links
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
Sponsored Links

Old   April 25, 2007, 16:06
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...

  Reply With Quote


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
Volume Average Temperature Ashutosh FLUENT 1 February 19, 2017 19:46
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

Sponsored Links

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