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

areaAverage of arbitary plane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2015, 04:15
Default areaAverage of arbitary plane
  #1
New Member
 
Chris
Join Date: Jun 2015
Posts: 3
Rep Power: 10
LilumDaru is on a distinguished road
Hi,

My problem is that there were allready some simulations running in the past and I'm supposed to collect some data out of it. For this I need to get the areaAverage velocity, areaAverage pressure and areaIntegrated shearstresses inside a fluid on some planes (the positions are not known, the position of the plane should be variable). I allready managed to collect all the field-data using sampleSurfaces. You know, that's a huge amount of numbers... so are there any comfortable ways (allready build tools) to get the areaAverages?

If possible, I would like to integrate everything into a script which does all the analysis for me. (I got some basic programming knowledge in python, matlab and java, but unfortunally not yet in c++)

It would be great if someone could tell me how to execute this runtime processing function in a postprocess (this function is taken from controllDict):
Code:
pAverageCuttingPlane1
    {
        type			faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");

        enabled         true;
        outputControl   timeStep;

        // 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.065 0 0.0015);  
                        normalVector    (0 0 1);
                }
                source cells; // sample cells or boundaryFaces
                interpolate true;
        }

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

        fields
        (
            p
	    U
        );
    }

Thanks and regards,
Chris

Last edited by LilumDaru; June 23, 2015 at 04:48. Reason: added a question.
LilumDaru is offline   Reply With Quote

Reply


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
Using a Plane id in Fluent UDF cdf_user Fluent UDF and Scheme Programming 13 October 17, 2023 00:06
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
Plane stress and plane strain cases for stress analysis Sargam05 OpenFOAM 0 May 3, 2013 18:16
Meshing a Mixing Plane using ICEM Will Anderson FLUENT 0 November 6, 2010 17:08
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43


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