CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

areaAverage sampledSurface - what does it do exactly?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tecmul

LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 13:26
Default areaAverage sampledSurface - what does it do exactly?
New Member
Join Date: Jan 2017
Posts: 24
Rep Power: 9
er99 is on a distinguished road
Hi all,

I have inherited a code which includes the following sampling lines below within the controlDict file.
Does anyone know how the plane areaAverage operation works in OpenFOAM? What's the equation which describes this particular operation?

Would really appreciate your help!

Thanks in advance.

       type            surfaceRegion;
       libs ("");
        enabled         true;
	writeControl    runTime; 
	writeInterval   0.001;
        log             false;
        writeFields     false;
	writeArea       false;
        surfaceFormat   none;
        regionType      sampledSurface;
        name      Mean;

               type        plane;
	       basePoint   (0.1524 0 0);
	       normalVector (1 0 0);
          operation       areaAverage;

Last edited by er99; August 22, 2019 at 16:32.
er99 is offline   Reply With Quote

Old   September 5, 2019, 11:54
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
Hi, the areaAverage operation is defined in (for OpenFOAM 6):


Here's the piece of code for areaAverage:

       case opAreaAverage:
            const scalarField magSf(mag(Sf));

            result = sum(magSf*values)/sum(magSf);
magSf is defined as a scalar field of face normal vector magnitudes. The rest is just the area weighted average of whatever field you choose to integrate (rho in your case) over the plane specified by the sampledSurfaceDict. surfaceFieldValueTemplates.C also has some code related to interpolation of the field onto the plane which I don't understand.
er99 likes this.
tecmul is offline   Reply With Quote


area average, data, plane, sampling, surface

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam][DyM] "Fatal Error: incorrect size" while regenerating sampledSurface floquation OpenFOAM Running, Solving & CFD 1 October 1, 2019 14:08
weightedAreaAverage for sampledSurface Flou OpenFOAM Post-Processing 1 August 27, 2018 12:26
areaAverage pressure along streamwise direction canopus OpenFOAM Post-Processing 1 March 28, 2016 17:13
[swak4Foam] different values between swakExpression & faceSource areaAverage Paebin OpenFOAM Community Contributions 7 December 23, 2015 12:29
areaAverage of arbitary plane LilumDaru OpenFOAM Post-Processing 0 June 23, 2015 05:15

All times are GMT -4. The time now is 02:15.