CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Surface weighted average (

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:

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


sebastian May 16, 2012 08:38

Hi Francois,

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


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:

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

All times are GMT -4. The time now is 23:38.