CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Weighted average

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2021, 04:43
Default Weighted average
  #1
p.1
New Member
 
Italia
Join Date: Oct 2020
Posts: 19
Rep Power: 6
p.1 is on a distinguished road
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)
}
}
p.1 is offline   Reply With Quote

Old   January 13, 2021, 06:21
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you can get it with fluent GUI
results-> reports -> surface integrals
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 15, 2021, 07:27
Default
  #3
p.1
New Member
 
Italia
Join Date: Oct 2020
Posts: 19
Rep Power: 6
p.1 is on a distinguished road
Thank you.
p.1 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 20:59.