|
[Sponsors] | |||||
Calculate averaged value (mass- or area-weighted) on type:interior boundary conditio |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 |
|
New Member
George B.
Join Date: Nov 2011
Location: The Netherlands
Posts: 2
Rep Power: 0 ![]() |
I would like to calculate the averaged value for some properties (temperature, pressure, viscosity, x-velocity, velocity magnitude, etc) for the boundary condition type:interior (for mass-flow inlet or pressure-outlet works fine). I was trying to get the values for the cell (e.g. the temperature of the cell) but it is not available by using my code :
#include "udf.h" // firstly I intend to calculate the sum of the temperature values DEFINE_EXECUTE_AT_END(execute_at_end) { real sum_temp=0; Domain *d; cell_t c; face_t f; Thread *t; int ID_int = 27; //here I know the ID for the type:interior = 27 d = Get_Domain(1); t = Lookup_Thread(d,ID_face_int); begin_c_loop(c,t) { sum_temp+=C_T(c,t); } end_c_loop(c,t) printf( "\n Tsum in type:interior %d is [in K]: %f \n",ID_int,sum_temp); } Thanks a lot in advance. |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Area weighted or mass weighted average | SAM | Main CFD Forum | 21 | May 3, 2013 16:10 |
| How to calculate the mass fraction of species in Fluent? | llrr | FLUENT | 0 | May 21, 2010 04:41 |
| Facet, Area and Mass Average in Fluent | Tushar | Main CFD Forum | 0 | February 4, 2009 04:37 |
| Can Tecplot calculate isosurface area alon axis x? | leaf | Tecplot | 0 | May 21, 2007 12:20 |
| mass & area average | henry | CFX | 1 | October 3, 2001 21:15 |