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

Trouble with sampleDict syntax for OpenFOAM 2.3.1

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2015, 13:53
Unhappy Trouble with sampleDict syntax for OpenFOAM 2.3.1
  #1
New Member
 
Rowan Bado
Join Date: Jan 2015
Posts: 1
Rep Power: 0
rawdoggity is on a distinguished road
Hey all, new OpenFOAM user here. Using v2.3.1, I'm trying to run a lid-driven cavity flow simulation on a DEM of a mountain range converted into STL geometry as described by:

http://www4.ncsu.edu/~ejhardi2/OF_GRASS_Geom.pdf

So far, everything works beautifully and I have no trouble refining the geometry with blockMesh > snappyHexMesh -overwrite and calculating surface shear stress with icoFoam > wallShearStress -latestTime. However, I am having trouble sampling the results in 'wallShearStress'. I'm using a sample dictionary copied verbatim from the example given above that looks like this:

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
setFormat xmgr;

surfaceFormat raw;

interpolationScheme cellPoint;

fields
(
wallShearStress
);

sets
(
);

surfaces
(
wall
{
type patch;
patchName terrain_terrain;
}
);

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * *\

However, when I run "sample" I receive the following error:

keyword patches is undefined in dictionary "/Users/ecr/browan/OpenFOAM/browan-2.3.1/run/tutorials/incompressible/icoFoam/mteveresttutorial/system/sampleDict.surfaces"

It's clear to me that the tutorial is based off an older version of OpenFOAM and that the sampleDict syntax has changed since moving to 2.3.1, but I can't find an example of the proper syntax (including 'patches' and 'type' within the 'surfaces' dictionary) anywhere. I'm sure this is a simple fix... can anybody tell me how I should be writing this? Perhaps post an example to use for reference?
rawdoggity is offline   Reply With Quote

Old   February 1, 2015, 05:24
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Usually examples of dictionaries are placed along the sources of the utilities, in case of sample, you can find the dictionary in $FOAM_APP/applications/utilities/postProcessing/sampling/sample folder.

Here's an excerpt from the file:

Code:
    walls_constant
    {
        type            patch;
        patches         ( ".*Wall.*" );
        // Optional: whether to leave as faces (=default) or triangulate
        // triangulate     false;
    }

    walls_interpolated
    {
        type            patch;
        patches         ( ".*Wall.*" );
        interpolate     true;
        // Optional: whether to leave as faces (=default) or triangulate
        // triangulate     false;
    }
apu111 likes this.
alexeym is offline   Reply With Quote

Reply

Tags
sampledict, syntax error


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
UDF syntax error Ratel Fluent UDF and Scheme Programming 4 May 23, 2015 05:15
what is syntax error : missing ')' before ';' aleisia Fluent UDF and Scheme Programming 8 March 10, 2015 15:42
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


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