CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

average over cutting plane during runtime

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

average over cutting plane during runtime

Posted April 12, 2017 at 11:51 by kindle

This is a average on the cutting plane

Quote:
Originally Posted by gigilentini8 View Post
Dear FOAMers,
can you confirm me that the function object below in ControlDict is the correct and fastest way to calculate average over cutting planes in a 3D simulation during runtime?
it seems to work but I'm not 100% sure about the results...

Code:
functions
{
    cuttingplane_average
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");

        enabled         true;
        outputControl   outputTime;

        // Output to log&file (true) or to file only
        log             true;

        // Output field values as well
        valueOutput     false;  //true;

        // Type of source: patch/faceZone/sampledSurface
        source          sampledSurface;

        sampledSurfaceDict
        {
                type cuttingPlane;
                planeType           pointAndNormal;
                pointAndNormalDict
                {
                        basePoint       (0 0 0);  
                        normalVector    (0 0 1);
                }
                source cells; // sample cells or boundaryFaces
                interpolate true;
        }

        // Operation: areaAverage/sum/weightedAverage ...
        operation       areaAverage;

        fields
        (
            p
            U
        );
    }
Views 1067 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 03:49.