CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   OF 4.0 sample (https://www.cfd-online.com/Forums/openfoam-post-processing/180401-4-0-sample.html)

rr3245 November 22, 2016 06:20

OF 4.0 sample
 
Hi all,

I am running simulations for flow past a cylinder (2D at the moment) and I would like to sample pressure values on the cylinder surface. I have created a sampleDict file and I am runnning the following command: "postProcess -func sampleDict". The postProcess function seems to be generating something, but I can't find anything saved.

My sampleDict file looks like this:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  3.0.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

setFormat raw;
surfaceFormat raw;

type surfaces;
libs ("libsampling.so");


interpolationScheme cellPoint;

// Fields to sample.
fields
(
    p
);

sets
(
);

surfaces
(
    cylinderwall
    {
        type            wall;
        patches        ("CYLINDERWALL");
    }
);


// ************************************************************************* //



Regards,
RH.


All times are GMT -4. The time now is 01:19.