CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

sampleDict & surfaces & zoneName

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2010, 17:51
Default sampleDict & surfaces & zoneName
  #1
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 94
Rep Power: 8
pbohorquez is on a distinguished road
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
pbohorquez is offline   Reply With Quote

Old   June 10, 2010, 02:53
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by pbohorquez View Post
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.
olesen is offline   Reply With Quote

Old   June 10, 2010, 02:58
Default
  #3
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Thanks, fixed in 1.6.x.
mattijs is offline   Reply With Quote

Old   February 27, 2015, 06:46
Default how to define a zone in order to surface average a small part of a plane
  #4
New Member
 
Chrissy Stanford
Join Date: Oct 2013
Location: South Africa
Posts: 11
Rep Power: 3
New_OpenFOAM_user is on a distinguished road
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
New_OpenFOAM_user is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing or Creating 2D Flat Surfaces into CFX Sam CFX 5 March 30, 2013 12:11
sampleDict & surfaces & zoneName pbohorquez OpenFOAM Post-Processing 2 February 27, 2013 15:08
SampleDict error AirS OpenFOAM Post-Processing 4 November 27, 2009 10:25
Faceted surfaces in ICEM Chriss Main CFD Forum 1 May 6, 2008 15:18
Surfaces Mark FLUENT 2 February 9, 2004 11:41


All times are GMT -4. The time now is 13:52.