|
[Sponsors] |
Trouble with sampleDict syntax for OpenFOAM 2.3.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2015, 14:53 |
Trouble with sampleDict syntax for OpenFOAM 2.3.1
|
#1 |
New Member
Rowan Bado
Join Date: Jan 2015
Posts: 1
Rep Power: 0 |
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? |
|
February 1, 2015, 06:24 |
|
#2 |
Senior Member
|
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; } |
|
Tags |
sampledict, syntax error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF syntax error | Ratel | Fluent UDF and Scheme Programming | 4 | May 23, 2015 06:15 |
what is syntax error : missing ')' before ';' | aleisia | Fluent UDF and Scheme Programming | 8 | March 10, 2015 16:42 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |