CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Calculate volume average of volScalarField (

tangd August 21, 2006 09:21

One easy question. How to calc
One easy question. How to calculate volume average of a volScalarField? I think the average() is not the function I want. Can somebody tell me? Thanks!

gschaider August 21, 2006 10:38

That's the problem with easy q
That's the problem with easy questions. Nobody wants to answer them because you can only embarrass yourself by saying somthing stupid.



(weighted average of the cell-values)

hjasak August 21, 2006 10:49

volScalarField a = ...; a

volScalarField a = ...;



sam1364 May 1, 2013 13:37

so, what about surface average of a scalar field at specified boundary patch (like inlet)

how can I include that in my source code?


Originally Posted by hjasak (Post 178545)

volScalarField a = ...;



All times are GMT -4. The time now is 14:29.