CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > 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
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
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
Computing Average Temperature using DEFINE_ADJUST macro T81 Fluent UDF and Scheme Programming 13 October 16, 2017 06:58
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
Temperature Average Danny FLUENT 0 May 3, 2005 05:47

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