CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   sampleDict & surfaces & zoneName (https://www.cfd-online.com/Forums/openfoam-bugs/76979-sampledict-surfaces-zonename.html)

pbohorquez June 9, 2010 17:51

sampleDict & surfaces & zoneName
 
The file that follows,

OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/sampling/sample/sampleDict,

constantPlane
{
type plane; // always triangulated
basePoint (0.0501 0.0501 0.005);
normalVector (0.1 0.1 1);

//- Optional: restrict to a particular zone
// zoneName zone1;
}

contains a mispelling according to
OpenFOAM/OpenFOAM-1.6.x/src/sampling/sampledSurface/sampledPlane/

...
dict.readIfPresent("zone", zoneName_);
...

I think that

//- Optional: restrict to a particular zone
// zoneName zone1;

should read like this:

//- Optional: restrict to a particular zone
// zone zone1;

Cheers up

olesen June 10, 2010 02:53

Quote:

Originally Posted by pbohorquez (Post 262359)
OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/sampling/sample/sampleDict,
...
should read like this:
//- Optional: restrict to a particular zone
// zone zone1;

Yes, I think you are indeed correct.

mattijs June 10, 2010 02:58

Thanks, fixed in 1.6.x.

New_OpenFOAM_user February 27, 2015 05:46

how to define a zone in order to surface average a small part of a plane
 
Hello

I'm trying to calculate the surfaced averaged velocity through a small hole in my geometry. At the moment I'm defining the surface planes as follows in my controlDict file:

functions
{
#include "topoSetDict"

threemmH
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl timeStep;
log true;
valueOutput true;
source sampledSurface;
surfaceFormat vtk;
sampledSurfaceDict
{
type plane; // always triangulated
basePoint (0.007 0.007 0.3995);
normalVector (0 0 1);
zone zone1;
}
operation areaAverage;
fields
(
U
);
}
};

I'm Defining zone1 as follows in the topoSetDict file:

{
name zone1;
type cellSet;
action new;
source cylinderToCell;
sourceInfo
{
p1 (0.007 0.007 0.3995); // start point on cylinder axis
p2 (0.007 0.007 0.3975); // end point on cylinder axis
radius 0.0015;
}
}

But for some reason openFoam seems to ignore the zone and surface average the velocity over the entire plane. Could anyone be of assistance in this regard? What am I doing wrong?

Regards,
Chrissy


All times are GMT -4. The time now is 00:33.