|
[Sponsors] |
April 24, 2007, 06:58 |
TEMPERATURE-AVERAGE
|
#1 |
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) } |
|
April 25, 2007, 17:06 |
Re: TEMPERATURE-AVERAGE
|
#2 |
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. |
|
|
|
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 |