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

sampleDict & surfaces & zoneName

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 95
Rep Power: 17
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: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Thanks, fixed in 1.6.x.
mattijs is offline   Reply With Quote

Old   February 27, 2015, 05: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: 12
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


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
SampleDict error AirS OpenFOAM Post-Processing 5 January 19, 2017 23:29
Importing or Creating 2D Flat Surfaces into CFX Sam CFX 5 March 30, 2013 11:11
sampleDict & surfaces & zoneName pbohorquez OpenFOAM Post-Processing 2 February 27, 2013 14:08
Faceted surfaces in ICEM Chriss Main CFD Forum 1 May 6, 2008 15:18
Surfaces Mark FLUENT 2 February 9, 2004 10:41


All times are GMT -4. The time now is 09:06.