CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

cuttingPlane weightedAreaAverage

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bodo1993

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 25, 2020, 11:27
Default cuttingPlane weightedAreaAverage
  #1
Member
 
Javier Vinuales
Join Date: May 2016
Posts: 42
Rep Power: 9
jvinuales is on a distinguished road
Hi everyone,

I am using OpenFOAM v2006. I need to calculate the mass flow average at different cross-sections of a duct. I was thinking to use a cuttingPlane to do so.

How can I do it? I tried to use the following but function object but I got an error:

Code:
tempX1Average
{
    type            surfaceFieldValue;
    libs            ("libfieldFunctionObjects.so");
	writeControl    writeTime;
    fields          (T);
    writeFields     no; // yes | no
    regionType      sampledSurface;
	name            test;
	sampledSurfaceDict
        {
            type            cuttingPlane; 
            planeType       pointAndNormal;
			pointAndNormalDict 
			{ 
				basePoint       (0 0 0);
				normalVector    (1 0 0); 
            } 
        }
	operation 		weightedAreaAverage;
	weightField     phi;

}
The error I got was:

--> FOAM FATAL IO ERROR:
Cannot use weighted operation 'weightedAreaAverage' for sampledSurface

Is there a way to calculate a mass flow average temparature at a cutting plane?
jvinuales is offline   Reply With Quote

 


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
Sampling air passing through multiple windows b.simpson OpenFOAM Post-Processing 3 September 4, 2020 08:07
Sampling fields values passing through multiple windows b.simpson OpenFOAM Post-Processing 0 May 1, 2020 11:14
cuttingPlane with cyclic BC Xulia OpenFOAM Post-Processing 1 April 26, 2016 07:27
export calculated variable with cuttingPlane Eloise OpenFOAM Post-Processing 0 June 16, 2014 10:59
How to plot variable (alpha1) on cuttingPlane (runtime postprocessing) pythag0ra5 OpenFOAM Post-Processing 1 September 26, 2013 08:46


All times are GMT -4. The time now is 07:09.