CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Averaging along a line on a boundary patch (http://www.cfd-online.com/Forums/openfoam-post-processing/108333-averaging-along-line-boundary-patch.html)

sfalsharif October 19, 2012 15:28

Averaging along a line on a boundary patch
 
Hi,

I'm trying to get the average of a scalar field variable along specified lines on a boundary patch. The boundary patch is not completely planar, so the lines along which I want to sample would exit and re-enter the flow domain (boundary). I've tried using the sample utility, but for some reason it only picks up a segment of where the line and patch intersect. I can see from paraview that there is more than what sample returns.

Here's a sample of what I have in sampleDict:

Code:

interpolationScheme pointMVC;//cellPointFace;

setFormat      raw;

sets
(
    line10
    {
        type uniform;
        axis z;
        start (0.00330836878141 1e-9 -1e-9 );
        end (0.00330836878141 1e-9 .01 );
        nPoints  200;
    }

);


If I can at least know how to sample values along a line I can do the averaging externally. Is there a simple way to do that? Is there something I'm doing wrong in sampleDict :confused:?

Any help or suggestions appreciated.


All times are GMT -4. The time now is 12:23.