CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Surface weighted average (https://www.cfd-online.com/Forums/openfoam-post-processing/80320-surface-weighted-average.html)

 francois September 22, 2010 09:23

Surface weighted average

Hi all,

Is there an utility with openFOAM or Paraview to compute the surface weighted average of a quantity such as temperature:
p, li { white-space: pre-wrap; }

$T_{mean}=\frac{\int_{A}T\vec{u}.d\vec{A}}{\int_{A }\vec{u}.d\vec{A}}$

where $A$ is the surface area ( a plane here) and $\vec{u}$ the velocity field.

Any help could be useful.
Thanks !

 francois September 23, 2010 11:22

I've found something that could be used on patches:

http://openfoamwiki.net/index.php/Co...unctionObjects

but I have to calculate those values on arbitrary locations.
Any ideas ?

Thanks

 sebastian May 16, 2012 08:38

Hi Francois,

did you find a solution for that? I'm interested in something similar.

Sebastian

 seanread January 31, 2016 23:57

really late solution

So I'm guessing you probably sorted this out, but just for the sake of anyone else who is looking into this, I found this solution:

https://cmake.org/pipermail/paraview...st/013201.html

So if you integrate over a surface with the integrate variables filter and then divide by the total area that will give you an area weighted average

 elham usefi November 30, 2016 11:06

Quote:
 Originally Posted by seanread (Post 583161) So I'm guessing you probably sorted this out, but just for the sake of anyone else who is looking into this, I found this solution: https://cmake.org/pipermail/paraview...st/013201.html So if you integrate over a surface with the integrate variables filter and then divide by the total area that will give you an area weighted average
thank you. it saved me:D:)

 All times are GMT -4. The time now is 18:00.