|
[Sponsors] |
January 13, 2021, 04:43 |
Weighted average
|
#1 |
New Member
Italia
Join Date: Oct 2020
Posts: 19
Rep Power: 6 |
Hi, I have to get the weighted average of the cells values on a surface that I create in Fluent in post-processing. How can I get it with a UDF?
Without the weighted average my UDF is: #include "udf.h" #define uinf 1.75 #define d 6 DEFINE_ADJUST(dudy, domain) { Thread *t; cell_t c; thread_loop_c(t, domain) { begin_c_loop(c, t) { real v = C_V(c, t); /*v*/ real uy = C_U_G(c, t)[1]; /*du/dy*/ C_UDMI(c, t, 0) = -(v*uy)*(d/(uinf*uinf)); } end_c_loop(c, t) } } |
|
January 13, 2021, 06:21 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you can get it with fluent GUI
results-> reports -> surface integrals
__________________
best regards ****************************** press LIKE if this message was helpful |
|
January 15, 2021, 07:27 |
|
#3 |
New Member
Italia
Join Date: Oct 2020
Posts: 19
Rep Power: 6 |
Thank you.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converging Diverging Nozzle with dbnsTurbFoam | Saleh Abuhanieh | OpenFOAM Running, Solving & CFD | 4 | December 13, 2019 11:26 |
Area weighted average temperature | vin95 | Main CFD Forum | 2 | August 8, 2018 02:46 |
Mass weighted or Area weighted Average ? | nareshzeeda1994 | FLUENT | 0 | May 2, 2018 03:37 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
area weighted average or mass weighted average | sa har | Main CFD Forum | 0 | January 5, 2016 14:16 |