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

average over cutting plane during runtime

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

Like Tree6Likes
  • 6 Post By gigilentini8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2012, 11:41
Default average over cutting plane during runtime
  #1
Member
 
Join Date: Aug 2012
Posts: 33
Rep Power: 10
gigilentini8 is on a distinguished road
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
        );
    }
gigilentini8 is offline   Reply With Quote

Old   December 16, 2018, 11:31
Default
  #2
Member
 
fede32's Avatar
 
Federico Agustín Caccia
Join Date: Jun 2015
Location: Buenos Aires, Argentina
Posts: 55
Rep Power: 7
fede32 is on a distinguished road
was it right?
fede32 is offline   Reply With Quote

Reply

Tags
areaaverage, cuttingplane, openfoam

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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
plane cutting complex geometry in the middle Lilly FLUENT 0 July 27, 2011 09:01
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
average value in any plane aloise CFX 3 July 26, 2006 15:30
average value in any plane Roy Chen CFX 7 November 14, 2002 11:17


All times are GMT -4. The time now is 21:43.