CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

areaAverage sampledSurface - what does it do exactly?

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

Like Tree1Likes
  • 1 Post By einstein_zee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2019, 13:12
Default areaAverage sampledSurface - what does it do exactly?
  #1
New Member
 
Join Date: Jan 2017
Posts: 26
Rep Power: 5
er10 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.



Code:
 
    {
       type            surfaceRegion;
       libs ("libfieldFunctionObjects.so");
  
        enabled         true;
	writeControl    runTime; 
	writeInterval   0.001;
        log             false;
        writeFields     false;
	writeArea       false;
        surfaceFormat   none;
        regionType      sampledSurface;
        name      Mean;

	sampledSurfaceDict
         {
               type        plane;
	       basePoint   (0.1524 0 0);
	       normalVector (1 0 0);
	 }
          operation       areaAverage;
          fields
          (
	     rho
          );
      }

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

Old   August 23, 2019, 04:11
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 81
Rep Power: 10
einstein_zee is on a distinguished road
Hii there,

you may find it here "https://github.com/OpenFOAM/OpenFOAM-dev/blob/61c9bc2ee31289bc2a91a1fa60f075361fc8e61d/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C"

it is :
Code:
            const scalarField magSf(mag(Sf));

            result = sum(magSf*values)/sum(magSf);
er10 likes this.
einstein_zee is offline   Reply With Quote

Old   August 23, 2019, 06:57
Default
  #3
New Member
 
Join Date: Jan 2017
Posts: 26
Rep Power: 5
er10 is on a distinguished road
Quote:
Originally Posted by einstein_zee View Post
Hii there,

you may find it here "https://github.com/OpenFOAM/OpenFOAM-dev/blob/61c9bc2ee31289bc2a91a1fa60f075361fc8e61d/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C"

it is :
Code:
            const scalarField magSf(mag(Sf));

            result = sum(magSf*values)/sum(magSf);

Thanks for this!
er10 is offline   Reply With Quote

Reply

Tags
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
areaAverage sampledSurface - what does it do exactly? er10 OpenFOAM Post-Processing 1 September 5, 2019 10:54
weightedAreaAverage for sampledSurface Flou OpenFOAM Post-Processing 1 August 27, 2018 11:26
areaAverage pressure along streamwise direction canopus OpenFOAM Post-Processing 1 March 28, 2016 16:13
[swak4Foam] different values between swakExpression & faceSource areaAverage Paebin OpenFOAM Community Contributions 7 December 23, 2015 11:29
areaAverage of arbitary plane LilumDaru OpenFOAM Post-Processing 0 June 23, 2015 04:15


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